/* This file reuses the same design tokens, fonts, and component classes
   as nextgensearchengine.com so the Store feels like part of the same
   site. Header/footer/WhatsApp button markup are copied as-is from the
   homepage into login.html and dashboard.php. */

:root{
  --navy:#241A12;
  --paper:#FFF6EC;
  --white:#FFFFFF;
  --red:#FF6A3D;
  --yellow:#FFC93C;
  --orange-deep:#F0431C;
  --teal:#0E6656;
  --teal-deep:#0A4B3F;
  --line: rgba(255,255,255,0.14);
  --line-dark: rgba(36,26,18,0.12);
  --muted:#B8A48C;
  --muted-dark:#7A6A57;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{ font-family:'Oswald', sans-serif; background:var(--white); color:var(--navy); -webkit-font-smoothing:antialiased; }
h1,h2,h3{ font-family:'Anton', sans-serif; font-weight:400; letter-spacing:0.01em; line-height:1.04; text-transform:uppercase; }
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1240px; margin:0 auto; padding:0 32px;}
.accent{ color:var(--red); }
section{padding:80px 0;}
@media (max-width:640px){ .wrap{ padding:0 20px; } section{ padding:56px 0; } }

/* ===== Header (copied from homepage) ===== */
.topbar{ background:var(--navy); color:rgba(255,255,255,.82); font-size:12px; letter-spacing:.02em; }
.topbar-wrap{ display:flex; align-items:center; justify-content:space-between; padding:8px 32px; max-width:1240px; margin:0 auto; flex-wrap:wrap; gap:8px; }
.topbar-left{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.topbar a{ color:rgba(255,255,255,.82); }
.topbar a:hover{ color:var(--yellow); }
.topbar i{ color:var(--yellow); font-size:11px; margin-right:6px; }
@media (max-width:760px){ .topbar-wrap{ justify-content:center; text-align:center; padding:8px 16px; } .topbar-left{ justify-content:center; gap:14px; } .topbar-right{ display:none; } }

header{ position:sticky; top:0; z-index:80; background:var(--white); border-bottom:1px solid var(--line-dark); }
nav{ position:relative; display:flex; align-items:center; justify-content:space-between; padding:14px 32px; max-width:1240px; margin:0 auto; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:40px; width:40px; border-radius:8px; object-fit:cover; }
.brand-name{ font-family:'Anton',sans-serif; font-size:15px; letter-spacing:.03em; color:var(--navy); text-transform:uppercase; }
.nav-links{ display:flex; gap:28px; align-items:center; font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--navy); }
.nav-links a:hover{ color:var(--red); }
.nav-links a.current{ color:var(--red); }
.nav-item{ position:relative; }
.nav-item > span{ cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.nav-item:hover > span{ color:var(--red); }
.caret{ width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-2px; }
.dropdown-panel{ position:absolute; top:calc(100% + 20px); left:50%; transform:translateX(-50%) translateY(8px); background:var(--white); border:1px solid var(--line-dark); box-shadow:0 20px 40px rgba(36,26,18,.14); min-width:240px; padding:10px; display:flex; flex-direction:column; gap:2px; opacity:0; visibility:hidden; transition:.18s ease; z-index:90; border-radius:14px; }
.nav-item:hover .dropdown-panel{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.dropdown-panel a{ padding:10px 14px; font-size:12.5px; font-weight:500; border-radius:8px; color:var(--navy); white-space:nowrap; text-transform:none; }
.dropdown-panel a:hover{ background:rgba(255,106,61,.06); color:var(--red); }
.burger{ display:none; flex-direction:column; gap:5px; cursor:pointer; padding:10px; background:none; border:none; }
.burger span{ width:24px; height:2.5px; background:var(--navy); display:block; border-radius:2px; }
.mobile-menu{ display:none; }
@media (max-width:980px){
  .nav-links{ display:none; }
  .burger{ display:flex; }
  .mobile-menu{ display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0; background:var(--white); border-bottom:1px solid var(--line-dark); padding:6px 32px 22px; max-height:80vh; overflow-y:auto; box-shadow:0 20px 40px rgba(36,26,18,.14); opacity:0; visibility:hidden; transform:translateY(-12px); pointer-events:none; transition:opacity .3s ease, transform .3s ease, visibility .3s ease; }
  .mobile-menu.open{ opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
}
.mobile-menu a{ padding:14px 0; font-size:14px; letter-spacing:.06em; text-transform:uppercase; border-bottom:1px solid var(--line-dark); color:var(--red); font-weight:600; }
.mobile-menu a:last-child{ border-bottom:none; }
.mobile-menu details{ border-bottom:1px solid var(--line-dark); padding-bottom:14px; }
.mobile-menu summary{ padding:14px 0; font-size:14px; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; list-style:none; color:var(--red); font-weight:600; }
.mobile-menu summary::-webkit-details-marker{ display:none; }
.service-col{ display:flex; flex-direction:column; gap:2px; padding:6px 0 4px; }
.service-col a{ padding:10px 0 10px 14px; font-size:12.5px; text-transform:none; color:var(--navy); font-weight:500; border-bottom:none; }
.service-col a:hover{ color:var(--red); }

.pill-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:linear-gradient(135deg, var(--yellow), var(--red) 55%, var(--orange-deep)); color:var(--white); padding:15px 32px; border-radius:999px; font-weight:600; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; border:1px solid transparent; cursor:pointer; transition:filter .2s ease, transform .2s ease; white-space:nowrap; box-shadow:0 12px 28px rgba(240,67,28,.3); }
.pill-btn:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.pill-btn:disabled{ opacity:.55; cursor:not-allowed; }

/* ===== Store hero (same visual language as homepage hero) ===== */
.hero{ position:relative; background:var(--paper); padding:56px 0 60px; }
.eyebrow{ display:inline-flex; align-items:center; gap:9px; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:22px; color:var(--navy); }
.eyebrow::before{ content:""; width:26px; height:1.5px; background:var(--navy); }
.hero h1{ font-size:clamp(34px, 5vw, 58px); line-height:1.05; color:var(--navy); margin-bottom:18px; max-width:820px; }
.hero p.lede{ font-size:16px; line-height:1.65; color:var(--muted-dark); max-width:600px; text-transform:none; }
@media (max-width:640px){
  .hero{ padding:26px 0 34px; }
  .hero h1{ font-size:26px; margin-bottom:10px; }
  .hero p.lede{ font-size:13.5px; }
}

.section-head{ text-align:center; max-width:620px; margin:0 auto 50px; }
.kicker{ font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--red); margin-bottom:14px; }
.section-head h2{ font-size:clamp(26px,4vw,40px); color:var(--navy); margin-bottom:14px; }
.section-head p{ color:var(--muted-dark); font-size:15px; line-height:1.6; }

/* ===== "What's in the store" icon grid (matches .service-card pattern) ===== */
.services{ background:var(--white); }
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.service-card{ position:relative; background:var(--paper); border:1px solid var(--line-dark); border-radius:20px; padding:30px 24px; overflow:hidden; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover{ transform:translateY(-6px); box-shadow:0 26px 48px rgba(36,26,18,.12); border-color:rgba(255,106,61,.35); }
.service-card .icon{ width:50px; height:50px; border-radius:14px; background:linear-gradient(135deg, var(--yellow), var(--red)); display:flex; align-items:center; justify-content:center; color:var(--white); font-size:19px; margin-bottom:20px; }
.service-card h3{ font-size:15.5px; text-transform:none; font-family:'Oswald',sans-serif; font-weight:600; margin-bottom:8px; }
.service-card p{ font-size:13px; color:var(--muted-dark); line-height:1.55; text-transform:none; }
@media (max-width:980px){ .services-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .services-grid{ grid-template-columns:1fr; } }

/* ===== Auth card (login/register) ===== */
.auth-section{ background:var(--paper); }
.auth-wrap{ max-width:440px; margin:0 auto; }
.auth-card{
  background:var(--white); border:1px solid var(--line-dark); border-radius:20px;
  padding:34px; box-shadow:0 20px 40px rgba(36,26,18,.08);
}
.auth-card-head{ margin-bottom:22px; text-align:center; }
.auth-card-head h2{ font-size:24px; margin-bottom:6px; }
.auth-card-head p{ font-size:13.5px; color:var(--muted-dark); text-transform:none; }
.auth-toggle{ display:flex; border:1px solid var(--line-dark); border-radius:10px; padding:3px; margin-bottom:22px; }
.auth-toggle button{ flex:1; background:transparent; border:none; padding:10px; border-radius:8px; font-size:12.5px; font-weight:700; color:var(--muted-dark); text-transform:uppercase; letter-spacing:.04em; font-family:'Oswald',sans-serif; cursor:pointer; }
.auth-toggle button.active{ background:var(--navy); color:var(--paper); }
.field{ margin-bottom:15px; }
.field label{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-dark); margin-bottom:6px; display:block; }
.phone-input{ display:flex; border:1px solid var(--line-dark); border-radius:10px; overflow:hidden; }
.phone-input .code{ padding:12px; font-size:15px; color:var(--muted-dark); border-right:1px solid var(--line-dark); background:var(--paper); }
.phone-input input, .field input{ border:1px solid var(--line-dark); padding:12px; font-size:15px; flex:1; outline:none; font-family:'Oswald',sans-serif; border-radius:10px; width:100%; background:#fff; color:var(--navy); }
.phone-input input{ border:none; border-radius:0; }
.field input:focus, .phone-input input:focus{ border-color:var(--red); }
.btn-block{ width:100%; }
.auth-error{ background:#FBEAE6; color:#8C3122; border:1px solid #EBC6BC; border-radius:8px; padding:10px 12px; font-size:13px; margin-bottom:16px; display:none; text-transform:none; }
.auth-success{ background:#E3F4EC; color:#0B5C41; border:1px solid #BFE0CE; border-radius:8px; padding:10px 12px; font-size:13px; margin-bottom:16px; display:none; text-transform:none; }
.auth-hint{ font-size:11.5px; color:var(--muted-dark); margin-top:16px; text-align:center; text-transform:none; }
.auth-step{ display:none; }
.auth-step.show{ display:block; }

/* ===== Dashboard toolbar (user info + logout, sits under the header) ===== */
.dash-toolbar{ border-bottom:1px solid var(--line-dark); background:var(--white); }
.dash-toolbar-inner{ max-width:1240px; margin:0 auto; padding:12px 32px; display:flex; align-items:center; justify-content:flex-end; gap:12px; font-size:13px; color:var(--muted-dark); }
.dash-toolbar .hi-name{ display:none; }
@media(min-width:560px){ .dash-toolbar .hi-name{ display:inline; } }
.plan-badge{ background:var(--navy); color:var(--paper); border-radius:20px; padding:4px 12px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.logout-btn{ border:1.5px solid var(--navy); background:transparent; border-radius:8px; padding:7px 14px; font-size:12px; font-weight:700; color:var(--navy); text-transform:uppercase; letter-spacing:.03em; cursor:pointer; }
.logout-btn:hover{ background:var(--navy); color:var(--paper); }

/* ===== Category filter tabs (the 6 store categories) ===== */
.cat-tabs{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 34px; }
.cat-tab{ border:1.5px solid var(--navy); background:transparent; border-radius:999px; padding:9px 18px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--navy); cursor:pointer; font-family:'Oswald',sans-serif; }
.cat-tab.active{ background:var(--navy); color:var(--paper); }
@media(max-width:640px){ .cat-tab{ padding:7px 14px; font-size:11px; } }

/* ===== Resource cards (store items) ===== */
.res-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:20px; }
@media(max-width:640px){ .res-grid{ grid-template-columns:1fr 1fr; gap:12px; } }
@media(max-width:420px){ .res-grid{ grid-template-columns:1fr; } }
.res-card{
  position:relative; background:var(--paper); border:1px solid var(--line-dark); border-radius:20px;
  display:flex; flex-direction:column; height:100%; overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.res-card:not(.locked):hover{ transform:translateY(-5px); box-shadow:0 22px 42px rgba(36,26,18,.12); border-color:rgba(255,106,61,.3); }
.res-thumb{
  position:relative; width:100%; min-height:150px; overflow:hidden;
  background:#fff; border-bottom:1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center;
  padding:24px 18px 28px;
}
.thumb-title{
  font-family:'Anton',sans-serif; text-transform:uppercase; text-align:center;
  color:var(--navy); font-size:clamp(14px,2.4vw,18px); line-height:1.15;
}
.thumb-accent{ color:var(--red); font-size:1.7em; display:inline-block; line-height:1; }
.thumb-badge{
  position:absolute; left:16px; bottom:-16px; z-index:2;
  width:38px; height:38px; border-radius:11px; background:#fff;
  border:1px solid var(--line-dark); box-shadow:0 6px 14px rgba(36,26,18,.16);
  display:flex; align-items:center; justify-content:center;
  color:var(--red); font-size:15px;
}
.res-card.locked .res-thumb{ filter:grayscale(1) brightness(.85); }
.res-card-body{ padding:28px 20px 20px; display:flex; flex-direction:column; gap:12px; flex:1; }
.res-card h3{ font-size:15.5px; text-transform:none; font-family:'Oswald',sans-serif; font-weight:600; line-height:1.3; }
.res-card p{ font-size:13px; color:var(--muted-dark); line-height:1.55; text-transform:none; flex:1; }
.res-bottom{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.res-filetype{ font-size:11px; font-weight:700; color:var(--muted-dark); text-transform:uppercase; letter-spacing:.03em; }
.res-badge{ font-size:11px; font-weight:700; padding:4px 11px; border-radius:20px; text-transform:uppercase; letter-spacing:.02em; }
.res-badge.free{ background:rgba(14,102,86,.12); color:var(--teal); }
.res-badge.pro{ background:rgba(240,67,28,.12); color:var(--orange-deep); }
.res-open{ font-size:12.5px; font-weight:700; color:var(--navy); display:inline-flex; align-items:center; gap:5px; }
.res-open svg{ width:12px; height:12px; }
.res-card.locked{ cursor:not-allowed; opacity:.75; }
.res-empty{ color:var(--muted-dark); font-size:14px; padding:60px 0; text-align:center; grid-column:1/-1; text-transform:none; }

/* ===== In-page file viewer modal ===== */
.viewer-modal{
  display:none; position:fixed; inset:0; z-index:10000;
  background:rgba(36,26,18,.55); backdrop-filter:blur(2px);
  align-items:center; justify-content:center; padding:20px;
}
.viewer-modal.open{ display:flex; }
.viewer-box{
  background:#fff; border-radius:16px; width:100%; max-width:1000px; height:88vh;
  display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 60px rgba(0,0,0,.35);
}
.viewer-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 18px; border-bottom:1px solid var(--line-dark); background:var(--paper);
}
.viewer-head #viewerTitle{ font-family:'Oswald',sans-serif; font-weight:600; font-size:14.5px; color:var(--navy); }
.viewer-head-actions{ display:flex; align-items:center; gap:14px; }
.viewer-download{ font-size:12.5px; font-weight:600; color:var(--red); display:inline-flex; align-items:center; gap:6px; text-transform:none; }
.viewer-download:hover{ text-decoration:underline; }
.viewer-close{ background:none; border:none; font-size:26px; line-height:1; color:var(--muted-dark); cursor:pointer; padding:0 4px; }
.viewer-close:hover{ color:var(--navy); }
#viewerFrame{ flex:1; width:100%; border:none; background:#525659; }
@media(max-width:640px){
  .viewer-box{ height:92vh; border-radius:12px; }
  .viewer-head #viewerTitle{ font-size:12.5px; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .viewer-download span{ display:none; }
}

/* ===== Footer / WhatsApp / credit bar (copied from homepage) ===== */
footer{ background:var(--white); color:var(--navy); padding:70px 0 0; border-top:1px solid var(--line-dark); }
.footer-grid{ display:grid; grid-template-columns:1.3fr 0.7fr 0.9fr 1fr; gap:44px; padding-bottom:44px; border-bottom:1px solid var(--line-dark); }
.f-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.f-brand img{ height:42px; width:42px; border-radius:10px; object-fit:cover; box-shadow:0 6px 16px rgba(36,26,18,.12); }
.f-brand span{ font-family:'Anton',sans-serif; font-size:17px; letter-spacing:.02em; color:var(--navy); }
footer .f-about p{ font-size:13.5px; color:var(--muted-dark); line-height:1.75; margin-bottom:20px; max-width:300px; }
.f-social{ display:flex; gap:10px; }
.f-social a{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line-dark); display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--navy); }
.f-social a:hover{ border-color:var(--red); color:var(--red); background:rgba(255,106,61,.06); }
.f-heading{ font-size:11.5px; text-transform:uppercase; letter-spacing:.12em; color:var(--navy); font-weight:700; margin-bottom:20px; }
.f-links{ display:flex; flex-direction:column; gap:13px; font-size:13.5px; }
.f-links a{ display:flex; align-items:center; gap:10px; color:var(--muted-dark); }
.f-links a i{ width:16px; color:var(--red); font-size:12px; }
.f-links a:hover{ color:var(--red); }
.f-contact{ display:flex; flex-direction:column; gap:16px; font-size:13.5px; }
.f-contact .fc-item{ display:flex; align-items:flex-start; gap:10px; }
.f-contact .fc-item i{ color:var(--red); font-size:14px; margin-top:3px; }
.f-contact .fc-item strong{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-dark); margin-bottom:2px; }
.f-contact .fc-item a, .f-contact .fc-item span{ color:var(--navy); }
.f-contact .fc-item a:hover{ color:var(--red); }
.gmb-btn{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line-dark); border-radius:999px; padding:10px 18px; font-size:12.5px; font-weight:600; color:var(--navy); margin-top:2px; }
.gmb-btn i{ color:#4285F4; }
.gmb-btn:hover{ border-color:var(--red); color:var(--red); }
.f-map iframe{ width:100%; height:180px; border:1px solid var(--line-dark); border-radius:12px; }
.copyright{ font-size:11.5px; color:var(--muted-dark); padding:24px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.copyright .legal-links{ display:flex; gap:18px; flex-wrap:wrap; }
.copyright .legal-links a:hover{ color:var(--red); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; text-align:center; } .f-brand{ justify-content:center; } .f-social{ justify-content:center; } .f-links a, .f-contact .fc-item{ justify-content:center; } }

.whatsapp-fab{ position:fixed; right:22px; bottom:22px; width:58px; height:58px; border-radius:50%; background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; box-shadow:0 8px 20px rgba(0,0,0,.28); z-index:9999; }
.whatsapp-fab:hover{ filter:brightness(1.05); }
@media (max-width:640px){ .whatsapp-fab{ width:50px; height:50px; font-size:22px; right:16px; bottom:16px; } }

.credit-bar{ background:#0B0B0B; padding:18px 20px; text-align:center; }
.credit-link{ display:inline-flex; align-items:center; gap:10px; color:#ccc; font-size:13px; }
.credit-logo{ width:26px; height:26px; border-radius:6px; object-fit:cover; }
.credit-link strong{ color:#fff; font-weight:700; }
.credit-link:hover strong{ text-decoration:underline; }
.credit-link:hover{ color:#fff; }
