/* ==========================================================================
   BossPay P2P Platform Global Stylesheet (Light & Dark Unified)
   ========================================================================== */

:root {
    --bg-dark: #07090e; /* HEX: #07090e, RGB: rgb(7, 9, 14) */
    --bg-card: rgba(20, 27, 43, 0.7); /* RGB: rgba(20, 27, 43, 0.7) */
    --bg-input: rgba(13, 18, 29, 0.95); /* RGB: rgba(13, 18, 29, 0.95) */
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #0088ff; /* HEX: #0088ff, RGB: rgb(0, 136, 255) */
    --primary-glow: rgba(0, 136, 255, 0.4);
    --secondary: #10b981; /* HEX: #10b981, RGB: rgb(16, 185, 129) */
    --secondary-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --error: #ef4444;
    --text-main: #f3f4f6; /* HEX: #f3f4f6, RGB: rgb(243, 244, 246) */
    --text-muted: #9ca3af;
    --gold: #f5c453;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Theme Variables for Modals */
    --modal-card-bg: #111827; /* HEX: #111827, RGB: rgb(17, 24, 39) */
    --modal-header-bg: #1f2937; /* HEX: #1f2937, RGB: rgb(31, 41, 55) */
    --modal-body-bg: #07090e; /* HEX: #07090e, RGB: rgb(7, 9, 14) */
    --modal-text-color: #f9fafb; /* HEX: #f9fafb, RGB: rgb(249, 250, 251) */
    --modal-border: #374151;
    --modal-input-bg: #1f2937; /* HEX: #1f2937, RGB: rgb(31, 41, 55) */
    --modal-input-border: #374151;
    --modal-input-text: #f3f4f6; /* HEX: #f3f4f6, RGB: rgb(243, 244, 246) */
}

/* Light Mode Overrides */
body.light-theme {
    background-color: #cbd5e1; /* HEX */
    background-color: rgb(203, 213, 225); /* RGB */
    --bg-dark: #f3f4f6; /* HEX: #f3f4f6, RGB: rgb(243, 244, 246) */
    --bg-card: rgba(255, 255, 255, 0.85); /* RGB: rgba(255, 255, 255, 0.85) */
    --bg-input: rgba(243, 244, 246, 0.95); /* RGB: rgba(243, 244, 246, 0.95) */
    --border-color: rgba(0, 0, 0, 0.08);
    --text-main: #1f2937; /* HEX: #1f2937, RGB: rgb(31, 41, 55) */
    --text-muted: #6b7280;
    --primary-glow: rgba(0, 136, 255, 0.2);

    /* Theme Variables for Modals (Light) */
    --modal-card-bg: #f3f4f6; /* HEX: #f3f4f6, RGB: rgb(243, 244, 246) */
    --modal-header-bg: #ffffff; /* HEX: #ffffff, RGB: rgb(255, 255, 255) */
    --modal-body-bg: #f9fafb; /* HEX: #f9fafb, RGB: rgb(249, 250, 251) */
    --modal-text-color: #111827; /* HEX: #111827, RGB: rgb(17, 24, 39) */
    --modal-border: #e5e7eb;
    --modal-input-bg: #ffffff; /* HEX: #ffffff, RGB: rgb(255, 255, 255) */
    --modal-input-border: #d1d5db;
    --modal-input-text: #1f2937; /* HEX: #1f2937, RGB: rgb(31, 41, 55) */
}

body.light-theme .app-frame {
    background-color: #f3f4f6; /* HEX */
    background-color: rgb(243, 244, 246); /* RGB */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .app-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .logo-area h1 {
    background: linear-gradient(to right, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .bell-icon-wrapper {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .notification-dropdown {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-header {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .notif-item {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .notif-item .title {
    color: #111827;
}

body.light-theme .balance-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

body.light-theme .balance-value .amount {
    color: #111827;
}

body.light-theme .app-navigation {
    background: rgba(255, 255, 255, 0.96);
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .view-subtabs {
    background: #e2e8f0;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .subtab-btn.active {
    background: #ffffff;
    color: #111827;
}

body.light-theme .modal-card {
    background: #ffffff;
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .chat-messages {
    background: #f8fafc;
}

body.light-theme .chat-msg.agent p {
    background: #e2e8f0;
    color: #111827;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .chat-input-bar {
    background: #ffffff;
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .node-console {
    background: #090d16;
    color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0b0f19; /* HEX */
    background-color: rgb(11, 15, 25); /* RGB */
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    transition: background-color 0.3s;
}

/* ==========================================================================
   App Frame & Header Buttons
   ========================================================================== */

.app-frame {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #07090e; /* HEX */
    background-color: rgb(7, 9, 14); /* RGB */
    background-color: var(--bg-dark);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    transition: background-color 0.3s, box-shadow 0.3s;
}

@media (min-width: 481px) {
    .app-frame {
        height: min(850px, 92vh);
        border-radius: 40px;
        border: 8px solid #1a2235;
        overflow: hidden;
    }
}

.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-header {
    height: 60px;
    background: rgba(13, 18, 29, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Switch Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.notification-bell-container {
    position: relative;
    cursor: pointer;
}

.bell-icon-wrapper {
    position: relative;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: var(--error);
    border-radius: 50%;
    color: white;
    font-size: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: 45px;
    right: -60px;
    width: 280px;
    background: #0f1524;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.dropdown-header {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
}

.dropdown-header button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.dropdown-body {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-item .title {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.notif-item .msg {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.notif-item .time {
    font-size: 9px;
    color: #4b5563;
    align-self: flex-end;
}

.notif-empty {
    text-align: center;
    padding: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   Main Content Views
   ========================================================================== */

.app-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 90px;
}

.app-content::-webkit-scrollbar {
    display: none;
}

.app-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-view {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease;
}

.app-view.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Home Components
   ========================================================================== */

.balance-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, border-color 0.3s;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.balance-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.rate-info {
    display: block;
    font-size: 9px;
    color: #6b7280;
    margin-top: 2px;
}

.balance-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-flag {
    font-size: 26px;
}

.balance-value .amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.kyc-badge-home {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.kyc-badge-home.verified {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.btn-buy-quick {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

/* HOME BANNER CAROUSEL */
.home-carousel {
    width: 100%;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 1;
    height: 100%;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.slide-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slide-tag {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
    color: white;
    letter-spacing: 0.5px;
}

.carousel-slide h2 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: white;
}

.carousel-slide p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.carousel-indicators .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s, width 0.3s;
}

.carousel-indicators .indicator.active {
    background: white;
    width: 12px;
    border-radius: 10px;
}

/* ==========================================================================
   NODE ENGINE HARDWARE SIMULATOR (New Feature)
   ========================================================================== */

.node-engine-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.node-engine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.engine-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.engine-icon {
    font-size: 24px;
}

.engine-title h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.engine-status {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
}

.engine-status.active {
    color: var(--secondary);
}

/* Toggle Switch */
.engine-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.engine-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    transition: .3s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}

.engine-switch input:checked+.switch-slider {
    background-color: var(--secondary);
    border-color: rgba(16, 185, 129, 0.4);
}

.engine-switch input:checked+.switch-slider:before {
    transform: translateX(20px);
    background-color: white;
}

.node-console {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 90px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #10b981;
}

.console-line {
    word-break: break-all;
    line-height: 1.3;
}

.console-line.success {
    color: var(--secondary);
}

.console-line.info {
    color: var(--primary);
}

.console-line.warning {
    color: var(--warning);
}

.console-line.error {
    color: var(--error);
}

.node-mining-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    color: var(--text-muted);
}

.promo-banner {
    background: linear-gradient(90deg, #1d1b32 0%, #151a2e 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.promo-badge {
    background: #8b5cf6;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.promo-text {
    flex-grow: 1;
    margin-left: 12px;
}

.promo-text h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #e0d7ff;
}

.promo-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.arrow-right {
    font-size: 18px;
    color: #8b5cf6;
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.event-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    opacity: 0.15;
}

.event-card.night-boost {
    border-color: rgba(245, 158, 11, 0.2);
}

.event-card.night-boost .event-glow {
    background: radial-gradient(circle, var(--warning) 0%, transparent 60%);
}

.event-card.team-comm {
    border-color: rgba(0, 136, 255, 0.2);
}

.event-card.team-comm .event-glow {
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
}

.event-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.night-boost .event-tag {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.team-comm .event-tag {
    background: rgba(0, 136, 255, 0.15);
    color: var(--primary);
}

.event-content h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.event-content p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.announcement-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
}

.ann-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ann-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ann-meta {
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
}

.ann-body p {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.4;
}

/* ==========================================================================
   Buy Tab Components
   ========================================================================== */

.view-subtabs {
    display: flex;
    background: #0f1522;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.subtab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
}

.subtab-btn.active {
    background: var(--bg-card);
    color: white;
}

.buy-subview {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.buy-subview.active {
    display: flex;
}

.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-inputs {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 12px;
    gap: 6px;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-label {
    font-size: 11px;
    color: #4b5563;
    font-weight: 700;
}

.input-wrapper input {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
}

.input-wrapper input:focus {
    outline: none;
}

.filter-arrow {
    color: #4b5563;
    display: flex;
    align-items: center;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.order-id {
    font-size: 11px;
    color: var(--text-muted);
}

.order-reward-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-price-row {
    font-size: 13px;
    color: #9ca3af;
}

.order-price-row .price {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
}

.order-reward-calc {
    font-size: 12px;
    color: #d1d5db;
}

.order-reward-calc strong {
    color: var(--secondary);
}

.order-itokens-total {
    font-size: 13px;
    color: #9ca3af;
}

.order-itokens-total .total-tokens {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.btn-order-buy {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* USDT Subtab styling */
.usdt-conversion-info {
    text-align: center;
    background: rgba(0, 136, 255, 0.1);
    border: 1px solid rgba(0, 136, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    color: #e2e8f0;
}

.usdt-conversion-info .highlight {
    color: var(--primary);
    font-weight: 700;
}

.usdt-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    color: white;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #7c3aed26;
}

.quantity-input-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-input-box input {
    background: none;
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    width: 70%;
}

.quantity-input-box input:focus {
    outline: none;
}

.input-unit {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
}

.itoken-estimate {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.itoken-estimate span {
    color: #ffffff;
    font-weight: 700;
}

.deposit-instructions {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mock-qr-code {
    background: white;
    padding: 12px;
    border-radius: 16px;
    color: #0b0f19;
}

.warning-text {
    font-size: 10px;
    color: var(--warning);
    font-weight: 700;
    text-transform: uppercase;
}

.address-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
}

.address-copy-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.address-text {
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
    color: #e5e7eb;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    background: rgba(0, 136, 255, 0.1);
}

.network-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.network-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.usdt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-deposit-action {
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-deposit-action.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-deposit-action.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
}

.usdt-history-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.section-title-row {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

.arrow-toggle {
    font-size: 10px;
    color: var(--text-muted);
}

.history-list {
    display: none;
    flex-direction: column;
    padding: 0 16px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.history-list.open {
    display: flex;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item.empty {
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 14px 0;
}

/* ==========================================================================
   UPI Partners tab
   ========================================================================== */

.upi-warning-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.upi-warning-banner p {
    font-size: 11px;
    color: #fca5a5;
    font-weight: 600;
}

.upi-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upi-action-btn {
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.upi-action-btn.tutorial-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.upi-action-btn.link-btn {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
}

.upi-subtabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.upi-subtab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    padding: 12px 0;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 2px solid transparent;
}

.upi-subtab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.upi-partner-subview {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.upi-partner-subview.active {
    display: flex;
}

.empty-state-upi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-illustration {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.empty-state-upi p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.empty-state-upi strong {
    font-size: 14px;
    color: #ffffff;
}

.linked-upi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.upi-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upi-card-name {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.upi-card-id {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary);
}

.upi-card-phone {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-unlink-upi {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}

/* ==========================================================================
   Team & Mine Settings
   ========================================================================== */

.team-header-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-box.border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
}

.stat-desc {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

.referral-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

.referral-box label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.ref-link-row {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 6px 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ref-link-text {
    font-family: monospace;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #a5b4fc;
}

.btn-copy-ref {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
}

.commission-tiers-section h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.tiers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-item.highlighted {
    background: rgba(245, 196, 83, 0.08);
    border-color: rgba(245, 196, 83, 0.25);
}

.tier-range {
    font-size: 12px;
    color: #d1d5db;
}

.tier-bonus {
    font-size: 12px;
    color: var(--gold);
}

.user-profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}

.user-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    color: white;
    font-size: 18px;
}

.user-meta {
    flex-grow: 1;
}

.user-meta h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}

.user-id {
    font-size: 11px;
    color: var(--text-muted);
}

.vip-badge {
    background: linear-gradient(135deg, #f5c453, #eab308);
    color: #0b0f19;
    font-weight: 800;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
}

.balances-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.balance-subbox {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subbox-title {
    font-size: 10px;
    color: var(--text-muted);
}

.subbox-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
}

.menu-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background-color: rgba(255, 255, 255, 0.02);
}

.menu-icon {
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.menu-title {
    flex-grow: 1;
    font-weight: 600;
    color: #e5e7eb;
}

.badge-new {
    background: var(--secondary);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
}

#menu-kyc-status {
    background: var(--error);
}

#menu-kyc-status.verified {
    background: var(--secondary);
}

.menu-arrow {
    color: #4b5563;
    font-size: 11px;
}

.app-footer-info {
    text-align: center;
    padding: 10px 0;
    color: #4b5563;
    font-size: 11px;
}

.copyright {
    margin-top: 4px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.app-navigation {
    height: 70px;
    background: rgba(13, 18, 29, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.nav-item {
    flex: 1;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
}

.nav-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 55px;
    border-radius: 16px;
    transition: all 0.2s ease;
    color: #4b5563;
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.nav-item.active .nav-icon-wrapper {
    background-color: #a7f3d0;
    /* light teal capsule */
    color: #047857;
    /* dark teal icon */
}

body:not(.light-theme) .nav-item.active .nav-icon-wrapper {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.nav-item>span:not(.nav-icon-wrapper) {
    font-size: 10px;
    font-weight: 700;
    display: none;
}

.nav-item.active>span:not(.nav-icon-wrapper) {
    display: block;
    color: #1f2937;
    margin-top: 3px;
}

body:not(.light-theme) .nav-item.active>span:not(.nav-icon-wrapper) {
    color: white;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    align-items: flex-end;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(4px);
}

.modal-wrapper {
    position: relative;
    width: 100%;
    max-height: 85%;
    z-index: 10;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-card {
    background: #0f1524;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.modal-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.order-timer {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.btn-close-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.modal-body.scrollable {
    max-height: min(450px, 55vh);
}

.modal-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    background: rgba(13, 18, 29, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-footer button {
    flex: 1;
    border: none;
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
}

.modal-header-gradient {
    padding: 22px 20px;
    text-align: center;
    position: relative;
}

.modal-header-gradient h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.notice-gradient {
    background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
}

.rewards-gradient {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.btn-modal-close {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
    width: 100%;
    border: none;
    padding: 14px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* P2P Buy Modal Steps & UTR styles */
.order-info-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.order-info-banner .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.order-info-banner .label {
    font-size: 11px;
    color: var(--text-muted);
}

.order-info-banner .value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
}

.order-info-banner .value.amount-pay {
    color: var(--secondary);
}

.order-info-banner .value.token-receive {
    color: white;
}

.payment-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-content p {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.upi-display-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.upi-address {
    font-family: monospace;
    font-size: 12px;
    color: #e5e7eb;
    word-break: break-all;
}

.btn-copy-sm {
    background: #7c3aed26;
    color: var(--primary);
    border: 1px solid #7c3aed4d;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy-sm:hover {
    background: #7c3aed40;
}

#p2p-utr-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    margin-top: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#p2p-utr-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #7c3aed26;
}

.payment-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
    font-size: 11px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
    line-height: 1.4;
}

/* Announcement Poster Styles */
.announcement-poster {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.announcement-poster.night-bonus {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.4), rgba(15, 23, 42, 0.4));
    border-color: rgba(99, 102, 241, 0.2);
}

.announcement-poster.rewards {
    background: linear-gradient(135deg, #581c874d, rgba(15, 23, 42, 0.3));
    border-color: #a855f733;
}

.announcement-poster.buy-rewards {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(15, 23, 42, 0.3));
    border-color: rgba(59, 130, 246, 0.2);
}

.poster-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.poster-head .sound-wave {
    display: inline-block;
    font-size: 20px;
    animation: bounceSlow 2s infinite ease-in-out;
}

.poster-head h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.poster-head .sub-head {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
}

.poster-head p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.poster-info-box {
    padding: 12px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
}

.poster-info-box.warning {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.poster-info-box.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}

.poster-info-box.special {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
}

.rewards-bullets {
    padding-left: 20px;
    margin: 0;
    font-size: 12px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.rewards-bullets li::marker {
    color: var(--primary);
}

.rewards-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    padding: 4px 6px;
    border-radius: 6px;
}

.table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.small-disclaimer {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

.poster-footer {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    text-align: right;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   ADVANCED TRANSACTION LEDGER STYLE (New Feature)
   ========================================================================== */

.ledger-filter-row {
    display: flex;
    padding: 8px 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ledger-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.ledger-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: rgba(0, 136, 255, 0.3);
}

.ledger-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ledger-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ledger-item-title {
    font-weight: 700;
    font-size: 12px;
    color: white;
}

.ledger-item-date {
    font-size: 10px;
    color: var(--text-muted);
}

.ledger-item-ref {
    font-family: monospace;
    font-size: 9px;
    color: #4b5563;
    word-break: break-all;
}

.ledger-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ledger-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
}

.ledger-val.credit {
    color: var(--secondary);
}

.ledger-val.debit {
    color: var(--error);
}

.ledger-status-badge {
    font-size: 9px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    padding: 2px 6px;
    border-radius: 4px;
}

.ledger-status-badge.failed {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

/* ==========================================================================
   Live Support & Appeal Disputes Styling
   ========================================================================== */

.chat-card {
    height: 520px;
}

.chat-header {
    background: rgba(13, 18, 29, 0.95);
}

.chat-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-agent-avatar {
    width: 38px;
    height: 38px;
    background: rgba(0, 136, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-title-info h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.chat-status {
    font-size: 10px;
    color: var(--secondary);
    font-weight: 600;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #090d16;
}

.chat-msg {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-msg.system {
    align-self: center;
    max-width: 90%;
    text-align: center;
}

.chat-msg.system p {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 12px;
}

.chat-msg.agent {
    align-self: flex-start;
}

.chat-msg.agent p {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 14px 14px 14px 2px;
    font-size: 12px;
    line-height: 1.4;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg.user p {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
    padding: 10px 14px;
    border-radius: 14px 14px 2px 14px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 136, 255, 0.15);
}

.chat-msg .time {
    font-size: 9px;
    color: #4b5563;
    font-weight: 600;
}

.chat-input-bar {
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    background: #0f1524;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-input-bar input {
    flex-grow: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 12px;
}

.chat-input-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-chat-send {
    background: linear-gradient(135deg, var(--primary), #0066cc);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================================================
   Toasts system
   ========================================================================== */

.toast-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 320px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    animation: slideDownToast 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOutToast 0.3s 2.7s forwards;
    pointer-events: auto;
}

.toast.success {
    border-left: 4px solid var(--secondary);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

@keyframes slideDownToast {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutToast {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   NEW ADVANCED FEATURES STYLING (KYC, VIP, ADMIN CONSOLE)
   ========================================================================== */

/* KYC info banner */
.kyc-info-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 12px;
    font-size: 11px;
    color: #93c5fd;
    line-height: 1.4;
}

/* KYC File Upload Box */
.mock-file-upload {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.mock-file-upload:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    color: white;
}

/* VIP level upgrades modal */
.vip-tier-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vip-tier-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.vip-tier-item.current {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.vip-tier-item.current::before {
    content: 'CURRENT';
    position: absolute;
    top: 10px;
    right: -25px;
    background: var(--secondary);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 25px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.vip-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 8px;
}

.vip-tier-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    color: white;
}

.vip-tier-cost {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    color: var(--gold);
}

.vip-tier-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-tier-perks li {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-vip-purchase {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #0b0f19;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(245, 196, 83, 0.15);
}

/* ADMIN DASHBOARD CONSOLE STYLING */
.admin-header-card {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title-row h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: white;
}

.btn-admin-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.admin-stat-card .val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
}

.admin-stat-card .lbl {
    font-size: 9px;
    color: var(--text-muted);
}

.admin-config-card,
.admin-queue-card,
.admin-support-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-config-card h3,
.admin-queue-card h3,
.admin-support-link-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: #e5e7eb;
}

.form-group-admin {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-admin label {
    font-size: 11px;
    color: var(--text-muted);
}

.inline-input-row {
    display: flex;
    gap: 8px;
}

.inline-input-row input {
    flex-grow: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 12px;
}

.btn-admin-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-queue-msg {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 16px 0;
}

.admin-queue-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-type {
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
}

.queue-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    color: var(--warning);
}

.queue-meta {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-all;
}

.queue-actions {
    display: flex;
    gap: 8px;
}

.btn-queue-approve {
    flex: 1;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}

.btn-queue-reject {
    flex: 1;
    background: var(--error);
    color: white;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}

.admin-ticket-status {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   NEXT PAY Rebranded Premium Layout & UI Additions
   ========================================================================== */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 12px 16px;
    height: 56px;
}

.app-header h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-heading);
}

.header-placeholder-left {
    width: 24px;
}

.notification-bell-container {
    position: relative;
    cursor: pointer;
}

.bell-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3e8ff;
    border: 1px solid #7c3aed1a;
}

.bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex;
}

.marquee-banner {
    display: flex;
    align-items: center;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    overflow: hidden;
    gap: 8px;
}

.bell-icon-marquee {
    font-size: 14px;
    flex-shrink: 0;
}

.marquee-text-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
}

.marquee-text {
    display: block;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    position: absolute;
    animation: marquee-vertical-down 8s linear infinite;
    color: #b45309;
    font-weight: 600;
    font-size: 12px;
}

@keyframes marquee-vertical-down {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(150%);
        opacity: 0;
    }
}

.join-promo-box {
    display: flex;
    align-items: center;
    background: #f5f3ff;
    border: none;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    position: relative;
    gap: 12px;
    box-shadow: 0 2px 6px #7c3aed08;
}

.join-promo-left {
    flex-shrink: 0;
}

.join-promo-content {
    flex: 1;
}

.join-promo-content h3 {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2px;
}

.join-promo-content p {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}

.join-now-btn {
    background: transparent;
    border: 1px solid #7c3aed;
    color: #7c3aed;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 10px;
    cursor: pointer;
    text-transform: uppercase;
}

.close-promo-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #9ca3af;
    cursor: pointer;
}

.purple-balance-card {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 20px #7c3aed33;
    margin-bottom: 16px;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.balance-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uid-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.view-balance-btn {
    background: none;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.arrow-right-sm {
    font-size: 9px;
}

.card-middle-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.currency-symbol {
    font-size: 20px;
    font-weight: 700;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.currency-code {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.balance-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.col-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.col-value {
    font-size: 14px;
    font-weight: 700;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.action-card {
    background: #f5f3ff;
    border: none;
    border-radius: 16px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px #7c3aed08;
}

.action-card:active {
    transform: scale(0.95);
}

.action-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2.2px solid currentColor;
}

.bg-red {
    border-color: #e11d48;
    color: #e11d48;
}

.bg-green {
    border-color: #16a34a;
    color: #16a34a;
}

.bg-upi {
    background: transparent;
    border-color: transparent;
    width: auto;
    height: 36px;
}

.upi-text-icon {
    font-size: 12px;
    font-weight: 800;
    color: #7c3aed;
}

.action-label {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
}

.stats-section-card {
    background: #f5f3ff;
    border: none;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px #7c3aed08;
}

.stats-section-card .section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stats-section-card .view-link {
    font-size: 11px;
    color: #7c3aed;
    font-weight: 600;
    cursor: pointer;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.check-circle-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyan-dot-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-text-group {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.stat-subtitle {
    font-size: 10px;
    color: #6b7280;
}

.banners-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.banner-box {
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
    position: relative;
    text-align: center;
    overflow: hidden;
    height: 150px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.task-banner {
    background: linear-gradient(180deg, #7aa4eb, #577ec5);
}

.spin-banner {
    background: linear-gradient(180deg, #74d8b9, #489b82);
}

.newbie-banner {
    background: linear-gradient(180deg, #ecd093, #c5a25e);
}

.ribbon {
    position: absolute;
    top: 10px;
    right: -25px;
    background: #ef4444;
    color: white;
    font-size: 7px;
    font-weight: 800;
    padding: 2px 24px;
    transform: rotate(45deg);
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.banner-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.banner-icon-container {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.banner-value {
    font-size: 11px;
    font-weight: 800;
    margin-top: auto;
}

.spin-banner .banner-sub {
    color: #bef264;
    font-size: 11px;
    font-weight: 800;
    margin-top: auto;
}

.spin-banner .banner-value {
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
}

color: rgba(255, 255, 255, 0.8);
}

.view-header-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.view-subtabs-buy {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.subtab-btn-buy {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
}

.subtab-btn-buy.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.buy-ticker-container {
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 6px;
    color: #4338ca;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 12px;
}

.buy-sort-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 12px;
}

.buy-orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buy-order-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buy-order-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.buy-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.buy-badge {
    background: #fee2e2;
    color: #ef4444;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.buy-amount-label {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.to-ac-badge {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}

.buy-reward-row {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.buy-date-row {
    font-size: 9px;
    color: #9ca3af;
}

.buy-order-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.plus-amount {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
}

.buy-action-btn-card {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}

.view-subtabs-sell {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.subtab-btn-sell {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
}

.subtab-btn-sell.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sell-subview {
    display: none;
}

.sell-subview.active {
    display: block;
}

.white-balance-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.white-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11px;
    color: #6b7280;
}

.white-card-view-btn {
    background: none;
    border: none;
    color: #7c3aed;
    font-weight: 600;
    cursor: pointer;
}

.white-card-middle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.white-card-label {
    font-size: 11px;
    color: #6b7280;
}

.white-card-amount {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.white-card-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 10px;
}

.white-card-col {
    display: flex;
    flex-direction: column;
}

.white-col-label {
    font-size: 9px;
    color: #9ca3af;
}

.white-col-val {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.upi-link-box-container {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.sell-no-upi-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.no-upi-text {
    font-size: 12px;
    color: #9ca3af;
}

.btn-link-upi-purple {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}

.linked-upi-status-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator-sell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green-anim 1.5s infinite;
}

@keyframes pulse-green-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.upi-details-mini {
    display: flex;
    flex-direction: column;
}

.upi-details-mini strong {
    font-size: 12px;
    color: #1f2937;
}

.upi-details-mini span {
    font-size: 10px;
    color: #6b7280;
}

.btn-unlink-sell {
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.helpful-tips-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.tips-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.tip-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.tip-row:last-child {
    margin-bottom: 0;
}

.tip-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid;
}

.red-border {
    border-color: #ef4444;
}

.blue-border {
    border-color: #3b82f6;
}

.tip-text h5 {
    font-size: 11px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.tip-text p {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.3;
}

.view-subtabs-orders {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.subtab-btn-orders {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
}

.subtab-btn-orders.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item-tab-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 12px;
}

.order-item-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    padding-bottom: 6px;
}

.order-item-id {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
}

.order-item-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-item-amount {
    font-size: 13px;
    color: #1f2937;
}

.order-item-utr {
    font-size: 10px;
    color: #6b7280;
}

.order-item-date {
    font-size: 9px;
    color: #9ca3af;
}

.order-item-received {
    font-size: 15px;
    font-weight: 800;
    color: #7c3aed;
}

.wheel-outer-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #ef4444;
    z-index: 10;
}

.lucky-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #7c3aed;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    box-sizing: border-box;
    padding-top: 15px;
    padding-left: 15px;
}

.btn-spin-now {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-spin-now:active {
    transform: scale(0.95);
}

.reward-gift-box {
    font-size: 64px;
    animation: float-anim 2s ease-in-out infinite;
}

@keyframes float-anim {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.btn-claim-reward {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

/* ==========================================================================
   NEXT PAY 'Me' Profile View Styles
   ========================================================================== */

.me-profile-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #eedeff 100%);
    border: 1px solid #7c3aed1f;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px #7c3aed0a;
}

.me-profile-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.me-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.me-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.me-phone-number {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
    line-height: 1.2;
}

.me-uid-number {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.me-divider {
    height: 1px;
    background: #7c3aed1f;
    margin: 16px 0;
}

.me-earnings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.me-earnings-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.me-earnings-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.me-earnings-value {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}

.purple-text {
    color: #7c3aed !important;
}

.me-vertical-divider {
    width: 1px;
    height: 32px;
    background: #7c3aed26;
}

.me-invite-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.04);
}

.me-invite-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.me-invite-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #1e1b4b;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-top: 0;
}

.me-invite-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #312e81;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.me-invite-subtitle::before {
    content: "•";
    color: #4f46e5;
    font-weight: bold;
    display: inline-block;
    width: 10px;
    margin-right: 4px;
}

.me-invite-badge {
    background: #ffffff;
    border-radius: 12px;
    font-size: 9px;
    color: #3730a3;
    padding: 3px 8px;
    font-weight: 800;
    width: fit-content;
    display: flex;
    align-items: center;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.me-invite-right {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.me-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.me-menu-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
    cursor: pointer;
    transition: all 0.2s ease;
}

.me-menu-card:active {
    transform: translateY(1px);
    background: #fafafa;
}

.me-menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-menu-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #7c3aed0f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.me-menu-icon-wrapper.red-icon {
    background: rgba(239, 68, 68, 0.06);
}

.me-menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.me-menu-title.red-text {
    color: #ef4444;
}

.me-menu-arrow {
    color: #9ca3af;
    font-size: 10px;
    font-weight: bold;
}

/* Dark Mode Fallbacks */
body:not(.light-theme) .me-profile-card {
    background: rgba(30, 27, 75, 0.4);
    border-color: rgba(139, 92, 246, 0.2);
}

body:not(.light-theme) .me-phone-number {
    color: #ffffff;
}

body:not(.light-theme) .me-earnings-label {
    color: #9ca3af;
}

body:not(.light-theme) .me-divider {
    background: rgba(139, 92, 246, 0.2);
}

body:not(.light-theme) .me-vertical-divider {
    background: rgba(139, 92, 246, 0.2);
}

body:not(.light-theme) .me-invite-card {
    background: rgba(17, 24, 39, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

body:not(.light-theme) .me-invite-title {
    color: #ffffff;
}

body:not(.light-theme) .me-invite-subtitle {
    color: #a5b4fc;
}

body:not(.light-theme) .me-invite-badge {
    background: #1f2937;
    color: #e0e7ff;
    border-color: rgba(59, 130, 246, 0.2);
}

body:not(.light-theme) .me-menu-card {
    background: rgba(20, 27, 43, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}

body:not(.light-theme) .me-menu-title {
    color: #f3f4f6;
}

body:not(.light-theme) .me-menu-card:active {
    background: rgba(255, 255, 255, 0.02);
}

.view-header-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    padding: 12px 0;
    text-align: center;
}

body:not(.light-theme) .view-header-title {
    color: #ffffff;
}

.floating-support-btn {
    position: absolute;
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4c1d95;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.floating-support-btn:active {
    transform: scale(0.95);
}

/* Refer & Earn Invite Modal Styles */
.referral-stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.referral-stat-box {
    background: #f5f3ff;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    border: 1px dashed #c084fc;
}

.ref-stat-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #7c3aed;
    margin-bottom: 4px;
}

.ref-stat-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}

.referral-copy-field {
    display: flex;
    gap: 8px;
}

.referral-copy-field input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1.5px solid #ddd6fe;
    background: #faf5ff;
    font-weight: 700;
    color: #4b5563;
    font-size: 13px;
}

.btn-copy-ref {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-ref:active {
    transform: scale(0.95);
}

.referral-info-section {
    margin-top: 18px;
    background: #7c3aed0d;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #7c3aed1a;
}

.referral-info-section h3 {
    font-size: 12px;
    font-weight: 800;
    color: #4c1d95;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-info-section ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.referral-info-section li {
    font-size: 11px;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.4;
}

body:not(.light-theme) .referral-stat-box {
    background: rgba(20, 27, 43, 0.5);
    border-color: #7c3aed4d;
}

body:not(.light-theme) .referral-copy-field input {
    background: rgba(20, 27, 43, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

body:not(.light-theme) .referral-info-section {
    background: #7c3aed05;
    border-color: rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .referral-info-section h3 {
    color: #c084fc;
}

body:not(.light-theme) .referral-info-section li {
    color: #9ca3af;
}

/* Advanced Admin Console Panel Styles */
#view-admin {
    display: none;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
    height: 100%;
    gap: 15px;
}

#view-admin.active {
    display: flex;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd6fe;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.admin-title {
    font-size: 18px;
    font-weight: 800;
    color: #4c1d95;
    margin: 0;
}

.btn-exit-admin {
    background: #6d28d9;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(109, 40, 217, 0.2);
    transition: all 0.2s;
}

.btn-exit-admin:active {
    transform: scale(0.95);
}

.admin-card-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #ddd6fe;
    padding: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.admin-section-heading {
    font-size: 12px;
    font-weight: 800;
    color: #5b21b6;
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid #faf5ff;
    padding-bottom: 6px;
}

.admin-control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-control-group label {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
}

.admin-input-btn-row {
    display: flex;
    gap: 8px;
}

.admin-input-btn-row input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid #ddd6fe;
    font-size: 12px;
    font-weight: 700;
    background: #faf5ff;
    color: #1f2937;
}

.btn-admin-submit {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-admin-submit:active {
    transform: scale(0.95);
}

.admin-queue-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.admin-queue-item {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 10px;
}

.queue-top {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 11px;
    margin-bottom: 4px;
}

.queue-type {
    color: #5b21b6;
}

.queue-amount {
    color: #16a34a;
    font-size: 12px;
}

.queue-meta {
    font-size: 10px;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 8px;
}

.queue-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-queue-reject {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
}

.btn-queue-approve {
    background: #16a34a;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
}

.admin-chat-viewer-log {
    background: #faf5ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    padding: 10px;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-chat-bubble {
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.admin-chat-bubble.user {
    background: #e0f2fe;
    color: #0369a1;
    align-self: flex-start;
}

.admin-chat-bubble.agent {
    background: #f3e8ff;
    color: #6b21a8;
    align-self: flex-end;
}

.admin-chat-bubble.system {
    background: #f3f4f6;
    color: #4b5563;
    align-self: center;
    text-align: center;
    max-width: 100%;
}

/* Dark theme overrides for Admin Panel */
body:not(.light-theme) .admin-title {
    color: #ffffff;
}

body:not(.light-theme) .admin-card-box {
    background: rgba(20, 27, 43, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .admin-control-group label {
    color: #9ca3af;
}

body:not(.light-theme) .admin-input-btn-row input {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body:not(.light-theme) .admin-queue-item {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .queue-type {
    color: #c084fc;
}

body:not(.light-theme) .queue-meta {
    color: #9ca3af;
}

body:not(.light-theme) .admin-chat-viewer-log {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-users-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.admin-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 10px;
}

.user-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-row-uid {
    font-size: 11px;
    font-weight: 800;
    color: #5b21b6;
}

.user-row-phone {
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
}

.user-row-balance-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-row-bal {
    font-size: 12px;
    font-weight: 800;
    color: #16a34a;
}

.btn-user-edit-bal {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-user-edit-bal:active {
    transform: scale(0.95);
}

body:not(.light-theme) .admin-user-row {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .user-row-uid {
    color: #c084fc;
}

body:not(.light-theme) .user-row-phone {
    color: #9ca3af;
}

/* UPI Mapping Console Styles */
.linked-upi-map-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.linked-upi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
}

.upi-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upi-item-name {
    font-size: 11px;
    font-weight: 800;
    color: #4c1d95;
}

.upi-item-id {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
}

.btn-delete-upi {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-upi:active {
    transform: scale(0.95);
}

.btn-primary-upi-badge {
    font-size: 9px;
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 3px;
}

body:not(.light-theme) .linked-upi-item {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .upi-item-name {
    color: #c084fc;
}

body:not(.light-theme) .btn-primary-upi-badge {
    background: rgba(67, 56, 202, 0.2);
    color: #818cf8;
}

/* UPI App Selector & OTP Styles */
.upi-app-option {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    user-select: none;
}
.upi-app-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.upi-app-option:active {
    transform: translateY(0);
}

body:not(.light-theme) .upi-app-option {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #d1d5db !important;
}

body:not(.light-theme) .upi-app-option.active {
    background: #2e1065 !important;
    border-color: #a78bfa !important;
    color: #ddd6fe !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2) !important;
}

body:not(.light-theme) #upi-otp-container {
    border-top-color: #374151 !important;
}

body:not(.light-theme) #upi-otp-input {
    background: #111827 !important;
    color: #f97316 !important;
    border-color: #ea580c !important;
}

/* Select App Screen Styling */
.select-app-item {
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}
.select-app-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-color: #e5e7eb;
}
.select-app-item:active {
    transform: translateY(0);
}

body:not(.light-theme) .select-app-card {
    background: #111827 !important;
}

body:not(.light-theme) .select-app-header {
    background: #1f2937 !important;
    border-bottom: 1px solid #374151 !important;
}

body:not(.light-theme) .select-app-header span {
    color: #f9fafb !important;
}

body:not(.light-theme) .select-app-item {
    background: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

body:not(.light-theme) .select-app-item span {
    color: #f3f4f6 !important;
}

body:not(.light-theme) .app-badge-buy {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

body:not(.light-theme) .app-badge-sell {
    border-color: #f87171 !important;
    color: #f87171 !important;
}

/* ==========================================================================
   Full-Screen Buy Flow Modal Styles
   ========================================================================== */
.full-screen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: #f9fafb !important;
    display: none;
    overflow-y: auto;
}

.full-screen-modal.active {
    display: block !important;
}

.full-screen-wrapper {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}

.full-screen-card {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #f9fafb !important;
    display: flex;
    flex-direction: column;
}

/* Header */
.buy-flow-header {
    height: 60px;
    background: #ffffff;
    border-bottom: 1.5px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.btn-back-arrow {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    outline: none;
}

.buy-flow-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
}

/* Step Views */
.buy-step-view {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.buy-step-view.active {
    display: flex !important;
}

/* Scroll Content */
.buy-scroll-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.buy-scroll-content::-webkit-scrollbar {
    display: none;
}

/* Order Summary Card */
.order-summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    border: 1.5px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.summary-label {
    color: #6b7280;
    font-weight: 700;
}

.summary-val {
    color: #1f2937;
    font-weight: 800;
}

.summary-val.font-bold {
    font-size: 15px;
}

.summary-val.purple-text {
    color: #7c3aed;
}

.summary-val.text-muted {
    font-size: 12px;
    color: #9ca3af;
}

/* Select UPI Section */
.select-upi-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    margin-left: 4px;
}

/* UPI Option Card */
.upi-option-card {
    background: #ffffff;
    border: 1.5px solid #f3f4f6;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}

.upi-option-card.selected {
    border-color: #7c3aed;
    background: #faf5ff;
}

.upi-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upi-app-icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 10px;
    overflow: hidden;
}

.upi-meta-info {
    display: flex;
    flex-direction: column;
}

.upi-meta-app {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
}

.upi-meta-id {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 700;
}

.upi-radio-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upi-option-card.selected .upi-radio-btn {
    border-color: #7c3aed;
    background: #7c3aed;
}

.upi-option-card.selected .upi-radio-btn::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Add UPI Button */
.btn-add-upi-buy {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1.5px dashed #d1d5db;
    background: white;
    color: #7c3aed;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-upi-buy:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

/* Footers */
.buy-flow-footer {
    padding: 16px;
    background: #ffffff;
    border-top: 1.5px solid #e5e7eb;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.buy-flow-footer.double-btn button {
    flex: 1;
}

.btn-primary-purple {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: #7c3aed;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary-purple.disabled,
.btn-primary-purple[disabled] {
    background: #d8b4fe !important;
    cursor: not-allowed !important;
}

.btn-secondary-outline {
    background: white;
    border: 1.5px solid #d1d5db;
    color: #4b5563;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

/* Step Indicator Bar */
.step-indicator-bar {
    display: flex;
    background: #ffffff;
    border-bottom: 1.5px solid #f3f4f6;
    padding: 12px 16px;
    justify-content: space-between;
    flex-shrink: 0;
}

.step-dot {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    position: relative;
    cursor: pointer;
}

.step-dot.active {
    color: #7c3aed;
    font-weight: 800;
}

.step-dot.done {
    color: #10b981;
}

/* Transfer Amount Box */
.transfer-amount-box {
    background: #f5f3ff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #ede9fe;
}

.transfer-label {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 700;
}

.transfer-value {
    font-size: 32px;
    font-weight: 900;
    color: #1f2937;
}

.timer-display-boxes {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #7c3aed;
}

.timer-box {
    background: #ffffff;
    color: #7c3aed;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ddd6fe;
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
}

/* Banners */
.warning-banner {
    background: #fef3c7;
    color: #d97706;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #fde68a;
}

.warning-banner-purple {
    background: #faf5ff;
    color: #6b7280;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border: 1.5px dashed #ddd6fe;
}

/* Transfer Details Card */
.transfer-details-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1.5px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-heading-red {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
    border-bottom: 1.5px solid #f3f4f6;
    padding-bottom: 8px;
    margin: 0;
}

.detail-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
}

.detail-val {
    color: #1f2937;
    font-weight: 800;
}

.btn-copy-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: background 0.2s;
}

.btn-copy-icon:active {
    background: #f3f4f6;
    color: #7c3aed;
}

/* Payment Wallet Display */
.payment-wallet-display-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1.5px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-display-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 700;
}

.wallet-info-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
}

.wallet-upi-id {
    color: #9ca3af;
    font-weight: 700;
}

.btn-wallet-change {
    background: none;
    border: 1.5px solid #7c3aed;
    color: #7c3aed;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}

/* Step 3 Card ID bar */
.order-id-bar {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1.5px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #4b5563;
}

.btn-copy-link {
    background: none;
    border: none;
    color: #7c3aed;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}

.paying-timer-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1.5px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.paying-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 700;
}

/* Upload Receipt Area */
.share-receipt-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-dashed-card {
    height: 180px;
    border: 2px dashed #ddd6fe;
    border-radius: 16px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 8px;
    transition: all 0.2s;
}

.upload-dashed-card:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

#receipt-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Sharing Instructions */
.sharing-instructions-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1.5px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instructions-title {
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.instructions-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    line-height: 1.6;
}

/* Help action card */
.help-action-card {
    background: #f5f3ff;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1.5px solid #ede9fe;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.help-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.help-card-left strong {
    color: #1f2937;
    font-weight: 800;
}

.help-card-left span {
    color: #6b7280;
    font-weight: 700;
}

.btn-get-help {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
}

/* Dark Mode overrides for Buy Flow */
body:not(.light-theme) .full-screen-modal {
    background: #0b0f19 !important;
}

body:not(.light-theme) .full-screen-card {
    background: #0b0f19 !important;
}

body:not(.light-theme) .buy-flow-header {
    background: #111827;
    border-bottom-color: #1f2937;
}

body:not(.light-theme) .buy-flow-title {
    color: #f3f4f6;
}

body:not(.light-theme) .btn-back-arrow svg {
    stroke: #a78bfa;
}

body:not(.light-theme) .order-summary-card {
    background: #111827;
    border-color: #1f2937;
}

body:not(.light-theme) .summary-label {
    color: #9ca3af;
}

body:not(.light-theme) .summary-val {
    color: #f3f4f6;
}

body:not(.light-theme) .summary-val.text-muted {
    color: #6b7280;
}

body:not(.light-theme) .section-subtitle {
    color: #f3f4f6;
}

body:not(.light-theme) .upi-option-card {
    background: #111827;
    border-color: #1f2937;
}

body:not(.light-theme) .upi-option-card.selected {
    background: #1e1b4b;
    border-color: #a78bfa;
}

body:not(.light-theme) .upi-app-icon-box {
    background: #1f2937;
}

body:not(.light-theme) .upi-meta-app {
    color: #f3f4f6;
}

body:not(.light-theme) .upi-meta-id {
    color: #9ca3af;
}

body:not(.light-theme) .btn-add-upi-buy {
    background: #111827;
    border-color: #374151;
    color: #a78bfa;
}

body:not(.light-theme) .buy-flow-footer {
    background: #111827;
    border-top-color: #1f2937;
}

body:not(.light-theme) .btn-secondary-outline {
    background: #111827;
    border-color: #374151;
    color: #d1d5db;
}

body:not(.light-theme) .step-indicator-bar {
    background: #111827;
    border-bottom-color: #1f2937;
}

body:not(.light-theme) .step-dot {
    color: #6b7280;
}

body:not(.light-theme) .step-dot.active {
    color: #a78bfa;
}

body:not(.light-theme) .step-dot.done {
    color: #34d399;
}

body:not(.light-theme) .transfer-amount-box {
    background: #1e1b4b;
    border-color: #312e81;
}

body:not(.light-theme) .transfer-label {
    color: #a78bfa;
}

body:not(.light-theme) .transfer-value {
    color: #f3f4f6;
}

body:not(.light-theme) .timer-box {
    background: #111827;
    border-color: #374151;
    color: #a78bfa;
}

body:not(.light-theme) .transfer-details-card {
    background: #111827;
    border-color: #1f2937;
}

body:not(.light-theme) .detail-val {
    color: #f3f4f6;
}

body:not(.light-theme) .detail-label {
    color: #9ca3af;
}

body:not(.light-theme) .payment-wallet-display-card {
    background: #111827;
    border-color: #1f2937;
}

body:not(.light-theme) .wallet-label {
    color: #9ca3af;
}

body:not(.light-theme) .wallet-info-mini {
    color: #f3f4f6;
}

body:not(.light-theme) .wallet-upi-id {
    color: #9ca3af;
}

body:not(.light-theme) .btn-wallet-change {
    border-color: #a78bfa;
    color: #a78bfa;
}

body:not(.light-theme) .order-id-bar {
    background: #111827;
    border-color: #1f2937;
    color: #d1d5db;
}

body:not(.light-theme) .btn-copy-link {
    color: #a78bfa;
}

body:not(.light-theme) .paying-timer-box {
    background: #111827;
    border-color: #1f2937;
}

body:not(.light-theme) .paying-label {
    color: #9ca3af;
}

body:not(.light-theme) .upload-dashed-card {
    background: #111827;
    border-color: #312e81;
}

body:not(.light-theme) .sharing-instructions-card {
    background: #111827;
    border-color: #1f2937;
}

body:not(.light-theme) .instructions-title {
    color: #f3f4f6;
}

body:not(.light-theme) .instructions-list {
    color: #9ca3af;
}

body:not(.light-theme) .help-action-card {
    background: #1e1b4b;
    border-color: #312e81;
}

body:not(.light-theme) .help-card-left strong {
    color: #f3f4f6;
}

body:not(.light-theme) .help-card-left span {
    color: #9ca3af;
}

body:not(.light-theme) .btn-get-help {
    color: #a78bfa;
}

body:not(.light-theme) .select-app-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

body:not(.light-theme) .select-app-item span {
    color: var(--text-main) !important;
}

body:not(.light-theme) .app-logo-box {
    background: #1f2937 !important;
    border-color: var(--border-color) !important;
}

#modal-live-chat {
    z-index: 2000 !important;
}

/* Announcement Poster Light Theme Overrides & Alignment Fixes */
body.light-theme .announcement-poster {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .poster-head h3 {
    color: #1f2937;
}
body.light-theme .poster-head p {
    color: #6b7280;
}
body.light-theme .poster-info-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #065f46;
}
body.light-theme .poster-info-box.special {
    background: #7c3aed1a;
    border-color: #7c3aed33;
    color: #5b21b6;
}
body.light-theme .poster-info-box.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}
body.light-theme .poster-info-box p {
    color: #374151;
}
body.light-theme .announcement-poster.night-bonus {
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.8), rgba(229, 231, 235, 0.8));
    border-color: rgba(99, 102, 241, 0.3);
}
body.light-theme .boost-details {
    color: #1f2937;
}
body.light-theme .glow-rate {
    color: #7c3aed;
    text-shadow: none;
}
body.light-theme .time-range {
    color: #4f46e5;
}
body.light-theme .rewards-bullets {
    color: #374151;
}
body.light-theme .table-row {
    color: #1f2937;
}

/* ==========================================================================
   USER AUTHENTICATION VIEWS (NEXT PAY)
   ========================================================================== */
.auth-view {
    font-family: var(--font-body);
}
.auth-input-wrapper input {
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}
.auth-input-wrapper input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}
.auth-view button {
    font-family: var(--font-heading);
    transition: all 0.2s ease;
}
.auth-view button:active {
    transform: scale(0.98);
}

/* Premium iOS Toggle Switch */
.switch-premium {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.switch-premium input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-premium {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: .3s;
    border-radius: 20px;
}
.slider-premium:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch-premium input:checked + .slider-premium {
    background-color: #10b981;
}
.switch-premium input:checked + .slider-premium:before {
    transform: translateX(16px);
}

/* Gray status indicator dot for deactivated state */
.pulse-dot-gray {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.15);
}
body.light-theme .table-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

/* Centered Promo Modal Styling */
.promo-modal-center {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2100;
    align-items: center;
    justify-content: center;
}
.promo-modal-center.active {
    display: flex !important;
}
.promo-modal-center .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
}
.promo-modal-card {
    animation: zoomInPopup 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes zoomInPopup {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive adjustments for widths up to 480px */
@media (max-width: 480px) {
    .promo-modal-card {
        width: 92% !important;
        max-height: 85% !important;
    }
    .promo-modal-card > div {
        padding: 16px !important;
        gap: 12px !important;
    }
    .promo-modal-card img {
        border-radius: 6px !important;
    }
    #buy-subview-usdt {
        gap: 12px !important;
    }
    #buy-subview-usdt > div {
        padding: 10px 12px !important;
    }
    #buy-subview-usdt button {
        padding: 10px !important;
        font-size: 12px !important;
    }
    #buy-subview-usdt #usdt-amount {
        font-size: 14px !important;
    }
    #buy-subview-usdt #usdt-equivalent {
        font-size: 12px !important;
    }
}