:root {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #06b6d4;
    --gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --dark-bg: #0f172a;
    --dark-bg-2: #1e293b;
    --radius-lg: 1.25rem;
    --radius-md: 0.85rem;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 16px 40px rgba(99, 102, 241, 0.18);
}

* { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

a { text-decoration: none; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient {
    background: var(--gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gradient:hover, .btn-gradient:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-light-2 {
    border: 2px solid #e2e8f0;
    color: #1e293b;
    font-weight: 600;
    background: transparent;
}
.btn-outline-light-2:hover { background: #f8fafc; border-color: #cbd5e1; }

/* ===== Navbar ===== */
.main-navbar { z-index: 1030; padding: .65rem 0; }
.main-navbar .nav-link { font-weight: 500; color: #334155; padding: .5rem 1rem !important; border-radius: 999px; }
.main-navbar .nav-link.active, .main-navbar .nav-link:hover { color: var(--primary); background: #eef2ff; }

/* ===== Hero ===== */
.hero-section {
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top right, #eef2ff 0%, #ffffff 60%);
}
.badge-soft {
    background: #eef2ff;
    color: var(--primary-dark);
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 999px;
    display: inline-block;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.05rem; color: #475569; max-width: 560px; margin: 0 auto 0 0; }
@media (max-width: 991.98px) { .hero-subtitle { margin: 0 auto; } }

.hero-preview-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    max-width: 380px;
}
.qr-frame {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 3rem 1rem;
    text-align: center;
}

/* ===== Section helpers ===== */
.section-eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .8rem;
}
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: .5rem 0 1rem; }
.section-subtitle { color: #64748b; max-width: 620px; margin: 0 auto; }
.bg-light-section { background: #f8fafc; }

/* ===== Feature Cards ===== */
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #f1f5f9;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

.check-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px;
    background: #eef2ff;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    text-align: center;
}

.step-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
    height: 100%;
}
.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
    margin: 0 auto;
}

.faq-item { border: none; border-bottom: 1px solid #e2e8f0; }
.accordion-button:not(.collapsed) { color: var(--primary-dark); background: #eef2ff; box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }

.cta-section { background: var(--gradient); }

/* ===== Footer ===== */
.footer-section { background: var(--dark-bg); }
.text-light-muted { color: #94a3b8; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #cbd5e1; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.social-icon:hover { background: var(--gradient); }

/* ===== Page Header ===== */
.page-header { background: var(--gradient); padding: 4rem 0 3rem; }

/* ===== Forms / Cards ===== */
.form-card, .info-card, .preview-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
}
.form-control, .form-select {
    border-radius: .7rem;
    border: 1.5px solid #e2e8f0;
    padding: .65rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(99,102,241,.15);
}
.form-control-color { height: 52px; padding: 4px; }

/* Touch-friendly buttons */
.btn-lg { padding: .85rem 1.5rem; border-radius: .9rem; font-size: 1rem; }
.btn { min-height: 42px; }

/* ===== QR Type Selector ===== */
.qr-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 576px) { .qr-type-grid { grid-template-columns: repeat(4, 1fr); } }

.qr-type-option {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1rem .5rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    font-size: .85rem;
    font-weight: 500;
    color: #475569;
}
.qr-type-option i { font-size: 1.4rem; color: #94a3b8; }
.qr-type-option:hover { border-color: var(--primary); background: #f8fafc; }
.qr-type-option.active {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary-dark);
}
.qr-type-option.active i { color: var(--primary); }

/* ===== Preview ===== */
.preview-card-sticky { position: static; }
@media (min-width: 992px) {
    .preview-card-sticky { position: sticky; top: 100px; }
}
.preview-frame {
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 2px dashed #cbd5e1;
    min-height: 280px;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.preview-frame img { max-width: 100%; border-radius: .5rem; }

/* ===== Legal Content ===== */
.legal-content h4 { font-weight: 700; margin-top: 2rem; }
.legal-content h4:first-child { margin-top: 0; }

/* ===== 404 ===== */
.error-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; }

/* ===== Admin Login ===== */
.login-body {
    min-height: 100vh;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
    padding: 1.5rem;
}
.login-wrapper { width: 100%; max-width: 440px; }
.login-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); padding: 2.5rem; }

/* Prevent any horizontal overflow on small screens */
img, table { max-width: 100%; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Image QR drop zone */
.image-drop-zone {
    border: 2px dashed #c7d2fe;
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f8faff;
}
.image-drop-zone:hover,
.image-drop-zone.dragover {
    border-color: var(--primary);
    background: #eef0ff;
}

/* ===== Ad Section ===== */
.ad-section {
    background: #fafbff;
    border-top: 1px solid #f0f4ff;
    border-bottom: 1px solid #f0f4ff;
    padding: .75rem 0;
    text-align: center;
}
.adsbygoogle:empty { min-height: 90px; }

