:root{
  --primary:#0866a8;
  --primary-2:#043f70;
  --primary-dark:#064f82;
  --primary-light:#eaf5ff;
  --accent:#f59e0b;
  --bg:#f4f9fd;
  --text:#172033;
  --muted:#667085;
  --white:#ffffff;
  --border:#e6eaf2;
  --success:#16a34a;
  --danger:#dc2626;
  --shadow:0 18px 40px rgba(8,102,168,.14);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(1180px,92%);
  margin:auto;
}

/* =========================
   HEADER
========================= */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#0866a8;
  border-bottom:none;
  box-shadow:0 8px 25px rgba(8,102,168,.22);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
  text-decoration:none;
}

.brand-logo{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:16px;
  background:#0866a8;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.brand-icon{
  width:58px;
  height:58px;
  border-radius:16px;
  background:#ffffff;
  color:#0866a8;
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow:var(--shadow);
}

.brand-text strong,
.brand strong{
  display:block;
  font-size:22px;
  color:#ffffff;
  font-weight:900;
  line-height:1.1;
}

.brand-text small,
.brand small{
  display:block;
  color:rgba(255,255,255,.86);
  font-size:13px;
  margin-top:4px;
}

.nav{
  display:flex;
  gap:12px;
  align-items:center;
}

.nav a{
  padding:12px 18px;
  border-radius:999px;
  color:#ffffff;
  font-weight:700;
  font-size:14px;
}

.nav a:hover,
.nav a.active{
  background:rgba(255,255,255,.18);
  color:#ffffff;
}

.nav .admin-link{
  background:#ffffff;
  color:#0866a8;
  font-weight:900;
}

.nav .admin-link:hover{
  background:#eaf5ff;
  color:#0866a8;
}

.menu-toggle{
  display:none;
  border:0;
  background:#ffffff;
  color:#0866a8;
  border-radius:12px;
  padding:9px 13px;
  font-size:22px;
  cursor:pointer;
}

/* =========================
   MODERN HERO
========================= */

.hero{
  background:linear-gradient(135deg,var(--primary-2),var(--primary) 55%,#1592d1);
  color:#ffffff;
  position:relative;
  overflow:hidden;
}

.hero-modern{
  position:relative;
  overflow:hidden;
  padding:95px 0 85px;
  background:radial-gradient(circle at top left,#1592d1 0%,#0866a8 36%,#043f70 100%);
  color:#ffffff;
}

.hero-modern::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:45px 45px;
  opacity:.55;
}

.hero-modern-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:60px;
  align-items:center;
}

.hero-content{
  max-width:680px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  color:#ffffff;
  font-weight:800;
  font-size:14px;
  margin-bottom:22px;
  backdrop-filter:blur(10px);
}

.hero-modern h1{
  color:#ffffff;
  font-size:clamp(42px,6vw,72px);
  line-height:1.04;
  letter-spacing:-2px;
  margin:0 0 22px;
  font-weight:900;
}

.hero-modern h1 span{
  display:block;
  color:#ffffff;
  text-shadow:0 8px 30px rgba(0,0,0,.25);
}

.hero-modern p{
  color:rgba(255,255,255,.9);
  font-size:18px;
  line-height:1.8;
  max-width:620px;
  margin-bottom:26px;
}

.hero-search{
  display:flex;
  align-items:center;
  max-width:570px;
  background:#ffffff;
  padding:8px;
  border-radius:20px;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
  margin-bottom:24px;
}

.hero-search input{
  flex:1;
  border:none;
  outline:none;
  padding:15px 16px;
  font-size:15px;
  border-radius:15px;
  color:#102a43;
}

.hero-search button{
  border:none;
  padding:15px 24px;
  border-radius:15px;
  background:#0866a8;
  color:#ffffff;
  font-weight:900;
  cursor:pointer;
}

.hero-search button:hover{
  background:#064f82;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
  margin-bottom:32px;
}

.hero-btn-primary{
  background:#ffffff;
  color:#0866a8;
  border:2px solid #ffffff;
  padding:15px 24px;
  border-radius:16px;
  font-weight:900;
}

.hero-btn-primary:hover{
  background:transparent;
  color:#ffffff;
  transform:translateY(-2px);
}

.hero-btn-light{
  background:rgba(255,255,255,.14);
  color:#ffffff;
  border:1px solid rgba(255,255,255,.28);
  padding:15px 24px;
  border-radius:16px;
  font-weight:900;
  backdrop-filter:blur(10px);
}

.hero-btn-light:hover{
  background:rgba(255,255,255,.24);
  color:#ffffff;
  transform:translateY(-2px);
}

.hero-trust{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.hero-trust div{
  min-width:120px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
}

.hero-trust strong{
  display:block;
  font-size:24px;
  color:#ffffff;
  font-weight:900;
}

.hero-trust span{
  display:block;
  color:rgba(255,255,255,.82);
  font-size:13px;
  margin-top:4px;
}

.hero-visual{
  position:relative;
  min-height:470px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-logo-card{
  width:370px;
  height:370px;
  border-radius:42px;
  padding:18px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 30px 80px rgba(0,0,0,.28);
  backdrop-filter:blur(14px);
  animation:heroFloat 4s ease-in-out infinite;
}

.hero-logo-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:32px;
  display:block;
}

.floating-card{
  position:absolute;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:210px;
  padding:15px 16px;
  border-radius:20px;
  background:rgba(255,255,255,.95);
  color:#102a43;
  box-shadow:0 20px 45px rgba(0,0,0,.20);
  animation:heroFloatSmall 4s ease-in-out infinite;
}

.floating-card strong{
  display:block;
  color:#064f82;
  font-size:16px;
  font-weight:900;
}

.floating-card span{
  display:block;
  color:#62748a;
  font-size:12px;
  margin-top:3px;
}

.floating-icon{
  width:45px;
  height:45px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#eaf5ff;
  font-size:22px;
}

.card-laptop{
  top:30px;
  left:0;
}

.card-phone{
  right:-10px;
  top:190px;
  animation-delay:.8s;
}

.card-cctv{
  left:35px;
  bottom:25px;
  animation-delay:1.4s;
}

.hero-shape{
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  filter:blur(2px);
}

.hero-shape-1{
  width:320px;
  height:320px;
  right:-100px;
  top:-90px;
}

.hero-shape-2{
  width:220px;
  height:220px;
  left:-70px;
  bottom:-80px;
}

@keyframes heroFloat{
  0%,100%{
    transform:translateY(0) rotate(0deg);
  }
  50%{
    transform:translateY(-16px) rotate(1deg);
  }
}

@keyframes heroFloatSmall{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-12px);
  }
}

/* =========================
   OLD HERO SUPPORT
========================= */

.hero:after{
  content:"";
  position:absolute;
  right:-120px;
  top:-120px;
  width:420px;
  height:420px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}

.hero .container{
  position:relative;
  z-index:1;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:8px 13px;
  font-weight:700;
  font-size:13px;
  color:#ffffff;
}

.hero h1{
  font-size:clamp(34px,5vw,62px);
  line-height:1.04;
  margin:18px 0 16px;
  letter-spacing:-.04em;
}

.hero p{
  color:#e8eeff;
  font-size:18px;
  max-width:620px;
}

/* =========================
   BUTTONS
========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:800;
  border:0;
  cursor:pointer;
  transition:.2s;
  font-size:15px;
}

.btn-primary{
  background:var(--accent);
  color:#111827;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(245,158,11,.25);
}

.btn-light{
  background:#ffffff;
  color:var(--primary);
}

.btn-outline{
  border:1px solid var(--border);
  background:#ffffff;
  color:var(--primary);
}

.btn-outline:hover{
  background:var(--primary);
  color:#ffffff;
}

.btn-danger{
  background:var(--danger);
  color:#ffffff;
}

.btn-success{
  background:var(--success);
  color:#ffffff;
}

/* =========================
   HERO CARD OLD SUPPORT
========================= */

.hero-card{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:30px;
  padding:22px;
  box-shadow:var(--shadow);
}

.hero-card-inner{
  background:#ffffff;
  border-radius:24px;
  color:var(--text);
  padding:24px;
}

.hero-card h3{
  margin:0 0 14px;
  color:var(--primary);
}

.feature-list{
  display:grid;
  gap:12px;
}

.feature-list div{
  display:flex;
  gap:10px;
  align-items:center;
}

.check{
  width:24px;
  height:24px;
  border-radius:50%;
  background:#dcfce7;
  color:#166534;
  display:grid;
  place-items:center;
  font-weight:900;
}

/* =========================
   SECTIONS / CARDS
========================= */

.section{
  padding:62px 0;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:24px;
}

.section-title h2{
  font-size:32px;
  margin:0;
  color:var(--primary);
  letter-spacing:-.03em;
}

.section-title p{
  margin:6px 0 0;
  color:var(--muted);
}

.grid{
  display:grid;
  gap:22px;
}

.grid-4{
  grid-template-columns:repeat(4,1fr);
}

.grid-3{
  grid-template-columns:repeat(3,1fr);
}

.card{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 8px 24px rgba(8,102,168,.07);
  overflow:hidden;
}

.category-card{
  padding:26px;
  transition:.2s;
}

.category-card:hover{
  transform:translateY(-4px);
  box-shadow:0 15px 35px rgba(8,102,168,.14);
}

.category-icon{
  width:52px;
  height:52px;
  border-radius:18px;
  background:#eaf5ff;
  display:grid;
  place-items:center;
  font-size:25px;
  margin-bottom:16px;
}

.category-card h3{
  margin:0 0 5px;
  color:var(--primary);
}

.category-card p{
  color:var(--muted);
  margin:0;
}

/* =========================
   PRODUCTS
========================= */

.product-card{
  display:flex;
  flex-direction:column;
}

.product-img{
  height:220px;
  background:linear-gradient(135deg,#eaf5ff,#ffffff);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:9px;
  flex:1;
}

.product-title{
  font-size:17px;
  font-weight:800;
  color:#111827;
  margin:0;
}

.product-meta{
  color:var(--muted);
  font-size:13px;
}

.price{
  font-size:21px;
  font-weight:900;
  color:var(--primary);
}

.stock{
  font-size:12px;
  font-weight:800;
  border-radius:999px;
  padding:5px 10px;
  display:inline-flex;
  width:max-content;
}

.stock.in{
  background:#dcfce7;
  color:#166534;
}

.stock.out{
  background:#fee2e2;
  color:#991b1b;
}

.product-actions{
  display:flex;
  gap:10px;
  margin-top:auto;
}

.product-actions .btn{
  flex:1;
  padding:10px 12px;
  font-size:13px;
}

/* =========================
   FILTERS / FORMS
========================= */

.filters{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:16px;
  margin-bottom:26px;
  display:grid;
  grid-template-columns:1fr 220px 140px;
  gap:12px;
}

.input,
.select,
textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  font:inherit;
  background:#ffffff;
}

textarea{
  min-height:130px;
  resize:vertical;
}

.input:focus,
.select:focus,
textarea:focus{
  outline:2px solid #dbe7ff;
  border-color:#9ab5ff;
}

/* =========================
   PAGE HERO / DETAILS
========================= */

.page-hero{
  background:linear-gradient(135deg,#eaf5ff,#ffffff);
  padding:50px 0;
  border-bottom:1px solid var(--border);
}

.page-hero h1{
  margin:0;
  color:var(--primary);
  font-size:42px;
}

.page-hero p{
  color:var(--muted);
  max-width:680px;
}

.details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:start;
}

.details-img{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:28px;
  overflow:hidden;
  min-height:420px;
  display:grid;
  place-items:center;
}

.details-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.details-box{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
}

.details-box h1{
  font-size:36px;
  color:var(--primary);
  line-height:1.1;
  margin:0 0 12px;
}

.specs{
  display:grid;
  gap:8px;
  margin:18px 0;
}

.specs div{
  display:flex;
  justify-content:space-between;
  border-bottom:1px dashed var(--border);
  padding-bottom:8px;
  color:var(--muted);
}

.specs strong{
  color:#111827;
}

/* =========================
   CONTACT
========================= */

.form-card{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
}

.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:26px;
}

.info-box{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  margin-bottom:14px;
}

.info-box h3{
  color:var(--primary);
  margin:0 0 6px;
}

.info-box p{
  margin:0;
  color:var(--muted);
}

/* =========================
   FOOTER
========================= */

.footer{
  background:#043f70;
  color:#e5e7eb;
  margin-top:50px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1.3fr;
  gap:30px;
  padding:44px 0;
}

.footer h3,
.footer h4{
  color:#ffffff;
  margin:0 0 12px;
}

.footer p{
  color:#dbeafe;
}

.footer a{
  display:block;
  color:#dbeafe;
  margin:8px 0;
}

.footer a:hover{
  color:#ffffff;
}

.copyright{
  text-align:center;
  border-top:1px solid rgba(255,255,255,.12);
  padding:16px;
  color:#dbeafe;
}

/* =========================
   ADMIN
========================= */

.admin-body{
  background:#eef3ff;
}

.admin-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  min-height:100vh;
}

.sidebar{
  background:#043f70;
  color:#ffffff;
  padding:22px;
}

.sidebar .brand{
  color:#ffffff;
  margin-bottom:28px;
}

.sidebar a{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  color:#dbeafe;
  margin:6px 0;
  font-weight:700;
}

.sidebar a:hover,
.sidebar a.active{
  background:rgba(255,255,255,.12);
  color:#ffffff;
}

.admin-main{
  padding:26px;
}

.admin-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:22px;
}

.admin-top h1{
  margin:0;
  color:var(--primary);
}

.table-wrap{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:22px;
  overflow:auto;
  box-shadow:0 8px 24px rgba(8,102,168,.07);
}

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  text-align:left;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}

th{
  background:#f8fafc;
  color:#475467;
  font-size:13px;
}

td img{
  width:70px;
  height:55px;
  object-fit:cover;
  border-radius:10px;
}

.admin-card{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  box-shadow:0 8px 24px rgba(8,102,168,.07);
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.stat{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
}

.stat strong{
  font-size:32px;
  color:var(--primary);
  display:block;
}

.stat span{
  color:var(--muted);
  font-weight:700;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form-grid .full{
  grid-column:1/-1;
}

.alert{
  padding:12px 14px;
  border-radius:14px;
  margin-bottom:16px;
  font-weight:700;
}

.alert.success{
  background:#dcfce7;
  color:#166534;
}

.alert.error{
  background:#fee2e2;
  color:#991b1b;
}

.login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#043f70,#0866a8);
}

.login-card{
  width:min(420px,92%);
  background:#ffffff;
  border-radius:28px;
  padding:30px;
  box-shadow:var(--shadow);
}

.login-card h1{
  margin:0 0 6px;
  color:var(--primary);
}

.login-card p{
  margin:0 0 20px;
  color:var(--muted);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:992px){
  .hero-modern{
    padding:70px 0;
  }

  .hero-modern-grid{
    grid-template-columns:1fr;
    gap:45px;
  }

  .hero-visual{
    min-height:390px;
  }

  .hero-logo-card{
    width:310px;
    height:310px;
  }

  .floating-card{
    min-width:185px;
  }
}

@media (max-width:900px){
  .details,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .grid-4,
  .grid-3{
    grid-template-columns:repeat(2,1fr);
  }

  .filters{
    grid-template-columns:1fr;
  }

  .admin-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
  }

  .stats{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:768px){
  .brand-logo{
    width:56px;
    height:56px;
  }

  .brand-text strong,
  .brand strong{
    font-size:18px;
  }

  .brand-text small,
  .brand small{
    font-size:11px;
  }

  .menu-toggle{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:82px;
    left:15px;
    right:15px;
    background:#0866a8;
    padding:16px;
    border-radius:18px;
    flex-direction:column;
    align-items:stretch;
    box-shadow:0 15px 35px rgba(0,0,0,.22);
    z-index:999;
  }

  .nav.show{
    display:flex;
  }

  .nav a{
    text-align:center;
  }
}

@media (max-width:640px){
  .grid-4,
  .grid-3,
  .footer-grid,
  .stats,
  .form-grid{
    grid-template-columns:1fr;
  }

  .product-actions{
    flex-direction:column;
  }

  .section-title{
    display:block;
  }

  .page-hero h1{
    font-size:32px;
  }
}

@media (max-width:600px){
  .hero-modern{
    padding:55px 0;
  }

  .hero-modern h1{
    font-size:40px;
  }

  .hero-search{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-search button{
    width:100%;
  }

  .hero-actions{
    flex-direction:column;
  }

  .hero-actions .btn{
    width:100%;
    text-align:center;
  }

  .hero-logo-card{
    width:245px;
    height:245px;
    border-radius:30px;
  }

  .hero-logo-card img{
    border-radius:22px;
  }

  .hero-visual{
    min-height:340px;
  }

  .floating-card{
    min-width:165px;
    padding:12px;
  }

  .card-laptop{
    left:0;
    top:5px;
  }

  .card-phone{
    right:0;
    top:145px;
  }

  .card-cctv{
    left:5px;
    bottom:5px;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffffff;
  padding: 3px;
}

.footer-brand h3 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-brand p {
  margin: 4px 0 0;
  color: #dbeafe;
  font-size: 13px;
}

.footer-whatsapp {
  display: inline-flex !important;
  margin-top: 12px !important;
  background: #ffffff;
  color: #0866a8 !important;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
}

.footer-whatsapp:hover {
  background: #eaf5ff;
  color: #064f82 !important;
}