@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: #fff; color: #111; font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5 { line-height: 1.25; }

/* ── NAVBAR ── */
.navbar { background: #CC1111; padding: 0 5%; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.navbar-brand { font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: rgba(255,255,255,0.88); font-size: 0.85rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-links.open { display: flex; }
.nav-search { display: flex; align-items: center; background: #fff; border-radius: 20px; padding: 5px 14px; gap: 7px; }
.nav-search input { background: none; border: none; outline: none; font-size: 0.82rem; width: 160px; font-family: 'Poppins', sans-serif; color: #333; }
.nav-search input::placeholder { color: #aaa; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* ── HERO ── */
.hero { background: #fff; padding: 56px 5% 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; border-bottom: 1px solid #f0f0f0; }
.hero-badge { display: inline-block; background: #FFF0F0; color: #CC1111; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.8px; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
.hero-left h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: #111; margin-bottom: 14px; }
.red-text { color: #CC1111; }
.hero-left p { font-size: 0.95rem; color: #666; margin-bottom: 24px; line-height: 1.7; max-width: 480px; }
.hero-search-bar { display: flex; border: 1.5px solid #ddd; border-radius: 8px; overflow: hidden; max-width: 440px; margin-bottom: 24px; transition: border-color 0.2s; }
.hero-search-bar:focus-within { border-color: #CC1111; }
.hero-search-bar input { flex: 1; padding: 12px 16px; border: none; outline: none; font-size: 0.9rem; font-family: 'Poppins', sans-serif; color: #333; }
.hero-search-bar button { background: #CC1111; color: #fff; border: none; padding: 12px 24px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: 'Poppins', sans-serif; transition: background 0.15s; }
.hero-search-bar button:hover { background: #a80e0e; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat .num { display: block; font-size: 1.6rem; font-weight: 800; color: #CC1111; }
.hero-stat .lbl { font-size: 0.75rem; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.excel-preview-big { background: #fff; border: 1.5px solid #e5e5e5; border-radius: 12px; overflow: hidden; width: 100%; max-width: 420px; box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.ep-header { background: #CC1111; color: #fff; padding: 10px 14px; font-size: 0.82rem; font-weight: 600; }
.ep-row { display: flex; border-bottom: 1px solid #f0f0f0; }
.ep-row.ep-head { background: #fafafa; }
.ep-cell { flex: 1; padding: 7px 10px; font-size: 0.75rem; color: #444; border-right: 1px solid #f5f5f5; }
.ep-cell:last-child { border-right: none; }
.ep-head .ep-cell { font-weight: 600; color: #CC1111; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
.ep-g { background: #EAF3DE; color: #3B6D11; font-weight: 700; text-align: center; }
.ep-a { background: #FAEEDA; color: #854F0B; font-weight: 700; text-align: center; }
.ep-x { background: #f5f5f5; color: #aaa; font-weight: 700; text-align: center; }
.s-done { background: #EAF3DE; color: #3B6D11; padding: 2px 7px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.s-prog { background: #FAEEDA; color: #854F0B; padding: 2px 7px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.s-pend { background: #f5f5f5; color: #aaa; padding: 2px 7px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }

/* ── SECTIONS ── */
.section { padding: 56px 5%; }
.bg-light { background: #fafafa; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header .pill { display: inline-block; background: #FFF0F0; color: #CC1111; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 10px; }
.section-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: #111; margin-bottom: 8px; }
.section-header p { font-size: 0.9rem; color: #888; max-width: 520px; margin: 0 auto; }

/* ── CATEGORY GRID ── */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card { background: #fff; border: 1.5px solid #eee; border-radius: 12px; padding: 20px 12px 16px; text-align: center; cursor: pointer; transition: all 0.22s ease; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.category-card:hover { border-color: #CC1111; background: #fff5f5; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(204,17,17,0.12); }
.category-card.featured { border-color: #CC1111; background: #fff5f5; }
.category-card.featured:hover { box-shadow: 0 8px 28px rgba(204,17,17,0.18); }
.cat-icon { font-size: 2rem; display: block; }
.category-card h3 { font-size: 0.82rem; font-weight: 600; color: #222; line-height: 1.3; }

/* ── FILTER PILLS ── */
.filter-pills { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.fpill { background: #fff; color: #666; border: 1.5px solid #ddd; border-radius: 24px; padding: 7px 18px; font-size: 0.83rem; font-weight: 600; cursor: pointer; font-family: 'Poppins', sans-serif; transition: all 0.18s; }
.fpill:hover { border-color: #CC1111; color: #CC1111; }
.fpill.active { background: #CC1111; color: #fff; border-color: #CC1111; }

/* ── TEMPLATE GRID & CARDS ── */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.template-card { background: #fff; border: 1.5px solid #eee; border-radius: 14px; overflow: hidden; transition: all 0.22s; }
.template-card:hover { border-color: #CC1111; box-shadow: 0 6px 24px rgba(204,17,17,0.12); transform: translateY(-3px); }
.tc-preview { background: #f8f9fa; height: 120px; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eee; overflow: hidden; }
.tc-badge { position: absolute; top: 8px; left: 8px; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 10px; letter-spacing: 0.3px; }
.free-badge { background: #EAF3DE; color: #3B6D11; }
.paid-badge { background: #FFF0F0; color: #CC1111; }
.excel-thumb { width: 85%; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.et-header { color: #fff; padding: 5px 8px; font-size: 0.68rem; font-weight: 600; }
.et-row { display: flex; border-bottom: 0.5px solid #f0f0f0; }
.et-cell { flex: 1; padding: 4px 6px; font-size: 0.63rem; color: #555; border-right: 0.5px solid #f5f5f5; white-space: nowrap; overflow: hidden; }
.et-cell:last-child { border-right: none; }
.et-cell.th { background: #f5f5f5; font-weight: 600; color: #333; }
.et-cell.grn { background: #EAF3DE; color: #3B6D11; font-weight: 600; }
.et-cell.amb { background: #FAEEDA; color: #854F0B; font-weight: 600; }
.tc-body { padding: 16px 18px; }
.tc-cat-label { font-size: 0.72rem; color: #aaa; font-weight: 500; margin-bottom: 5px; }
.tc-body h3 { font-size: 0.92rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.tc-body p { font-size: 0.8rem; color: #777; line-height: 1.5; margin-bottom: 14px; }
.tc-footer { display: flex; align-items: center; justify-content: space-between; }
.badge-free { background: #EAF3DE; color: #3B6D11; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.badge-paid { background: #FFF0F0; color: #CC1111; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.badge-soon { background: #f5f5f5; color: #aaa; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.price-inr { font-size: 1rem; font-weight: 800; color: #185FA5; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-size: 0.83rem; font-weight: 700; cursor: pointer; border: none; font-family: 'Poppins', sans-serif; transition: all 0.18s; text-decoration: none; }
.btn-download { background: #CC1111; color: #fff; }
.btn-download:hover { background: #a80e0e; transform: translateY(-1px); }
.btn-buy { background: #185FA5; color: #fff; }
.btn-buy:hover { background: #0c447c; }
.btn-outline-red { background: #fff; color: #CC1111; border: 1.5px solid #CC1111; }
.btn-outline-red:hover { background: #CC1111; color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 0.78rem; }
.btn-success { background: #3B6D11; color: #fff; }
.btn-success:hover { background: #27500A; }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.feature-card { background: #fff; border: 1.5px solid #eee; border-radius: 12px; padding: 24px 20px; text-align: center; transition: all 0.2s; }
.feature-card:hover { border-color: #CC1111; background: #fff5f5; }
.fc-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.8rem; color: #888; line-height: 1.6; }

/* ── BROWSER LAYOUT ── */
.browser-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.sidebar { background: #fff; border: 1.5px solid #eee; border-radius: 14px; overflow: hidden; position: sticky; top: 76px; }
.sb-header { background: #CC1111; color: #fff; padding: 14px 18px; font-size: 0.88rem; font-weight: 700; }
.sb-cat-header { padding: 11px 18px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; color: #222; transition: all 0.15s; border-bottom: 1px solid #f5f5f5; }
.sb-cat-header:hover,.sb-cat-header.active { background: #fff5f5; color: #CC1111; }
.sb-sub-list { display: none; }
.sb-sub-list.open { display: block; }
.sb-sub-link { display: block; padding: 8px 18px 8px 34px; font-size: 0.8rem; color: #777; transition: all 0.15s; border-left: 3px solid transparent; }
.sb-sub-link:hover,.sb-sub-link.active { color: #CC1111; background: #fff8f8; border-left-color: #CC1111; }

/* ── DETAIL PAGE ── */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.detail-main { background: #fff; border: 1.5px solid #eee; border-radius: 14px; overflow: hidden; }
.detail-header { background: #CC1111; padding: 32px; color: #fff; }
.detail-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.detail-header p { color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.detail-body { padding: 28px; }
.detail-meta { display: flex; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid #f5f5f5; margin-bottom: 20px; }
.meta-item strong { display: block; font-size: 0.7rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; }
.meta-item span { font-size: 0.88rem; font-weight: 600; color: #111; }
.detail-sidebar { background: #fff; border: 1.5px solid #eee; border-radius: 14px; padding: 24px; position: sticky; top: 76px; }
.price-big { font-size: 2.2rem; font-weight: 800; color: #3B6D11; margin-bottom: 4px; }
.price-big.paid { color: #185FA5; }

/* ── ADMIN ── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-nav { background: #1a1a2e; padding: 20px 0; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: rgba(255,255,255,0.6); font-size: 0.88rem; font-weight: 500; transition: all 0.15s; }
.admin-nav a:hover,.admin-nav a.active { color: #fff; background: rgba(255,255,255,0.08); border-right: 3px solid #CC1111; }
.admin-content { padding: 32px; background: #f8f9fa; }
.admin-card { background: #fff; border-radius: 12px; border: 1.5px solid #eee; padding: 24px; margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; border: 1.5px solid #eee; }
.stat-card .n { font-size: 1.8rem; font-weight: 800; color: #CC1111; display: block; }
.stat-card .l { font-size: 0.72rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.7px; margin-top: 3px; }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: 0.9rem; font-family: 'Poppins', sans-serif; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #CC1111; }

/* ── ALERTS ── */
.alert { padding: 13px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.alert-success { background: #EAF3DE; color: #3B6D11; border-left: 4px solid #3B6D11; }
.alert-error   { background: #FFF0F0; color: #CC1111; border-left: 4px solid #CC1111; }
.alert-info    { background: #EAF4FF; color: #185FA5; border-left: 4px solid #185FA5; }

/* ── BREADCRUMB ── */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid #f5f5f5; padding: 11px 5%; font-size: 0.8rem; color: #aaa; }
.breadcrumb-bar a { color: #CC1111; }
.breadcrumb-bar span { margin: 0 7px; }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { background: #fafafa; padding: 10px 14px; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.7px; color: #aaa; border-bottom: 1.5px solid #eee; }
td { padding: 10px 14px; border-bottom: 1px solid #f5f5f5; color: #333; }
tr:hover td { background: #fffafa; }

/* ── FOOTER ── */
.footer { background: #1a1a2e; padding: 48px 5% 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.7; margin-bottom: 12px; }
.footer-brand span { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.footer-links h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.footer-links a { display: block; color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-bottom: 8px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 10px; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-28 { margin-top: 28px; }
.empty-state { text-align: center; padding: 60px 20px; color: #ccc; }
.empty-state .big-icon { font-size: 3rem; margin-bottom: 14px; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 36px 5%; }
  .hero-visual { display: none; }
  .browser-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .navbar { padding: 0 4%; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #CC1111; padding: 12px 20px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 28px 4% 24px; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 36px 4%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-icon { font-size: 1.6rem; }
  .category-card h3 { font-size: 0.75rem; }
  .template-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .filter-pills { gap: 7px; }
  .fpill { font-size: 0.75rem; padding: 6px 13px; }
  .hero-search-bar { max-width: 100%; }
  .hero-stats { gap: 18px; }
}
