:root {
    --bg-1: #05070d;
    --bg-2: #0b1120;
    --bg-3: #111827;

    --glass: rgba(13, 18, 31, 0.88);
    --glass-2: rgba(255, 255, 255, 0.05);

    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.22);

    --text: #f8fafc;
    --muted: #a8b2c8;
    --muted-2: #7f8aa3;

    --gold: #d4af37;
    --gold-soft: #f2d675;

    --blue: #3b82f6;
    --blue-deep: #1d4ed8;

    --green: #10b981;
    --green-deep: #059669;

    --shadow-1: 0 30px 80px rgba(0, 0, 0, 0.45);
    --shadow-2: 0 18px 40px rgba(0, 0, 0, 0.28);

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(212,175,55,0.11), transparent 18%),
        radial-gradient(circle at 88% 8%, rgba(59,130,246,0.10), transparent 20%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
    padding: 28px 16px 96px;
}

.page-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.hero-panel {
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(15, 20, 34, 0.9) 0%, rgba(8, 11, 20, 0.92) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    padding: 28px;
    margin-bottom: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.24);
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title {
    margin: 0;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-title .accent {
    display: block;
    background: linear-gradient(135deg, #ffffff, var(--gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    max-width: 760px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}

.main-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(16, 21, 34, 0.92) 0%, rgba(9, 13, 22, 0.94) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    padding: 22px;
}

.panel-title {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.panel-text {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

#userBanner {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-size: 14px;
    margin-top: 14px;
}

#creditsDisplay {
    margin-left: 8px;
    font-weight: 900;
    color: var(--gold-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: white;
    outline: none;
    font-size: 14px;
}

input::placeholder {
    color: #8e99b0;
}

input:focus {
    border-color: rgba(212,175,55,0.34);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.08);
    background: rgba(255,255,255,0.07);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

button,
.help-btn,
.file-upload-label {
    border: none;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.04s ease, opacity 0.2s ease, background 0.2s ease;
}

button:active,
.help-btn:active,
.file-upload-label:active {
    transform: translateY(1px);
}

.primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    box-shadow: 0 16px 32px rgba(37,99,235,0.24);
}

.secondary {
    color: white;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.logout {
    color: white;
    background: linear-gradient(135deg, #121722, #0b0f18);
    border: 1px solid rgba(255,255,255,0.06);
}

.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-soft);
    background: linear-gradient(135deg, rgba(212,175,55,0.10), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.22);
}

.upload-box {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(212,175,55,0.24);
}

#file {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
}

.file-upload-label:hover {
    background: rgba(255,255,255,0.08);
}

.file-upload-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.10);
    color: var(--gold-soft);
    font-size: 20px;
    flex: 0 0 auto;
}

.file-upload-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.file-upload-copy strong {
    font-size: 15px;
}

.file-upload-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.file-name-display {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    font-size: 13px;
}

#downloadBtn {
    display: none;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    box-shadow: 0 16px 32px rgba(16,185,129,0.24);
}

#loading {
    display: none;
    margin-top: 14px;
    color: var(--gold-soft);
    font-weight: 800;
}

.preview-output {
    white-space: pre-wrap;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    line-height: 1.8;
    font-size: 14px;
}

.preview-label-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(59,130,246,0.10);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.paywall-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(212,175,55,0.10) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(212,175,55,0.22);
}

.paywall-box h3 {
    margin: 0 0 10px;
    color: white;
    font-size: 21px;
}

.paywall-box p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
    margin: 0 0 10px;
}

.paywall-price {
    margin-top: 14px;
    margin-bottom: 16px;
    color: white !important;
    font-size: 15px !important;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.pricing-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-card {
    position: relative;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.025) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2);
}

.price-card.featured {
    border: 1px solid rgba(212,175,55,0.28);
}

.price-card.premium {
    background: linear-gradient(180deg, rgba(212,175,55,0.10) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(212,175,55,0.36);
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(212,175,55,0.12);
    color: var(--gold-soft);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.price {
    margin-bottom: 4px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.price-desc {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.price-card ul {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #dce5f2;
    font-size: 13px;
    line-height: 1.7;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

.feature-item strong {
    display: block;
    margin-bottom: 6px;
    color: white;
    font-size: 15px;
}

.feature-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.footer-note {
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(0,0,0,0.38);
    z-index: 9999;
}

@media (max-width: 980px) {
    .main-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 18px 12px 96px;
    }

    .hero-panel,
    .panel {
        padding: 18px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .actions {
        flex-direction: column;
    }

    button,
    .help-btn,
    .file-upload-label {
        width: 100%;
    }
}
