:root {
    --bg: #f4f7ff;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #4f46e5;
    --primary-soft: #eef2ff;
    --border: #e2e8f0;
    --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, #eef2ff 0%, transparent 38%),
        radial-gradient(circle at 90% 5%, #e0e7ff 0%, transparent 35%),
        var(--bg);
    min-height: 100vh;
}

.app-navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(130deg, #4f46e5, #818cf8);
    color: #fff;
    font-size: 1rem;
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-link {
    color: #1e293b;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.hero-section {
    padding: 8.5rem 0 5rem;
}

.hero-pill {
    background: var(--primary-soft);
    border: 1px solid #c7d2fe;
    color: #3730a3;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.trust-badge {
    border: 1px solid #dbe4ff;
    background: rgba(255, 255, 255, 0.8);
    color: #334155;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 500;
}

.trust-badge i {
    color: #4f46e5;
    margin-right: 0.35rem;
}

.py-lg-6 {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.section-head .section-title {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-head .section-subtitle {
    color: var(--muted);
    max-width: 660px;
    margin: 0 auto;
}

.generator-card {
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.form-control,
.form-select {
    border-radius: 0.85rem;
    border-color: var(--border);
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.18);
    border-color: #a5b4fc;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
    border: 0;
}

.color-picker {
    width: 100%;
    height: 3rem;
    padding: 0.35rem;
}

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

.preview-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid var(--border);
    border-radius: 1rem;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.preview-inner {
    width: 100%;
}

.barcode-skeleton {
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
    border-radius: 0.8rem;
    border: 1px dashed #cbd5e1;
    padding: 1rem;
    background: #fff;
}

.barcode-bars {
    height: 118px;
    border-radius: 0.4rem;
    background:
        repeating-linear-gradient(
            90deg,
            #0f172a 0,
            #0f172a 3px,
            #fff 3px,
            #fff 6px,
            #1e293b 6px,
            #1e293b 8px,
            #fff 8px,
            #fff 11px
        );
}

#barcodePreviewImage {
    max-height: 220px;
    width: auto;
    border-radius: 0.45rem;
}

.preview-title {
    font-weight: 600;
}

.preview-subtitle {
    color: var(--muted);
}

.download-actions .btn {
    border-radius: 0.8rem;
    padding: 0.7rem 1rem;
    font-weight: 500;
}

.batch-progress .progress {
    height: 1rem;
    border-radius: 999px;
    background: #e8edff;
}

.batch-progress .progress-bar {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    font-size: 0.75rem;
    font-weight: 600;
}

.batch-result-card {
    border: 1px solid #dbe4ff;
    border-radius: 1rem;
    padding: 1rem;
    background: #f9fbff;
}

.mini-stat {
    border: 1px solid #e3e9ff;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.mini-stat-value {
    font-weight: 700;
    color: #312e81;
}

.feature-card {
    background: var(--surface);
    border: 1px solid #edf2ff;
    border-radius: 1rem;
    padding: 1.3rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.11);
    border-color: #d8e1ff;
}

.feature-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    font-weight: 600;
}

.feature-card p {
    color: var(--muted);
}

.faq-wrap {
    max-width: 860px;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 0.8rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: #312e81;
    background: #eef2ff;
}

.accordion-body {
    color: #475569;
}

.app-footer {
    background: #0f172a;
    color: #e2e8f0;
}

.app-footer p {
    color: #e2e8f0;
}

.footer-links a {
    color: #c7d2fe;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.btn {
    border-radius: 0.8rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #4338ca;
    background: linear-gradient(135deg, #4338ca, #5b5cf0);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.3);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 7.5rem;
    }

    .app-navbar .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .preview-panel {
        min-height: 280px;
    }
}
