/* ============================================================
   DealSite – Full Design System
   Font: Syne (display) + DM Sans (body)
   Theme: Dark luxury with electric accents
   ============================================================ */

:root {
  --bg-dark:       #0a0a0f;
  --bg-card:       #111118;
  --bg-card-hover: #16161f;
  --bg-elevated:   #1a1a24;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.15);

  --text-primary:   #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted:     #5a5a70;

  --accent:        #7c6cff;
  --accent-light:  #a090ff;
  --accent-glow:   rgba(124,108,255,0.25);
  --green:         #22c55e;
  --orange:        #f97316;
  --red:           #ef4444;
  --yellow:        #eab308;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill: 999px;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 40px var(--accent-glow);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --container: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: 1rem; color: var(--text-secondary); }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 4px 30px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.04); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: #0a0a0f; }
.btn-white:hover { background: #f0f0f5; transform: translateY(-2px); }
.btn-deal { background: linear-gradient(135deg, var(--accent), #9a6cff); color: #fff; padding: 10px 22px; width: 100%; justify-content: center; font-size: 0.9rem; }
.btn-deal:hover { transform: translateY(-2px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0; transition: all var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--text-primary); letter-spacing: -0.5px; }
.logo-dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.nav-links > li > a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 220px; padding: 8px; box-shadow: var(--shadow-card); }
.nav-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 10px 14px; font-size: 0.9rem; border-radius: var(--radius-sm); color: var(--text-secondary); transition: var(--transition); }
.dropdown li a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 0 60px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35;
}
.hero-orb-1 { width: 600px; height: 600px; top: -200px; left: -100px; background: radial-gradient(circle, #7c6cff 0%, transparent 70%); }
.hero-orb-2 { width: 400px; height: 400px; bottom: -100px; right: -50px; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); }
.hero-orb-3 { width: 300px; height: 300px; top: 50%; right: 20%; background: radial-gradient(circle, #a855f7 0%, transparent 70%); opacity: 0.2; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,108,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(124,108,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; animation: fadeUp 0.8s ease both; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(124,108,255,0.15); border: 1px solid rgba(124,108,255,0.3); border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; color: var(--accent-light); margin-bottom: 24px; }
.hero-title { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 540px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 24px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s ease infinite; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; padding: 5px 14px; background: rgba(124,108,255,0.1); border: 1px solid rgba(124,108,255,0.2); border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 48px; }

/* ===== BRANDS GRID ===== */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.brand-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.brand-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-hover); background: var(--bg-card-hover); }
.brand-card-top { position: relative; padding: 28px 24px 16px; display: flex; align-items: center; justify-content: center; min-height: 120px; background: linear-gradient(135deg, rgba(124,108,255,0.05) 0%, transparent 100%); }
.brand-badge { position: absolute; top: 12px; right: 12px; padding: 3px 10px; background: rgba(124,108,255,0.2); border: 1px solid rgba(124,108,255,0.3); border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; color: var(--accent-light); text-transform: uppercase; }
.brand-logo-wrap { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; }
.brand-logo-img { max-width: 90px; max-height: 60px; object-fit: contain; filter: brightness(0.9); }
.brand-logo-placeholder { width: 80px; height: 80px; background: linear-gradient(135deg, var(--accent), #a855f7); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; text-transform: uppercase; }
.discount-badge { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); padding: 4px 14px; background: var(--green); border-radius: var(--radius-pill) var(--radius-pill) 0 0; font-size: 0.78rem; font-weight: 700; color: #fff; white-space: nowrap; }
.brand-card-body { padding: 16px 24px; flex: 1; }
.brand-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.brand-desc { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.brand-cat-tag { display: inline-block; padding: 3px 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 0.75rem; color: var(--text-muted); }
.brand-card-footer { padding: 0 24px 24px; }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  display: block; position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; transition: var(--transition);
}
.cat-card:hover { border-color: var(--cat-color, var(--accent)); transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.cat-card:hover .cat-bg-circle { transform: scale(1.5); opacity: 0.12; }
.cat-icon { font-size: 3rem; margin-bottom: 18px; display: block; }
.cat-name { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.cat-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 20px; }
.cat-link { font-size: 0.88rem; font-weight: 600; color: var(--cat-color, var(--accent)); }
.cat-bg-circle { position: absolute; bottom: -60px; right: -60px; width: 200px; height: 200px; background: var(--cat-color, var(--accent)); border-radius: 50%; opacity: 0.06; transition: all 0.5s ease; pointer-events: none; }

/* ===== HOW IT WORKS ===== */
.how-section { background: linear-gradient(180deg, transparent 0%, rgba(124,108,255,0.03) 50%, transparent 100%); }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-card { flex: 1; max-width: 280px; text-align: center; padding: 36px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-connector { flex: 0 0 40px; height: 2px; background: linear-gradient(90deg, var(--border), var(--accent), var(--border)); position: relative; }
.step-connector::after { content: '→'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 1rem; }
.step-num { font-family: var(--font-display); font-size: 0.75rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-primary); }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-grid-full { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.blog-card-featured { grid-column: span 1; }
.blog-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--accent); }
.blog-cat-tag { position: absolute; top: 12px; left: 12px; padding: 4px 12px; background: var(--accent); border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; color: #fff; }
.blog-featured-tag { position: absolute; top: 12px; right: 12px; padding: 4px 12px; background: var(--orange); border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; color: #fff; }
.blog-card-body { padding: 20px 22px; }
.blog-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.blog-title a { color: var(--text-primary); transition: var(--transition); }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }
.blog-read-more { font-size: 0.88rem; font-weight: 600; color: var(--accent); transition: var(--transition); }
.blog-read-more:hover { color: var(--accent-light); }

/* ===== BLOG LAYOUT (blog.php) ===== */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.blog-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 7px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); cursor: pointer; }
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-widget h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.sidebar-cat-list li a { display: block; padding: 8px 0; font-size: 0.88rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); transition: var(--transition); }
.sidebar-cat-list li:last-child a { border-bottom: none; }
.sidebar-cat-list li a:hover { color: var(--accent); }
.sidebar-cta { background: linear-gradient(135deg, rgba(124,108,255,0.15), rgba(124,108,255,0.05)); border-color: rgba(124,108,255,0.2); }
.sidebar-cta h4 { color: var(--accent-light); }
.sidebar-cta p { font-size: 0.88rem; margin-bottom: 16px; }

/* ===== POST ===== */
.post-hero { position: relative; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; }
.post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.4) 60%, transparent 100%); }
.post-hero-content { position: relative; z-index: 2; padding: 48px 0; }
.post-hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 14px 0; color: #fff; }
.post-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.post-body-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 80px; align-items: start; }
.post-content { min-width: 0; }
.post-text { color: var(--text-secondary); line-height: 1.8; }
.post-text h2 { font-size: 1.6rem; color: var(--text-primary); margin: 32px 0 14px; }
.post-text h3 { font-size: 1.2rem; color: var(--text-primary); margin: 24px 0 10px; }
.post-text p { margin-bottom: 18px; }
.post-text ul, .post-text ol { padding-left: 20px; margin-bottom: 18px; }
.post-text li { margin-bottom: 8px; }
.post-text a { color: var(--accent); text-decoration: underline; }
.post-text img { border-radius: var(--radius-md); margin: 24px 0; }
.post-tags-share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-share { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-muted); }
.share-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; transition: var(--transition); }
.share-x { background: rgba(255,255,255,0.1); } .share-x:hover { background: #000; color: #fff; }
.share-fb { background: rgba(24,119,242,0.2); } .share-fb:hover { background: #1877f2; color: #fff; }
.share-wa { background: rgba(37,211,102,0.2); } .share-wa:hover { background: #25d366; }
.related-post { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
.related-post:last-child { border-bottom: none; }
.related-title { display: block; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 4px; transition: var(--transition); }
.related-post:hover .related-title { color: var(--accent); }
.related-date { font-size: 0.75rem; color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner { position: relative; overflow: hidden; padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-bg { position: absolute; inset: 0; }
.cta-orb-1 { position: absolute; width: 400px; height: 400px; left: -100px; top: -100px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.15; border-radius: 50%; }
.cta-orb-2 { position: absolute; width: 300px; height: 300px; right: -80px; bottom: -80px; background: radial-gradient(circle, #a855f7 0%, transparent 70%); opacity: 0.1; border-radius: 50%; }
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 14px; }
.cta-content p { font-size: 1.05rem; margin-bottom: 32px; }

/* ===== PAGE HERO ===== */
.page-hero { padding: 130px 0 60px; text-align: center; background: linear-gradient(to bottom, rgba(124,108,255,0.08), transparent); border-bottom: 1px solid var(--border); }
.page-hero-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 560px; margin: 0 auto 20px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--accent); }
.page-hero-blog { background: linear-gradient(135deg, rgba(124,108,255,0.06), rgba(168,85,247,0.06)); }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.contact-card p { font-size: 0.88rem; color: var(--text-secondary); }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-card h3 { margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-message { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 20px; }
.form-message.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.form-message.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.form-message.hidden { display: none; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-secondary); margin: 16px 0 24px; max-width: 280px; }
.footer-logo { font-size: 1.4rem; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); }
.social-links a:hover { background: var(--accent); border-color: var(--accent); }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a, .footer-col ul li { font-size: 0.88rem; color: var(--text-secondary); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.affiliate-notice { margin-top: 6px; font-size: 0.78rem !important; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== RESULTS BAR ===== */
.results-bar { margin-bottom: 28px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-secondary); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 12px; color: var(--text-primary); }
.empty-state p { margin-bottom: 28px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%,100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.4; transform: scaleY(0.6); } }

/* ===== ADMIN ===== */
.admin-body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); min-height: 100vh; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--bg-card); border-right: 1px solid var(--border); padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-header { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.sidebar-nav { padding: 16px 12px; }
.sidebar-nav .nav-section-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); padding: 10px 12px 6px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition); margin-bottom: 2px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(124,108,255,0.12); color: var(--text-primary); }
.sidebar-nav a.active { border-left: 3px solid var(--accent); }
.admin-main { overflow-y: auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 30px; background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.admin-topbar h2 { font-size: 1.2rem; }
.admin-content { padding: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.stat-card-val { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-card-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; }
.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; }
.status-active { background: rgba(34,197,94,0.15); color: var(--green); }
.status-inactive { background: rgba(239,68,68,0.15); color: var(--red); }
.status-draft { background: rgba(234,179,8,0.15); color: var(--yellow); }
.status-published { background: rgba(34,197,94,0.15); color: var(--green); }
.action-btns { display: flex; gap: 8px; }
.btn-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 0.85rem; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); transition: var(--transition); cursor: pointer; }
.btn-icon:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.btn-icon.btn-edit:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon.btn-delete:hover { border-color: var(--red); color: var(--red); }
.admin-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full { grid-column: span 2; }
.checkbox-wrap { display: flex; align-items: center; gap: 10px; }
.checkbox-wrap input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.img-preview { max-width: 120px; border-radius: var(--radius-sm); margin-top: 8px; border: 1px solid var(--border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .post-body-wrap { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 220px 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; inset: 70px 0 0; background: rgba(10,10,15,0.98); flex-direction: column; gap: 4px; padding: 20px; align-items: stretch; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .dropdown { position: static; border: none; background: rgba(255,255,255,0.03); }
  .nav-dropdown:hover .dropdown { display: none; }
  .nav-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-connector { width: 2px; height: 30px; flex: 0; }
  .step-connector::after { content: '↓'; top: 50%; left: -8px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 14px; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }
}
