@font-face {
    font-family: 'Greycliff';
    src: url('../assets/Greycliff.ttf') format('truetype');
}

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

:root {
    --red: #e63333;
    --pink: #ff6688;
    --dark: #0d0d14;
    --dark2: #13131f;
    --dark3: #1a1a2e;
    --dark4: #13101f;
    --dark5: #110820;
    --text: #f0f0f0;
    --muted: #888;
    --muted4: #c0c0c0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    backdrop-filter: blur(0px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 101;
    border-bottom: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Greycliff', sans-serif;
    font-size: 1.3rem;
    color: var(--pink);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pink);
}

/* Hero (home) */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at 50% 40%, #1a0a2e 0%, var(--dark) 65%);
    padding: 8rem 2rem 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    will-change: transform;
    transform: translateZ(0);
    filter: drop-shadow(0 0 24px rgba(230, 51, 51, 0.45));
    animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(0, -14px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.hero h1 {
    font-family: 'Greycliff', sans-serif;
    font-size: 4rem;
    color: var(--pink);
    text-shadow: 0 0 28px rgba(255, 102, 136, 0.35);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 380px;
}

/* Page hero (inner pages) */
.page-hero {
    text-align: center;
    padding: 9rem 2rem 3rem;
    background: radial-gradient(ellipse at 50% 0%, #1a0a2e 0%, var(--dark) 70%);
}

.page-hero h1 {
    font-family: 'Greycliff', sans-serif;
    font-size: 3rem;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--red), var(--pink));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(230, 51, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(230, 51, 51, 0.5);
}

/* Features page */
.features {
    padding: 4rem 3rem;
    background: var(--dark2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--dark3);
    border: 1px solid rgba(230, 51, 51, 0.15);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--pink);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-family: 'Greycliff', sans-serif;
    font-size: 1.2rem;
    color: var(--pink);
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.features-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Purchase page */
.purchase-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--dark2);
}

.pricing-card {
    background: var(--dark3);
    border: 1px solid rgba(230, 51, 51, 0.3);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 40px rgba(230, 51, 51, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--red), var(--pink));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card h2 {
    font-family: 'Greycliff', sans-serif;
    font-size: 1.8rem;
    color: var(--pink);
    margin-bottom: 1.2rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.8rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
}

.price-term {
    color: var(--muted);
    font-size: 0.9rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.price-features li {
    color: var(--text);
    font-size: 0.95rem;
    padding-left: 1.4rem;
    position: relative;
}

.price-features li::before {
    content: '✓';
    color: var(--pink);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.price-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.purchase-msg {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #e74c3c;
}

.price-note a {
    color: var(--pink);
    text-decoration: none;
}

.price-note a:hover {
    text-decoration: underline;
}

/* Terms page */
.terms-section {
    flex: 1;
    padding: 4rem 2rem;
    background: var(--dark2);
}

.terms-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.terms-box {
    background: var(--dark3);
    border: 1px solid rgba(230, 51, 51, 0.15);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    transition: border-color 0.2s;
}

.terms-box:hover {
    border-color: rgba(255, 102, 136, 0.4);
}

.terms-box h2 {
    font-family: 'Greycliff', sans-serif;
    font-size: 1.2rem;
    color: var(--pink);
    text-align: center;
    margin-bottom: 0.8rem;
}

.terms-box p {
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.terms-box ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Nav auth button */
.nav-auth-btn {
    color: var(--pink) !important;
    border: 1px solid rgba(255, 102, 136, 0.4);
    border-radius: 20px;
    padding: 0.3rem 0.9rem !important;
    font-size: 0.9rem !important;
    transition: background 0.2s, color 0.2s !important;
}

.nav-auth-btn:hover {
    background: rgba(255, 102, 136, 0.15);
}

/* Auth pages */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse at 50% 30%, #1a0a2e 0%, var(--dark) 65%);
}

.auth-card {
    background: var(--dark2);
    border: 1px solid rgba(230, 51, 51, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2.5rem;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.4rem;
}

.auth-card h1 {
    font-family: 'Greycliff', sans-serif;
    font-size: 1.8rem;
    color: var(--pink);
}

.auth-sub {
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--muted);
}

.form-group input {
    background: var(--dark3);
    border: 1px solid rgba(230, 51, 51, 0.2);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--pink);
}

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2, #7289da);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    box-shadow: 0 6px 28px rgba(88, 101, 242, 0.5);
}

.auth-error {
    width: 100%;
    background: rgba(230, 51, 51, 0.1);
    border: 1px solid rgba(230, 51, 51, 0.4);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    color: #ff6666;
    font-size: 0.9rem;
    text-align: center;
}

.auth-switch {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.auth-switch a {
    color: var(--pink);
    text-decoration: none;
}

/* Dashboard */
.dashboard-section {
    flex: 1;
    padding: 7rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    background: radial-gradient(ellipse at 50% 40%, #1a0a2e 0%, var(--dark) 65%);
}

.dash-loading {
    text-align: center;
    color: var(--muted);
    padding-top: 4rem;
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 102, 136, 0.4);
    object-fit: cover;
}

.dash-header-info h1 {
    font-family: 'Greycliff', sans-serif;
    font-size: 1.8rem;
    color: var(--text);
}

.dash-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

.badge-beta {
    background: linear-gradient(135deg, var(--red), var(--pink));
    color: #fff;
}

.badge-license {
    background: rgba(255, 102, 136, 0.15);
    color: var(--pink);
    border: 1px solid rgba(255, 102, 136, 0.4);
}

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

.dash-card {
    background: var(--dark2);
    border: 1px solid rgba(230, 51, 51, 0.15);
    border-radius: 12px;
    padding: 1.8rem;
}

.dash-card h3 {
    font-family: 'Greycliff', sans-serif;
    font-size: 1rem;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

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

.dash-row:last-child {
    border-bottom: none;
}

.dash-label {
    color: var(--muted);
    font-size: 0.875rem;
}

.dash-value {
    color: var(--text);
    font-size: 0.875rem;
}

.dash-mono {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.dash-active {
    color: #4ade80;
}

.dash-muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.dash-igns {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-igns li {
    color: var(--text);
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
    background: var(--dark3);
    border-radius: 6px;
    font-family: monospace;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark);
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(230, 51, 51, 0.1);
}

footer a {
    color: var(--pink);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-disclaimer {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #555;
}

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: linear-gradient(135deg, #13101f 0%, rgba(255, 102, 136, 0.6) 50%, #110820 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
}
.sidebar.open { transform: translateX(0); }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    pointer-events: none;
    z-index: 99;
    transition: background 0.3s;
}
.overlay.visible { background: rgba(0,0,0,0.3); pointer-events: all; }

.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hamburger {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: fit-content;
    gap: 5px;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 0;
    transition: transform 0.3s, opacity 0.2s;
}

.sidebar ul {
    list-style: none;
    padding: 6rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar ul li a,
.sidebar ul li a:link,
.sidebar ul li a:visited {
    display: block;
    color: var(--muted4);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.sidebar ul li a:hover {
    color: var(--pink);
    background: rgba(255, 102, 136, 0.08);
    text-decoration: none;
}

.sidebar .hamburger {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 101;
    background: transparent;
}
body.sidebar-open .nav-logo {
    transform: translateX(260px);
}