*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #111;
    --accent: #2563eb;
    --card-bg: rgba(255, 255, 255, 0.6);
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #111;
    --text-muted: #888;
    --text-label: #555;
    --sidebar-w: 260px;
    --topbar-h: 60px;
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    color: var(--text-main);
    overflow-x: hidden;
}

.main-content {
    margin-left: var(--sidebar-w); flex: 1; min-width: 0; padding: 36px 40px;
    width: calc(100% - var(--sidebar-w)); transition: all 0.3s ease;
}
.main-content.expanded { margin-left: 0; width: 100%; }

.page-header { margin-bottom: 32px; }
.page-title { font-size: 26px; font-weight: 700; }

.step-card {
    background: var(--card-bg); backdrop-filter: blur(24px);
    border-radius: 16px; border: 0.5px solid var(--border);
    padding: 32px; margin-bottom: 24px;
}
.step-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-num {
    width: 32px; height: 32px; background: #111; color: white; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.step-title { font-weight: 700; font-size: 15px; }
.step-desc { font-size: 12px; color: var(--text-muted); }

.form-group label {
    display: block; font-size: 11px; font-weight: 600; color: var(--text-label);
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px;
}
.form-group input {
    width: 100%; padding: 11px 16px; border: 1.5px solid rgba(0,0,0,0.09);
    border-radius: 10px; font-size: 14px; font-family: inherit; background: white;
}
.form-group input:focus { outline: none; border-color: var(--accent); }

#suggestionLabel {
    display: none; background: rgba(37,99,235,0.07);
    border: 1px solid rgba(37,99,235,0.15); border-left: 3px solid #2563eb;
    padding: 11px 16px; border-radius: 10px; color: #2563eb;
    font-weight: 600; font-size: 12px; margin-top: 12px; line-height: 1.5;
}

.filter-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-tab {
    padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.5); cursor: pointer; font-weight: 600;
    font-size: 12px; font-family: inherit;
}
.btn-tab.active { background: #111; color: white; }

.catalog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 16px; width: 100%;
}
.equipment-type-group { grid-column: 1 / -1; }
.pkg-card {
    border: 1.5px solid rgba(0,0,0,0.08); border-radius: 14px; overflow: hidden;
    background: rgba(255,255,255,0.7); position: relative; min-width: 0;
}
.pkg-card.filtered-out { display: none !important; }
.cat-badge {
    position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.65);
    color: white; padding: 5px 11px; border-radius: 6px; font-size: 11px;
    font-weight: 800; text-transform: uppercase; z-index: 2;
}
video { width: 100%; height: 185px; object-fit: cover; background: #000; display: block; }
.pkg-info { padding: 20px; }
.pkg-event-type { font-weight: 800; font-size: 18px; line-height: 1.35; margin-bottom: 8px; color: #111827; letter-spacing: -0.15px; overflow-wrap: anywhere; }
.pkg-price { font-size: 25px; line-height: 1.2; font-weight: 800; color: #111827; margin-bottom: 12px; }
.pkg-specs { font-size: 14px; line-height: 1.65; color: #374151; margin-bottom: 16px; overflow-wrap: anywhere; }
.pkg-specs b { font-weight: 800; color: #111827; }
.pkg-specs .spec-lights-line { display: inline-block; margin-top: 3px; }

.btn-select {
    width: 100%; padding: 13px 14px; border: 1.5px solid rgba(0,0,0,0.14);
    background: white; border-radius: 10px; font-weight: 800; font-size: 14px;
    line-height: 1.2; cursor: pointer; color: #111827; font-family: inherit;
}
.btn-select:hover { background: #111827; color: white; }

.inline-alert-stack {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 6000; display: flex; flex-direction: column; gap: 10px;
    width: min(420px, 92vw); pointer-events: none;
}
.inline-alert-toast {
    pointer-events: auto; background: #111; color: #fff; border-left: 4px solid #f59e0b;
    padding: 13px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25); opacity: 0; transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.inline-alert-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .main-content, .main-content.expanded {
        margin-left: 0; width: 100%;
        padding: calc(var(--topbar-h) + 20px) 24px 32px;
    }
}
@media (max-width: 720px) { .step-card { padding: 24px 20px; } }
@media (max-width: 600px) {
    .main-content, .main-content.expanded { padding: calc(var(--topbar-h) + 16px) 14px 28px; }
    .page-header { margin-bottom: 22px; }
    .page-title { font-size: 21px; }
    .step-card { padding: 20px 16px; border-radius: 14px; margin-bottom: 18px; }
    .step-header { margin-bottom: 16px; }
    .form-group input { font-size: 16px; padding: 13px 14px; }
    .catalog-grid { grid-template-columns: 1fr; }
    video { height: auto; aspect-ratio: 16 / 9; }
    .btn-tab { padding: 9px 14px; font-size: 11px; flex: 1 1 calc(50% - 8px); text-align: center; }
}
@media (max-width: 380px) { .btn-tab { flex: 1 1 100%; } }

:root {
    --ink: #0f172a; --muted: #475569; --soft: #64748b; --label: #1e293b;
    --line: rgba(15,23,42,0.08); --blue: #2563eb; --violet: #7c3aed;
    --grad: linear-gradient(135deg, #2563eb, #7c3aed);
    --grad-dark: linear-gradient(135deg, #111827 0%, #1e3a8a 55%, #4c1d95 100%);
    --text-main: #0f172a; --text-muted: #475569; --text-label: #1e293b;
}
.ico { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes grUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body {
    color: var(--ink);
    background:
        radial-gradient(40% 35% at 15% 10%, rgba(37,99,235,0.12) 0%, transparent 70%),
        radial-gradient(40% 40% at 90% 90%, rgba(124,58,237,0.12) 0%, transparent 70%),
        #eef2f7;
    background-attachment: fixed;
}
.main-content > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

.page-header { margin-bottom: 20px; animation: grUp .5s ease both; }
.gr-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
    padding: 5px 12px 5px 9px; border-radius: 999px;
    background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.18);
    color: #1d4ed8; font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}
.gr-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.page-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-sub { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

.gr-banner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 22px; margin-bottom: 22px; border-radius: 20px; color: #fff;
    background:
        radial-gradient(60% 140% at 10% 0%, rgba(96,165,250,0.45) 0%, transparent 60%),
        radial-gradient(60% 140% at 100% 100%, rgba(167,139,250,0.5) 0%, transparent 60%),
        #0b0b0f;
    box-shadow: 0 18px 40px rgba(15,23,42,0.18); animation: grUp .5s ease .05s both;
}
.gr-banner-ico {
    width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--grad); box-shadow: 0 8px 20px rgba(37,99,235,.45);
}
.gr-banner-ico .ico { width: 22px; height: 22px; }
.gr-banner-text { flex: 1; min-width: 220px; }
.gr-banner-text b { display: block; font-size: 16px; font-weight: 800; }
.gr-banner-text span { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.gr-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gr-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
    font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s;
}
.gr-btn:hover { transform: translateY(-1px); }
.gr-btn-ghost { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); }
.gr-btn-ghost:hover { background: rgba(255,255,255,0.18); }
.gr-btn-main { color: #0f172a; background: #fff; }

.step-card {
    background: rgba(255,255,255,0.88); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.7); border-radius: 24px; padding: 28px 30px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 18px 40px rgba(15,23,42,0.07);
    animation: grUp .5s ease .1s both;
}
.step-header { gap: 14px; margin-bottom: 20px; }
.step-num {
    width: 42px; height: 42px; border-radius: 13px; background: var(--grad);
    font-size: 17px; font-weight: 800; box-shadow: 0 8px 20px rgba(37,99,235,0.30);
}
.step-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.step-desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.form-group label { font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--label); margin-bottom: 8px; }
.gr-input { position: relative; }
.gr-input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; display: flex; }
.gr-input-ico .ico { width: 18px; height: 18px; }
.gr-input:focus-within .gr-input-ico { color: var(--blue); }
.form-group input {
    padding: 13px 14px 13px 42px; border: 1.5px solid rgba(15,23,42,0.10); border-radius: 12px;
    font-size: 14.5px; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    transition: border-color .2s, box-shadow .2s;
}
.form-group input::placeholder { color: var(--soft); }
.form-group input:hover { border-color: rgba(37,99,235,0.35); }
.form-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.14); }

#suggestionLabel {
    border: 1px solid rgba(37,99,235,0.18); border-left: 4px solid var(--blue); border-radius: 12px;
    background: rgba(37,99,235,0.06); color: #1d4ed8; font-size: 13.5px; padding: 12px 16px;
}

.filter-tabs {
    display: flex; gap: 6px; padding: 6px; border-radius: 16px; width: fit-content; max-width: 100%;
    background: #f1f5f9; border: 1px solid var(--line); margin-bottom: 10px;
}
.btn-tab {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 11px; border: none; background: transparent;
    color: #334155; font-size: 13.5px; font-weight: 700; transition: background .2s, color .2s, box-shadow .2s;
}
.btn-tab .ico { width: 17px; height: 17px; }
.btn-tab:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.btn-tab.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(15,23,42,0.10); }
.btn-tab.active .ico { color: var(--blue); }

.equipment-type-group {
    display: flex; align-items: center; gap: 10px;
    background: none !important; border: none !important; border-radius: 0 !important;
    padding: 4px 2px !important; margin-top: 14px !important;
    font-size: 17px !important; font-weight: 800 !important; letter-spacing: -0.2px; color: var(--ink);
}
.equipment-type-group::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(15,23,42,0.12), transparent); }
.rn-gico {
    width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0;
    color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(37,99,235,.28);
}
.rn-gico .ico { width: 17px; height: 17px; }

.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 18px; }
.pkg-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 20px; background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 26px rgba(15,23,42,0.07);
    transition: transform .2s, box-shadow .2s;
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,23,42,0.05), 0 18px 38px rgba(15,23,42,0.12); }
.cat-badge {
    top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; font-size: 10.5px; letter-spacing: 1px;
    background: rgba(15,23,42,0.65) !important; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.18);
}
.pkg-card[data-source-table="custom_setups"] .cat-badge { background: rgba(37,99,235,0.85) !important; }
video { height: 170px; }
.pkg-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.pkg-event-type { font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.pkg-price { font-size: 24px; margin-bottom: 12px; color: var(--ink); letter-spacing: -0.5px; }
.pkg-specs {
    font-size: 14px; color: var(--label); margin-bottom: 16px;
    padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line);
}
.btn-select {
    margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px dashed rgba(37,99,235,0.35); border-radius: 12px; padding: 12px 14px;
    color: #1d4ed8; background: rgba(37,99,235,0.05); font-size: 14px; transition: all .2s;
}
.btn-select:hover { color: #fff; border-color: transparent; border-style: solid; background: var(--grad-dark); }

#emptyPackageMessage { color: var(--muted) !important; font-weight: 600; }

.inline-alert-toast { border-radius: 14px; background: #0f172a; font-size: 14px; padding: 14px 16px; box-shadow: 0 16px 34px rgba(0,0,0,0.25); }

@media (max-width: 600px) {
    .page-title { font-size: 25px; }
    .gr-banner { padding: 16px; }
    .gr-banner-btns { width: 100%; }
    .gr-btn { flex: 1; justify-content: center; white-space: nowrap; padding: 11px 12px; font-size: 13.5px; }
    .step-card { padding: 20px 16px; border-radius: 20px; }
    .step-num { width: 36px; height: 36px; font-size: 15px; }
    .filter-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .btn-tab { padding: 10px 8px; font-size: 12.5px; flex: none; }
    .form-group input { font-size: 16px; padding-left: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}