#awoprofile-root {
    --apr-bg: #08111f;
    --apr-surface: #0e1c30;
    --apr-surface-2: #152742;
    --apr-border: #243b5c;
    --apr-text: #f1f5f9;
    --apr-muted: #94a3b8;
    --apr-gold: #eab308;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    color: var(--apr-text);
    background: var(--apr-bg);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

#awoprofile-root[data-theme="light"] {
    --apr-bg: #f1f5f9;
    --apr-surface: #ffffff;
    --apr-surface-2: #f8fafc;
    --apr-border: #cbd5e1;
    --apr-text: #0f172a;
    --apr-muted: #475569;
}

#awoprofile-root * {
    box-sizing: border-box;
}

.apr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--apr-border);
}

.apr-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.apr-brand-row h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    color: var(--apr-text);
}

.apr-brand-row h1 span {
    color: var(--apr-gold);
}

.apr-plan-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.16);
    color: var(--apr-gold);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.apr-blue-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.apr-subtitle {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--apr-muted);
}

.apr-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.apr-btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 8px 13px;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.apr-btn.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.apr-btn.secondary {
    background: var(--apr-surface-2);
    color: var(--apr-text);
    border-color: var(--apr-border);
}

.apr-btn.gold {
    background: linear-gradient(135deg, #d97706, #eab308);
    color: #09111e;
}

.apr-main {
    display: grid;
    grid-template-columns: 470px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1240px) {
    .apr-main {
        grid-template-columns: 1fr;
    }
}

.apr-panel {
    background: var(--apr-surface);
    border: 1px solid var(--apr-border);
    border-radius: 14px;
    padding: 16px;
}

.apr-section-box {
    background: var(--apr-surface-2);
    border: 1px solid var(--apr-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.apr-section-box:last-child {
    margin-bottom: 0;
}

.apr-section-box h2 {
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--apr-text);
}

.apr-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.apr-section-head h2 {
    margin: 0;
}

#awoprofile-root label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--apr-muted);
    margin: 9px 0 4px;
}

#awoprofile-root input,
#awoprofile-root select,
#awoprofile-root textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--apr-border);
    background: var(--apr-surface);
    color: var(--apr-text);
    font-size: 12.5px;
    font-family: inherit;
}

#awoprofile-root input[type="color"] {
    height: 36px;
    padding: 3px;
    cursor: pointer;
}

.apr-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.apr-inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.apr-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--apr-border);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.apr-tabs button {
    background: var(--apr-surface-2);
    color: var(--apr-muted);
    border: 1px solid var(--apr-border);
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.apr-tabs button.active {
    background: linear-gradient(135deg, #d97706, #eab308);
    color: #08111f;
    border-color: transparent;
}

.apr-stage.hidden {
    display: none;
}

.apr-stage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.apr-stage-head h3 {
    margin: 0;
    font-size: 15px;
    color: var(--apr-text);
}

.apr-stage-head small {
    color: var(--apr-muted);
    font-size: 12px;
}

/* A4 2-PAGE SHEET STYLING */
.apr-a4-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.apr-a4-sheet {
    width: 100%;
    max-width: 794px;
    min-height: 1122px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.apr-sheet-cover {
    padding: 34px 38px 28px;
    color: #ffffff;
    position: relative;
}

.apr-cover-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.apr-cover-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apr-cover-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 6px;
}

.apr-sheet-body {
    padding: 26px 38px;
    flex: 1;
}

.apr-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0 24px;
}

.apr-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #142942;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}

.apr-kpi-val {
    font-size: 21px;
    font-weight: 900;
    color: #0f172a;
}

.apr-kpi-lbl {
    font-size: 11px;
    color: #475569;
    margin-top: 4px;
    font-weight: 600;
}

.apr-cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.apr-cap-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 13px 15px;
}

.apr-cap-card h4 {
    margin: 0 0 5px;
    font-size: 13.5px;
    color: #0f172a;
}

.apr-cap-card p {
    margin: 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.apr-catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 10px;
}

.apr-catalog-table th {
    background: #0f172a;
    color: #ffffff;
    text-align: left;
    padding: 9px 11px;
    font-size: 11px;
    text-transform: uppercase;
}

.apr-catalog-table td {
    padding: 9px 11px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.apr-catalog-table tr:nth-child(even) td {
    background: #f8fafc;
}

.apr-kunye-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    margin-top: 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
}

.apr-sheet-footer {
    padding: 13px 38px;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 11.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apr-pitch-box {
    background: var(--apr-surface-2);
    border: 1px solid var(--apr-border);
    border-radius: 12px;
    padding: 18px;
    white-space: pre-wrap;
    font-family: "Segoe UI", Inter, sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--apr-text);
}

.apr-status {
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #4ade80;
    min-height: 20px;
}

.apr-dialog {
    background: var(--apr-surface);
    color: var(--apr-text);
    border: 1px solid var(--apr-border);
    border-radius: 14px;
    padding: 20px;
    max-width: 500px;
    width: 92%;
}

.apr-dialog::backdrop {
    background: rgba(5, 10, 20, 0.72);
}

@media print {
    body * {
        visibility: hidden;
    }
    #awoprofile-root,
    #awoprofile-root #apr-view-a4,
    #awoprofile-root #apr-a4-container,
    #awoprofile-root #apr-a4-container * {
        visibility: visible;
    }
    .no-print {
        display: none !important;
    }
    #awoprofile-root {
        padding: 0;
        background: #ffffff;
    }
    .apr-a4-sheet {
        box-shadow: none;
        border-radius: 0;
        page-break-after: always;
        max-width: 100%;
    }
}

