:root {
    --bg-dark: #0f172a;
    --bg-mid: #16213f;
    --gold: #f59e0b;
    --gold-deep: #d97706;
    --text-soft: #94a3b8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #fff;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.custom-navbar {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-mark {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    /* background: linear-gradient(135deg, var(--gold), #fcd34d); */
    color: var(--bg-dark);
    display: grid;
    place-items: center;
    font-weight: 800;
}
.brand-name { font-weight: 700; line-height: 1; }
.brand-subtitle { color: #cbd5e1; }
.navbar .nav-link { color: rgba(255,255,255,0.85); }
.navbar .nav-link:hover { color: #fff; }

.flash-wrap {
    margin-top: 90px;
    position: relative;
    z-index: 10;
}

.hero-section {
    padding: 150px 0 90px;
    background:
        radial-gradient(circle at top right, rgba(245,158,11,0.18), transparent 28%),
        linear-gradient(135deg, var(--bg-dark), #111827 55%, #1f2937);
    color: white;
}
.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: #fcd34d;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: 1.04;
    font-weight: 800;
    max-width: 10.5ch;
}
.hero-text {
    color: #dbe4f0;
    max-width: 56ch;
    font-size: 1.06rem;
    margin-top: 1rem;
}
.hero-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 40px 70px rgba(0,0,0,0.24);
}
.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.panel-box {
    min-height: 160px;
    border-radius: 24px;
    padding: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.panel-box.tall { min-height: 210px; }
.panel-box span { color: #fcd34d; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.panel-box strong { font-size: 1.12rem; }
.panel-box.accent { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(255,255,255,0.08)); }

.hero-stats .stat-card,
.metric-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 16px 18px;
}
.hero-stats .stat-card strong,
.metric-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.hero-stats .stat-card span { color: #cbd5e1; font-size: 0.92rem; }

.section-block { padding: 90px 0; }
.section-soft { background: var(--surface-soft); }
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 800; }

.category-card,
.content-panel,
.contact-card,
.form-card,
.auth-card,
.table-card,
.cta-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.category-card {
    display: block;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16); }
.category-card h5 { font-size: 1.2rem; font-weight: 700; }
.category-card p { color: #64748b; margin-bottom: 0.5rem; }
.category-card span { color: var(--gold-deep); font-weight: 600; }

.product-card {
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.product-card img,
.detail-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.product-image-placeholder,
.placeholder-detail {
    width: 100%;
    height: 280px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    color: #334155;
    font-weight: 700;
    font-size: 1.1rem;
}
.product-card-body { padding: 24px; }
.product-badge {
    display: inline-block;
    background: #fff7ed;
    color: var(--gold-deep);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.product-card h5 { font-weight: 700; }
.product-card p { color: #64748b; }
.product-link { color: var(--gold-deep); font-weight: 700; text-decoration: none; }

.cta-banner {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.page-banner {
    padding: 150px 0 70px;
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: white;
}
.compact-banner { padding: 140px 0 50px; }
.admin-banner { background: linear-gradient(135deg, #111827, #1f2937); }
.page-banner h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 800; max-width: 14ch; }
.page-banner p { color: #dbe4f0; max-width: 60ch; }

.dark-panel {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid));
    color: white;
    border-color: rgba(255,255,255,0.08);
}
.feature-list { margin: 0; padding-left: 1.1rem; }
.feature-list li { margin-bottom: 0.8rem; }

.filter-bar { margin-bottom: 1.5rem; }
.filter-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: white;
    text-decoration: none;
    font-weight: 600;
}
.filter-pill.active {
    background: var(--bg-dark);
    color: white;
    border-color: var(--bg-dark);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 1.5rem;
}
.spec-item {
    background: var(--surface-soft);
    border-radius: 20px;
    padding: 18px;
    border: 1px solid var(--border);
}
.spec-item span { display: block; font-size: 0.85rem; color: #64748b; margin-bottom: 6px; }
.spec-item strong { font-size: 1rem; }

.contact-card h5,
.content-panel h3,
.form-card h3,
.auth-card h2 { font-weight: 700; }
.contact-card p,
.content-panel p { color: #475569; }

.admin-auth-body {
    background: radial-gradient(circle at top, rgba(245,158,11,0.12), transparent 24%), linear-gradient(135deg, var(--bg-dark), #111827);
}
.auth-card { padding: 34px; }
.auth-card .form-control,
.form-card .form-control {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
}

.metric-card {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid));
    color: white;
    border: 0;
}
.metric-card span { display: block; color: #cbd5e1; margin-bottom: 8px; }
.metric-card strong { font-size: 2rem; }

.table-card { padding: 0; overflow: hidden; }
.table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 18px;
}
.table tbody td { padding: 18px; }
.table-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
}
.table-thumb-placeholder {
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
}
.existing-image-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.existing-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
}
.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    color: #64748b;
}

.site-footer {
    background: #0b1220;
    color: white;
    padding: 60px 0 30px;
}
.footer-links li,
.footer-contact li { margin-bottom: 0.6rem; }
.footer-links a,
.footer-contact a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover,
.footer-contact a:hover { color: white; }
.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
}

@media (max-width: 991px) {
    .hero-title,
    .page-banner h1 { max-width: none; }
    .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
    .hero-section,
    .page-banner,
    .compact-banner { padding-top: 125px; }
    .section-block { padding: 70px 0; }
    .spec-grid,
    .panel-grid { grid-template-columns: 1fr; }
    .product-card img,
    .detail-image,
    .product-image-placeholder,
    .placeholder-detail { height: 230px; }
}
