/* ALEX BRIGHT interface refresh */
:root, [data-theme="dark"] {
    --bg-main: #0c111b;
    --bg-surface: #111827;
    --bg-card: #151d2b;
    --bg-card-hover: #1a2535;
    --header-bg: rgba(12, 17, 27, .96);
    --border-color: #273244;
    --border-hover: #5367a8;
    --indigo: #6877dc;
    --indigo-light: #8793ee;
    --purple: #7378d5;
    --cyan: #64a6d9;
    --cyan-light: #84bee8;
    --text-primary: #eef2f8;
    --text-secondary: #aab5c5;
    --text-muted: #7f8b9e;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 6px 18px rgba(0, 0, 0, .16);
}

body { background-image: none !important; }
.site-header { box-shadow: none !important; border-bottom: 1px solid var(--border-color); }
.site-header .navbar { min-height: 68px; }
.brand-logo img { border-radius: 9px !important; }
.nav-links { gap: 5px !important; }
.nav-link, .theme-btn, .profile-trigger-btn { transition: background .16s ease, color .16s ease !important; }
.nav-link { border-radius: 8px !important; }
.nav-link.active { box-shadow: none !important; }
.nav-link.active { background: #344171 !important; }
.btn-primary { background: #6574cf !important; border-color: #6574cf !important; box-shadow: none !important; }
.btn-primary:hover { background: #7482dc !important; border-color: #7482dc !important; transform: none !important; }
.btn-secondary { box-shadow: none !important; }
.card { border-radius: 11px !important; box-shadow: var(--shadow-card) !important; }
.card:hover { transform: none !important; box-shadow: var(--shadow-card) !important; }
.badge { letter-spacing: .01em; box-shadow: none !important; }
.theme-switcher-pill { background: transparent !important; border-color: var(--border-color) !important; }
.floating-support-btn { box-shadow: 0 5px 16px rgba(25, 37, 70, .28) !important; }

.home-page { padding: 22px 0 32px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: 34px 0 54px; }
.home-intro { max-width: 650px; }
.home-eyebrow { margin: 0 0 9px; color: var(--indigo-light); font-size: .72rem; font-weight: 700; letter-spacing: .09em; }
.home-intro h1 { max-width: 610px; margin: 0 0 17px; color: var(--text-primary); font-size: clamp(2.3rem, 4.2vw, 3.65rem); font-weight: 750; line-height: 1.08; letter-spacing: -.045em; }
.home-lede { max-width: 540px; margin: 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.home-actions .btn, .home-feature .btn { box-shadow: none !important; }
.home-feature { overflow: hidden; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); box-shadow: var(--shadow-card); }
.home-feature-image { display: block; height: 170px; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.home-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.home-feature-top { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 18px 20px; border-bottom: 1px solid var(--border-color); }
.home-feature-top img { width: 46px; height: 46px; border: 1px solid var(--border-color); border-radius: 10px; object-fit: cover; }
.home-feature-top span { color: var(--indigo-light); font-size: .75rem; font-weight: 700; }
.home-feature-body { padding: 20px; }
.home-feature-body .home-card-label { margin: 0 0 6px; color: var(--text-muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.home-feature-body h2 { margin: 0 0 8px; font-size: 1.15rem; }
.home-feature-body > p:not(.home-card-label) { min-height: 42px; margin: 0; color: var(--text-secondary); font-size: .86rem; line-height: 1.55; }
.home-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.home-feature-foot strong { color: var(--text-primary); font-size: .9rem; }
.home-section { margin: 0 0 46px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 17px; }
.home-section-heading .home-eyebrow { margin-bottom: 4px; }
.home-section-heading h2 { margin: 0; color: var(--text-primary); font-size: 1.45rem; letter-spacing: -.025em; }
.home-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: .82rem; text-decoration: none; }
.home-text-link:hover { color: var(--text-primary); }
.home-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.home-category { display: grid; grid-template-columns: 42px 1fr 16px; align-items: center; gap: 12px; min-height: 86px; padding: 15px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-card); color: inherit; text-decoration: none; transition: border-color .16s, background .16s; }
.home-category:hover, .home-product:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: none !important; }
.home-category-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: rgba(104, 119, 220, .12); color: var(--indigo-light); }
.home-category strong { display: block; margin-bottom: 3px; font-size: .89rem; }
.home-category small { display: block; overflow: hidden; color: var(--text-muted); font-size: .74rem; line-height: 1.4; text-overflow: ellipsis; }
.home-category-arrow { color: var(--text-muted); font-size: .75rem; }
.home-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.home-product { overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); transition: border-color .16s, background .16s; }
.home-product-image { display: block; height: 150px; overflow: hidden; background: #0c111b; }
.home-product-image img { width: 100%; height: 100%; object-fit: cover; }
.home-product-body { padding: 16px; }
.home-product-type { color: var(--indigo-light); font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.home-product h3 { margin: 7px 0; font-size: .99rem; line-height: 1.4; }
.home-product h3 a { color: var(--text-primary); text-decoration: none; }
.home-product-body > p { min-height: 38px; margin: 0; color: var(--text-secondary); font-size: .8rem; line-height: 1.5; }
.home-product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.home-product-foot strong { color: var(--text-primary); font-size: .95rem; }
.home-product-foot a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-secondary); text-decoration: none; }
.home-product-foot a:hover { border-color: var(--indigo); color: var(--text-primary); }

@media (max-width: 820px) {
    .site-header .container { padding-inline: 14px; }
    .site-header .navbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 7px 12px; padding: 8px 0; }
    .site-header .brand-logo { margin-right: auto; }
    .site-header .nav-right { order: 2; gap: 7px; }
    .site-header .nav-links { order: 3; display: flex !important; width: 100%; gap: 3px !important; overflow-x: auto; scrollbar-width: none; }
    .site-header .nav-links::-webkit-scrollbar { display: none; }
    .site-header .nav-links li { flex: 0 0 auto; }
    .site-header .nav-link { padding: 7px 10px !important; font-size: .76rem; }
    .home-page { padding-top: 8px; }
    .home-hero { grid-template-columns: 1fr; padding: 24px 0 38px; }
    .home-feature { max-width: 560px; }
}
@media (max-width: 540px) {
    .home-section-heading { align-items: start; flex-direction: column; }
    .home-section-heading h2 { font-size: 1.28rem; }
    .home-feature-foot { align-items: start; flex-direction: column; }
    .home-feature-foot .btn { width: 100%; justify-content: center; }
    .home-category-grid, .home-product-grid { grid-template-columns: 1fr; }
}
