@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-surface: #0f3460;
    
    --color-accent: #e94560;
    --color-accent-secondary: #ff6b6b;
    --color-gold: #ffd700;
    --color-purple: #9b59b6;
    
    --color-text: #ffffff;
    --color-text-muted: #a0a0c0;
    --color-text-light: #e0e0ff;
    
    --border-color: rgba(233, 69, 96, 0.2);
    --border-color-light: rgba(233, 69, 96, 0.1);
    
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.3);
    
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--color-text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    display: block;
    max-width: 100%;
}

.main-container,
.page-container {
    width: 100%;
    margin: 0;
    min-height: 100vh;
}

/* Header */
header,
.header {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(19, 19, 38, 0.95) 100%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container,
.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.logo img {
    height: 2.5rem;
    transition: transform 0.2s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .header-container,
    .header .container {
        padding: 1.25rem 1.5rem;
    }
    .logo img {
        height: 3rem;
    }
}

.nav-list {
    display: none;
    align-items: center;
}

@media (max-width: 767px) {
    .nav-list {
        display: flex;
    }
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
}

.nav-list ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: var(--color-text);
}

.header-auth {
    display: none;
}

@media (min-width: 768px) {
    .header-auth {
        display: block;
    }
}

.btn-signup {
    background: var(--color-accent);
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-signup:hover {
    background: var(--color-purple);
}

.mobile-menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Footer */
footer,
.footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 2px solid var(--border-color);
    padding: 60px 20px 30px;
    margin-top: 40px;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color-light);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding-bottom: 32px;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        padding-bottom: 40px;
    }
}

.footer-col h4 {
    color: var(--color-gold);
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-col p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color-light);
}

.footer-brand {
    text-align: center;
}

.footer-brand img {
    height: 48px;
    margin: 0 auto 16px;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--color-gold);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-contact a {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}

.footer-contact p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* Mobile Fixed Buttons */
.mobile-fixed-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    padding: 12px 20px;
    display: none;
    justify-content: center;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.mobile-fixed-btn .mobile-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-fixed-btn .mobile-btn--outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--color-text);
}

.mobile-fixed-btn .mobile-btn--solid {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.mobile-fixed-btn .mobile-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 2px solid var(--border-color);
    padding: 40px 16px 24px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    footer {
        padding: 60px 20px 30px;
    }
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color-light);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: auto;
        text-align: left;
    }
}

.footer-brand img {
    height: 40px;
    margin: 0 auto 12px;
}

@media (min-width: 768px) {
    .footer-brand img {
        height: 48px;
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-nav {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-nav {
        text-align: left;
    }
}

.footer-contact {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-contact {
        text-align: left;
    }
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--color-gold);
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
    padding: 8px 0;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .footer-nav a:hover,
    .footer-contact a:hover {
        padding-left: 8px;
    }
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--color-gold);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Fixed Buttons */
.mobile-fixed-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(19, 19, 38, 0.98);
    border-top: 2px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-fixed-btn .mobile-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-fixed-btn .mobile-btn--outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--color-text);
}

.mobile-fixed-btn .mobile-btn--solid {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.mobile-fixed-btn .mobile-btn:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (min-width: 768px) {
    .nav-list {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        transform: none;
        flex-direction: row;
        align-items: center;
    }

    .nav-list ul {
        flex-direction: row;
    }

    .nav-list li {
        border-bottom: none;
    }

    .nav-header,
    .nav-auth {
        display: none;
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .footer-brand img {
        margin-left: 0;
        margin-right: 0;
        height: 3rem;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .mobile-fixed-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color-light);
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        z-index: 10;
    }

    .nav-logo img {
        height: 2.5rem;
    }

    .nav-close {
        width: 2.5rem;
        height: 2.5rem;
        background: transparent;
        border: none;
        color: var(--color-text);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .nav-close:hover {
        color: var(--color-accent);
    }

    .nav-close svg {
        width: 1.5rem;
        height: 1.5rem;
        stroke: currentColor;
    }

    .nav-list ul {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color-light);
    }

    .nav-list a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        text-align: left;
        transition: color 0.2s ease;
    }

    .nav-list a:hover {
        color: var(--color-accent);
    }

    .nav-auth {
        display: flex;
        padding: 1.5rem;
        border-top: 1px solid var(--border-color-light);
    }

    .nav-auth .btn-signup {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .no-scroll {
        overflow: hidden;
    }
}
