/* ==========================================================================
   AriyoGame - Client Dashboard Cyber Gold Styles
   ========================================================================== */

.dashboard-body {
    background-color: #07070a;
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    overflow-x: hidden;
}

.dashboard-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Sidebar */
.dash-sidebar {
    width: 280px;
    background: rgba(10, 10, 15, 0.95);
    border-left: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.2rem;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-smooth);
}

.sidebar-header {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.4rem;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.6rem;
}

.user-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid var(--gold-400);
    object-fit: cover;
}

.user-status-dot {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 11px;
    height: 11px;
    background-color: var(--status-online);
    border-radius: 50%;
    border: 2px solid #0a0a0f;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.vip-badge {
    font-size: 0.72rem;
    color: var(--gold-400);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.side-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.side-tab {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: all var(--transition-fast);
    position: relative;
}

.side-tab i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.side-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.side-tab.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #ffffff;
    font-weight: 800;
}

.side-tab.active i {
    color: var(--gold-400);
}

.badge-count {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
}

.badge-count.gold {
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold-400);
}

.badge-sec-ok {
    margin-right: auto;
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--status-online);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-link-main, .side-link-logout {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.side-link-main {
    color: var(--gold-400);
    background: rgba(245, 158, 11, 0.07);
}

.side-link-main:hover {
    background: rgba(245, 158, 11, 0.15);
}

.side-link-logout {
    color: #f87171;
    background: transparent;
    border: none;
    font-family: inherit;
    text-align: right;
}

.side-link-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.dash-main-wrap {
    flex: 1;
    margin-right: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dash-topbar {
    height: 75px;
    background: rgba(9, 9, 13, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle-dash {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--gold-400);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ping-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--status-online);
    box-shadow: 0 0 8px var(--status-online);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.wallet-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold-300);
}

.wallet-amount {
    font-family: 'Orbitron', 'Vazirmatn', sans-serif;
    color: #ffffff;
    font-weight: 800;
}

.btn-wallet-add {
    background: var(--gold-gradient);
    border: none;
    color: #0d0d12;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: transform var(--transition-fast);
}

.btn-wallet-add:hover {
    transform: scale(1.15);
}

.discord-sync-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #8ea1e1;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dash-content-area {
    padding: 2rem;
    flex: 1;
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

.pane-header {
    margin-bottom: 2rem;
}

.pane-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.pane-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Welcome Card */
.dash-welcome-card {
    background: linear-gradient(135deg, rgba(28, 25, 18, 0.9) 0%, rgba(13, 13, 18, 0.95) 100%);
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--glow-gold-sm);
}

.dw-subtitle {
    font-size: 0.8rem;
    color: var(--gold-400);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.dw-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.7rem;
}

.dw-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.dw-actions {
    display: flex;
    gap: 1rem;
}

.dw-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dw-logo-pulse {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 2px solid var(--gold-400);
    box-shadow: var(--glow-gold-md);
    object-fit: cover;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.3rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: var(--shadow-card);
}

.mc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.wallet-icon { background: rgba(245, 158, 11, 0.15); color: var(--gold-400); border: 1px solid rgba(245, 158, 11, 0.3); }
.server-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.shield-icon { background: rgba(16, 185, 129, 0.15); color: var(--status-online); border: 1px solid rgba(16, 185, 129, 0.3); }
.ticket-icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.mc-info {
    display: flex;
    flex-direction: column;
}

.mc-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mc-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Orbitron', 'Vazirmatn', sans-serif;
}

/* Columns & Boxes */
.dash-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dash-box {
    background: var(--card-gradient);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: var(--shadow-card);
}

.dash-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-box-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-box-header h3 i {
    color: var(--gold-400);
}

.btn-box-action {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--gold-400);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.btn-box-action:hover {
    background: rgba(245, 158, 11, 0.15);
}

/* Server Monitor List */
.server-monitor-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.sml-item {
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.sml-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.sml-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
}

.sml-badge.fivem { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.sml-badge.cs2 { background: rgba(234, 179, 8, 0.2); color: #facc15; }

.sml-info strong {
    font-size: 0.9rem;
    color: #ffffff;
}

.sml-info small {
    margin-right: auto;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.sml-stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sml-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sml-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.sml-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 10px;
}

.sml-fill.gold {
    background: var(--gold-gradient);
}

/* Security Email Preview Box */
.security-email-preview {
    background: #09090d;
    border: 1px dashed var(--border-subtle);
    border-radius: 12px;
    padding: 1.2rem;
}

.sep-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.sep-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.text-green { color: var(--status-online); }

/* Server Control Cards (Tab 2) */
.server-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.6rem;
}

.sc-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    position: relative;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sc-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
}

.sc-status.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-online);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sc-status.stopped {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sc-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.sc-specs {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.sc-address {
    background: #09090d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.82rem;
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.sc-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.btn-sc {
    padding: 0.55rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.btn-sc-start { background: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.btn-sc-start:hover { background: #10b981; color: #0d0d12; }

.btn-sc-restart { background: rgba(245, 158, 11, 0.15); color: var(--gold-400); border-color: rgba(245, 158, 11, 0.3); }
.btn-sc-restart:hover { background: var(--gold-400); color: #0d0d12; }

.btn-sc-stop { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.btn-sc-stop:hover { background: #ef4444; color: #ffffff; }

.sc-extras {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.auto-renew-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-subuser {
    background: transparent;
    border: 1px dashed var(--border-bright);
    color: var(--gold-400);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.btn-subuser:hover {
    background: rgba(245, 158, 11, 0.15);
}

/* 2FA Section (Tab 3) */
.tfa-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tfa-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.tfa-toggle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #09090d;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.tfa-details-box {
    background: #09090e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tfa-secret-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.secret-code {
    font-family: 'Orbitron', monospace;
    color: var(--gold-300);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-copy-code {
    background: transparent;
    border: none;
    color: var(--gold-400);
    cursor: pointer;
    font-size: 1rem;
}

.email-settings-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #09090d;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.notification-item i {
    font-size: 1.4rem;
}

.notification-item div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.notification-item strong {
    font-size: 0.88rem;
    color: #ffffff;
}

.badge-status-on {
    font-size: 0.75rem;
    color: var(--status-online);
    background: rgba(16, 185, 129, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
}

/* Cyber Table */
.table-responsive {
    overflow-x: auto;
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cyber-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-400);
    padding: 0.85rem 1rem;
    text-align: right;
    font-weight: 700;
    border-bottom: 1px solid var(--border-subtle);
}

.cyber-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.cyber-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge-table {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge-table.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-online);
}

.status-badge-table.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-table-action {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-subtle);
    color: var(--gold-300);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.btn-table-action:hover {
    background: var(--gold-500);
    color: #0d0d12;
}

/* Affiliate Hero */
.affiliate-hero-card {
    background: linear-gradient(135deg, rgba(28, 25, 18, 0.9) 0%, rgba(13, 13, 18, 0.95) 100%);
    border: 1px solid var(--border-bright);
    border-radius: 18px;
    padding: 2.2rem;
    box-shadow: var(--shadow-card);
}

.ahc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--gold-400);
    background: rgba(245, 158, 11, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.ahc-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.9rem;
}

.ref-link-box {
    display: flex;
    gap: 0.7rem;
    max-width: 600px;
}

.ref-link-box input {
    flex: 1;
    background: #09090d;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--gold-300);
    font-family: 'Orbitron', monospace;
    font-size: 0.88rem;
}

/* Tickets (Tab 5) */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tickets-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ticket-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: var(--shadow-card);
}

.tkt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.tkt-num {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold-400);
    font-weight: 700;
    font-size: 0.85rem;
}

.tkt-status {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-online);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.tkt-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.tkt-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.tkt-replies-wrap {
    background: #09090e;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.reply-msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.reply-msg.user {
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

.reply-msg.admin {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #ffffff;
}

.reply-sender {
    display: block;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--gold-400);
    margin-bottom: 0.25rem;
}

/* Modals extra */
.max-w-650 { max-width: 650px !important; }
.max-w-700 { max-width: 700px; }

.email-rendered-preview {
    max-height: 480px;
    overflow-y: auto;
    border-radius: 10px;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.btn-amt {
    background: #09090d;
    border: 1px solid var(--border-subtle);
    color: var(--gold-300);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.btn-amt:hover {
    border-color: var(--gold-400);
    background: rgba(245, 158, 11, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
    .dash-sidebar {
        transform: translateX(100%);
    }

    .dash-sidebar.open {
        transform: translateX(0);
    }

    .dash-main-wrap {
        margin-right: 0;
    }

    .menu-toggle-dash {
        display: flex;
    }

    .dash-columns-2 {
        grid-template-columns: 1fr;
    }

    .dash-welcome-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dw-actions {
        justify-content: center;
    }

    .dw-visual {
        display: none;
    }
}

/* ==========================================================================
   Ticket Messages Stream
   ========================================================================== */
.ticket-thread-box {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-height: 360px;
    overflow-y: auto;
    padding: 1rem;
    background: #09090e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.thread-msg {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 85%;
    position: relative;
}

.thread-msg.user {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    border-bottom-right-radius: 2px;
}

.thread-msg.admin {
    align-self: flex-end;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #ffffff;
    border-bottom-left-radius: 2px;
}

.thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
    font-size: 0.76rem;
}

.thread-sender-badge {
    font-weight: 800;
}

.thread-sender-badge.admin {
    color: var(--gold-400);
}

.thread-time {
    color: var(--text-dim);
    font-family: 'Orbitron', 'Vazirmatn', monospace;
    font-size: 0.72rem;
}

/* ==========================================================================
   Lucky Wheel & Case Opening Styles
   ========================================================================== */
.wheel-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wheel-outer-ring {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 10px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(13, 13, 20, 0.9) 70%);
    border: 3px solid var(--gold-400);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.4), inset 0 0 20px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    color: #ef4444;
    font-size: 2.2rem;
    z-index: 50;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

.cyber-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: conic-gradient(
        #151520 0deg 45deg,
        #221d10 45deg 90deg,
        #151520 90deg 135deg,
        #221d10 135deg 180deg,
        #151520 180deg 225deg,
        #221d10 225deg 270deg,
        #221d10 270deg 315deg,
        #151520 315deg 360deg
    );
    border: 2px solid rgba(245, 158, 11, 0.3);
    transition: transform 4.5s cubic-bezier(0.15, 0.95, 0.35, 1.0);
}

.wheel-sec {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    right: 0;
    transform-origin: 0% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-sec.sec-1 { transform: rotate(0deg) skewY(-45deg); }
.wheel-sec.sec-2 { transform: rotate(45deg) skewY(-45deg); }
.wheel-sec.sec-3 { transform: rotate(90deg) skewY(-45deg); }
.wheel-sec.sec-4 { transform: rotate(135deg) skewY(-45deg); }
.wheel-sec.sec-5 { transform: rotate(180deg) skewY(-45deg); }
.wheel-sec.sec-6 { transform: rotate(225deg) skewY(-45deg); }
.wheel-sec.sec-7 { transform: rotate(270deg) skewY(-45deg); }
.wheel-sec.sec-8 { transform: rotate(315deg) skewY(-45deg); }

.wheel-label {
    position: absolute;
    left: 20px;
    bottom: 25px;
    transform: skewY(45deg) rotate(22.5deg);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-300);
    text-shadow: 0 0 5px rgba(0,0,0,0.9);
}

.wheel-center-hub {
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #08080d;
    border: 3px solid var(--gold-400);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold-300);
    font-size: 0.85rem;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wheel-center-hub:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.9);
}

.wheel-info-card {
    background: #0d0d14;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 1.2rem 1.6rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

/* Case Opening */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.case-card {
    background: #0d0d14;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), var(--glow-gold-sm);
}

.case-icon-box {
    margin-bottom: 1rem;
}

.case-won-card {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    animation: pulseGlow 1.5s infinite;
}


