*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #050816;
    --card-bg: #0f172a;
    --border: #1f2937;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #ff6b00;
    --accent-soft: rgba(255, 107, 0, 0.1);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1080px;
    padding: 0 16px;
    margin: 0 auto;
}

/* header */

.site-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(to bottom, rgba(15,23,42,0.85), rgba(15,23,42,0.6));
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.logo-main {
    color: var(--accent);
}
.logo-sub {
    color: var(--text);
}

.nav a {
    margin-left: 16px;
    font-size: 14px;
    color: var(--muted);
}

.nav a:hover {
    color: var(--text);
}

.btn-primary,
.btn-outline {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
}

/* main */

.site-main {
    padding: 24px 0 56px;
}

/* hero section */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
    gap: 32px;
    align-items: center;
    padding: 32px 0 40px;
}

.hero-text h1 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-text .highlight {
    color: var(--accent);
}

.hero-text p {
    color: var(--muted);
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-points {
    list-style: none;
    color: var(--muted);
    font-size: 14px;
}
.hero-points li::before {
    content: "✓ ";
    color: var(--accent);
}

/* preview card */

.hero-preview {
    display: flex;
    justify-content: center;
}

.card-preview {
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    background: radial-gradient(circle at top, #111827 0, #020617 65%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 16px;
    box-shadow: 0 22px 45px rgba(0,0,0,0.75);
}

.cp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cp-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #fbbf24, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
    font-size: 24px;
}

.cp-header h3 {
    font-size: 18px;
}
.cp-header p {
    font-size: 13px;
    color: var(--muted);
}

.cp-body {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.cp-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--accent);
}

/* pricing */

.pricing {
    padding-top: 10px;
}

.pricing h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.pricing-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 16px;
    background: linear-gradient(to bottom right, rgba(15,23,42,0.95), rgba(15,23,42,0.7));
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.pricing-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.pricing-card ul {
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}

.pricing-card li {
    margin-bottom: 6px;
}

/* forms */

.form-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 18px;
    margin-top: 8px;
    background: linear-gradient(to bottom right, rgba(15,23,42,0.95), rgba(15,23,42,0.75));
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="color"],
textarea,
select {
    background: #020617;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 8px 10px;
    color: var(--text);
    font-size: 14px;
}

textarea {
    resize: vertical;
}

.form-footer {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* alerts */

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert-error {
    border: 1px solid rgba(248, 113, 113, 0.7);
    background: rgba(127, 29, 29, 0.6);
}

/* dashboard */

.card-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 18px;
}

.card-link-box input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #020617;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
    gap: 18px;
}

.qr-box {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 16px;
    text-align: center;
    background: radial-gradient(circle at top, #020617 0, #020617 65%);
}

.qr-box img {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    background: #fff;
}

.qr-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

/* footer */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    background: #020617;
}

/* public card page */

.card-page {
    background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
    color: var(--text);
}

.card-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

.card-main {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    background: linear-gradient(to bottom right, rgba(15,23,42,0.98), rgba(15,23,42,0.8));
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 18px;
    box-shadow: 0 26px 55px rgba(0,0,0,0.85);
}

.card-main .cp-body a {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.card-main .cp-body p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.cp-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cp-social a {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.cp-footer {
    margin-top: 12px;
    font-size: 11px;
    text-align: center;
    color: var(--muted);
}

/* catalog gallery on public card */

.cp-gallery {
    margin-top: 14px;
}

.cp-gallery h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.cp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.cp-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.4);
    background: #020617;
}

.cp-gallery-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.cp-gallery-item p {
    font-size: 11px;
    padding: 4px 6px 6px;
    color: #9ca3af;
}

/* dashboard catalog preview */

.catalog-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    font-size: 12px;
}

.catalog-item {
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.4);
    padding: 6px;
    background: #020617;
}

.catalog-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
    display: block;
}

/* PAGE THEMES (scan page backgrounds) */

.page-classic {
    /* default already set by body/card-page */
}

.page-panel .card-main {
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.8);
    background: #020617;
}

.page-soft-glow {
    background: radial-gradient(circle at top, rgba(251,113,133,0.25), #020617 55%);
}

.page-card-focus .card-page-wrap {
    align-items: flex-start;
    padding-top: 40px;
}

.page-grid-gallery .cp-gallery-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
}

.page-premium-dark .card-main {
    background: linear-gradient(to bottom right,#020617,#0b1120);
    border-color:#f59e0b;
}

.page-premium-glass .card-main {
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(14px);
    border-color: rgba(249,115,22,0.5);
}

/* CARD THEMES (card-main variations) */

.card-main.theme-classic { /* default */ }

.card-main.theme-soft-dark {
    background: radial-gradient(circle at top, #020617, #020617 60%);
    border-color: rgba(148,163,184,0.6);
}

.card-main.theme-orange-bar {
    border-top: 3px solid var(--accent);
}

.card-main.theme-blue-line {
    border-left: 4px solid #3b82f6;
}

.card-main.theme-gradient {
    background: linear-gradient(135deg,#ec4899,#6366f1);
}

.card-main.theme-minimal-card {
    background: #020617;
    border-radius: 16px;
    border-color: rgba(148,163,184,0.3);
}

.card-main.theme-bold {
    box-shadow: 0 0 0 2px rgba(249,115,22,0.4);
}

.card-main.theme-premium-gold {
    background: linear-gradient(to bottom right,#fef3c7,#f5f5f4);
    color: #1f2937;
}

.card-main.theme-premium-black {
    background: #020617;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.7);
}


/* responsive */

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .hero-preview {
        order: -1;
        margin-bottom: 20px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .nav a {
        margin-left: 0;
        margin-right: 12px;
    }
}

/* page theme variations */
.page-panel .card-main {
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.6);
}
.page-soft-glow .card-main {
    background: radial-gradient(circle at top, rgba(251,113,133,0.18), #020617 55%);
}
.page-card-focus .card-page-wrap {
    align-items: flex-start;
}
.page-premium-dark .card-main {
    background: linear-gradient(to bottom right,#020617,#0b1120);
    border-color:#f59e0b;
}
.page-premium-glass .card-main {
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(14px);
}

/* card theme hints could be used via card_theme if needed */
