: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%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; margin: 0; color: var(--ink); overflow-x: hidden;
    background:
        radial-gradient(40% 35% at 15% 10%, rgba(37,99,235,0.10) 0%, transparent 70%),
        radial-gradient(40% 40% at 90% 90%, rgba(124,58,237,0.10) 0%, transparent 70%),
        #eef2f7;
    background-attachment: fixed;
}
img { max-width: 100%; }
@keyframes sbUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sb-hero { text-align: center; margin: clamp(26px, 5vw, 46px) auto clamp(22px, 4vw, 34px); padding: 0 20px; max-width: 760px; animation: sbUp .5s ease both; }
.sb-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 6px 14px 6px 10px; border-radius: 999px;
    background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.18);
    color: #1d4ed8; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}
.sb-chip i.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); display: inline-block; }
.sb-title { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin: 0; color: var(--ink); }
.sb-title .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sb-sub { font-size: clamp(14px, 2vw, 16px); color: var(--muted); margin: 10px auto 0; line-height: 1.6; }

.sb-card {
    background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.7); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 16px 36px rgba(15,23,42,0.07);
}
.sb-ico {
    width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; flex-shrink: 0;
    color: #fff; background: var(--grad); box-shadow: 0 8px 18px rgba(37,99,235,.28); font-size: 16px;
}

.sb-footer { margin-top: auto; padding: 30px 20px; text-align: center; background: #0b0b0f; color: rgba(255,255,255,0.7); font-size: 13.5px;
    background-image: radial-gradient(60% 140% at 10% 0%, rgba(37,99,235,0.25) 0%, transparent 60%), radial-gradient(60% 140% at 100% 100%, rgba(124,58,237,0.25) 0%, transparent 60%); }
.sb-footer .brand { font-weight: 800; font-size: 18px; letter-spacing: 3px; color: #fff; margin-bottom: 10px; }
.sb-footer .social-links { margin-bottom: 12px; }
.sb-footer .social-links a {
    width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; margin: 0 6px;
    color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); font-size: 18px; transition: .2s; text-decoration: none;
}
.sb-footer .social-links a:hover { background: #1877f2; border-color: #1877f2; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.table-container {
    max-width: 1240px; margin: 0 auto 50px; padding: 24px 26px;
    background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.7); border-radius: 24px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 16px 36px rgba(15,23,42,0.07); animation: sbUp .5s ease .05s both;
}
.controls { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1 1 280px; min-width: 0; }
.search-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; }
#searchBar, #catFilter {
    width: 100%; padding: 13px 14px; border: 1.5px solid rgba(15,23,42,0.10); border-radius: 13px; background: #fff;
    font-family: inherit; 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;
}
#searchBar { padding-left: 42px; }
#catFilter { width: auto; min-width: 210px; font-weight: 700; cursor: pointer; }
#searchBar:focus, #catFilter:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.14); }
.search-wrap:focus-within i { color: var(--blue); }

.tbl-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 860px; background: #fff; }
th { background: #f8fafc; color: var(--label); padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 16px; border-bottom: 1px solid rgba(15,23,42,0.06); font-size: 14px; color: var(--label); vertical-align: top; line-height: 1.5; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f8fafc; }
.event-type-cell strong, .light-name strong { color: var(--ink); font-size: 15px; }

.badge { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.bg-indoor   { background: #dbeafe; color: #1d4ed8; }
.bg-outdoor  { background: #dcfce7; color: #15803d; }
.bg-memorial { background: #f1f5f9; color: #475569; }
.bg-catering { background: #fef3c7; color: #b45309; }
.bg-default, .bg-lights { background: #ede9fe; color: #6d28d9; }
.badge-light { background: #fef3c7; color: #b45309; }
.lights-text { color: #6d28d9; font-weight: 600; }
.price-text { font-weight: 800; color: var(--ink); font-size: 16px; white-space: nowrap; }
.per-pc { font-size: 12px; font-weight: 600; color: var(--soft); }
.spec-text { color: var(--muted); max-width: 380px; }
.stock-text { font-weight: 700; }
.stock-low { color: #b91c1c; }
.is-hidden { display: none !important; }
.empty-row td { text-align: center; color: var(--muted); padding: 34px; font-weight: 600; }

@media (max-width: 900px) {
    .table-container { margin: 0 14px 40px; padding: 16px; border-radius: 20px; }
    #catFilter { width: 100%; }
    .tbl-scroll { border: none; overflow: visible; }
    table, thead, tbody, th, td, tr { display: block; }
    table { min-width: 0; background: transparent; }
    thead tr { display: none; }
    tbody tr { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; padding: 6px 14px; box-shadow: 0 6px 16px rgba(15,23,42,0.05); }
    tbody tr:hover td { background: transparent; }
    td { display: flex; justify-content: space-between; gap: 14px; text-align: right; padding: 10px 0; border-bottom: 1px dashed var(--line); word-break: break-word; }
    tbody tr td:last-child { border-bottom: none; }
    td::before { content: attr(data-label); flex: 0 0 96px; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--soft); padding-top: 2px; }
    .spec-text { max-width: none; }
    .empty-row td { display: block; text-align: center; }
    .empty-row td::before { display: none; }
}