/* MetaKarta Payment Website — Mystical Theme */

:root {
    --bg-dark: #07071a;
    --bg-card: #0f0f2e;
    --bg-card-hover: #161645;
    --violet: #7c3aed;
    --violet-light: #a78bfa;
    --violet-glow: rgba(124, 58, 237, 0.3);
    --gold: #d4a017;
    --gold-light: #f0d060;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #f8fafc;
    --border: rgba(124, 58, 237, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--violet-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Main ===== */
.main {
    flex: 1;
    padding: 40px 0;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--violet);
    color: #fff;
    box-shadow: 0 0 20px var(--violet-glow);
}

.btn-primary:hover {
    background: #6d28d9;
    box-shadow: 0 0 30px var(--violet-glow);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 40px 0;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--violet);
    box-shadow: 0 0 24px var(--violet-glow);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

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

/* ===== Packages Grid ===== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.package-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.15);
    transform: translateY(-4px);
}

.package-credits {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.package-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.package-price {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.package-per-credit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== CTA Block ===== */
.cta-block {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cta-block p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* ===== Legal Pages ===== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--violet-light);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page p {
    margin-bottom: 12px;
}

.legal-page ul {
    margin: 8px 0 16px 24px;
}

.legal-page li {
    margin-bottom: 6px;
    color: var(--text);
}

.legal-page a {
    color: var(--violet-light);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* ===== Contacts ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.contact-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--violet-light);
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-card a {
    color: var(--gold);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 32px;
}

.info-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.info-table td:first-child {
    color: var(--text-muted);
    width: 200px;
    font-size: 0.9rem;
}

/* ===== Status Pages (success/fail) ===== */
.status-page {
    text-align: center;
    padding: 60px 0;
    max-width: 500px;
    margin: 0 auto;
}

.status-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-weight: 700;
}

.status-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.status-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 2px solid rgba(234, 179, 8, 0.3);
}

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

.status-page h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.status-page p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.status-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-page .btn {
    margin-top: 24px;
}

/* ===== Footer ===== */
.footer {
    background: rgba(7, 7, 26, 0.95);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .logo-icon {
        width: 26px;
        height: 26px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(7, 7, 26, 0.98);
        backdrop-filter: blur(12px);
        padding: 16px 20px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .package-credits {
        font-size: 2.2rem;
    }

    .legal-page h1 {
        font-size: 1.4rem;
    }

    .info-table td:first-child {
        width: auto;
    }

    .info-table td {
        display: block;
        padding: 6px 0;
    }

    .info-table td:first-child {
        padding-top: 12px;
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .package-card {
        padding: 20px 12px;
    }
}

.reveal-contact {
    cursor: pointer;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.6);
    color: var(--gold);
    transition: color 0.3s, border-color 0.3s;
}

.reveal-contact:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

.reveal-contact.revealed {
    cursor: default;
    border-bottom: none;
    color: inherit;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 15, 46, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    display: none;
    /* hidden by default, shown via JS */
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-banner.show {
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-content a {
    color: var(--violet-light);
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-banner .btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 16px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner .btn-sm {
        width: 100%;
    }
}