/* ═══════════════════════════════════════════════════════
   GadgetID — Main Public CSS
   Light, modern, professional theme
   ═══════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light:#EFF6FF;
    --secondary:    #0EA5E9;
    --accent:       #F59E0B;
    --success:      #10B981;
    --danger:       #EF4444;
    --text-primary:   #0F172A;
    --text-secondary: #475569;
    --text-muted:     #94A3B8;
    --border:         #E2E8F0;
    --bg-page:        #F8FAFC;
    --bg-card:        #FFFFFF;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:  0 16px 48px rgba(0,0,0,.12);
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --header-h:   64px;
    --transition: 200ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.nav { display: flex; gap: 8px; margin: 0 auto; align-items: center; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 14px;
}
.nav-link svg { transition: transform var(--transition); }
.nav-link:hover svg { transform: translateY(-1px); }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.header-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 6px 14px;
    min-width: 220px;
    transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--primary); }
.header-search input {
    border: none; background: none; outline: none;
    font-size: 14px; width: 100%; color: var(--text-primary);
}
[hidden] { display: none !important; }

.hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
    background: white;
    border-top: 1px solid var(--border);
    padding: 8px 16px 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden] { display: none !important; }
@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
}
.mobile-nav-link { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text-secondary); }
.mobile-nav-link:hover { background: var(--primary-light); color: var(--primary); }

/* ─── Slider ────────────────────────────────────────────────────────────── */
.slider-section {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: #1E293B;
}
.slider-wrapper { width: 100%; height: 100%; }
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg-img { width: 100%; height: 100%; object-fit: cover; }
.slide-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1E3A5F, #2563EB); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 40px; }
.slide-category {
    display: inline-block;
    background: var(--primary);
    color: white; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 10px;
}
.slide-title { color: white; font-size: clamp(20px, 3vw, 32px); font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.slide-title a { color: inherit; }
.slide-title a:hover { text-decoration: underline; }
.slide-date { color: rgba(255,255,255,.7); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3); color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
    z-index: 5;
}
.slider-btn:hover { background: rgba(255,255,255,.3); }
#slidePrev { left: 16px; }
#slideNext { right: 16px; }
.slider-dots {
    position: absolute;
    bottom: 16px; right: 40px;
    display: flex; gap: 8px;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: none;
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
}
.slider-dot.active { background: white; transform: scale(1.3); }
.slider-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: white; }

/* ─── Section ───────────────────────────────────────────────────────────── */
.section { padding: 40px 0; }
.section:first-child { padding-top: 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.section-more { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.section-more:hover { text-decoration: underline; }

/* ─── Phone Finder ──────────────────────────────────────────────────────── */
.finder-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 0; }
.finder-tab {
    padding: 12px 20px; font-weight: 700; font-size: 13px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    background: none; border-top: none; border-left: none; border-right: none;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.finder-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.phone-finder {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}
.phone-finder-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    font-weight: 700; font-size: 15px; color: var(--text-primary);
}
.phone-finder-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 16px 20px;
}
@media (max-width: 640px) {
    .phone-finder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.brand-btn {
    padding: 8px 6px;
    text-align: center;
    font-size: 12px; font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: .03em;
}
.brand-btn:hover, .brand-btn.active {
    background: var(--primary);
    color: white; border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.phone-finder-footer {
    display: flex; gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-page);
}
.finder-footer-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    font-size: 12px; font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    transition: all var(--transition);
}
.finder-footer-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ─── Cards / News ──────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
.cards-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-img-placeholder {
    width: 100%; aspect-ratio: 16/10;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    font-size: 40px;
}
.card-body { padding: 16px; }
.card-category {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px; border-radius: 20px;
    margin-bottom: 8px;
}
.card-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.card-views { display: flex; align-items: center; gap: 4px; }

/* ─── Device Cards ──────────────────────────────────────────────────────── */
.device-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    color: inherit;
}
.device-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.device-card-img-wrap { background: #F8FAFC; padding: 16px; text-align: center; }
.device-card-img { width: 100%; max-height: 160px; object-fit: contain; margin: 0 auto; }
.device-card-img-placeholder {
    height: 160px; display: flex; align-items: center; justify-content: center;
    font-size: 60px;
}
.device-card-body { padding: 14px; flex: 1; }
.device-card-brand { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.device-card-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); line-height: 1.3; }
.device-card-price { font-size: 13px; font-weight: 700; color: var(--success); display: block; margin-bottom: 8px; }
.device-card-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.spec-badge {
    font-size: 11px; background: var(--bg-page);
    border: 1px solid var(--border); border-radius: 4px;
    padding: 2px 6px; color: var(--text-secondary);
}
.device-card-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }

/* ─── Rankings ──────────────────────────────────────────────────────────── */
.home-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ranking-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { background: var(--bg-page); padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: left; border-bottom: 1px solid var(--border); }
.ranking-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.ranking-table tr:last-child td { border-bottom: none; }
.rank-num { font-weight: 700; color: var(--text-muted); }
.rank-num.top3 { color: var(--accent); }
.rank-name { color: var(--primary); font-weight: 600; }
.rank-name:hover { text-decoration: underline; }

/* Device mini cards */
.device-list-mini { display: flex; flex-direction: column; gap: 8px; }
.device-mini-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px;
    transition: box-shadow var(--transition);
    color: inherit;
}
.device-mini-card:hover { box-shadow: var(--shadow-sm); }
.device-mini-img { width: 48px; height: 48px; border-radius: 6px; background: var(--bg-page); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.device-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.device-mini-img span { font-size: 22px; }
.device-mini-info { display: flex; flex-direction: column; min-width: 0; }
.device-mini-brand { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.device-mini-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-mini-price { font-size: 12px; color: var(--success); font-weight: 600; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: white;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    border: none; cursor: pointer;
    transition: background var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    transition: background var(--transition);
}
.btn-secondary:hover { background: var(--primary-light); }

/* ─── Filter Bar ────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: white; padding: 16px; border: 1px solid var(--border);
    border-radius: var(--radius-md); margin-bottom: 20px;
}
.filter-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-page); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px 14px;
    flex: 1; min-width: 200px;
}
.filter-search input { border: none; background: none; outline: none; font-size: 14px; width: 100%; }
.filter-bar select {
    border: 1px solid var(--border); background: var(--bg-page);
    border-radius: var(--radius-sm); padding: 8px 12px;
    font-size: 14px; outline: none;
    cursor: pointer;
}
.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input {
    border: 1px solid var(--border); background: var(--bg-page);
    border-radius: var(--radius-sm); padding: 8px 12px;
    font-size: 14px; width: 130px; outline: none;
}
.result-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--text-secondary); }
.result-badge { background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* ─── Detail Page ───────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 24px 0 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding-bottom: 60px; align-items: start; }

/* Device Detail */
.device-header-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; margin-bottom: 24px; }
.device-header-img { display: flex; align-items: center; justify-content: center; background: var(--bg-page); border-radius: var(--radius-sm); padding: 16px; min-height: 260px; }
.device-main-img { max-height: 260px; object-fit: contain; }
.device-main-placeholder { font-size: 80px; display: flex; align-items: center; justify-content: center; height: 260px; }
.device-brand-badge { display: inline-block; background: var(--primary); color: white; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.device-name { font-size: 26px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.device-price { margin-bottom: 16px; }
.price-label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.price-value { font-size: 22px; font-weight: 800; color: var(--success); }
.device-stats { display: flex; gap: 20px; margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); }
.stat-item { display: flex; align-items: center; gap: 6px; }
.like-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--primary); color: white;
    padding: 9px 16px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 13px; border: none; cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-bottom: 20px; white-space: nowrap;
}
.like-btn:hover:not(:disabled) { background: var(--primary-dark); transform: scale(1.02); }
.like-btn.liked { background: #EC4899; }
.like-btn:disabled { opacity: .8; cursor: default; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-spec-item { display: flex; align-items: flex-start; gap: 8px; background: var(--bg-page); border-radius: var(--radius-sm); padding: 10px; border: 1px solid var(--border); }
.qs-icon { font-size: 16px; flex-shrink: 0; }
.qs-label { font-size: 11px; color: var(--text-muted); display: block; }
.qs-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Specs Table */
.specs-section { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.specs-title { font-size: 18px; font-weight: 700; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.spec-group { border-bottom: 1px solid var(--border); }
.spec-group:last-child { border-bottom: none; }
.spec-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); background: var(--primary-light); padding: 10px 24px; }
.specs-table { width: 100%; border-collapse: collapse; }
.spec-label { padding: 12px 24px; font-size: 14px; font-weight: 500; color: var(--text-secondary); width: 40%; background: var(--bg-page); border-bottom: 1px solid var(--border); }
.spec-val { padding: 12px 24px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.specs-table tr:last-child td { border-bottom: none; }

/* ─── Article ───────────────────────────────────────────────────────────── */
.article { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.article-header { padding: 24px; border-bottom: 1px solid var(--border); }
.article-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; line-height: 1.3; margin: 10px 0 14px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.article-figure { margin: 0; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; }
.article-lead { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 16px 24px; font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.article-content { padding: 24px; font-size: 15px; line-height: 1.8; color: var(--text-primary); }
.article-content p { margin-bottom: 16px; }
.article-footer { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--bg-page); }
.article-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.share-label { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-right: 4px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; color: white;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.95; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-x   { background: #000000; color: #FFFFFF; }
.share-fb  { background: #1877F2; color: #FFFFFF; }
.share-wa  { background: #25D366; color: #FFFFFF; }
.share-ig  { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #FFFFFF; }

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.sidebar-heading { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 14px; }
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item { display: flex; gap: 10px; align-items: flex-start; }
.related-img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-img-placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-page); font-size: 20px; border: 1px solid var(--border); }
.related-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-primary); margin-bottom: 4px; }
.related-title:hover { color: var(--primary); }
.related-date { font-size: 11px; color: var(--text-muted); }
.related-price { font-size: 12px; color: var(--success); font-weight: 600; }
.sidebar-finder-btn {
    display: flex; align-items: center; gap: 10px;
    background: var(--primary); color: white;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    width: 100%;
    transition: background var(--transition);
}
.sidebar-finder-btn:hover { background: var(--primary-dark); }
.mt-8 { margin-top: 8px; }

/* ─── Pagination ────────────────────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 32px 0;
}
.page-btn {
    min-width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    color: var(--text-secondary); background: white;
    transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Alerts ────────────────────────────────────────────────────────────── */
.alert, .alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; color: #1D4ED8; margin-bottom: 20px; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; color: #B91C1C; margin-bottom: 16px; }

/* ─── Empty State ───────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }

/* ─── Public Forms ─────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; text-align: left; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.form-label .required { color: var(--danger); }
.form-input, .form-textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text-primary); background: white;
    outline: none; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.captcha-box {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    border-radius: 12px; padding: 14px 18px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.captcha-question {
    font-weight: 700; font-size: 15px; color: #2563EB;
    background: white; padding: 6px 14px; border-radius: 8px; border: 1px solid #CBD5E1;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.captcha-input {
    width: 110px !important; min-width: 90px; text-align: center; font-weight: 700; font-size: 15px;
    background: white !important; border: 1px solid #CBD5E1 !important; border-radius: 8px !important;
    padding: 8px 10px !important;
}
.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.captcha-input[type=number] {
    -moz-appearance: textfield;
}

/* ─── Page Header ───────────────────────────────────────────────────────── */
.page-header { padding: 32px 0 24px; }
.page-title { font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin-bottom: 8px; }
.page-desc { color: var(--text-secondary); font-size: 15px; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer { background: white; border-top: 1px solid var(--border); margin-top: 60px; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
    .home-two-col { grid-template-columns: 1fr; }
    .device-header-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-inner { justify-content: space-between; }
    .nav { display: none; }
    .header-search { display: none; }
    .hamburger { display: flex; margin-left: auto; }
    .slider-section { height: 320px; }
    .slide-content { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .quick-specs { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-price { flex-wrap: wrap; }
    .filter-price input { width: 100%; }
}
@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .container { padding: 0 16px; }
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
/* ─── Top Header Bar ─────────────────────────────────────────────────────── */
.top-bar {
    background: #FFFFFF;
    color: var(--text-secondary);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar-left { display: flex; align-items: center; gap: 12px; }
.top-bar-date { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-weight: 500; }
.top-bar-divider { color: var(--border); }
.top-bar-link { color: var(--text-secondary); transition: color 0.2s; font-weight: 500; text-decoration: none; }
.top-bar-link:hover { color: var(--primary); }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-social-link { color: var(--text-muted); transition: color 0.2s; display: inline-flex; align-items: center; text-decoration: none; }
.top-social-link:hover { color: var(--primary); }

/* ─── Breaking News Ticker Bar ──────────────────────────────────────────── */
.breaking-news-bar {
    background: linear-gradient(90deg, #0F172A, #1E293B);
    color: #F8FAFC;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 90;
}
.breaking-news-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 44px;
}
.breaking-news-badge {
    background: #DC2626;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.8px;
    padding: 0 18px 0 14px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.breaking-pulse {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 1.5s infinite;
}
@keyframes pulse-white {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.breaking-news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 28px;
}
.ticker-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms ease, transform 400ms ease;
    pointer-events: none;
}
.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ticker-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #F8FAFC;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    text-decoration: none;
}
.ticker-link:hover .ticker-title {
    color: #60A5FA;
    text-decoration: underline;
}
.ticker-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #F1F5F9;
}
.ticker-dot {
    color: #64748B;
    font-weight: 900;
}
.ticker-time {
    font-weight: 600;
    color: #94A3B8;
    font-size: 12px;
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.breaking-news-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.breaking-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #E2E8F0;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
}
.breaking-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .breaking-news-badge {
        clip-path: none;
        border-radius: 4px;
        padding: 0 10px;
        font-size: 10px;
        height: 26px;
    }
    .ticker-link { font-size: 13px; }
    .ticker-time { font-size: 11px; }
}

/* ─── Live Search Modal Overlay ─────────────────────────────────────────── */
.search-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
}
.search-modal-container {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 680px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(-16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}
.search-modal-overlay.active .search-modal-container {
    transform: translateY(0) scale(1);
}
.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
}
.search-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}
.search-modal-close:hover {
    background: #F1F5F9;
    color: #0F172A;
}
.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    font-weight: 500;
    color: #0F172A;
    background: transparent;
    font-family: inherit;
}
.search-modal-input::placeholder {
    color: #94A3B8;
}
.search-modal-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: searchSpin 0.6s linear infinite;
}
@keyframes searchSpin {
    to { transform: rotate(360deg); }
}
.search-modal-body {
    overflow-y: auto;
    padding: 16px 0;
}
.search-modal-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
    padding: 4px 24px 8px 24px;
}
.search-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 24px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-bottom: 1px solid #F8FAFC;
}
.search-modal-item:hover, .search-modal-item.selected {
    background: #F8FAFC;
}
.search-modal-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #F1F5F9;
    flex-shrink: 0;
}
.search-modal-item-info {
    flex: 1;
    min-width: 0;
}
.search-modal-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.4;
    margin-bottom: 4px;
}
.search-modal-item-snippet {
    font-size: 13px;
    color: #64748B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-modal-item-highlight {
    background: #FEF08A;
    color: #854D0E;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}
.search-modal-placeholder, .search-modal-empty {
    padding: 40px 24px;
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
}
