/* ==========================================================================
   Tunnel Forde LK - Modern Design System Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Light Theme Palette (Default) */
    --bg-app: #f4f6fa;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --border-color: #eef2f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --primary: #8b5cf6;
    --primary-light: rgba(139, 92, 246, 0.08);
    --secondary: #ec4899;
    --accent: #d946ef;
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.08);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.08);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.08);
    
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #db2777 100%);
    --active-nav-gradient: linear-gradient(135deg, #d946ef 0%, #db2777 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.02);
    --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.01);
    --shadow-sidebar: 4px 0 25px rgba(0, 0, 0, 0.01);
    --shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.08);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 16px;
}

/* Dark Theme Palette (Toggled) */
body.dark-mode {
    --bg-app: #090d16;
    --bg-card: #111827;
    --bg-sidebar: #111827;
    --border-color: #1f2937;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-light: rgba(167, 139, 250, 0.12);
    --success-light: rgba(52, 211, 153, 0.12);
    --warning-light: rgba(251, 191, 36, 0.12);
    --danger-light: rgba(248, 113, 113, 0.12);
    
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-sidebar: 4px 0 25px rgba(0, 0, 0, 0.2);
    --shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Futuristic Cyber Radar Loading Screen (Option 4) */
.loading-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.loading-overlay.active,
.loading-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.cyber-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
}

.cyber-spinner-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.cyber-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00f2fe;
    border-right-color: #3b82f6;
    animation: spinOrbit 1.25s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.75));
}

.cyber-ring-mid {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    border: 2px dashed rgba(168, 85, 247, 0.85);
    border-top-color: #ec4899;
    animation: spinReverse 2s linear infinite;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.65));
}

.cyber-core-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.35) 0%, rgba(139, 92, 246, 0.15) 70%, transparent 100%);
    animation: pulseCoreGlow 1.5s ease-in-out infinite alternate;
}

.cyber-logo-center {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
    background: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cyber-logo-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cyber-loader-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00f2fe, #a855f7, #00f2fe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 2.5s linear infinite;
    margin-bottom: 5px;
}

.cyber-loader-status {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.status-dot {
    display: inline-block;
    animation: dotBounce 1.4s infinite ease-in-out both;
    color: #00f2fe;
}
.status-dot:nth-child(1) { animation-delay: -0.32s; }
.status-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes spinOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
@keyframes pulseCoreGlow {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 12px #ec4899); }
}
@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 242, 254, 0.2);
    border-top-color: #00f2fe;
    border-radius: 50%;
    animation: spinOrbit 0.8s linear infinite;
}

/* Micro-animations */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----------------------------------------------------
   LOGIN LAYOUT
   ---------------------------------------------------- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(217, 70, 239, 0.1) 0%, transparent 40%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-modal);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header .brand-logo.large {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
}

.login-header .brand-logo.large .site-main-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.55), 0 0 10px rgba(6, 182, 212, 0.4);
    border: 2.5px solid rgba(139, 92, 246, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.login-header .brand-logo.large .site-main-logo:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 0 45px rgba(139, 92, 246, 0.75), 0 0 20px rgba(6, 182, 212, 0.6);
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.login-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    line-height: 1.4;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Premium Google Sign-In Button */
.google-auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.85rem 1.4rem;
    background: #ffffff;
    color: #1f2937;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.google-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.22);
    border-color: #4285F4;
    background: #ffffff;
}

.google-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.google-auth-btn .google-icon-svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.google-auth-btn .google-btn-arrow {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-left: auto;
    transition: transform 0.2s ease, color 0.2s ease;
}

.google-auth-btn:hover .google-btn-arrow {
    transform: translateX(3px);
    color: #4285F4;
}

/* Dark Mode Google Button */
body.dark-mode .google-auth-btn {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body.dark-mode .google-auth-btn:hover {
    border-color: #60a5fa;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    background: #243044;
}

/* Buttons */
.btn {
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}
body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-google {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-google:hover {
    background: var(--bg-app);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* ----------------------------------------------------
   APP WRAPPER LAYOUT
   ---------------------------------------------------- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 1. Sidebar Design (Left) */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sidebar-brand .brand-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
    border: 2px solid rgba(139, 92, 246, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-brand .brand-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.7);
}

.sidebar-brand .brand-logo .sidebar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.sidebar-brand .brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.sidebar-brand .brand-name .accent {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
}

/* User Profile Card in Sidebar */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 1rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

body.dark-mode .sidebar-user-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-avatar-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.sidebar-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
    display: block;
}

.user-status-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-sidebar);
}

.user-status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.user-status-indicator.offline {
    background: #64748b;
    box-shadow: none;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.73rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.35rem;
}

.sidebar-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 6px;
    width: fit-content;
}

.sidebar-user-badge.admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sidebar-user-badge.reseller {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.5);
    font-weight: 800;
}

.sidebar-user-badge.user {
    background: rgba(168, 85, 247, 0.15);
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-role-reseller {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    letter-spacing: 0.5px;
}

/* Header Avatar Icon */
.header-avatar-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-right: 0.35rem;
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.header-avatar-btn:hover .header-user-avatar {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.sidebar-menu {
    flex: 1 1 0%;
    min-height: 0;
    padding: 0.5rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 550;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-app);
}

.nav-link.active {
    background: var(--active-nav-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.2);
}

.sidebar-footer {
    padding: 0.75rem 1rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--bg-sidebar);
}

.social-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
body.dark-mode .social-btn {
    background: rgba(255, 255, 255, 0.05);
}
.social-btn:hover {
    transform: scale(1.1);
}
.social-btn.social-telegram:hover {
    background: #0088cc;
    color: #ffffff;
}
.social-btn.social-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--danger);
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--danger);
    color: #ffffff;
}

.btn-delete-item {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-delete-item:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* 2. Main Content Container (Right) */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-app);
    transition: background-color var(--transition-speed) ease;
}

/* Top Header */
.main-header {
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-app);
    position: sticky;
    z-index: 2147483646 !important;
    pointer-events: auto !important;
    transition: background-color var(--transition-speed) ease;
}

.header-left h2 {
    font-size: 1.6rem;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.header-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Action Buttons in Header */
.header-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: var(--border-color);
}

.header-action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

/* Coins Display */
.coin-wallet-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 0.6rem 1.15rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.text-gold {
    color: #fbbf24;
}

.spin-gold {
    animation: goldSpin 6s linear infinite;
}

@keyframes goldSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* Premium Theme Toggle Button */
.btn-theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    padding: 0.35rem 0.95rem 0.35rem 0.45rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

/* Light mode state styling (Button indicates switch to dark mode) */
body.light-mode .btn-theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.08);
}

body.light-mode .btn-theme-toggle .theme-icon-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(217, 70, 239, 0.12) 100%);
    color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

body.light-mode .btn-theme-toggle:hover {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.18);
    transform: translateY(-2px);
}

body.light-mode .btn-theme-toggle:hover .theme-icon-box {
    transform: rotate(-15deg) scale(1.12);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

/* Dark mode state styling (Button indicates switch to light mode) */
body.dark-mode .btn-theme-toggle {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 10px rgba(251, 191, 36, 0.08);
    color: #f8fafc;
}

body.dark-mode .btn-theme-toggle .theme-icon-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.18) 100%);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

body.dark-mode .btn-theme-toggle:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 6px 22px rgba(251, 191, 36, 0.25), 0 0 15px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

body.dark-mode .btn-theme-toggle:hover .theme-icon-box {
    transform: rotate(20deg) scale(1.12);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.65);
}

.theme-btn-text {
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1;
}

/* 3. Tab Routing Views Container */
.tab-view-container {
    flex: 1;
    padding: 0.5rem 2.5rem 2.5rem 2.5rem;
}

.tab-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Panel Base Cards */
.content-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.3px;
}

/* ----------------------------------------------------
   DASHBOARD VIEW METRICS
   ---------------------------------------------------- */
.select-wrapper {
    position: relative;
    min-width: 220px;
}

.form-select {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-upload {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}

.icon-download {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.icon-expiry {
    background: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
}

.icon-status {
    background: rgba(107, 114, 128, 0.08);
    color: var(--text-secondary);
}

.icon-status.active {
    background: var(--success-light);
    color: var(--success);
}
.icon-status.expired {
    background: var(--danger-light);
    color: var(--danger);
}
.icon-status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.stat-info h4 {
    font-size: 1.2rem;
    font-weight: 750;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: 20px;
    padding: 1.5rem;
}

.card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Bar Chart */
.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bar-chart-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
}

.bar-track {
    height: 10px;
    background-color: var(--bg-app);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1s ease-out;
}

.upload-fill {
    background: var(--primary-gradient);
}

.download-fill {
    background: var(--accent-gradient);
}

/* Circular Gauge */
.gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-card h4 {
    align-self: flex-start;
}

.gauge-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0.5rem 0;
}

.gauge-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gauge-bg {
    fill: none;
    stroke: var(--bg-app);
    stroke-width: 8;
}

.gauge-progress {
    fill: none;
    stroke: url(#gaugeGradient); /* Fallback to standard color if SVG gradient fails */
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

/* SVG gradient hack using dynamic css primary */
body.dark-mode .gauge-progress {
    stroke: var(--secondary);
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-text h2 {
    font-size: 1.6rem;
    font-weight: 850;
    letter-spacing: -0.5px;
}

.gauge-text span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.gauge-legend {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.gauge-legend span i {
    font-size: 0.65rem;
    margin-right: 0.25rem;
}

.gauge-legend strong {
    color: var(--text-primary);
}

/* Connection Status Placeholder Info */
.info-card {
    display: flex;
    flex-direction: column;
}

.connection-status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Empty States */
.empty-state-card {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.empty-state-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.empty-state-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin-bottom: 0.5rem;
}

/* Active Config Info Cards */
.active-config-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.config-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-title-group h4 {
    font-size: 1rem;
    font-weight: 700;
}

.config-title-group span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.badge-status {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-status.active {
    background-color: var(--success-light);
    color: var(--success);
}
.badge-status.expired,
.badge-status.danger {
    background-color: var(--danger-light);
    color: var(--danger);
}
.badge-status.pending,
.badge-status.warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

.config-details-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    background: var(--bg-app);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.detail-item span {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.15rem;
}

.detail-item strong {
    font-weight: 700;
}

.sub-link-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sub-link-input {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    font-size: 0.8rem;
    color: var(--text-secondary);
    outline: none;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-sub {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.6rem 0.95rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-sub.primary {
    background: var(--primary-gradient);
    color: #ffffff;
}

.btn-sub.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
body.dark-mode .btn-sub.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}
.btn-sub.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.btn-sub.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-sub.danger:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-sub:hover {
    transform: translateY(-1px);
}

/* ----------------------------------------------------
   PACKAGES VIEW LISTING
   ---------------------------------------------------- */
.search-bar {
    position: relative;
    min-width: 250px;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-bar input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-bar input:focus {
    border-color: var(--primary);
}

/* Package Category Switcher Tabs */
.package-category-switcher {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 0.35rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-cat-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.btn-cat-switch:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
}

.btn-cat-switch.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-cat-switch .cat-count-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
}

.btn-cat-switch.active .cat-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

@media (max-width: 640px) {
    .package-category-switcher {
        width: 100%;
        gap: 0.4rem;
    }
    .btn-cat-switch {
        width: 100%;
        justify-content: space-between;
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* ISP Quick Filter Pills */
.isp-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.btn-isp-pill {
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-isp-pill:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-isp-pill.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Package Banner / Ribbons */
.holiday-badge,
.limited-badge,
.offer-badge,
.hot-badge {
    position: absolute;
    top: 15px;
    right: -32px;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.28rem 2.2rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    pointer-events: none;
}

.holiday-badge {
    background: linear-gradient(135deg, #a855f7 0%, #db2777 100%);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.limited-badge {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

.offer-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.hot-badge {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.45);
}

.package-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.package-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    padding-right: 3.5rem;
}

.package-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #3b82f6;
    margin: 0 0 0.45rem 0;
    line-height: 1.3;
    word-break: break-word;
    max-width: 100%;
}

.package-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.package-original-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.8;
}

.package-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.package-price.offer-active {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 850;
}

.package-discount-pill {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.3px;
}

.promo-tag.offer-promo {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-weight: 700;
}

.package-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.spec-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.promo-tag {
    background: rgba(217, 70, 239, 0.08);
    color: #d946ef;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-bottom: 0.25rem;
}

.spec-muted {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.package-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-buy-coins {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-buy-coins:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    color: #d97706;
}

/* ----------------------------------------------------
   ORDERS TABLE HISTORY
   ---------------------------------------------------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.data-table th {
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}
body.dark-mode .data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.thumbnail-slip {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail-slip:hover {
    transform: scale(1.1);
}

.mobile-td-label {
    display: none;
}

.badge-coin-redeem {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 8px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.badge-order-coins {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.btn-icon-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon-delete:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.btn-clear-slips {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-clear-slips:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

/* ----------------------------------------------------
   FREE CONFIGS EXCHANGE GRID
   ---------------------------------------------------- */
.coin-balance-pill {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.configs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.config-market-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    transition: transform 0.25s ease;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.config-market-card:hover {
    transform: translateY(-2px);
}

.network-badge {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.config-market-card.locked {
    border-color: rgba(251, 191, 36, 0.3);
}

.config-market-card.unlocked {
    border-color: rgba(16, 185, 129, 0.3);
}

.config-market-card h4 {
    font-size: 1.02rem;
    font-weight: 750;
    margin-right: 3.5rem; /* Save space for badge */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config-market-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.config-market-card .sub-link-input-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.config-market-card .sub-link-input {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.config-market-card .btn-sub {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Glassmorphism Lock Overlay for configurations */
.config-lock-overlay {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.lock-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.btn-unlock-config {
    background: var(--gold-gradient);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
}

.btn-unlock-config:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.3);
}

/* ----------------------------------------------------
   SYSTEM MESSAGES & ANNOUNCEMENTS
   ---------------------------------------------------- */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.announcement-item {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    background-color: var(--bg-card);
    transition: transform var(--transition-speed) ease;
}

.announcement-item:hover {
    transform: translateX(4px);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.announcement-header h4 {
    font-size: 1rem;
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-item.info h4 {
    color: var(--primary);
}

.announcement-item.warning h4 {
    color: var(--warning);
}

.announcement-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.announcement-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ----------------------------------------------------
   COMMUNITY POSTS GRID
   ---------------------------------------------------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.post-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.post-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
}

.post-link:hover i {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* ----------------------------------------------------
   DOWNLOAD APP CARDS & SETUP GUIDE
   ---------------------------------------------------- */
.download-app-card {
    padding: 1.75rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.download-app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.download-app-card.android-theme:hover {
    border-color: rgba(16, 185, 129, 0.45);
}

.download-app-card.ios-theme:hover {
    border-color: rgba(59, 130, 246, 0.45);
}

.download-app-card.pc-theme:hover {
    border-color: rgba(139, 92, 246, 0.45);
}

.download-app-card.support-theme:hover {
    border-color: rgba(236, 72, 153, 0.45);
}

.app-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.app-platform-icon.android {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.app-platform-icon.ios {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.app-platform-icon.pc {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.app-platform-icon.support {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.25);
}

.app-platform-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.app-card-badge.android { color: #10b981; }
.app-card-badge.ios { color: #3b82f6; }
.app-card-badge.pc { color: #8b5cf6; }
.app-card-badge.support { color: #ec4899; }

.app-platform-meta h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.app-version {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.app-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.app-setup-steps {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8rem;
    line-height: 1.45;
}

.step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-desc {
    color: var(--text-secondary);
    flex: 1;
}

.step-desc strong {
    color: var(--text-primary);
}

.app-download-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-download-primary {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-download-primary i {
    font-size: 1.5rem;
}

.btn-download-primary div {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.btn-download-primary small {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.9;
}

.btn-download-primary strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.btn-download-primary.android {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-download-primary.android:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-download-primary.ios {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}
.btn-download-primary.ios:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-download-primary.pc {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}
.btn-download-primary.pc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-download-primary.telegram {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}
.btn-download-primary.telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-download-primary.support {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
    border: none;
    cursor: pointer;
}
.btn-download-primary.support:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.btn-download-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

/* ----------------------------------------------------
   ADMIN CONTROL PANEL
   ---------------------------------------------------- */
.admin-nav-link {
    border: 1px dashed rgba(239, 68, 68, 0.3);
}

.admin-nav-link:hover {
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .admin-grid-layout {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.admin-section {
    border-color: rgba(239, 68, 68, 0.15);
}

.admin-slips-section {
    display: flex;
    flex-direction: column;
}

.admin-add-config-section {
    display: flex;
    flex-direction: column;
}

.admin-slips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 260px;
    max-height: 520px;
    overflow-y: auto;
}

/* Admin Client Registry User Info & Avatar */
.admin-client-info-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-client-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.admin-client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.admin-client-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.admin-client-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.admin-client-email {
    font-size: 0.74rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.admin-client-badges {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.15rem;
}

.client-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-block;
}

.client-badge.admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.client-badge.reseller {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.45);
    font-weight: 800;
}

.client-badge.user {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Reseller Wholesale Banner in Packages View */
.reseller-vip-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.reseller-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.reseller-vip-content h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f59e0b;
}

.reseller-vip-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.package-price.reseller-active {
    color: #f59e0b !important;
    font-weight: 800 !important;
}

.package-discount-pill.reseller-pill {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    font-weight: 700 !important;
}

.client-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.client-badge.inactive {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Admin Live Support Chats Layout */
.admin-chats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    height: 480px;
}

@media (min-width: 860px) {
    .admin-chats-container {
        grid-template-columns: 310px 1fr;
    }
}

.admin-chats-sidebar {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-app);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-chats-main {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    background: var(--bg-card);
    overflow: hidden;
}

.admin-chat-thread-item {
    transition: all 0.2s ease;
}

.admin-chat-thread-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-1px);
}

/* WhatsApp-style Chat Date Separator */
.chat-date-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.85rem 0 0.65rem 0;
    width: 100%;
    position: relative;
    user-select: none;
    z-index: 1;
}

.chat-date-pill {
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    letter-spacing: 0.3px;
    text-align: center;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .chat-date-pill {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Live Support Chat Message Rows & Avatars */
.chat-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    max-width: 85%;
}

.chat-msg-row.msg-incoming {
    align-self: flex-start;
    flex-direction: row;
}

.chat-msg-row.msg-outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: var(--bg-card);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chat-msg-row.msg-outgoing .chat-msg-avatar {
    border-color: rgba(16, 185, 129, 0.6);
}

.chat-msg-row.msg-incoming .chat-msg-avatar {
    border-color: rgba(139, 92, 246, 0.5);
}

.chat-avatar-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    animation: pulseBadgeGreen 2s infinite;
    transition: all 0.3s ease;
}

.chat-avatar-status-dot.offline {
    background: #64748b !important;
    box-shadow: none !important;
    animation: none !important;
}

.chat-status-pill {
    font-size: 0.74rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    transition: all 0.25s ease;
}

.chat-status-pill.online {
    color: #10b981;
}

.chat-status-pill.online i {
    color: #10b981;
    font-size: 0.48rem;
    animation: pulseBadgeGreen 2s infinite;
}

.chat-status-pill.offline {
    color: #94a3b8;
}

.chat-status-pill.offline i {
    color: #64748b;
    font-size: 0.48rem;
    animation: none;
}

.chat-msg-bubble {
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: var(--shadow-sm);
    min-width: 85px;
    word-break: break-word;
}

/* User outgoing bubble: WhatsApp Green theme */
.chat-msg-row.msg-outgoing .chat-msg-bubble {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* In admin view, outgoing is admin (purple/indigo) */
.admin-chats-main .chat-msg-row.msg-outgoing .chat-msg-bubble {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.chat-msg-row.msg-incoming .chat-msg-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 16px 16px 16px 4px;
}

.chat-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2px;
}

.chat-msg-row.msg-outgoing .chat-msg-header {
    justify-content: flex-end;
}

.chat-msg-sender-name {
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-msg-row.msg-outgoing .chat-msg-sender-name {
    display: none;
}

.chat-reply-trigger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.45;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.chat-msg-row:hover .chat-reply-trigger-btn,
.chat-reply-trigger-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.chat-msg-row.msg-outgoing .chat-reply-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-msg-row.msg-incoming .chat-reply-trigger-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .chat-reply-trigger-btn {
        opacity: 0.8;
    }
}

/* WhatsApp Style Quoted Message inside Bubble */
.chat-quote-box {
    display: flex;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    max-width: 100%;
}

.chat-quote-box:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.chat-msg-row.msg-incoming .chat-quote-box {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .chat-msg-row.msg-incoming .chat-quote-box {
    background: rgba(255, 255, 255, 0.06);
}

.chat-quote-accent {
    width: 4px;
    min-width: 4px;
    background: #10b981;
    flex-shrink: 0;
}

.quote-admin-theme .chat-quote-accent {
    background: #8b5cf6;
}

.chat-quote-body {
    padding: 4px 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.chat-quote-sender {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-msg-row.msg-outgoing .chat-quote-sender {
    color: #a7f3d0;
}

.admin-chats-main .chat-msg-row.msg-outgoing .chat-quote-sender {
    color: #ddd6fe;
}

.chat-msg-row.msg-incoming .chat-quote-sender {
    color: var(--primary);
}

.chat-quote-text {
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.chat-msg-row.msg-incoming .chat-quote-text {
    color: var(--text-secondary);
}

/* WhatsApp Style Floating Reply Bar above Chat Input */
.chat-reply-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.6rem;
    position: relative;
    animation: slideDownReply 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

@keyframes slideDownReply {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-reply-bar.user-reply-theme {
    border-left: 4px solid #10b981;
}

.chat-reply-bar.admin-reply-theme {
    border-left: 4px solid #8b5cf6;
}

.chat-reply-bar-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.chat-reply-bar-header {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-reply-theme .chat-reply-bar-header {
    color: #10b981;
}

.admin-reply-theme .chat-reply-bar-header {
    color: #8b5cf6;
}

.chat-reply-bar-snippet {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-reply-bar-close {
    background: rgba(148, 163, 184, 0.15);
    border: none;
    color: var(--text-secondary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-reply-bar-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: scale(1.1);
}

/* Jump to message highlight pulse */
@keyframes chatJumpPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    }
    30% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.35);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        filter: brightness(1);
    }
}

.chat-msg-row.chat-bubble-highlight .chat-msg-bubble {
    animation: chatJumpPulse 1.4s ease-out;
}

.chat-msg-text {
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg-time {
    font-size: 0.62rem;
    align-self: flex-end;
    opacity: 0.85;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* WhatsApp Style Delivery & Read Status Ticks */
.chat-status-ticks {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    margin-left: 2px;
    vertical-align: middle;
}

.chat-status-ticks.ticks-delivered {
    color: rgba(255, 255, 255, 0.55);
}

.chat-status-ticks.ticks-read {
    color: #38bdf8;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

/* WhatsApp Style Green Unread Badges for Thread Items */
.whatsapp-unread-badge {
    background: #22c55e;
    color: #ffffff;
    min-width: 19px;
    height: 19px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    animation: pulseBadgeGreen 2s infinite;
    flex-shrink: 0;
}

/* Sidebar Navigation Link Unread Badges */
.nav-msg-badge {
    margin-left: auto;
    background: #10b981;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: pulseBadgeGreen 1.5s infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-msg-pulse-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseBadgeGreen 1.5s infinite;
    pointer-events: none;
}

.nav-link.has-unread {
    position: relative;
    border-left: 3px solid #10b981 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #ffffff !important;
    animation: pulseSidebarGlow 2s infinite alternate;
}

@keyframes pulseSidebarGlow {
    0% {
        box-shadow: inset 0 0 6px rgba(16, 185, 129, 0.25);
    }
    100% {
        box-shadow: inset 0 0 18px rgba(16, 185, 129, 0.55), 0 0 12px rgba(16, 185, 129, 0.3);
    }
}

.mobile-notif-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseBadgeGreen 2s infinite;
}

@keyframes pulseBadgeGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* User Dashboard Chat Alert Banner */
.user-chat-alert-banner {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    animation: pulseBadgeGreen 2.5s infinite;
    transition: transform 0.2s;
}

.user-chat-alert-banner:hover {
    transform: translateY(-2px);
}

.whatsapp-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
}

/* Header Live Support Alert Pill */
.header-chat-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    animation: pulseBadgeGreen 2s infinite;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-right: 0.4rem;
}

.header-chat-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.7);
}

.header-chat-alert .badge {
    background: #ffffff;
    color: #059669;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Floating Action Live Chat Button */
.floating-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .floating-chat-widget {
        bottom: 5.5rem;
        right: 1.25rem;
    }
}

.floating-chat-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    position: relative;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    outline: none;
}

.floating-chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.65);
}

/* Floating Chat Notification Badge - High Contrast Notification Red */
.floating-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.85);
    border: 2px solid var(--bg-card);
    animation: pulseFloatingBadge 1.8s infinite;
    z-index: 10;
}

@keyframes pulseFloatingBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 16px rgba(239, 68, 68, 1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    }
}

/* Radar Ping Wave on Floating Button when Unread Messages Exist */
.floating-chat-widget.has-unread .floating-chat-btn {
    animation: chatButtonRingPing 2s infinite;
}

@keyframes chatButtonRingPing {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.85), 0 6px 20px rgba(16, 185, 129, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0), 0 6px 20px rgba(16, 185, 129, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 6px 20px rgba(16, 185, 129, 0.5);
    }
}

.floating-chat-btn .whatsapp-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    border: 2px solid var(--bg-app);
}

.floating-chat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideInLeft 0.3s ease-out;
    border-left: 3px solid #10b981;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.admin-slip-card {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.slip-user-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
}

.slip-user-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.slip-meta-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    background: var(--bg-card);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.slip-meta-details span {
    color: var(--text-secondary);
}

.slip-meta-details strong {
    font-weight: 700;
    color: var(--primary);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}
body.dark-mode .form-control {
    background-color: var(--bg-card);
}
.form-control:focus {
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
}

/* ----------------------------------------------------
   MODAL OVERLAY BACKDROP
   ---------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.25s ease forwards;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-modal);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.3px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.slip-preview-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    object-fit: contain;
    background: #000;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ----------------------------------------------------
   GLOBAL APP FOOTER
   ---------------------------------------------------- */
.app-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.app-footer strong {
    color: var(--text-secondary);
}

.designer-tag span {
    font-weight: 700;
}

/* ----------------------------------------------------
   RESPONSIVE MOBILE ARCHITECTURE (OFF-CANVAS & BOTTOM NAV)
   ---------------------------------------------------- */

/* Base element definitions */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.btn-close-sidebar {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.btn-close-sidebar:hover {
    background: var(--danger);
    color: #ffffff;
}

/* Mobile Drawer Backdrop - Hidden on desktop */
.sidebar-backdrop {
    display: none !important;
}

body.sidebar-locked {
    overflow: hidden;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 0 0.5rem;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.dark-mode .mobile-bottom-nav {
    background: rgba(18, 22, 36, 0.94);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 72px;
}

.bottom-nav-item i {
    font-size: 1.15rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: scale(1.15);
    color: var(--primary);
}

.header-titles {
    display: flex;
    flex-direction: column;
}

/* Tablet & Mobile Breakpoint (<= 991px): Off-canvas Navigation */
@media (max-width: 991px) {
    .sidebar-backdrop {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 2147483640 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar {
        width: 280px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        z-index: 2147483647 !important;
        pointer-events: auto !important;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.4);
        background-color: var(--bg-sidebar);
        overflow: hidden;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar-brand {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        padding: 1.5rem;
    }
    .sidebar-brand .brand-name,
    .sidebar-menu span,
    .sidebar-footer span {
        display: flex !important;
    }
    .nav-link {
        justify-content: flex-start !important;
        padding: 0.85rem 1.25rem !important;
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .btn-close-sidebar {
        display: inline-flex;
    }
}

/* Mobile Devices Breakpoint (<= 768px): Tailored Mobile App UX */
@media (max-width: 768px) {
    /* Compact, fixed Mobile Header */
    .main-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.75rem 1rem !important;
        gap: 0.5rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 990 !important;
        background-color: var(--bg-app) !important;
        border-bottom: 1px solid var(--border-color);
    }

    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 0.65rem !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    .header-avatar-btn {
        display: none !important;
    }

    .header-titles {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .header-titles h2 {
        font-size: 1.05rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 170px !important;
    }

    .header-titles p {
        display: none !important;
    }

    .header-right {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
        width: auto !important;
        justify-content: flex-end !important;
    }

    .coin-wallet-widget {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.78rem !important;
        gap: 0.35rem !important;
        border-radius: 10px !important;
    }

    .header-action-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }

    .btn-theme-toggle {
        padding: 0 !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .btn-theme-toggle .theme-btn-text {
        display: none !important;
    }

    .btn-theme-toggle .theme-icon-box {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Tab Content View Container with Bottom Padding for Bottom Nav */
    .tab-view-container {
        padding: 0.85rem 0.75rem 5.5rem 0.75rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile Login Screen Design */
    .login-container {
        padding: 1.25rem 0.85rem !important;
        min-height: 100vh !important;
    }

    .login-card {
        padding: 2rem 1.25rem !important;
        border-radius: 22px !important;
        max-width: 390px !important;
        width: 100% !important;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
    }

    .login-header .brand-logo.large .site-main-logo {
        width: 76px !important;
        height: 76px !important;
    }

    .login-header h2 {
        font-size: 1.45rem !important;
        margin-bottom: 0.35rem !important;
    }

    .login-header p {
        font-size: 0.85rem !important;
        margin-bottom: 1.25rem !important;
    }

    .google-auth-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        border-radius: 12px !important;
    }

    /* Dashboard: 2x2 Stats Grid for Native App Feel */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .stat-card {
        padding: 0.85rem 0.75rem !important;
        border-radius: 14px !important;
        gap: 0.5rem !important;
    }

    .stat-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }

    .stat-info span {
        font-size: 0.7rem !important;
    }

    .stat-info h4 {
        font-size: 1.05rem !important;
    }

    /* Charts & Visual Metrics Grid */
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
        margin-top: 1rem !important;
    }

    .card {
        padding: 1.15rem 0.9rem !important;
        border-radius: 18px !important;
    }

    .gauge-container {
        width: 140px !important;
        height: 140px !important;
        margin: 0.5rem auto !important;
    }

    .gauge-text h2 {
        font-size: 1.5rem !important;
    }

    .gauge-legend {
        flex-direction: column !important;
        gap: 0.35rem !important;
        align-items: center !important;
        font-size: 0.82rem !important;
    }

    /* Content Section & Filters */
    .content-section {
        padding: 1.15rem 0.9rem !important;
        border-radius: 16px !important;
        margin-bottom: 1rem !important;
    }

    .section-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
    }

    .section-header > div {
        width: 100% !important;
    }

    .select-wrapper {
        width: 100% !important;
    }

    .form-select {
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.65rem 0.85rem !important;
    }

    #btnDeleteSelectedConfig {
        width: 100% !important;
        justify-content: center !important;
    }

    .search-bar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Active Configurations Card */
    .active-config-card {
        padding: 1.15rem 0.9rem !important;
        border-radius: 16px !important;
    }

    .config-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.65rem !important;
    }

    .config-title-group h4 {
        font-size: 1.05rem !important;
        word-break: break-word !important;
    }

    .config-details-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .detail-item span {
        font-size: 0.72rem !important;
    }

    .detail-item strong {
        font-size: 0.85rem !important;
        word-break: break-word !important;
    }

    .sub-link-input-group {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .sub-link-input {
        font-size: 0.78rem !important;
        padding: 0.6rem 0.75rem !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .btn-sub {
        padding: 0.6rem 0.85rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .configs-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .config-market-card {
        padding: 1.15rem 1rem !important;
    }

    .action-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .action-buttons .btn,
    .action-buttons .btn-delete-item {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
    }

    /* Packages Grid */
    .packages-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .package-card {
        padding: 1.25rem 1rem !important;
        border-radius: 18px !important;
    }

    .package-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .package-actions .btn {
        width: 100% !important;
    }

    /* Dialogs and Modals on Mobile (Sheet Style) */
    .modal-overlay,
    .modal-backdrop {
        padding: 0.75rem !important;
        align-items: flex-end !important;
    }

    .modal-card {
        max-width: 100% !important;
        border-radius: 22px 22px 0 0 !important;
        max-height: 90vh !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 auto !important;
    }

    .modal-header {
        padding: 1.15rem 1rem !important;
    }

    .modal-body {
        padding: 1.15rem 1rem !important;
        overflow-y: auto !important;
    }

    .modal-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .modal-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Mobile Bottom Navigation Bar activation */
    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Responsive tables */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px !important;
    }

    .data-table {
        min-width: 540px !important;
    }

    /* Orders / Slips History Mobile Card View (Zero Horizontal Scrolling) */
    #view-orders .content-section {
        padding: 1rem 0.5rem !important;
        overflow-x: hidden !important;
    }

    #view-orders .table-responsive {
        overflow-x: hidden !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        display: block !important;
    }

    #view-orders table.data-table {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        border-collapse: separate !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    #view-orders table.data-table thead {
        display: none !important;
    }

    #view-orders table.data-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #view-orders table.data-table tbody tr.order-card-row {
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 14px !important;
        padding: 0.85rem 0.85rem !important;
        gap: 0.45rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    body.dark-mode #view-orders table.data-table tbody tr.order-card-row {
        background: rgba(26, 32, 44, 0.85) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
    }

    #view-orders table.data-table tbody tr.order-card-row td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.4rem 0 !important;
        border-bottom: 1px solid rgba(125, 125, 125, 0.1) !important;
        font-size: 0.82rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: right !important;
    }

    body.dark-mode #view-orders table.data-table tbody tr.order-card-row td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    #view-orders table.data-table tbody tr.order-card-row td:last-child {
        border-bottom: none !important;
        padding-bottom: 0.1rem !important;
    }

    #view-orders table.data-table tbody tr.order-card-row td:first-child {
        padding-top: 0.1rem !important;
    }

    .mobile-td-label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        color: var(--text-secondary) !important;
        font-size: 0.77rem !important;
        font-weight: 600 !important;
        text-align: left !important;
        flex-shrink: 0 !important;
    }

    .order-td-value {
        text-align: right !important;
        word-break: break-word !important;
        max-width: 65% !important;
        font-size: 0.82rem !important;
    }

    #view-orders .data-table tbody tr:not(.order-card-row) {
        display: block !important;
        width: 100% !important;
        background: var(--bg-card) !important;
        border-radius: 14px !important;
        border: 1px solid var(--border-color) !important;
    }

    #view-orders .data-table tbody tr:not(.order-card-row) td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 2.5rem 1rem !important;
    }

    /* Footer */
    .app-footer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.5rem 1rem 5.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

/* Extra Small Phones Breakpoint (<= 480px) */
@media (max-width: 480px) {
    .header-titles h2 {
        max-width: 130px !important;
        font-size: 0.98rem !important;
    }

    .coin-wallet-widget {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.72rem !important;
    }

    .config-details-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

/* Compact Sidebar for Short Screens (Mobile Desktop Mode / Landscape / Low Height) */
@media (max-height: 860px) {
    .sidebar-brand {
        padding: 0.85rem 1.25rem !important;
    }
    .sidebar-brand .brand-logo {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    .sidebar-user-card {
        margin: 0.2rem 0.85rem 0.4rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    .sidebar-avatar-wrapper, .sidebar-user-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    .sidebar-menu {
        padding: 0.2rem 0.75rem !important;
    }
    .nav-list {
        gap: 0.25rem !important;
    }
    .nav-link {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.86rem !important;
    }
    .sidebar-footer {
        padding: 0.6rem 0.85rem !important;
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
        gap: 0.4rem !important;
    }
    .btn-logout {
        padding: 0.55rem 0.85rem !important;
        font-size: 0.84rem !important;
    }
    .social-contact {
        font-size: 0.7rem !important;
    }
    .social-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-height: 700px) {
    .sidebar-brand {
        padding: 0.6rem 1rem !important;
    }
    .sidebar-user-card {
        padding: 0.35rem 0.65rem !important;
        margin: 0.15rem 0.65rem 0.3rem !important;
    }
    .sidebar-avatar-wrapper, .sidebar-user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    .nav-link {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.82rem !important;
    }
    .social-contact {
        display: none !important;
    }
    .sidebar-footer {
        padding: 0.5rem 0.75rem !important;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
    }
    .btn-logout {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   Package Expiry Alert Banner
   ========================================================================== */
.package-expiry-alert {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
    animation: fadeIn 0.3s ease;
}

.expiry-alert-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.expiry-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.expiry-alert-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.expiry-alert-text strong {
    font-size: 0.92rem;
    color: #fbbf24;
    line-height: 1.2;
}

.expiry-alert-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 0.15rem;
}

.btn-renew-urgent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-renew-urgent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   Server Node Status & Latency Bar
   ========================================================================== */
.server-node-status-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.node-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.node-status-pill.online {
    border-color: rgba(16, 185, 129, 0.3);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 4px #10b981; }
    50% { transform: scale(1.2); box-shadow: 0 0 12px #10b981; }
    100% { transform: scale(0.95); box-shadow: 0 0 4px #10b981; }
}

.node-title {
    color: var(--text-secondary);
}

.node-state {
    color: #10b981;
    font-weight: 700;
}

.node-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: var(--shadow-card);
}

.btn-pwa-install {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s ease;
}

.btn-pwa-install:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   1-Click Device App Launchers & Modal
   ========================================================================== */
.btn-app-quick {
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-app-quick.netmod-android {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-app-quick.netmod-android:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-app-quick.v2box-ios {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.btn-app-quick.v2box-ios:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-app-quick.netmod-pc {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-app-quick.netmod-pc:hover {
    background: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-sub.launch {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(217, 70, 239, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: var(--primary);
    font-weight: 700;
}
.btn-sub.launch:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.device-app-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.device-app-card {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.device-app-card:hover {
    background: var(--bg-app);
    border-color: var(--primary);
    transform: translateX(4px);
}

.device-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.device-app-icon.android {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.device-app-icon.ios {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.device-app-icon.pc {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.device-app-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.device-app-info strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.device-app-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.device-app-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ----------------------------------------------------
   ANIMATED COPY SUCCESS POPUP NOTIFICATION
   ---------------------------------------------------- */
.copy-popup-container {
    position: fixed;
    top: 1.8rem;
    left: 50%;
    transform: translate(-50%, -40px) scale(0.85);
    opacity: 0;
    z-index: 999999;
    pointer-events: none;
    transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
}

.copy-popup-container.active {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
}

.copy-popup-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.4rem;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    border-radius: 50px;
    box-shadow: 0 12px 35px -5px rgba(16, 185, 129, 0.45), 0 0 25px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.copy-popup-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.copy-popup-text {
    display: flex;
    flex-direction: column;
}

.copy-popup-title {
    font-size: 0.95rem;
    font-weight: 750;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.copy-popup-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

@keyframes copyIconBounce {
    0% { transform: scale(0.3) rotate(-45deg); opacity: 0; }
    60% { transform: scale(1.3) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.copy-popup-container.active .copy-popup-icon {
    animation: copyIconBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.btn-copied,
.btn-sub.btn-copied {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.45) !important;
}

/* System Maintenance & Alerts Animations */
@keyframes alertModalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#maintenanceAlertModal > div,
#freeVpnAlertModal > div {
    animation: alertModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Special Day & Holiday Celebration Modal Animations */
.special-greeting-card {
    animation: greetingCardPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes greetingCardPop {
    0% {
        opacity: 0;
        transform: scale(0.82) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px) scale(1.04); }
}

@keyframes rainbowBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.confetti-piece {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    opacity: 0.9;
    animation: confettiFall 2.8s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translateY(380px) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* ==========================================================================
   Monetag Ads Containment & Universal Click Shield
   ========================================================================== */

/* Universal clickability guarantee for core navigation */
.sidebar,
.sidebar * {
    pointer-events: auto !important;
}

.main-header,
.main-header * {
    pointer-events: auto !important;
}

.mobile-bottom-nav,
.mobile-bottom-nav * {
    pointer-events: auto !important;
}

.mobile-menu-btn,
.mobile-menu-btn * {
    pointer-events: auto !important;
}

/* Modals sit directly beneath sidebar/header so they are crystal clear */
.modal-backdrop,
.modal-overlay,
.loading-overlay {
    z-index: 2147483640 !important;
}

/* Free configs cards & copy buttons must always stay above ad clickcatchers */
#view-freeConfigs {
    position: relative;
    z-index: 5000;
}

#view-freeConfigs .configs-grid,
#view-freeConfigs .config-card,
#view-freeConfigs button,
#view-freeConfigs input {
    position: relative;
    z-index: 5001;
    pointer-events: auto !important;
}

/* Hide ad zone when outside Free Configs */
body:not(.free-configs-active) #monetagFreeConfigsAdZone {
    display: none !important;
}

/* Strictly hide and neutralize any ad push notifications or vignettes outside Free Configs */
body:not(.free-configs-active) [class*="vignette"],
body:not(.free-configs-active) [id*="vignette"],
body:not(.free-configs-active) [class*="pfe-"],
body:not(.free-configs-active) [class*="in-page-push"],
body:not(.free-configs-active) [class*="push-notification"],
body:not(.free-configs-active) [id*="monetag-zone"] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Free Configs Section Styling */
.free-hero-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2rem 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.free-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.isp-filter-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.isp-filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}
.isp-filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}
.guide-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.guide-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.guide-step-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.app-dl-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.app-dl-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: var(--bg-hover);
}

/* ==========================================================================
   TOP 3 DATA CHAMPIONS LEADERBOARD STYLES
   ========================================================================== */
.leaderboard-section {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leaderboard-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.leaderboard-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.leaderboard-title .trophy-icon {
    font-size: 1.45rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.leaderboard-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.leaderboard-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.leaderboard-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.leaderboard-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-refresh-leaderboard {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-hover);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-leaderboard:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.leaderboard-card {
    position: relative;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.leaderboard-card:hover {
    transform: translateY(-4px);
}

/* Rank 1: Gold */
.leaderboard-card.rank-gold {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.07) 0%, var(--bg-card) 60%);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15), inset 0 0 25px rgba(245, 158, 11, 0.04);
}

.leaderboard-card.rank-gold:hover {
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.25);
}

/* Rank 2: Silver */
.leaderboard-card.rank-silver {
    border-color: rgba(148, 163, 184, 0.5);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.08) 0%, var(--bg-card) 60%);
    box-shadow: 0 6px 24px rgba(148, 163, 184, 0.12), inset 0 0 20px rgba(148, 163, 184, 0.03);
}

.leaderboard-card.rank-silver:hover {
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.22);
}

/* Rank 3: Bronze */
.leaderboard-card.rank-bronze {
    border-color: rgba(217, 119, 6, 0.45);
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.07) 0%, var(--bg-card) 60%);
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.12), inset 0 0 20px rgba(217, 119, 6, 0.03);
}

.leaderboard-card.rank-bronze:hover {
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.22);
}

.leaderboard-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rank-gold .leaderboard-ribbon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.rank-silver .leaderboard-ribbon {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(148, 163, 184, 0.4);
}

.rank-bronze .leaderboard-ribbon {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}

.champion-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0.5rem 0 0.85rem 0;
}

.champion-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-app);
}

.rank-gold .champion-avatar-img {
    border: 3.5px solid #fbbf24;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}

.rank-silver .champion-avatar-img {
    border: 3.5px solid #cbd5e1;
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.4);
}

.rank-bronze .champion-avatar-img {
    border: 3.5px solid #f59e0b;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.4);
}

.champion-rank-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.champion-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.2rem 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champion-email {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: monospace;
    margin-bottom: 0.65rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champion-plan-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 1.15rem;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champion-data-box {
    width: 100%;
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    margin-top: auto;
}

.champion-data-val {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.rank-gold .champion-data-val {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-silver .champion-data-val {
    background: linear-gradient(135deg, #94a3b8, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-bronze .champion-data-val {
    background: linear-gradient(135deg, #d97706, #92400e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.champion-data-unit {
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.15rem;
}

.champion-data-lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    font-weight: 600;
}

.leaderboard-footer-note {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Public Login Page Leaderboard Banner Button */
.btn-public-leaderboard-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
    padding: 0.65rem 1rem;
    margin: 0.85rem auto 0 auto;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-public-leaderboard-preview:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
    transform: translateY(-1px);
}


/* ====================================================
   RESELLER COINS WALLET CARD & TOP-UP STYLING
   ==================================================== */
.reseller-wallet-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(17, 24, 39, 0.95) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 22px;
    padding: 1.6rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(245, 158, 11, 0.08);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.reseller-wallet-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.reseller-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reseller-wallet-title-area {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.reseller-wallet-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.reseller-wallet-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.reseller-wallet-title .sinhala-sub {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.reseller-wallet-desc {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reseller-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reseller-wallet-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.1rem;
}

.reseller-balance-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reseller-balance-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reseller-balance-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.reseller-balance-counter {
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.reseller-coin-unit {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fbbf24;
}

.reseller-cash-equivalent {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.reseller-cash-equivalent .rate-tag {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.reseller-wallet-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-topup-wallet {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #000 !important;
    border: none !important;
    font-weight: 800 !important;
    padding: 0.75rem 1.35rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.2s ease !important;
}

.btn-topup-wallet:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45) !important;
}

.btn-use-coins {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.15rem !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-use-coins:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.reseller-wallet-info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    padding-top: 0.4rem;
}

.reseller-info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.76rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
}

/* Modal Amount Chips */
.topup-amount-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.topup-chip {
    position: relative;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 0.7rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.topup-chip:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
    transform: translateY(-1px);
}

.topup-chip.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.topup-chip .chip-rs {
    font-size: 0.85rem;
    font-weight: 800;
}

.topup-chip .chip-coins {
    font-size: 0.7rem;
    color: #fbbf24;
    font-weight: 700;
}

.topup-chip .chip-badge {
    position: absolute;
    top: -8px;
    right: 4px;
    background: #f59e0b;
    color: #000;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 6px;
    text-transform: uppercase;
}

.btn-copy-chip {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.btn-copy-chip:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
    border-color: #818cf8;
}

@media (max-width: 640px) {
    .reseller-wallet-body {
        flex-direction: column;
        align-items: stretch;
    }
    .reseller-wallet-actions {
        width: 100%;
        flex-direction: column;
    }
    .btn-topup-wallet, .btn-use-coins {
        width: 100%;
        justify-content: center;
    }
    .topup-amount-chips {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
