/* =============================================
   Adonis Workspace - Brand Override CSS
   Adonis Network © 2026
   ============================================= */

/* --- Color Override for theme-orange --- */
.theme-orange { --primary-color: #F5C24E; }

/* --- Warm page background (match marketplace cream, not template grey) --- */
/* cryptoon paints the whole content area via .main{background:var(--body-color)} */
body,
.main,
.page-wrapper,
.main-content,
.page-content { background-color: #F7F2E9 !important; }
.body { background-color: transparent !important; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    background-color: #2A1B0C !important;
    border-right-color: rgba(255,255,255,0.08) !important;
}
.sidebar .brand-icon .logo-text {
    color: #F5C24E !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}
.sidebar .menu-list .m-link {
    color: rgba(255,255,255,0.65) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0.55rem 0.75rem;
    margin-bottom: 2px;
}
.sidebar .menu-list .m-link:hover {
    background-color: rgba(245,194,78,0.1) !important;
    color: rgba(255,255,255,0.9) !important;
}
.sidebar .menu-list .m-link.active {
    background-color: rgba(245,194,78,0.15) !important;
    color: #F5C24E !important;
    border-left: 3px solid #F5C24E;
}
.sidebar .menu-list .m-link.active h6 { color: #F5C24E !important; }
.sidebar .menu-list .m-link.active small { color: rgba(245,194,78,0.7) !important; }
.sidebar .menu-list .m-link.active i { color: #F5C24E !important; }
.sidebar .menu-list .m-link h6 {
    color: inherit !important;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 0;
}
.sidebar .menu-list .m-link small {
    color: rgba(255,255,255,0.38) !important;
    font-size: 0.68rem;
}
.sidebar .menu-list .m-link i {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
    min-width: 22px;
    font-size: 1rem !important;
}
.sidebar .menu-list .m-link:hover i { color: rgba(255,255,255,0.9); }
.sidebar .menu-list .divider {
    color: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.08) !important;
    font-size: 0.68rem;
    letter-spacing: 1px;
}
.sidebar .sidebar-mini-btn { color: rgba(255,255,255,0.35) !important; }
.sidebar .sub-menu .ms-link { color: rgba(255,255,255,0.55) !important; font-size: 0.8rem; }
.sidebar .sub-menu .ms-link:hover,
.sidebar .sub-menu .ms-link.active { color: #F5C24E !important; }

/* Fix sidebar-mini (collapsed) state icons color */
.sidebar-mini .menu-list .m-link i { color: rgba(255,255,255,0.6) !important; }
.sidebar-mini .menu-list .m-link.active i { color: #F5C24E !important; }

/* =============================================
   TOPBAR / HEADER
   ============================================= */
.header .navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #E7DDC9;
}
.header .nav-link { color: #4a5568 !important; }
.header .nav-link:hover { color: #2A1B0C !important; }
.main-search input {
    border: 1px solid #E7DDC9 !important;
    border-radius: 8px !important;
    background-color: #F7F2E9 !important;
    font-size: 0.875rem;
    color: #4a5568;
}
.main-search input::placeholder { color: #adb5bd; }
.main-search input:focus {
    background-color: #ffffff !important;
    border-color: #F5C24E !important;
    box-shadow: 0 0 0 3px rgba(245,194,78,0.12) !important;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    border: 1px solid #E7DDC9;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(42,27,12,0.04);
}
.card-header {
    background-color: transparent;
    border-bottom: 1px solid #E7DDC9;
    font-size: 0.9rem;
}
.card-header h6 { color: #2A1B0C; font-weight: 700; }

/* =============================================
   KPI / STAT CARDS
   ============================================= */
.card-kpi {
    border: 1px solid #E7DDC9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(42,27,12,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.card-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(42,27,12,0.1);
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.kpi-gold  { background: rgba(245,194,78,0.12); color: #F5C24E; }
.kpi-navy  { background: rgba(42,27,12,0.08); color: #2A1B0C; }
.kpi-green { background: rgba(40,199,111,0.12); color: #28c76f; }
.kpi-red   { background: rgba(217,96,60,0.12); color: #D9603C; }
.kpi-blue  { background: rgba(224,152,42,0.12); color: #E0982A; }
.kpi-purple{ background: rgba(181,101,29,0.12); color: #B5651D; }

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2A1B0C;
    line-height: 1.2;
}
.kpi-label {
    font-size: 0.75rem;
    color: #8B96A5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.kpi-sub {
    font-size: 0.75rem;
    color: #8B96A5;
    margin-top: 0.15rem;
}

/* =============================================
   USER PROFILE CARD (top summary)
   ============================================= */
.user-summary-card {
    background: linear-gradient(135deg, #2A1B0C 0%, #4A2E10 100%);
    border: none !important;
    border-radius: 14px !important;
    color: white;
}
.user-summary-card .user-name {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
}
.user-summary-card .user-email {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
}
.user-summary-card .profile-pic {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(245,194,78,0.5);
}
.user-summary-card .badge-plan {
    background: rgba(245,194,78,0.2);
    color: #F5C24E;
    border: 1px solid rgba(245,194,78,0.35);
    font-size: 0.7rem;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-weight: 600;
}
.user-summary-card .badge-kyc-ok {
    background: rgba(40,199,111,0.2);
    color: #28c76f;
    border: 1px solid rgba(40,199,111,0.35);
    font-size: 0.7rem;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-weight: 600;
}
.user-summary-card .badge-kyc-pending {
    background: rgba(255,159,67,0.2);
    color: #ff9f43;
    border: 1px solid rgba(255,159,67,0.35);
    font-size: 0.7rem;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-weight: 600;
}
.user-summary-card .meta-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.user-summary-card .meta-value {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 500;
}
.user-summary-card .divider-v {
    border-left: 1px solid rgba(255,255,255,0.12);
    height: 40px;
}

/* =============================================
   STATUS BADGES (reusable)
   ============================================= */
.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    text-transform: capitalize;
}
.badge-active   { background: rgba(40,199,111,0.12); color: #28c76f; }
.badge-trial    { background: rgba(255,159,67,0.12); color: #ff9f43; }
.badge-expired  { background: rgba(217,96,60,0.12);  color: #D9603C; }
.badge-pending  { background: rgba(255,159,67,0.12); color: #ff9f43; }
.badge-verified { background: rgba(40,199,111,0.12); color: #28c76f; }
.badge-open     { background: rgba(217,96,60,0.12);  color: #D9603C; }
.badge-resolved { background: rgba(40,199,111,0.12); color: #28c76f; }
.badge-paid     { background: rgba(40,199,111,0.12); color: #28c76f; }
.badge-unpaid   { background: rgba(217,96,60,0.12);  color: #D9603C; }
.badge-completed{ background: rgba(40,199,111,0.12); color: #28c76f; }
.badge-high     { background: rgba(217,96,60,0.12);  color: #D9603C; }
.badge-medium   { background: rgba(255,159,67,0.12); color: #ff9f43; }
.badge-low      { background: rgba(224,152,42,0.12);  color: #E0982A; }

/* =============================================
   WALLET CARD
   ============================================= */
.wallet-hero {
    background: linear-gradient(135deg, #2A1B0C 0%, #4A2E10 100%);
    border: none !important;
    border-radius: 14px !important;
    color: white;
}
.wallet-hero .balance-coin {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.wallet-hero .balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #F5C24E;
    line-height: 1.1;
}
.wallet-hero .balance-usd {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
.wallet-hero .balance-divider {
    border-color: rgba(255,255,255,0.1) !important;
}

/* =============================================
   KYC STEPS
   ============================================= */
.kyc-step {
    display: flex;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #F7F2E9;
}
.kyc-step:last-child { border-bottom: none; }
.kyc-step-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-right: 0.75rem;
}
.kyc-done    { background: rgba(40,199,111,0.12); color: #28c76f; }
.kyc-pending { background: rgba(255,159,67,0.12); color: #ff9f43; }
.kyc-none    { background: rgba(139,150,165,0.1); color: #8B96A5; }
.kyc-step-name { font-size: 0.82rem; font-weight: 500; color: #2A1B0C; flex: 1; }
.kyc-step-text { font-size: 0.72rem; color: #8B96A5; }

/* =============================================
   ACTIVITY FEED
   ============================================= */
.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid #F7F2E9;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
    margin-right: 10px;
    flex-shrink: 0;
}
.activity-text { font-size: 0.82rem; color: #4a5568; flex: 1; }
.activity-time { font-size: 0.7rem; color: #adb5bd; white-space: nowrap; margin-left: 8px; }

/* =============================================
   QUICK ACTIONS
   ============================================= */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border-radius: 10px;
    border: 1px solid #E7DDC9;
    background: #FFFFFF;
    text-decoration: none;
    color: #2A1B0C;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
    width: 100%;
}
.quick-action-btn:hover {
    border-color: #F5C24E;
    background: rgba(245,194,78,0.04);
    color: #2A1B0C;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(245,194,78,0.18);
}
.quick-action-btn .qa-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245,194,78,0.1);
    color: #F5C24E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.45rem;
    font-size: 1rem;
    transition: background 0.2s;
}
.quick-action-btn:hover .qa-icon { background: rgba(245,194,78,0.18); }
.quick-action-btn span { font-size: 0.72rem; font-weight: 600; line-height: 1.3; color: #4a5568; }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header-block { margin-bottom: 1.5rem; }
.page-header-block h4 { color: #2A1B0C; font-weight: 700; margin-bottom: 0.2rem; font-size: 1.15rem; }
.page-header-block p  { color: #8B96A5; margin-bottom: 0; font-size: 0.82rem; }
.page-header-block .breadcrumb { font-size: 0.78rem; }
.page-header-block .breadcrumb-item a { color: #F5C24E; text-decoration: none; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-gold {
    background-color: #F5C24E;
    border-color: #F5C24E;
    color: #2A1B0C;
    font-weight: 600;
    border-radius: 8px;
}
.btn-gold:hover, .btn-gold:focus {
    background-color: #e5a810;
    border-color: #e5a810;
    color: #2A1B0C;
}
.btn-navy {
    background-color: #2A1B0C;
    border-color: #2A1B0C;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 8px;
}
.btn-navy:hover, .btn-navy:focus {
    background-color: #3A2410;
    border-color: #3A2410;
    color: #FFFFFF;
}
.btn-outline-gold {
    border-color: #F5C24E;
    color: #F5C24E;
    font-weight: 500;
    border-radius: 8px;
    background: transparent;
}
.btn-outline-gold:hover {
    background-color: #F5C24E;
    border-color: #F5C24E;
    color: #2A1B0C;
}
.btn-sm-icon {
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 6px;
}

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(42,27,12,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.product-name { font-size: 0.875rem; font-weight: 600; color: #2A1B0C; margin-bottom: 2px; }
.product-type { font-size: 0.75rem; color: #8B96A5; }

/* =============================================
   AI ASSISTANT CARD
   ============================================= */
.ai-card {
    background: linear-gradient(135deg, #2A1B0C 0%, #4A2E10 100%);
    border: none !important;
    border-radius: 16px !important;
    color: white;
    overflow: hidden;
    position: relative;
}
.ai-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    background: rgba(245,194,78,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.ai-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 130px; height: 130px;
    background: rgba(245,194,78,0.05);
    border-radius: 50%;
    pointer-events: none;
}
.ai-card .ai-title { font-size: 1.4rem; font-weight: 700; color: #FFFFFF; }
.ai-card .ai-subtitle { color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.5; }
.ai-badge {
    display: inline-flex; align-items: center;
    background: rgba(245,194,78,0.15);
    border: 1px solid rgba(245,194,78,0.3);
    color: #F5C24E;
    font-size: 0.72rem; font-weight: 600;
    padding: 0.2em 0.7em; border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* =============================================
   KYC MULTI-STEP
   ============================================= */
.kyc-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.kyc-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    position: relative;
}
.kyc-stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: #E7DDC9;
    z-index: 0;
}
.kyc-stepper-item.done::after  { background: #28c76f; }
.kyc-stepper-item.active::after { background: #E7DDC9; }
.kyc-step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #E7DDC9; color: #8B96A5;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    z-index: 1; position: relative;
    transition: all 0.2s;
}
.kyc-stepper-item.done   .kyc-step-num { background: #28c76f; color: white; }
.kyc-stepper-item.active .kyc-step-num { background: #F5C24E; color: #2A1B0C; }
.kyc-step-label { font-size: 0.68rem; color: #8B96A5; margin-top: 6px; text-align: center; font-weight: 500; }
.kyc-stepper-item.active .kyc-step-label { color: #F5C24E; font-weight: 600; }
.kyc-stepper-item.done   .kyc-step-label { color: #28c76f; }

/* =============================================
   CONVERT PAGE
   ============================================= */
.convert-box {
    background: #F7F2E9;
    border: 1px solid #E7DDC9;
    border-radius: 12px;
    padding: 1.25rem;
}
.convert-box label { font-size: 0.78rem; color: #8B96A5; font-weight: 500; margin-bottom: 0.35rem; }
.convert-box .form-control {
    border: 1px solid #E7DDC9;
    border-radius: 8px;
    font-size: 1rem; font-weight: 600; color: #2A1B0C;
    background: #ffffff;
}
.convert-box .form-control:focus {
    border-color: #F5C24E;
    box-shadow: 0 0 0 3px rgba(245,194,78,0.12);
}
.convert-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #F5C24E; color: #2A1B0C;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 4px 12px rgba(245,194,78,0.3);
    margin: 0 auto;
    transition: transform 0.2s;
}
.convert-arrow:hover { transform: rotate(180deg); }
.convert-rate-info {
    background: rgba(245,194,78,0.06);
    border: 1px solid rgba(245,194,78,0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}
.convert-rate-info .rate-label { color: #8B96A5; }
.convert-rate-info .rate-value { color: #2A1B0C; font-weight: 600; }

/* =============================================
   REFERRAL PAGE
   ============================================= */
.referral-hero {
    background: linear-gradient(135deg, #2A1B0C 0%, #4A2E10 100%);
    border: none !important;
    border-radius: 14px !important;
    color: white;
}
.referral-link-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    font-family: monospace;
    word-break: break-all;
}

/* =============================================
   REWARDS / GAMIFICATION
   ============================================= */
.level-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.35em 0.9em;
    border-radius: 20px;
    font-weight: 700; font-size: 0.85rem;
}
.level-bronze  { background: rgba(205,127,50,0.12); color: #CD7F32; border: 1px solid rgba(205,127,50,0.25); }
.level-silver  { background: rgba(192,192,192,0.15); color: #9ca3af; border: 1px solid rgba(192,192,192,0.3); }
.level-gold    { background: rgba(245,194,78,0.15); color: #F5C24E; border: 1px solid rgba(245,194,78,0.3); }
.level-platinum{ background: rgba(181,101,29,0.12); color: #B5651D; border: 1px solid rgba(181,101,29,0.25); }

.xp-bar-track {
    background: #E7DDC9;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}
.xp-bar-fill {
    background: linear-gradient(90deg, #F5C24E, #ffcf50);
    border-radius: 99px;
    height: 100%;
    transition: width 0.6s ease;
}

.reward-card-item {
    border: 1px solid #E7DDC9;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s;
}
.reward-card-item:hover { border-color: #F5C24E; box-shadow: 0 4px 12px rgba(245,194,78,0.1); }
.reward-card-item.locked { opacity: 0.55; }
.reward-xp-badge {
    background: rgba(245,194,78,0.1);
    color: #F5C24E;
    font-size: 0.7rem; font-weight: 700;
    padding: 0.2em 0.6em; border-radius: 4px;
}

/* =============================================
   SUPPORT TICKETS
   ============================================= */
.ticket-row:hover { background: rgba(42,27,12,0.02); }
.priority-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
}
.priority-high   { background: #D9603C; }
.priority-medium { background: #ff9f43; }
.priority-low    { background: #E0982A; }

/* =============================================
   TABLES
   ============================================= */
.table-adonis thead th {
    background: #F7F2E9;
    color: #8B96A5;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E7DDC9;
    border-top: none;
    padding: 0.75rem 1rem;
}
.table-adonis tbody td {
    font-size: 0.83rem;
    color: #4a5568;
    border-bottom: 1px solid #F7F2E9;
    padding: 0.7rem 1rem;
    vertical-align: middle;
}
.table-adonis tbody tr:last-child td { border-bottom: none; }
.table-adonis tbody tr:hover td { background: rgba(245,194,78,0.03); }

/* =============================================
   NAV TABS (Settings page)
   ============================================= */
.nav-tabs {
    border-bottom: 2px solid #E7DDC9;
    gap: 2px;
}
.nav-tabs .nav-link {
    color: #8B96A5;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.6rem 1rem;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.nav-tabs .nav-link:hover {
    color: #2A1B0C;
    border-color: transparent;
    background: transparent;
}
.nav-tabs .nav-link.active {
    color: #F5C24E;
    border-bottom: 2px solid #F5C24E;
    background: transparent;
}

/* =============================================
   SETTINGS PAGE
   ============================================= */
.settings-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8B96A5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #E7DDC9;
}
.form-label { font-size: 0.82rem; font-weight: 500; color: #4a5568; }
.form-control, .form-select {
    border: 1px solid #E7DDC9;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #2A1B0C;
}
.form-control:focus, .form-select:focus {
    border-color: #F5C24E;
    box-shadow: 0 0 0 3px rgba(245,194,78,0.12);
}

/* =============================================
   MISCELLANEOUS
   ============================================= */
.text-gold  { color: #F5C24E !important; }
.text-navy  { color: #2A1B0C !important; }
.bg-gold    { background-color: #F5C24E !important; }
.bg-navy    { background-color: #2A1B0C !important; }
.border-gold{ border-color: #F5C24E !important; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #8B96A5;
}
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h6 { font-weight: 600; color: #4a5568; margin-bottom: 0.4rem; }
.empty-state p  { font-size: 0.82rem; }

/* Docs */
.doc-item {
    display: flex; align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #E7DDC9;
    text-decoration: none; color: #2A1B0C;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}
.doc-item:hover { border-color: #F5C24E; background: rgba(245,194,78,0.03); color: #2A1B0C; }
.doc-item .doc-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(42,27,12,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; margin-right: 0.75rem; flex-shrink: 0;
}
.doc-item .doc-title { font-size: 0.82rem; font-weight: 600; margin-bottom: 1px; }
.doc-item .doc-meta  { font-size: 0.7rem; color: #8B96A5; }

/* Notification pulse fix */
.pulse-ring { border-color: #F5C24E !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F7F2E9; }
::-webkit-scrollbar-thumb { background: #E7DDC9; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #F5C24E; }

/* Responsive */
@media (max-width: 768px) {
    .wallet-hero .balance-amount { font-size: 1.5rem; }
    .kpi-value { font-size: 1.25rem; }
    .quick-action-btn { padding: 0.75rem 0.25rem; }
    .user-summary-card .divider-v { display: none; }
}

/* =============================================
   PHASE 2 — Interactive Components
   ============================================= */

/* Search Dropdown */
#adonis-search-dropdown::-webkit-scrollbar { width: 4px; }
#adonis-search-dropdown::-webkit-scrollbar-thumb { background: #E7DDC9; border-radius: 99px; }

/* Toast Container  */
#adonis-toast-container .adonis-toast { transition: opacity 0.3s ease; }

/* Product Detail Modal Enhancements */
#productDetailModal .modal-content,
#ticketViewModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}
#productDetailModal .modal-header,
#ticketViewModal .modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    background: #FFFDF8;
    border-bottom: 1px solid #E7DDC9;
}
#productDetailModal .modal-body,
#ticketViewModal .modal-body {
    padding: 1.25rem 1.5rem;
}

/* Ticket message bubbles */
.ticket-msg-user { background: rgba(245,194,78,0.08); border: 1px solid rgba(245,194,78,0.2); }
.ticket-msg-support { background: #F7F2E9; border: 1px solid #E7DDC9; }

/* Search highlight active */
.main-search { position: relative; }
.main-search input:focus { z-index: 2; }

/* Page transitions (subtle) */
.body { animation: pageIn 0.25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Clickable table rows */
.ticket-row { cursor: pointer; }
.ticket-row td span[onclick], .ticket-row td span[style*="cursor"] { color: #2A1B0C; }
.ticket-row td span[onclick]:hover { color: #F5C24E; text-decoration: underline; }

/* Modal XL override for product detail */
.modal-xl { max-width: 900px !important; }

/* Suggested question chips */
.ai-suggested-chip {
    background: #F7F2E9;
    border: 1px solid #E7DDC9;
    border-radius: 20px;
    padding: 0.3em 0.8em;
    font-size: 0.78rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
}
.ai-suggested-chip:hover { border-color: #F5C24E; color: #F5C24E; background: rgba(245,194,78,0.05); }

/* Convert page success alert */
.convert-success {
    background: rgba(40,199,111,0.1);
    border: 1px solid rgba(40,199,111,0.25);
    border-radius: 10px;
    padding: 1rem;
    color: #1a7f48;
    font-size: 0.85rem;
    display: none;
}

/* Settings save badge */
.settings-saved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(40,199,111,0.1);
    color: #28c76f;
    border-radius: 6px;
    padding: 0.2em 0.6em;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}
.settings-saved-badge.show { opacity: 1; }

/* Progress bar animated */
.xp-bar-fill { animation: xpFill 1s ease forwards; }
@keyframes xpFill { from { width: 0 !important; } }

/* Notification red dot */
.notification-dot {
    width: 7px;
    height: 7px;
    background: #D9603C;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}

/* Copy success micro-animation */
@keyframes copyPop { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
.copy-pop { animation: copyPop 0.25s ease; }

/* Referral link hover */
.referral-link-box { user-select: all; cursor: text; }

/* Dashboard welcome banner */
.welcome-banner {
    background: linear-gradient(135deg, #2A1B0C 0%, #4A2E10 100%);
    border-radius: 14px;
    color: white;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 160px; height: 160px;
    background: rgba(245,194,78,0.08);
    border-radius: 50%;
}
.welcome-banner h5 { color: #FFFFFF; font-weight: 700; margin-bottom: 0.25rem; }
.welcome-banner p  { color: rgba(255,255,255,0.55); font-size: 0.83rem; margin-bottom: 0; }

/* =============================================
   SIDEBAR v2 — COMPACT GROUPED NAVIGATION
   ============================================= */

/* Tighten base m-link for compact feel */
.sidebar .menu-list .m-link {
    padding: 0.45rem 0.6rem !important;
    margin-bottom: 1px !important;
    gap: 0.55rem;
}
.sidebar .menu-list .m-link h6 { font-size: 0.79rem !important; }
.sidebar .menu-list .m-link small { font-size: 0.63rem !important; }
.sidebar .menu-list .m-link i:not(.nav-chevron) { font-size: 0.88rem !important; }

/* Group toggle — flex row with chevron at end */
.nav-group-toggle {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}
.nav-group-toggle .flex-grow-1 h6 { margin-bottom: 0; }

/* Animated chevron */
.nav-chevron {
    font-size: 0.58rem !important;
    min-width: auto !important;
    color: rgba(255,255,255,0.25) !important;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.15s !important;
}
.nav-group-item.open > .nav-group-toggle .nav-chevron {
    transform: rotate(90deg);
    color: rgba(255,255,255,0.5) !important;
}
.nav-group-item.group-active > .nav-group-toggle .nav-chevron {
    color: rgba(245,194,78,0.6) !important;
}

/* Sub-menu: collapsed by default, CSS max-height transition */
.nav-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 2px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease;
}
/* JS sets max-height/opacity directly — these are fallback for open class */
.nav-group-item.open > .nav-sub-menu {
    opacity: 1;
}

/* Sub-link items */
.nav-sub-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.6rem 0.38rem 2.35rem;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45) !important;
    text-decoration: none !important;
    transition: color 0.15s, background 0.15s;
    margin-bottom: 1px;
    line-height: 1.35;
}
.nav-sub-link i {
    font-size: 0.72rem !important;
    width: 13px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    transition: color 0.15s;
    flex-shrink: 0;
}
.nav-sub-link:hover {
    background: rgba(245,194,78,0.08) !important;
    color: rgba(255,255,255,0.82) !important;
}
.nav-sub-link:hover i { color: rgba(255,255,255,0.55); }
.nav-sub-link.active {
    background: rgba(245,194,78,0.12) !important;
    color: #F5C24E !important;
    font-weight: 600;
}
.nav-sub-link.active i { color: #F5C24E !important; }

/* Group header: brighten when a child is active */
.nav-group-item.group-active > .nav-group-toggle {
    color: rgba(255,255,255,0.88) !important;
}
.nav-group-item.group-active > .nav-group-toggle i:first-child {
    color: #F5C24E !important;
}
.nav-group-item.group-active > .nav-group-toggle h6 {
    color: rgba(255,255,255,0.95) !important;
}

/* AI item — highlighted border treatment */
.nav-ai-link {
    border: 1px solid rgba(245,194,78,0.18) !important;
    background: rgba(245,194,78,0.03) !important;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}
.nav-ai-link:hover {
    border-color: rgba(245,194,78,0.38) !important;
    background: rgba(245,194,78,0.09) !important;
}
.nav-ai-link.active {
    border-color: rgba(245,194,78,0.5) !important;
    background: rgba(245,194,78,0.14) !important;
    color: #F5C24E !important;
}
.nav-ai-link.active i,
.nav-ai-link.active h6 { color: #F5C24E !important; }

/* AI badge pill */
.nav-ai-badge {
    font-size: 0.55rem;
    font-weight: 700;
    background: rgba(245,194,78,0.18);
    color: #F5C24E;
    border: 1px solid rgba(245,194,78,0.3);
    border-radius: 4px;
    padding: 0.12em 0.42em;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
    line-height: 1.6;
}

/* "Coming Soon" badge for ecosystem services not yet publicly available */
.nav-soon-badge {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 0.12em 0.42em;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
    line-height: 1.5;
    white-space: nowrap;
}
/* Coming-soon items are dimmed to read as not-yet-active */
.nav-sub-link.nav-soon { color: rgba(255,255,255,0.32) !important; }
.nav-sub-link.nav-soon i { color: rgba(255,255,255,0.2); }

/* Sidebar-mini: hide sub-menus, chevrons, AI badge in icon-only mode */
.sidebar-mini .nav-sub-menu  { display: none !important; }
.sidebar-mini .nav-chevron   { display: none !important; }
.sidebar-mini .nav-ai-badge  { display: none !important; }
.sidebar-mini .nav-soon-badge { display: none !important; }


/* ── Workspace Switcher ──────────────────────────────────────── */
.ws-sw-list { display:flex;flex-direction:column;gap:2px;padding:6px }
.ws-sw-item {
    display:flex;align-items:center;gap:10px;width:100%;
    padding:8px 10px;border:none;background:transparent;
    border-radius:8px;cursor:pointer;text-align:left;
    transition:background 0.15s;color:inherit;
}
.ws-sw-item:hover { background:rgba(245,194,78,0.1) }
.ws-sw-active { background:rgba(245,194,78,0.15) }
.ws-sw-avatar {
    width:32px;height:32px;border-radius:8px;
    background:rgba(245,194,78,0.2);color:#F5C24E;
    display:flex;align-items:center;justify-content:center;
    font-size:0.9rem;font-weight:700;flex-shrink:0;
}
.ws-sw-info { flex-grow:1;min-width:0 }
.ws-sw-name { font-size:0.82rem;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis }
.ws-sw-meta { font-size:0.7rem;opacity:0.6;text-transform:capitalize }
.ws-sw-check { color:#F5C24E;font-size:0.75rem;flex-shrink:0 }
.ws-sw-footer { padding:8px 10px;border-top:1px solid rgba(255,255,255,0.07);margin-top:4px }
.ws-sw-link { font-size:0.78rem;color:#F5C24E;text-decoration:none;display:block }
.ws-sw-link:hover { text-decoration:underline }
.ws-sw-empty { padding:12px 14px;font-size:0.78rem;opacity:0.6 }
