/*
 * astrology.css — Frontend styles for the wallet + consultation feature.
 *
 * Layered on top of the existing site theme:
 *   --primary-color: #EF1B27   (existing red — kept as core CTA)
 *   --secondary-color: #FDD65B (existing gold — kept as accent)
 *   font-family: "Jost", sans-serif  (existing site font)
 *
 * Adds astrology-only tokens for status badges, room overlays, and the
 * consultation purple accent (used only inside call screens).
 *
 * Drop this file into public/frontend/assets/css/ and include it
 * after style.min.css in front.layouts.include.head.
 */

:root {
    --astro-saffron:    #F5A623;
    --astro-purple:     #7C3AED;
    --astro-purple-dk:  #4C1D95;
    --astro-status-on:  #16A34A;
    --astro-status-busy:#D97706;
    --astro-status-off: #94A3B8;
    --astro-danger:     #DC2626;
    --astro-surface:    #FFFFFF;
    --astro-bg:         #F8F8F8;
    --astro-line:       #E8E8E8;
    --astro-muted:      #6B7280;
    --astro-radius:     14px;
    --astro-radius-sm:  10px;
    --astro-shadow:     0 6px 18px rgba(15, 23, 42, 0.06);
}

/* ────── Wrapper section (page padding under sticky header) ────── */
.astro-section {
    background: var(--astro-bg);
    padding: 28px 0 80px;
    min-height: 70vh;
    font-family: "Jost", sans-serif;
}

/* ────── Sticky filter bar ────── */
.astro-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--astro-line);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.astro-filter-bar .nav-pills .nav-link {
    color: #1f2937;
    background: var(--astro-bg);
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 500;
    margin-right: 6px;
    transition: .15s;
}
.astro-filter-bar .nav-pills .nav-link.active,
.astro-filter-bar .nav-pills .nav-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ────── Wallet chip in nav ────── */
.astro-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFF7E0 0%, #FFE9B0 100%);
    border: 1px solid var(--secondary-color);
    color: #78350F;
    border-radius: 999px;
    padding: 6px 12px 6px 14px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.astro-wallet-chip:hover { color: #78350F; background: #FFE9B0; }
.astro-wallet-chip .plus {
    width: 22px; height: 22px;
    background: var(--secondary-color);
    color: #78350F;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* ────── Filter pills (multi-select expertise / language) ────── */
.astro-filter-pill {
    display: inline-block;
    border: 1px solid var(--astro-line);
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 6px 8px 0;
    font-size: 13px;
    cursor: pointer;
    transition: .15s;
}
.astro-filter-pill.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.astro-filter-pill:hover:not(.active) { border-color: var(--primary-color); color: var(--primary-color); }

/* ────── Astrologer card ────── */
.astro-card {
    background: #fff;
    border: 1px solid var(--astro-line);
    border-radius: var(--astro-radius);
    padding: 18px;
    transition: .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.astro-card:hover {
    box-shadow: var(--astro-shadow);
    border-color: transparent;
    transform: translateY(-2px);
}
.astro-card-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }

.astro-avatar { position: relative; flex-shrink: 0; }
.astro-avatar img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--astro-line);
}
.astro-avatar .status-dot {
    position: absolute;
    right: 2px; bottom: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--astro-status-off);
}
.astro-avatar .status-dot.online {
    background: var(--astro-status-on);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
    animation: astro-pulse 1.6s infinite;
}
.astro-avatar .status-dot.busy { background: var(--astro-status-busy); }
.astro-avatar .verified-badge {
    position: absolute;
    right: -2px; top: -2px;
    width: 22px; height: 22px;
    background: var(--secondary-color);
    color: #78350F;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-size: 12px;
}

@keyframes astro-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.astro-card-name { font-size: 16px; font-weight: 600; color: #111827; margin: 0; }
.astro-card-meta { font-size: 13px; color: var(--astro-muted); margin-top: 2px; }

.astro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.astro-tag {
    background: #FFF7E0;
    color: #78350F;
    border: 1px solid #FBE9A0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.astro-info-row {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.astro-info-row svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.astro-rate {
    display: flex; align-items: baseline; gap: 8px;
    border-top: 1px dashed var(--astro-line);
    padding-top: 12px;
    margin-bottom: 12px;
}
.astro-rate .now {
    font-size: 20px; font-weight: 700;
    color: var(--astro-status-on);
}
.astro-rate .was {
    font-size: 13px;
    color: #9CA3AF;
    text-decoration: line-through;
}
.astro-rate .stars { margin-left: auto; font-size: 13px; color: #4B5563; }
.astro-rate .stars b { color: #111827; }

.astro-cta-row { display: flex; gap: 8px; margin-top: auto; }
.astro-btn {
    flex: 1;
    border-radius: var(--astro-radius-sm);
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid;
    background: #fff;
    cursor: pointer;
    transition: .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.astro-btn-audio { color: var(--astro-status-on); border-color: var(--astro-status-on); }
.astro-btn-audio:hover { background: var(--astro-status-on); color: #fff; }
.astro-btn-video { color: var(--astro-purple); border-color: var(--astro-purple); }
.astro-btn-video:hover { background: var(--astro-purple); color: #fff; }
.astro-btn[disabled] { opacity: .55; cursor: not-allowed; background: #fff !important; }

/* ────── Profile page sticky sidebar ────── */
.astro-profile-side {
    background: #fff;
    border: 1px solid var(--astro-line);
    border-radius: var(--astro-radius);
    padding: 24px;
    position: sticky;
    top: 90px;
    text-align: center;
}
.astro-profile-side img.avatar {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--astro-line);
    margin-bottom: 14px;
}
.astro-profile-side h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: #111827; }
.astro-profile-side .seen { color: var(--astro-muted); font-size: 13px; margin-bottom: 14px; }

.astro-stat-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.astro-stat-card {
    background: var(--astro-bg);
    border-radius: var(--astro-radius-sm);
    padding: 10px 12px;
    flex: 1;
    text-align: center;
}
.astro-stat-card .num { font-size: 16px; font-weight: 700; color: #111827; }
.astro-stat-card .lbl { font-size: 11px; color: var(--astro-muted); text-transform: uppercase; letter-spacing: .3px; }

.astro-call-btn {
    width: 100%;
    border: none;
    border-radius: var(--astro-radius-sm);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 10px;
    color: #fff;
    transition: .15s;
}
.astro-call-btn.audio { background: var(--astro-status-on); }
.astro-call-btn.audio:hover { background: #15803D; }
.astro-call-btn.video { background: var(--astro-purple); }
.astro-call-btn.video:hover { background: var(--astro-purple-dk); }
.astro-call-btn[disabled] { background: #9CA3AF; cursor: not-allowed; }

.astro-balance-hint {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--astro-line);
    font-size: 13px;
    color: var(--astro-muted);
}
.astro-balance-hint b { color: #111827; }

/* ────── Profile right content ────── */
.astro-profile-body {
    background: #fff;
    border: 1px solid var(--astro-line);
    border-radius: var(--astro-radius);
    padding: 24px;
}
.astro-tabs .nav-link {
    color: var(--astro-muted);
    border: none !important;
    border-radius: 0;
    padding: 10px 0;
    margin-right: 24px;
    font-weight: 500;
    border-bottom: 2px solid transparent !important;
}
.astro-tabs .nav-link.active {
    background: transparent;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color) !important;
}

.astro-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}
.astro-rating-bar .label { width: 30px; }
.astro-rating-bar .track { flex: 1; height: 6px; background: var(--astro-bg); border-radius: 4px; overflow: hidden; }
.astro-rating-bar .fill { height: 100%; background: var(--secondary-color); }
.astro-rating-bar .pct { width: 36px; text-align: right; color: var(--astro-muted); }

.astro-review-card {
    background: var(--astro-bg);
    border-radius: var(--astro-radius-sm);
    padding: 14px;
    margin-bottom: 12px;
}
.astro-review-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.astro-review-card .who .av {
    width: 36px; height: 36px;
    background: var(--secondary-color);
    color: #78350F;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.astro-review-reply {
    margin: 10px 0 0 46px;
    padding: 10px 12px;
    background: #FFF7E0;
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 var(--astro-radius-sm) var(--astro-radius-sm) 0;
    font-size: 13px;
}

.astro-availability-grid { display: grid; grid-template-columns: 80px repeat(3, 1fr); gap: 6px; font-size: 12px; }
.astro-availability-grid .head { font-weight: 600; padding: 6px 8px; text-align: center; color: var(--astro-muted); }
.astro-availability-grid .day { padding: 8px; background: var(--astro-bg); border-radius: 8px; font-weight: 500; }
.astro-availability-grid .slot { padding: 8px; border-radius: 8px; text-align: center; background: #fff; border: 1px solid var(--astro-line); }
.astro-availability-grid .slot.on { background: #DCFCE7; border-color: #86EFAC; color: #15803D; font-weight: 600; }

/* ────── Wallet dashboard ────── */
.astro-wallet-hero {
    background: linear-gradient(135deg, #1F1F2E 0%, #3A2D5A 100%);
    color: #fff;
    border-radius: var(--astro-radius);
    padding: 28px;
    margin-bottom: 18px;
}
.astro-wallet-hero .lbl { font-size: 13px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }
.astro-wallet-hero .balance { font-size: 44px; font-weight: 800; color: var(--secondary-color); margin: 4px 0 14px; }
.astro-wallet-hero .quick-pills .pill {
    display: inline-block;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    margin-right: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: .15s;
}
.astro-wallet-hero .quick-pills .pill:hover { background: var(--secondary-color); color: #78350F; border-color: var(--secondary-color); }

.astro-wallet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 575px) { .astro-wallet-stats { grid-template-columns: 1fr; } }
.astro-wallet-stat {
    background: #fff;
    border: 1px solid var(--astro-line);
    border-radius: var(--astro-radius);
    padding: 16px 18px;
}
.astro-wallet-stat .lbl { font-size: 12px; color: var(--astro-muted); text-transform: uppercase; letter-spacing: .5px; }
.astro-wallet-stat .val { font-size: 22px; font-weight: 700; color: #111827; margin-top: 4px; }

.astro-tx-list { background: #fff; border: 1px solid var(--astro-line); border-radius: var(--astro-radius); padding: 18px; }
.astro-tx-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--astro-line); align-items: center; }
.astro-tx-row:last-child { border-bottom: none; }
.astro-tx-row .ico {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.astro-tx-row .ico.credit { background: #DCFCE7; color: var(--astro-status-on); }
.astro-tx-row .ico.debit { background: #FEE2E2; color: var(--astro-danger); }
.astro-tx-row .desc { flex: 1; min-width: 0; }
.astro-tx-row .desc .title { font-weight: 500; color: #111827; }
.astro-tx-row .desc .when { font-size: 12px; color: var(--astro-muted); }
.astro-tx-row .amt { font-weight: 700; }
.astro-tx-row .amt.credit { color: var(--astro-status-on); }
.astro-tx-row .amt.debit { color: var(--astro-danger); }

.astro-tx-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.astro-tx-tabs button {
    background: var(--astro-bg);
    border: 1px solid var(--astro-line);
    color: #1f2937;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}
.astro-tx-tabs button.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* ────── Video room ────── */
.astro-room-video {
    position: fixed;
    inset: 0;
    background: #0F0F0F;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    color: #fff;
    font-family: "Jost", sans-serif;
}
.astro-room-video .top-bar {
    position: absolute;
    top: 16px; left: 16px; right: 16px;
    display: flex; align-items: center; gap: 14px;
    z-index: 4;
}
.astro-room-video .top-bar .chip {
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}
.astro-room-video .top-bar .timer { font-feature-settings: "tnum"; font-weight: 600; }
.astro-room-video .remote { flex: 1; position: relative; overflow: hidden; }
.astro-room-video .remote video { width: 100%; height: 100%; object-fit: cover; }
.astro-room-video .local-pip {
    position: absolute;
    bottom: 110px; right: 20px;
    width: 160px; height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,.18);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    cursor: move;
}
.astro-room-video .local-pip video { width: 100%; height: 100%; object-fit: cover; }
.astro-room-toolbar {
    position: absolute;
    bottom: 24px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 14px;
    z-index: 5;
}
.astro-room-toolbar button {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: .15s;
}
.astro-room-toolbar button:hover { background: rgba(255,255,255,.22); }
.astro-room-toolbar button.off { background: var(--astro-danger); }
.astro-room-toolbar button.hangup { background: var(--astro-danger); width: 60px; height: 60px; }
.astro-room-toolbar button.hangup:hover { background: #B91C1C; }

.astro-room-waiting {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(15, 15, 15, .92);
    z-index: 8;
}
.astro-room-waiting img {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    animation: astro-ring 2s infinite;
}
@keyframes astro-ring {
    0%   { box-shadow: 0 0 0 0 rgba(253, 214, 91, .55); }
    70%  { box-shadow: 0 0 0 22px rgba(253, 214, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 214, 91, 0); }
}
.astro-room-waiting h4 { margin-top: 18px; font-weight: 600; }

.astro-low-balance-toast {
    position: absolute;
    top: 70px; left: 50%;
    transform: translateX(-50%);
    background: var(--astro-status-busy);
    color: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    z-index: 9;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    display: flex; align-items: center; gap: 12px;
    max-width: 92vw;
}
.astro-low-balance-toast button {
    background: #fff;
    color: var(--astro-status-busy);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ────── Audio room ────── */
.astro-room-audio {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #1E1B4B 0%, #312E81 100%);
    color: #fff;
    z-index: 1000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-family: "Jost", sans-serif;
}
.astro-room-audio .avatar-ring {
    width: 220px; height: 220px;
    border-radius: 50%;
    padding: 8px;
    background: rgba(255,255,255,.05);
    border: 4px solid rgba(245, 166, 35, .35);
    transition: .25s;
    margin-bottom: 18px;
}
.astro-room-audio .avatar-ring.speaking {
    border-color: var(--secondary-color);
    box-shadow: 0 0 36px rgba(253, 214, 91, .35);
}
.astro-room-audio .avatar-ring img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.astro-room-audio h3 { font-weight: 600; font-size: 22px; margin-bottom: 4px; }
.astro-room-audio .listen { font-size: 13px; color: rgba(255,255,255,.65); }
.astro-room-audio .timer {
    font-size: 36px; font-weight: 700;
    font-feature-settings: "tnum";
    margin: 22px 0 6px;
}
.astro-room-audio .balance { font-size: 13px; color: rgba(255,255,255,.7); }
.astro-room-audio .toolbar { position: absolute; bottom: 32px; display: flex; gap: 14px; }
.astro-room-audio .toolbar button {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.astro-room-audio .toolbar button.off { background: var(--astro-danger); }
.astro-room-audio .toolbar button.hangup { background: var(--astro-danger); width: 64px; height: 64px; }

/* ────── Review page ────── */
.astro-review-card-page {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--astro-radius);
    border: 1px solid var(--astro-line);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--astro-shadow);
    font-family: "Jost", sans-serif;
}
.astro-review-card-page img.avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.astro-review-card-page .summary {
    background: var(--astro-bg);
    border-radius: var(--astro-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--astro-muted);
    margin: 14px 0 24px;
}
.astro-star-input { font-size: 38px; cursor: pointer; user-select: none; color: #E5E7EB; }
.astro-star-input.on { color: var(--secondary-color); }
.astro-star-input + .astro-star-input { margin-left: 4px; }

/* ────── Empty state + skeleton ────── */
.astro-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--astro-muted);
}
.astro-empty svg { width: 80px; height: 80px; opacity: .4; margin-bottom: 14px; }
.astro-skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ────── Mobile tweaks ────── */
@media (max-width: 767.98px) {
    .astro-profile-side { position: relative; top: auto; margin-bottom: 14px; }
    .astro-room-video .local-pip { width: 110px; height: 80px; bottom: 100px; right: 12px; }
    .astro-room-audio .avatar-ring { width: 180px; height: 180px; }
    .astro-room-audio .timer { font-size: 30px; }
    .astro-room-toolbar button { width: 48px; height: 48px; font-size: 18px; }
    .astro-room-toolbar button.hangup { width: 54px; height: 54px; }
    .astro-wallet-hero .balance { font-size: 34px; }
}

/* ────── A11y focus ring ────── */
.astro-btn:focus-visible,
.astro-call-btn:focus-visible,
.astro-filter-pill:focus-visible,
.astro-room-toolbar button:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}


/* ===================================================================
   DASHBOARD ADDITIONS (user profile + astrologer panel)
   prefix: .up-* (user profile), .ap-* (astrologer panel)
   =================================================================== */

/* ── Design tokens ── */
:root {
    --up-aurora1:   #7C3AED;
    --up-aurora2:   #4338CA;
    --up-aurora3:   #EC4899;
    --up-gold:      #FDD65B;
    --up-gold-dk:   #F5A623;
    --up-ink:       #0B0E1A;
    --up-glass:     rgba(255,255,255,.07);
    --up-glass-bd:  rgba(255,255,255,.14);
    --up-surface:   #FFFFFF;
    --up-surf-alt:  #F4F6FB;
    --up-border:    #E8EBF3;
    --up-muted:     #6B7280;
    --up-radius:    18px;
    --up-shadow-sm: 0 2px 8px rgba(11,14,26,.06);
    --up-shadow:    0 8px 28px rgba(11,14,26,.09);
    --up-shadow-lg: 0 20px 60px rgba(11,14,26,.14);
}

/* ── Page wrapper ── */
.up-page {
    background: #EEF0F8;
    background-image:
        radial-gradient(ellipse 900px 500px at 80% 0%, rgba(124,58,237,.08), transparent),
        radial-gradient(ellipse 600px 400px at 0% 100%, rgba(67,56,202,.06), transparent);
    padding: 30px 0 90px;
    font-family: "Jost", sans-serif;
    min-height: 80vh;
}

/* ────────────────────────────────────────────
   SIDEBAR
──────────────────────────────────────────── */
.up-sidebar {
    background: var(--up-surface);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow);
    overflow: hidden;
    font-family: "Jost", sans-serif;
    position: sticky;
    top: 90px;
    border: 1px solid var(--up-border);
}

.up-sidebar__top {
    background: linear-gradient(140deg, var(--up-ink) 0%, #1a1060 50%, #2e1065 100%);
    padding: 22px 18px 18px;
    position: relative;
    overflow: hidden;
}
.up-sidebar__top::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(400px 200px at 110% -20%, rgba(124,58,237,.55), transparent),
        radial-gradient(300px 200px at -10% 120%, rgba(253,214,91,.2), transparent);
    pointer-events: none;
}

.up-sidebar__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.up-sidebar__avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--up-aurora1), var(--up-aurora3));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
    flex-shrink: 0; overflow: hidden;
    border: 2px solid rgba(255,255,255,.35);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.up-sidebar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-sidebar__dot {
    position: absolute; right: 2px; bottom: 2px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #4ADE80;
    border: 2px solid var(--up-ink);
}
.up-sidebar__hello {
    font-size: 11px; color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.up-sidebar__name {
    font-weight: 700; color: #fff;
    font-size: 15px; line-height: 1.2; margin-top: 1px;
}

.up-sidebar__wallet {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(253,214,91,.12);
    border: 1px solid rgba(253,214,91,.3);
    border-radius: 12px;
    color: var(--up-gold);
    text-decoration: none;
    transition: background .15s;
    position: relative;
}
.up-sidebar__wallet:hover { background: rgba(253,214,91,.2); color: var(--up-gold); }
.up-sidebar__wallet-lbl { font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; opacity: .75; }
.up-sidebar__wallet-val { font-weight: 800; font-size: 17px; margin-top: 1px; }
.up-sidebar__wallet-add {
    background: var(--up-gold);
    color: #78350F;
    border-radius: 999px;
    padding: 4px 11px;
    font-weight: 700; font-size: 11px;
    flex-shrink: 0;
}

.up-sidebar__nav { padding: 10px 10px 14px; }
.up-sidebar__nav ul { list-style: none; padding: 0; margin: 0; }
.up-sidebar__nav li a {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #374151; text-decoration: none;
    font-weight: 500; font-size: 14px;
    transition: background .15s, color .15s;
}
.up-sidebar__nav li a i { width: 20px; text-align: center; color: var(--up-muted); font-size: 13px; flex-shrink: 0; }
.up-sidebar__nav li a:hover { background: var(--up-surf-alt); color: var(--up-aurora1); }
.up-sidebar__nav li a:hover i { color: var(--up-aurora1); }
.up-sidebar__nav li.is-active > a {
    background: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(67,56,202,.08) 100%);
    color: var(--up-aurora1);
    font-weight: 700;
}
.up-sidebar__nav li.is-active > a i { color: var(--up-aurora1); }
.up-sidebar__divider { height: 1px; background: var(--up-border); margin: 6px 4px; }
.up-sidebar__logout { color: #b91c1c !important; }
.up-sidebar__logout:hover { background: #FEE2E2 !important; color: #b91c1c !important; }

/* ────────────────────────────────────────────
   HERO BANNER
──────────────────────────────────────────── */
.up-hero {
    position: relative;
    border-radius: var(--up-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--up-shadow-lg);
    isolation: isolate;
}
.up-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(130deg, #0B0E1A 0%, #160B3A 40%, #1E0A3C 70%, #0B0E1A 100%);
}
.up-hero__bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 900px 400px at 5% 0%,   rgba(253,214,91,.22),  transparent 65%),
        radial-gradient(ellipse 600px 350px at 100% 0%,  rgba(236,72,153,.25),  transparent 60%),
        radial-gradient(ellipse 500px 300px at 60% 100%, rgba(124,58,237,.30),  transparent 55%),
        radial-gradient(ellipse 300px 200px at 100% 80%, rgba(67,56,202,.40),   transparent 50%);
}
.up-hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.up-hero__inner {
    position: relative; z-index: 1;
    padding: 32px 30px 26px;
    color: #fff;
}
.up-hero__head {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.up-hero__greet {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: .1em; opacity: .65; margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px;
}
.up-hero__greet::before {
    content: '';
    display: inline-block;
    width: 20px; height: 1px;
    background: rgba(255,255,255,.5);
}
.up-hero__title {
    font-size: 30px; font-weight: 800;
    margin: 0 0 8px; line-height: 1.1;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #fff 0%, rgba(253,214,91,.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.up-hero__sub { margin: 0; opacity: .65; font-size: 14px; max-width: 500px; line-height: 1.5; }
.up-hero__edit {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600; font-size: 13px;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.up-hero__edit:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; }

/* ── KPI cards inside hero ── */
.up-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.up-kpi {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px 16px 14px;
    color: #fff;
    position: relative;
    transition: background .2s;
    overflow: hidden;
}
.up-kpi:hover { background: rgba(255,255,255,.11); }
.up-kpi::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.up-kpi__icon {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 9px;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8);
    font-size: 13px;
}
.up-kpi__lbl {
    text-transform: uppercase; font-size: 10px;
    letter-spacing: .08em; opacity: .7; font-weight: 700;
}
.up-kpi__val {
    font-size: 24px; font-weight: 800;
    margin-top: 6px; letter-spacing: -.02em; line-height: 1;
}
.up-kpi--wallet {
    background: linear-gradient(135deg, rgba(253,214,91,.9) 0%, rgba(245,166,35,.9) 100%);
    border-color: rgba(253,214,91,.4);
    color: #78350F;
}
.up-kpi--wallet .up-kpi__lbl { color: #92400E; opacity: .8; }
.up-kpi--wallet .up-kpi__val { color: #451A03; }
.up-kpi--wallet .up-kpi__icon { background: rgba(120,53,15,.15); color: #92400E; }
.up-kpi__cta {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 10px;
    background: rgba(120,53,15,.85);
    color: #FDD65B;
    text-decoration: none;
    padding: 5px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    transition: opacity .15s;
}
.up-kpi__cta:hover { color: #FDD65B; opacity: .9; }

/* ────────────────────────────────────────────
   UPCOMING STRIP
──────────────────────────────────────────── */
.up-upcoming {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(120deg, #4C1D95 0%, #7C3AED 50%, #A855F7 100%);
    color: #fff;
    border-radius: 14px;
    padding: 14px 20px; margin-bottom: 20px;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(76,29,149,.30);
    transition: transform .2s, box-shadow .2s;
    border: 1px solid rgba(255,255,255,.1);
}
.up-upcoming:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(76,29,149,.4); }
.up-upcoming__left { display: flex; align-items: center; gap: 14px; }
.up-upcoming__pulse {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--up-gold);
    animation: upPulse 1.5s infinite;
    flex-shrink: 0;
}
@keyframes upPulse {
    0%   { box-shadow: 0 0 0 0 rgba(253,214,91,.8); }
    70%  { box-shadow: 0 0 0 12px rgba(253,214,91,0); }
    100% { box-shadow: 0 0 0 0 rgba(253,214,91,0); }
}
.up-upcoming__lbl { font-size: 10px; text-transform: uppercase; opacity: .8; font-weight: 700; letter-spacing: .06em; }
.up-upcoming__title { font-size: 15px; font-weight: 600; margin-top: 2px; }
.up-upcoming__cta {
    background: var(--up-gold); color: #78350F;
    padding: 8px 18px; border-radius: 999px;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}

/* ────────────────────────────────────────────
   CARDS
──────────────────────────────────────────── */
.up-card {
    background: var(--up-surface);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow);
    border: 1px solid var(--up-border);
    padding: 22px;
}
.up-card__head {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 16px;
}
.up-card__head h3 {
    font-size: 15px; font-weight: 700; margin: 0; color: #111827;
    display: flex; align-items: center; gap: 8px;
}
.up-card__head h3::before {
    content: '';
    display: inline-block; width: 3px; height: 16px;
    background: linear-gradient(180deg, var(--up-aurora1), var(--up-aurora3));
    border-radius: 2px;
}
.up-card__head a { color: var(--up-aurora1); text-decoration: none; font-weight: 600; font-size: 13px; }
.up-card__head a:hover { text-decoration: underline; }

/* Transactions */
.up-tx-list { list-style: none; padding: 0; margin: 0; }
.up-tx {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--up-border);
}
.up-tx:last-child { border-bottom: none; }
.up-tx__icon {
    width: 38px; height: 38px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}
.up-tx__icon.is-credit { background: #DCFCE7; color: #166534; }
.up-tx__icon.is-debit  { background: #FEE2E2; color: #991B1B; }
.up-tx__title { font-weight: 600; color: #111827; font-size: 13px; }
.up-tx__meta { font-size: 11px; color: var(--up-muted); margin-top: 2px; text-transform: capitalize; }
.up-tx__amt { font-weight: 700; font-size: 14px; }
.up-tx__amt.is-credit { color: #16A34A; }
.up-tx__amt.is-debit  { color: #DC2626; }

/* Profile card */
.up-card--profile {
    text-align: center;
    background: linear-gradient(160deg, var(--up-surface) 0%, #F5F3FF 100%);
}
.up-card__avatar {
    width: 90px; height: 90px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--up-aurora1), var(--up-aurora3));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 700;
    overflow: hidden;
    border: 3px solid var(--up-surface);
    box-shadow: 0 0 0 3px rgba(124,58,237,.2), 0 8px 24px rgba(124,58,237,.25);
}
.up-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-card__name { font-size: 17px; font-weight: 700; margin: 8px 0 2px; color: #111827; }
.up-card__email { color: var(--up-muted); font-size: 12px; margin: 0 0 16px; }
.up-meta { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; }
.up-meta li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; background: var(--up-surf-alt);
    border-radius: 10px; margin-bottom: 6px;
    font-size: 13px; color: #374151;
    border: 1px solid var(--up-border);
}
.up-meta li i { color: var(--up-aurora1); width: 16px; text-align: center; flex-shrink: 0; }
.up-card__btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--up-aurora1), var(--up-aurora2));
    color: #fff;
    padding: 9px 22px; border-radius: 999px;
    font-weight: 600; font-size: 13px;
    text-decoration: none; transition: opacity .15s, transform .15s;
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.up-card__btn:hover { color: #fff; opacity: .92; transform: translateY(-1px); }

/* Empty state */
.up-empty { text-align: center; padding: 32px 16px; color: var(--up-muted); }
.up-empty i { font-size: 32px; color: #d1d5db; display: block; margin-bottom: 10px; }
.up-empty p { margin: 0 0 14px; }
.up-empty__btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--up-gold) 0%, var(--up-gold-dk) 100%);
    color: #78350F;
    padding: 8px 20px; border-radius: 999px;
    text-decoration: none; font-weight: 700; font-size: 13px;
    box-shadow: 0 4px 12px rgba(245,166,35,.35);
}
.up-empty__btn:hover { color: #78350F; opacity: .9; }

/* ────────────────────────────────────────────
   QUICK ACTIONS
──────────────────────────────────────────── */
.up-quick { margin-top: 20px; }
.up-quick__title {
    font-size: 14px; font-weight: 700; margin: 0 0 12px;
    color: var(--up-muted); text-transform: uppercase; letter-spacing: .06em;
}
.up-quick__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.up-quick__item {
    display: flex; align-items: center; gap: 14px;
    background: var(--up-surface); padding: 16px;
    border-radius: 14px; text-decoration: none;
    border: 1px solid var(--up-border);
    box-shadow: var(--up-shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative; overflow: hidden;
}
.up-quick__item::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,.03), transparent);
    opacity: 0; transition: opacity .2s;
}
.up-quick__item:hover { transform: translateY(-3px); box-shadow: var(--up-shadow); border-color: rgba(124,58,237,.2); }
.up-quick__item:hover::before { opacity: 1; }
.up-quick__icon {
    width: 48px; height: 48px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.up-quick__lbl { font-weight: 700; color: #111827; font-size: 13px; }
.up-quick__sub { color: var(--up-muted); font-size: 11px; margin-top: 2px; }

/* === Astrologer Panel === */
.ap-page {
    background: var(--astro-bg);
    padding: 30px 0 80px;
    font-family: "Jost", sans-serif;
}
.ap-header {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(76, 29, 149, 0.18);
    margin-bottom: 22px;
}
.ap-header__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 280px at 0% 0%, rgba(253, 214, 91, .25), transparent 70%),
        radial-gradient(700px 300px at 100% 100%, rgba(239, 27, 39, .25), transparent 70%),
        linear-gradient(135deg, var(--astro-purple-dk) 0%, #1e1b4b 100%);
}
.ap-header__inner {
    position: relative;
    padding: 26px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}
.ap-header__profile { display: flex; align-items: center; gap: 16px; }
.ap-header__avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDD65B, #F5A623);
    color: #78350F;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
    border: 3px solid rgba(255,255,255,.4);
    position: relative;
    overflow: hidden;
}
.ap-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-header__status {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
}
.ap-status--online  { background: var(--astro-status-on); }
.ap-status--busy    { background: var(--astro-status-busy); }
.ap-status--offline { background: var(--astro-status-off); }

.ap-header__greet { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin: 0; }
.ap-header__name { font-size: 26px; font-weight: 800; margin: 2px 0 8px; }
.ap-header__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; opacity: .9; }
.ap-verified { color: #86EFAC; font-weight: 600; }

.ap-status-switch { display: flex; align-items: center; gap: 12px; }
.ap-status-switch__lbl { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.ap-status-switch__pills {
    display: inline-flex;
    background: rgba(0,0,0,.18);
    padding: 4px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.ap-pill {
    border: none;
    background: transparent;
    color: rgba(255,255,255,.7);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: .15s;
}
.ap-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ap-pill:hover:not(.is-on) { color: #fff; }
.ap-pill.is-on {
    background: #fff;
    color: #111827;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.ap-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.ap-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--astro-shadow);
    position: relative;
}
.ap-kpi__icon {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--astro-bg);
    color: var(--astro-muted);
    display: flex; align-items: center; justify-content: center;
}
.ap-kpi__lbl {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .05em;
    color: var(--astro-muted);
    font-weight: 600;
}
.ap-kpi__val {
    font-size: 22px;
    font-weight: 800;
    margin-top: 6px;
    color: #111827;
    letter-spacing: -.01em;
}
.ap-kpi__hint { font-size: 12px; color: var(--astro-muted); margin-top: 4px; }
.ap-text-success { color: #16A34A !important; }
.ap-text-warn { color: #D97706 !important; }
.ap-kpi--accent {
    background: linear-gradient(135deg, var(--primary-color), #ff5b66);
    color: #fff;
    border: none;
}
.ap-kpi--accent .ap-kpi__lbl,
.ap-kpi--accent .ap-kpi__val,
.ap-kpi--accent .ap-kpi__hint { color: #fff !important; }
.ap-kpi--accent .ap-kpi__lbl,
.ap-kpi--accent .ap-kpi__hint { opacity: .85; }

.ap-alert {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #FCD34D;
    color: #78350F;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 18px;
}
.ap-alert i { font-size: 22px; }
.ap-alert strong { display: block; font-weight: 700; }

.ap-card {
    background: #fff;
    border-radius: var(--astro-radius);
    box-shadow: var(--astro-shadow);
    padding: 22px;
}
.ap-card__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.ap-card__head h3 { font-size: 16px; font-weight: 700; margin: 0; color: #111827; }
.ap-card__badge {
    background: var(--astro-bg);
    color: var(--astro-muted);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.ap-table { width: 100%; border-collapse: collapse; }
.ap-table thead th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--astro-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--astro-line);
    font-weight: 600;
}
.ap-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--astro-line);
    font-size: 14px;
    color: #111827;
    vertical-align: middle;
}
.ap-table tbody tr:last-child td { border-bottom: none; }
.ap-when { font-weight: 600; }
.ap-time { color: var(--astro-muted); font-size: 12px; }
.ap-user { display: flex; align-items: center; gap: 10px; }
.ap-user__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--astro-purple), var(--astro-purple-dk));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 12px;
}
.ap-type {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
}
.ap-type--video { background: #EDE9FE; color: #5B21B6; }
.ap-type--audio { background: #DBEAFE; color: #1E40AF; }
.ap-earned { font-weight: 700; color: #16A34A; }
.ap-status-tag {
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.ap-status-tag--pending  { background: #FEF3C7; color: #92400E; }
.ap-status-tag--accepted { background: #DBEAFE; color: #1E40AF; }
.ap-status-tag--active   { background: #DCFCE7; color: #166534; }
.ap-status-tag--ended    { background: #E5E7EB; color: #374151; }
.ap-status-tag--reviewed { background: #EDE9FE; color: #5B21B6; }
.ap-status-tag--cancelled{ background: #FEE2E2; color: #991B1B; }
.ap-status-tag--terminated{ background: #FEE2E2; color: #991B1B; }
.ap-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.ap-btn--accept { background: #16A34A; color: #fff; }
.ap-btn--accept:hover { background: #15803D; color: #fff; }
.ap-btn--join { background: var(--astro-purple); color: #fff; }
.ap-btn--join:hover { background: var(--astro-purple-dk); color: #fff; }
.ap-muted { color: var(--astro-muted); }

/* ------ Responsive ------ */
@media (max-width: 1199px) {
    .up-kpis { grid-template-columns: repeat(2, 1fr); }
    .ap-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .up-sidebar { position: static; }
    .up-hero__title { font-size: 22px; }
    .up-kpis { grid-template-columns: repeat(2, 1fr); }
    .up-quick__grid { grid-template-columns: 1fr; }
    .up-upcoming { flex-direction: column; align-items: flex-start; gap: 12px; }
    .up-hero__inner { padding: 22px 18px 18px; }
    .up-hero__head { gap: 12px; }
    .up-hero__edit { width: 100%; justify-content: center; }
    .ap-header__inner { flex-direction: column; align-items: flex-start; }
    .ap-kpis { grid-template-columns: repeat(2, 1fr); }
    .ap-table thead { display: none; }
    .ap-table, .ap-table tbody, .ap-table tr, .ap-table td {
        display: block; width: 100%;
    }
    .ap-table tr {
        background: #fff;
        border: 1px solid var(--astro-line);
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 10px;
    }
    .ap-table td {
        border: none !important;
        padding: 6px 0;
    }
}
