/* ============================================================
   AlfaPlanning — Global Stylesheet
   Dark Luxury Dashboard — Brandguide v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ──────────────────────────────────────── */
/* Waarden worden NIET hier ingesteld.                        */
/* Alle kleuren komen uit ap_design_tokens via renderCssVars()*/
/* en worden als :root { ... } inline in elke pagina geladen. */
/* Hier staan alleen fallbacks voor niet-kleur layout-waarden */
:root {
    /* Layout — niet via tokens (geen kleur) */
    --sidebar-width:    240px;
    --header-height:    56px;
    --nav-height:       56px;
    --radius-sm:        8px;
    --radius-md:        14px;
    --radius-lg:        22px;
    --transition:       0.25s ease;
    --font-body:        'Poppins', sans-serif;
    --font-display:     'Montserrat', sans-serif;

    /* Fallback kleuren — worden overschreven door renderCssVars() */
    --bg-primary:       #112f4a;
    --bg-secondary:     #0d2438;
    --card-bg:          #1a3a52;
    --border-color:     #1e4060;
    --gold-primary:     #be853b;
    --gold-secondary:   #d4a054;
    --text-primary:     #ffffff;
    --text-secondary:   #94afc5;
    --text-muted:       #6b8aaa;
    --color-success:    #6B8F71;
    --color-danger:     #c0392b;
    --color-warning:    #be853b;
    --shadow:           0 4px 20px rgba(0,0,0,0.35);
    --shadow-gold:      0 0 24px rgba(190,133,59,0.12);
    --shadow-card:      0 2px 12px rgba(0,0,0,0.25);
    --card-header-bg:   #0d2438;
    --card-header-text: #ffffff;
    --bg-table-even:    rgba(255,255,255,0.02);
    --bg-table-odd:     transparent;
    --table-row-text:   #ffffff;
    --table-row-hover:  rgba(190,133,59,0.05);
    --badge-active-color:   #6B8F71;
    --badge-inactive-color: #94afc5;
    --badge-danger-color:   #c0392b;
    --success-rgba-badge:   rgba(107,143,113,0.15);
    --danger-rgba-badge:    rgba(192,57,43,0.15);
    --gold-rgba-badge:      rgba(190,133,59,0.15);
    --warning-rgba-badge:   rgba(190,133,59,0.15);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── BASE ───────────────────────────────────────────────── */
html { font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

button, input, select, textarea {
    font-family: var(--font-body);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.ap-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--header-bg, var(--bg-secondary));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 calc(var(--sidebar-width) + 24px);
    z-index: 100;
    box-shadow: var(--shadow);
}

.ap-logo {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-width);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: var(--header-bg, var(--bg-secondary));
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    gap: 10px;
    z-index: 110;
}

.ap-logo-mark {
    width: 30px; height: 30px;
    background: var(--gold-primary);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    color: var(--bg-primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.ap-logo-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.ap-logo-text span { color: var(--text-primary); }

.ap-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ap-breadcrumb-sep { color: var(--border-color); margin: 0 2px; }
.ap-breadcrumb-current { color: var(--text-primary); font-weight: 500; }

.ap-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ap-header-icon {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    position: relative;
}

.ap-header-icon:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.ap-header-icon svg {
    width: 15px; height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.ap-notif-dot {
    width: 6px; height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    position: absolute;
    top: 7px; right: 7px;
}

.ap-user-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
}

.ap-user-btn:hover {
    border-color: var(--border-color);
    background: var(--card-bg);
}

.ap-user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-primary);
    font-family: var(--font-display);
    flex-shrink: 0;
}

.ap-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
.ap-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg, var(--bg-secondary));
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 90;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
}

.ap-sidebar::-webkit-scrollbar { width: 3px; }
.ap-sidebar::-webkit-scrollbar-track { background: transparent; }
.ap-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.ap-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 12px 5px;
}

.ap-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--sidebar-item-text, var(--text-secondary));
    font-size: 13px;
    font-weight: 400;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.ap-nav-item:hover {
    background: var(--sidebar-active-bg, var(--card-bg));
    color: var(--nav-hover-text, var(--text-primary));
    border-color: var(--border-color);
}

.ap-nav-item.active {
    background: var(--sidebar-active-bg, rgba(210,176,107,0.08));
    border-color: rgba(210,176,107,0.18);
    color: var(--sidebar-active-text, var(--gold-primary));
    font-weight: 500;
}

.ap-nav-item svg {
    width: 15px; height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.ap-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 10px;
}

.ap-nav-badge {
    margin-left: auto;
    background: rgba(210,176,107,0.12);
    color: var(--gold-primary);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
}

/* ─── MAIN CONTENT ───────────────────────────────────────── */
.ap-main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 28px 32px;
    min-height: calc(100vh - var(--header-height));
}

.ap-page-header {
    margin-bottom: 24px;
}

.ap-page-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.ap-page-sub {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.ap-card {
    background: var(--card-bg, var(--card-bg));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.ap-card:hover { border-color: rgba(210,176,107,0.2); }

.ap-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-header-bg, var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ap-card-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--card-header-text, var(--card-header-text, var(--text-primary)));
    display: flex;
    align-items: center;
    gap: 7px;
}

.ap-card-title svg {
    width: 14px; height: 14px;
    stroke: var(--gold-primary);
    fill: none;
    stroke-width: 1.8;
}

.ap-card-body { padding: 22px; }

.ap-card-actions { display: flex; gap: 8px; align-items: center; }

/* ─── KPI CARDS ──────────────────────────────────────────── */
.ap-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.ap-kpi {
    background: var(--card-bg, var(--card-bg));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ap-kpi::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.ap-kpi:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow), var(--shadow-gold);
}

.ap-kpi:hover::before { opacity: 1; }

.ap-kpi-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.ap-kpi-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.ap-kpi-delta {
    font-size: 11px;
    color: var(--color-success);
}

.ap-kpi-delta.down { color: var(--color-danger); }

/* ─── TABLE ──────────────────────────────────────────────── */
.ap-table-wrap { overflow-x: auto; }

.ap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ap-table thead th {
    text-align: left;
    padding: 9px 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--table-header-text, var(--text-muted));
    border-bottom: 1px solid var(--border-color);
    background: var(--table-header-bg, var(--bg-secondary));
    white-space: nowrap;
}

.ap-table tbody tr {
    border-bottom: 1px solid rgba(58,46,40,0.4);
    transition: var(--transition);
}

.ap-table tbody tr:nth-child(even) { background: var(--bg-table-even, var(--bg-table-even)); }
.ap-table tbody tr:nth-child(odd)  { background: var(--bg-table-odd,  var(--bg-table-odd)); }
.ap-table tbody tr:last-child { border-bottom: none; }
.ap-table tbody tr:hover { background: var(--table-row-hover, var(--table-row-hover, rgba(210,176,107,0.03))); }

.ap-table tbody td {
    padding: 12px 16px;
    color: var(--table-row-text, var(--table-row-text, var(--text-primary)));
    vertical-align: middle;
}

.ap-td-sub { color: var(--table-row-text, var(--table-row-text, var(--text-primary))); font-size: 12px; margin-top: 1px; }

.ap-td-gold {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--gold-primary);
    letter-spacing: 0.3px;
}

/* ─── STATUS BADGES ──────────────────────────────────────── */
.ap-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.ap-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.ap-badge-active   { background: var(--success-rgba-badge, var(--success-rgba-badge));  color: var(--badge-active-color,   var(--badge-active-color)); }
.ap-badge-pending  { background: var(--gold-rgba-badge,    var(--gold-rgba-badge));     color: var(--gold-primary,         var(--gold-primary)); }
.ap-badge-inactive { background: var(--warning-rgba-badge, var(--warning-rgba-badge));  color: var(--badge-inactive-color, var(--badge-inactive-color, var(--text-muted))); }
.ap-badge-danger   { background: var(--danger-rgba-badge,  var(--danger-rgba-badge));   color: var(--badge-danger-color,   var(--badge-danger-color)); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    white-space: nowrap;
}

.ap-btn svg {
    width: 14px; height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.ap-btn-primary {
    background: var(--btn-primary-bg, var(--gold-primary));
    color: var(--btn-primary-text, #ffffff);
}

.ap-btn-primary:hover {
    background: var(--btn-primary-hover, var(--gold-secondary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(210,176,107,0.28);
}

.ap-btn-primary:active {
    background: var(--btn-primary-active, var(--btn-primary-hover, var(--gold-secondary)));
}

.ap-btn-secondary {
    background: var(--btn-secondary-bg, transparent);
    border: 1px solid var(--btn-secondary-border, var(--border-color));
    color: var(--btn-secondary-text, var(--text-primary));
}

.ap-btn-secondary:hover {
    border-color: var(--btn-secondary-hover, var(--gold-primary));
    color: var(--btn-secondary-hover, var(--gold-primary));
}

.ap-btn-danger {
    background: var(--btn-danger-bg, rgba(192,57,43,0.12));
    border: 1px solid var(--btn-danger-hover, rgba(192,57,43,0.25));
    color: var(--btn-danger-text, #e74c3c);
}

.ap-btn-danger:hover {
    background: var(--btn-danger-hover, rgba(192,57,43,0.22));
    border-color: var(--btn-danger-text, #e74c3c);
}

.ap-btn-sm { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.ap-btn-icon { padding: 7px; border-radius: var(--radius-sm); }

/* ─── ACTION ICON BUTTON ─────────────────────────────────── */
.ap-action-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.ap-action-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(210,176,107,0.07);
}

.ap-action-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ─── FORM ELEMENTS ──────────────────────────────────────── */
.ap-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.ap-form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.ap-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ap-form-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ap-form-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.ap-form-input::placeholder { color: var(--text-muted); }

.ap-form-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(210,176,107,0.08);
}

select.ap-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%238A807A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

select.ap-form-input option { background: var(--card-bg); color: var(--text-primary); }

textarea.ap-form-input { resize: vertical; min-height: 80px; }

.ap-form-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* ─── SEARCH BAR ─────────────────────────────────────────── */
.ap-search-wrap {
    position: relative;
}

.ap-search-wrap svg {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.8;
    pointer-events: none;
}

.ap-search-input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 13px 8px 34px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.ap-search-input::placeholder { color: var(--text-muted); }
.ap-search-input:focus { border-color: var(--gold-primary); }

/* ─── TABS ───────────────────────────────────────────────── */
.ap-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 22px;
    width: fit-content;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.ap-tab {
    padding: 6px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    border: 1px solid transparent;
    white-space: nowrap;
}

.ap-tab.active {
    background: var(--card-bg);
    color: var(--gold-primary);
    border-color: rgba(210,176,107,0.18);
}

.ap-tab:hover:not(.active) { color: var(--text-primary); }

/* ─── TOGGLE ─────────────────────────────────────────────── */
.ap-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-toggle {
    position: relative;
    width: 38px; height: 21px;
    flex-shrink: 0;
}

.ap-toggle input { opacity: 0; width: 0; height: 0; }

.ap-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-color);
    border-radius: 21px;
    cursor: pointer;
    transition: var(--transition);
}

.ap-toggle-slider::before {
    content: '';
    position: absolute;
    width: 15px; height: 15px;
    left: 3px; top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.ap-toggle input:checked + .ap-toggle-slider { background: rgba(210,176,107,0.18); }
.ap-toggle input:checked + .ap-toggle-slider::before {
    transform: translateX(17px);
    background: var(--gold-primary);
}

.ap-toggle-label { font-size: 13px; color: var(--text-secondary); }

/* ─── PAGINATION ─────────────────────────────────────────── */
.ap-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.ap-page-btn {
    width: 30px; height: 30px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body);
}

.ap-page-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.ap-page-btn.active { background: var(--gold-primary); border-color: var(--gold-primary); color: var(--bg-primary); font-weight: 700; }
.ap-page-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

.ap-page-info { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* ─── SECTION DIVIDER ────────────────────────────────────── */
.ap-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
}

.ap-section-divider-line { flex: 1; height: 1px; background: var(--border-color); }

.ap-section-divider-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─── FILTER BAR ─────────────────────────────────────────── */
.ap-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* ─── ALERTS / FLASH ─────────────────────────────────────── */
.ap-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-alert svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.ap-alert-success { background: rgba(107,143,113,0.1); border: 1px solid rgba(107,143,113,0.2); color: #6B8F71; }
.ap-alert-danger  { background: rgba(192,57,43,0.1);  border: 1px solid rgba(192,57,43,0.2);  color: #e74c3c; }
.ap-alert-info    { background: rgba(210,176,107,0.08);border: 1px solid rgba(210,176,107,0.18);color: var(--gold-primary); }

/* ─── GRID HELPERS ───────────────────────────────────────── */
.ap-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ap-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.ap-grid-main-side { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.ap-mb-4  { margin-bottom: 4px; }
.ap-mb-8  { margin-bottom: 8px; }
.ap-mb-16 { margin-bottom: 16px; }
.ap-mb-24 { margin-bottom: 24px; }
.ap-mt-16 { margin-top: 16px; }
.ap-text-gold { color: var(--gold-primary); }
.ap-text-muted { color: var(--text-muted); }
.ap-text-sm { font-size: 12px; }
.ap-font-display { font-family: var(--font-display); }
.ap-flex { display: flex; align-items: center; }
.ap-flex-gap { gap: 10px; }
.ap-justify-between { justify-content: space-between; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes ap-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ap-animate { animation: ap-fade-up 0.35s ease both; }
.ap-animate-delay-1 { animation-delay: 0.05s; }
.ap-animate-delay-2 { animation-delay: 0.10s; }
.ap-animate-delay-3 { animation-delay: 0.15s; }
.ap-animate-delay-4 { animation-delay: 0.20s; }

/* ─── LOGIN PAGE ─────────────────────────────────────────── */
.ap-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 24px;
}

.ap-login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    animation: ap-fade-up 0.4s ease both;
}

.ap-login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}

.ap-login-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-align: center;
}

.ap-login-sub {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}
