/* dashboard.css - Custom layout for ZeyModz Client Dashboard */

/* Variables matching the dark/red theme */
:root {
    --dash-bg: #070709;
    --dash-card-bg: rgba(15, 15, 18, 0.7);
    --dash-border: rgba(255, 0, 0, 0.15);
    --dash-primary: #ff0000;
    --dash-text: #e0e0e0;
    --dash-text-muted: #888899;
}

body {
    background-color: var(--dash-bg);
}

/* Navbar overrides for dashboard */
.dashboard-nav-container {
    max-width: 1200px !important;
}

.dashboard-links {
    gap: 40px !important;
}

.dashboard-links .nav-link {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--dash-text-muted);
}

.dashboard-links .nav-link.active {
    color: var(--dash-primary);
}

/* Layout Wrapper */
.dashboard-wrapper {
    max-width: 1000px;
    margin: 100px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.dashboard-container {
    width: 100%;
}

/* =========================================
   TOP BANNER
========================================= */
.dash-banner {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--dash-border);
    animation: fadeInDown 0.6s ease;
}

.dash-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) contrast(1.2);
}

.dash-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.dash-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 30px;
    z-index: 2;
}

.dash-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--dash-primary);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.dash-license-type {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--dash-primary);
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-license-type .dot {
    width: 6px;
    height: 6px;
    background-color: var(--dash-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--dash-primary);
}

.dash-user-info h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* =========================================
   TABS LOGIC
========================================= */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

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

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

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

/* =========================================
   STATS GRID
========================================= */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dash-stat-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dash-text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.status-active {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* =========================================
   ANNOUNCEMENTS
========================================= */
.dash-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dash-primary);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.dash-announcements {
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.announcement-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.ann-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ccc;
    flex-shrink: 0;
}

.ann-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.ann-name {
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
}

.ann-role {
    font-size: 0.75rem;
    color: var(--dash-text-muted);
}

.ann-date {
    font-size: 0.75rem;
    color: #555;
}

.ann-text {
    font-size: 0.9rem;
    color: var(--dash-text);
    line-height: 1.5;
}

/* =========================================
   FOOTER GRAPHIC
========================================= */
.dash-footer-graphic {
    position: relative;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 0, 0, 0.4), transparent);
    border-radius: 20px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dash-footer-graphic h2 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    z-index: 2;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    opacity: 0.9;
}

.footer-character {
    position: absolute;
    bottom: -20px;
    right: 50px;
    height: 220px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

/* =========================================
   SETTINGS TAB
========================================= */
.settings-grid {
    display: flex;
    justify-content: center;
    /* Centered since we only have redeem */
}

.settings-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.settings-desc {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.settings-desc strong {
    color: #ccc;
    font-size: 0.8rem;
    display: block;
    margin-top: 10px;
}

.btn-redeem {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-redeem:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--dash-primary);
}

/* =========================================
   DOWNLOAD TAB
========================================= */
.download-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dash-primary);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.download-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.download-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.dl-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-primary);
    font-size: 1.2rem;
}

.dl-info {
    flex: 1;
}

.dl-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.dl-info p {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
}

.dl-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.dot-green {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
}

.btn-download-large {
    background: linear-gradient(135deg, #ff4444, #aa0000);
    border: none;
    color: white;
    font-weight: 800;
    padding: 16px 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-download-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .dash-banner-content {
        padding: 0 20px;
    }

    .dash-avatar {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .dash-user-info h1 {
        font-size: 1.8rem;
    }

    .dashboard-links {
        display: none;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .btn-download-large {
        width: 100%;
        justify-content: center;
    }
}

/* Hama FiveM liquid-glass theme */
:root {
    --primary: #16181d;
    --primary-dark: #30343b;
    --primary-glow: rgba(26, 30, 38, 0.12);
    --bg-dark: #f4f6f9;
    --text-white: #17191f;
    --dash-bg: #f4f6f9;
    --dash-card-bg: rgba(255, 255, 255, 0.58);
    --dash-border: rgba(255, 255, 255, 0.9);
    --dash-primary: #181a20;
    --dash-text: #343842;
    --dash-text-muted: #777e8a;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background:
        radial-gradient(ellipse at 12% 8%, rgba(218, 227, 242, 0.75), transparent 34rem),
        radial-gradient(ellipse at 88% 55%, rgba(235, 228, 220, 0.58), transparent 32rem),
        #f4f6f9;
    color: #17191f;
}

.noise-overlay,
.vignette-overlay,
.grid-overlay-modern,
#particleCanvas {
    display: none !important;
}

.gradient-overlay {
    background:
        radial-gradient(circle at 20% 20%, rgba(219, 228, 243, 0.42), transparent 58%),
        radial-gradient(circle at 80% 75%, rgba(239, 232, 224, 0.36), transparent 54%);
}

.glow-orb-1,
.glow-orb-2,
.glow-orb-3 {
    background: radial-gradient(circle, rgba(220, 228, 241, 0.52), transparent 68%);
    filter: blur(80px);
}

#dashboardMainContent .navbar {
    position: sticky;
    top: 12px;
    width: min(1280px, calc(100% - 32px));
    margin: 12px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 10px 34px rgba(34, 43, 61, 0.08), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
}

#dashboardMainContent .nav-container {
    padding: 12px 22px;
}

#dashboardMainContent .logo {
    font-size: 1.35rem;
    color: #17191f;
    letter-spacing: -0.5px;
}

#dashboardMainContent .logo img {
    height: 34px !important;
    width: auto;
    margin-right: 10px;
    border-radius: 7px;
    filter: none;
}

#dashboardMainContent .logo span:first-child,
#dashboardMainContent .logo span:last-child {
    color: #17191f;
    text-shadow: none;
}

#dashboardMainContent .logo span:last-child {
    margin-left: 6px;
}

#dashboardMainContent .nav-link {
    color: #656b76;
}

#dashboardMainContent .nav-link.active,
#dashboardMainContent .nav-link:hover {
    color: #111318;
}

#dashboardMainContent .nav-link::after {
    background: #17191f;
    box-shadow: none;
}

.dashboard-wrapper {
    max-width: 1120px;
    margin: 28px auto 56px;
    padding: 0 24px;
}

.dash-banner {
    min-height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 82% 18%, rgba(255, 255, 255, 0.95), transparent 46%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(226, 231, 240, 0.72));
    box-shadow: 0 22px 60px rgba(35, 44, 62, 0.09), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
}

.dash-banner::before,
.dash-banner::after {
    display: none;
}

.banner-logo-bg {
    height: 110%;
    opacity: 0.08;
    filter: grayscale(1);
}

.dash-avatar {
    color: #525966;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(32, 40, 56, 0.1), inset 0 1px 0 #fff;
}

.dash-license-type,
.dash-license-type .dot {
    color: #3c424d;
}

.dash-license-type .dot {
    background: #555d6a;
    box-shadow: none;
}

.dash-user-info h1 {
    color: #17191f;
}

.dash-stats-grid {
    gap: 16px;
}

.dash-stat-card,
.dash-announcements,
.settings-card,
.download-card,
.download-card-premium,
.change-pw-container {
    color: #252932;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(35, 44, 62, 0.07), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.dash-stat-card {
    padding: 26px 20px;
}

.dash-stat-card .stat-label,
.settings-desc,
.download-subtitle,
.dl-info p {
    color: #777e8a;
}

.dash-stat-card .stat-value,
.ann-name,
.dash-announcements h3,
.dl-info h3 {
    color: #17191f;
}

.status-active,
.dl-status,
.dot-green {
    color: #26734b;
}

.dot-green {
    background: #38a66a;
    box-shadow: none;
}

.dash-announcements {
    padding: 28px;
}

.ann-avatar,
.dl-icon {
    color: #333945;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 16px rgba(35, 44, 62, 0.06);
}

.ann-text,
.step-text,
.settings-desc strong {
    color: #4e545f;
}

.ann-role,
.ann-date {
    color: #858b96;
}

.dash-footer-graphic {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.75), transparent 46%),
        linear-gradient(135deg, rgba(229, 234, 242, 0.92), rgba(248, 249, 251, 0.78));
    box-shadow: 0 16px 42px rgba(35, 44, 62, 0.07), inset 0 1px 0 #fff;
}

.dash-footer-graphic h2 {
    color: #17191f;
    text-shadow: none;
}

.download-title,
.dl-info h3 {
    color: #17191f;
}

.dl-badge {
    color: #26734b;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(38, 115, 75, 0.16);
}

.btn-download-large,
.btn-redeem {
    color: #fff;
    background: #17191f;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(25, 30, 40, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-download-large:hover,
.btn-redeem:hover {
    background: #30343b;
    border-color: #30343b;
    box-shadow: 0 12px 24px rgba(25, 30, 40, 0.16);
}

.sleek-modal-overlay {
    background: rgba(26, 31, 40, 0.2);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.sleek-modal-card {
    color: #17191f;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(27, 35, 50, 0.2), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    backdrop-filter: blur(28px) saturate(165%);
}

.sleek-icon-container {
    color: #17191f;
    background: rgba(238, 241, 246, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.sleek-modal-header h2,
.sleek-modal-header p,
.switch-auth {
    color: #222630;
}

.sleek-modal-header p {
    opacity: 0.72;
}

.switch-auth a {
    color: #17191f;
}

.sleek-input-container {
    background: rgba(243, 245, 248, 0.8);
    border: 1px solid rgba(36, 43, 56, 0.1);
}

.sleek-input,
.sleek-input::placeholder,
.sleek-input-icon {
    color: #242832;
}

.sleek-input::placeholder {
    opacity: 0.55;
}

.sleek-btn {
    color: #fff;
    background: #17191f;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(25, 30, 40, 0.12);
}

.sleek-btn:hover {
    background: #30343b;
}

.status-msg-premium {
    color: #8d2929;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
    transition: opacity 600ms ease var(--reveal-delay, 0ms), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.scroll-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        margin-top: 18px;
        padding: 0 14px;
    }

    .dash-banner {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .dash-banner-content {
        gap: 16px;
    }

    .dash-stat-card,
    .dash-announcements,
    .download-card,
    .download-card-premium {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}