:root{
  --bg:#eef5ff;
  --paper:#ffffff;
  --glass:rgba(255,255,255,.84);
  --ink:#071426;
  --muted:#64748b;
  --line:rgba(15,23,42,.12);

  --navy:#071426;
  --navy2:#0f2747;
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --blue2:#0ea5e9;
  --cyan:#22d3ee;
  --ice:#dbeafe;

  --button-bg:#dbeafe;
  --button-bg-hover:#bfdbfe;
  --button-text:#1d4ed8;
  --button-text-hover:#1e40af;

  --radius:24px;
  --radius-lg:34px;

  --shadow-sm:0 8px 20px rgba(15,23,42,.06);
  --shadow:0 20px 50px rgba(15,23,42,.11);
  --shadow-hover:0 30px 80px rgba(37,99,235,.22);

  --gradient-main:linear-gradient(135deg,#071426 0%,#0f2747 42%,#2563eb 100%);
  --gradient-blue:linear-gradient(135deg,#1d4ed8,#0ea5e9);
  --gradient-soft:
    radial-gradient(circle at 10% 0%, rgba(37,99,235,.20), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(14,165,233,.18), transparent 32%),
    linear-gradient(180deg,#f8fbff 0%,#eef5ff 58%,#e8f1ff 100%);
}

/* ================= RESET ================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter, "Segoe UI", Arial, sans-serif;
  color:var(--ink);
  background:var(--gradient-soft);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
  background-image:
    linear-gradient(rgba(37,99,235,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.045) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,#000,transparent 86%);
}

body::after{
  content:"";
  position:fixed;
  width:420px;
  height:420px;
  left:-160px;
  bottom:-170px;
  background:rgba(14,165,233,.12);
  border-radius:50%;
  filter:blur(18px);
  z-index:-2;
}

a{
  color:inherit;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* ================= NAVBAR ================= */

.navbar{
  min-height:88px;
  padding:16px clamp(18px,5vw,72px);
  display:flex;
  align-items:center;
  gap:16px;
  background:rgba(248,251,255,.76);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.88);
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  margin-right:auto;
  font-size:clamp(38px,4.3vw,58px);
  font-weight:950;
  letter-spacing:-.08em;
  line-height:1;
  color:var(--blue-dark);
  background:none;
  -webkit-background-clip:initial;
  background-clip:initial;
  -webkit-text-fill-color:var(--blue-dark);
  text-decoration:none;
  position:relative;
}

.logo::after{
  content:"";
  position:absolute;
  left:3px;
  right:8px;
  bottom:-8px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#22d3ee);
  opacity:.95;
  animation:logoLine 2.6s ease-in-out infinite;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.navbar a:not(.logo){
  color:var(--ink);
  text-decoration:none;
  font-size:15px;
  font-weight:800;
  padding:10px 14px;
  border-radius:999px;
  position:relative;
  overflow:hidden;
  transition:transform .22s ease, color .18s ease, box-shadow .22s ease, background .22s ease;
}

.navbar a:not(.logo)::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(14,165,233,.10));
  opacity:0;
  transition:opacity .22s ease;
  z-index:-1;
}

.navbar a:not(.logo):hover{
  color:var(--blue-dark);
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(37,99,235,.12);
}

.navbar a:not(.logo):hover::before{
  opacity:1;
}

.navbar a[href="auth.html"]{
  background:var(--button-bg);
  color:var(--button-text);
  border:1px solid rgba(37,99,235,.14);
}

/* ================= SIDE MENU ================= */

.side-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(7,20,38,.46);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  z-index:1998;
  transition:opacity .28s ease, visibility .28s;
  visibility:hidden;
}

.side-menu-overlay.active{
  opacity:1;
  pointer-events:auto;
  visibility:visible;
}

.side-menu{
  position:fixed;
  top:0;
  right:0;
  width:min(390px,88vw);
  height:100vh;
  background:
    radial-gradient(circle at top right,rgba(34,211,238,.20),transparent 34%),
    linear-gradient(180deg,#071426,#0f2747);
  color:#fff;
  z-index:1999;
  padding:26px;
  transform:translateX(110%);
  transition:transform .35s cubic-bezier(.2,.9,.2,1);
  box-shadow:-25px 0 80px rgba(7,20,38,.35);
  display:flex;
  flex-direction:column;
  gap:18px;
  overflow-y:auto;
}

.side-menu.active{
  transform:translateX(0);
}

.side-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.side-menu-logo{
  font-size:36px;
  font-weight:950;
  letter-spacing:-.07em;
  color:transparent;
  background:linear-gradient(135deg,#fff,#60a5fa,#22d3ee);
  -webkit-background-clip:text;
  background-clip:text;
}

.side-close{
  width:44px;
  height:44px;
  padding:0;
  border-radius:16px;
  border:none;
  background:rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
}

.side-menu a{
  color:#eaf2ff;
  text-decoration:none;
  font-weight:900;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  display:block;
  transition:transform .22s ease, background .22s;
}

.side-menu a:hover{
  background:rgba(255,255,255,.16);
  transform:translateX(-6px);
  color:#fff;
}

.side-menu hr{
  border:0;
  height:1px;
  background:rgba(255,255,255,.12);
  margin:18px 0;
}

.side-logout{
  width:100%;
  margin-top:8px;
}

/* ================= TEXT ================= */

h1{
  font-size:clamp(32px,4.6vw,60px);
  line-height:1.05;
  letter-spacing:-2px;
  margin:0 0 18px;
  color:var(--ink);
}

h2{
  font-size:clamp(26px,3.4vw,42px);
  line-height:1.1;
  letter-spacing:-1px;
  margin:0 0 20px;
  color:var(--ink);
}

h3{
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.5px;
  color:var(--ink);
}

p{
  color:var(--muted);
  font-size:15.5px;
  line-height:1.65;
}

.subtitle{
  color:var(--muted);
  font-size:clamp(16px,2vw,20px);
}

.hero h1,
.hero-card h1,
.catalog-hero h1,
.help-hero h1,
.info-hero h1,
.service-hero h1,
.delivery-main h1,
.hero-main h1,
.preview-title,
#previewTitle{
  font-size:clamp(34px,4.8vw,64px) !important;
  line-height:1.05 !important;
  letter-spacing:-2px !important;
}

/* ================= LAYOUT ================= */

.page,
.catalog-content,
.customize-page,
.dashboard-page,
.section{
  padding:clamp(28px,5vw,74px);
}

.hero{
  padding:clamp(42px,7vw,98px) clamp(24px,6vw,92px);
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:38px;
  align-items:center;
}

/* ================= GLASS SURFACES ================= */

.hero-card,
.box,
.actions,
.orders-box,
.form-box,
.summary-box,
.product-info,
.supplier,
.cart-item,
.order-card,
.track-box,
.login-panel,
.preview-box{
  background:var(--glass);
  border:1px solid rgba(255,255,255,.86);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  position:relative;
  overflow:hidden;
}

.hero-card,
.box,
.actions,
.orders-box,
.form-box,
.summary-box,
.track-box,
.login-panel{
  padding:clamp(22px,3vw,36px);
}

.hero-card::before,
.box::before,
.actions::before,
.orders-box::before,
.form-box::before,
.summary-box::before,
.track-box::before,
.login-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.76),transparent 46%);
  pointer-events:none;
}

.hero-card::after,
.box::after,
.actions::after,
.orders-box::after,
.form-box::after,
.summary-box::after,
.track-box::after,
.login-panel::after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border-radius:50%;
  right:-55px;
  top:-55px;
  background:rgba(37,99,235,.10);
  transition:transform .3s ease, background .3s ease;
}

.hero-card:hover::after,
.box:hover::after,
.actions:hover::after{
  transform:scale(1.2);
  background:rgba(14,165,233,.14);
}

.hero-card > *,
.box > *,
.actions > *,
.orders-box > *,
.form-box > *,
.summary-box > *,
.track-box > *,
.login-panel > *{
  position:relative;
  z-index:1;
}

.hero-card{
  border-radius:var(--radius-lg);
}

/* ================= HERO VISUAL ================= */

.hero-visual{
  min-height:430px;
  border-radius:var(--radius-lg);
  background:
    linear-gradient(135deg,rgba(7,20,38,.20),rgba(37,99,235,.14)),
    radial-gradient(circle at 30% 20%, rgba(34,211,238,.28), transparent 30%),
    url('../img/hero-placeholder.svg');
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:end;
  padding:24px;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-hover);
}

.hero-visual::after{
  content:"";
  position:absolute;
  width:200px;
  height:200px;
  border-radius:50%;
  background:rgba(34,211,238,.14);
  right:-70px;
  top:-60px;
  animation:pulseOrb 3.6s ease-in-out infinite;
}

/* ================= BADGES ================= */

.badge{
  display:inline-flex;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.11);
  color:var(--blue-dark);
  font-weight:900;
  margin-bottom:16px;
  border:1px solid rgba(37,99,235,.12);
}

/* ================= BUTTONS - SAME COLOR ================= */

.btn,
button,
.main-btn,
.place-btn,
.upload-label,
.back,
.card button,
.continue-btn,
.product-btn,
.side-logout,
.nav-actions button:not(.menu-toggle){
  border:0;
  outline:none;
  border-radius:999px;
  color:var(--button-text);
  background:var(--button-bg);
  border:1px solid rgba(37,99,235,.16);
  padding:12px 20px;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 10px 24px rgba(37,99,235,.10);
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  position:relative;
  overflow:hidden;
  text-decoration:none;
  filter:none;
}

.btn::before,
button::before,
.main-btn::before,
.place-btn::before,
.upload-label::before,
.back::before,
.card button::before,
.continue-btn::before,
.product-btn::before,
.side-logout::before{
  display:none;
}

.btn:hover,
button:hover,
.main-btn:hover,
.place-btn:hover,
.upload-label:hover,
.back:hover,
.card button:hover,
.continue-btn:hover,
.product-btn:hover,
.side-logout:hover,
.nav-actions button:not(.menu-toggle):hover{
  background:var(--button-bg-hover);
  color:var(--button-text-hover);
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(37,99,235,.16);
  filter:none;
}

.btn.secondary,
button.secondary,
.secondary{
  background:var(--button-bg);
  color:var(--button-text);
  box-shadow:0 10px 24px rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.16);
}

.btn.secondary:hover,
button.secondary:hover,
.secondary:hover{
  background:var(--button-bg-hover);
  color:var(--button-text-hover);
  box-shadow:0 14px 30px rgba(37,99,235,.16);
}

.btn:active,
button:active{
  transform:translateY(0) scale(.99);
}

/* menu button stays dark */
.menu-toggle{
  width:46px;
  height:46px;
  border-radius:16px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#0f2747 !important;
  box-shadow:0 14px 34px rgba(37,99,235,.20) !important;
  font-size:22px;
  color:#fff !important;
  border:none;
  cursor:pointer;
  transition:transform .22s cubic-bezier(.2,.9,.2,1), background .22s ease;
}

.menu-toggle:hover{
  background:#071426 !important;
  color:#fff !important;
  transform:translateY(-3px) scale(1.03);
}

/* focus-visible accessibility */
:focus{
  outline:none;
}

:focus-visible{
  outline:3px solid rgba(37,99,235,.18);
  outline-offset:4px;
  border-radius:10px;
}

/* ================= CARDS ================= */

.grid,
.cards,
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:26px;
}

.card{
  background:var(--glass);
  border:1px solid rgba(255,255,255,.86);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  position:relative;
  transition:transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .32s, border-color .32s;
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(37,99,235,.12),transparent 46%,rgba(14,165,233,.12));
  transition:opacity .32s;
}

.card:hover{
  transform:translateY(-10px) rotateX(0.5deg);
  box-shadow:var(--shadow-hover);
  border-color:rgba(37,99,235,.20);
}

.card:hover::after{
  opacity:1;
}

.card > *{
  position:relative;
  z-index:1;
}

.card img{
  width:100%;
  height:285px;
  object-fit:cover;
  background:linear-gradient(135deg,#dbeafe,#f8fbff);
  border-radius:var(--radius) var(--radius) 0 0;
  transition:transform .42s ease, filter .42s;
}

.card:hover img{
  transform:scale(1.06);
  filter:saturate(1.12) contrast(1.04);
}

.card-content{
  padding:22px;
}

.card h3,
.product-card h3,
.review-card h3{
  font-size:22px;
  margin:0 0 10px;
}

.card p{
  font-size:15px;
  font-weight:600;
  color:var(--muted);
}

.dashboard-grid .card,
.grid .card{
  padding:28px;
}

.dashboard-grid .card h3,
.grid .card h3{
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:13px;
}

.dashboard-grid .card p,
.grid .card p,
.kpi-card p{
  color:var(--ink);
  font-size:clamp(26px,3.3vw,38px);
  margin:10px 0 0;
  font-weight:950;
}

/* ================= FORMS ================= */

.search-box,
.track-input{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 230px;
  gap:16px;
  margin-bottom:30px;
}

input,
textarea,
select{
  width:100%;
  border:1px solid var(--line);
  border-radius:17px;
  background:rgba(255,255,255,.9);
  color:var(--ink);
  padding:14px 16px;
  font-size:16px;
  outline:none;
  transition:box-shadow .22s ease, border-color .22s ease, transform .12s ease;
}

input:focus,
textarea:focus,
select:focus{
  border-color:rgba(37,99,235,.58);
  box-shadow:0 0 0 6px rgba(37,99,235,.10);
  transform:translateY(-1px);
  background:#fff;
}

textarea{
  min-height:110px;
  resize:vertical;
}

label{
  font-weight:900;
  color:var(--ink);
  display:block;
  margin:16px 0 7px;
}

/* ================= TABLES ================= */

.orders-box{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 12px;
  font-size:16px;
}

th{
  background:transparent;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
  text-align:left;
  padding:10px 14px;
  border:0;
}

td{
  background:rgba(255,255,255,.82);
  color:var(--ink);
  border:0;
  padding:16px;
}

tbody tr{
  transition:transform .25s ease, filter .25s;
}

tbody tr:hover{
  transform:translateY(-5px);
  filter:drop-shadow(0 12px 28px rgba(37,99,235,.12));
}

tbody td:first-child{
  border-radius:18px 0 0 18px;
  font-weight:900;
}

tbody td:last-child{
  border-radius:0 18px 18px 0;
}

.status{
  border-radius:999px;
  padding:8px 13px;
  background:rgba(37,99,235,.11);
  color:var(--blue-dark);
  font-weight:900;
  display:inline-flex;
  gap:7px;
  align-items:center;
  border:1px solid rgba(37,99,235,.14);
}

.status::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
  animation:statusPulse 1.8s ease-in-out infinite;
}

/* ================= CART / ORDERS ================= */

.cart-item{
  display:flex;
  align-items:center;
  gap:22px;
  margin-bottom:18px;
  padding:20px;
  transition:transform .25s ease, box-shadow .25s ease;
}

.cart-item:hover,
.order-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-hover);
}

.cart-item img,
.item img,
.order-item img,
.product-img{
  width:150px;
  height:120px;
  object-fit:cover;
  background:linear-gradient(135deg,#dbeafe,#f8fbff);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
}

.cart-info{
  flex:1;
  font-size:18px;
  line-height:1.65;
}

.item,
.order-item{
  display:flex;
  gap:15px;
  border-bottom:1px solid var(--line);
  padding:15px 0;
}

/* ================= CHECKOUT ================= */

.checkout-container{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:28px;
  align-items:start;
}

.total,
#total{
  color:var(--blue-dark);
  font-weight:950;
}

/* ================= PRODUCT PAGES ================= */

.product-page{
  max-width:1180px;
  margin:auto;
  padding-bottom:40px;
}

.product-header{
  min-height:155px;
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
  padding:38px clamp(24px,5vw,72px);
  box-shadow:var(--shadow);
  background:
    radial-gradient(circle at top right,rgba(34,211,238,.25),transparent 35%),
    linear-gradient(135deg,rgba(37,99,235,.16),rgba(7,20,38,.06));
  border:1px solid rgba(255,255,255,.78);
}

.product-image{
  width:min(72%,560px);
  display:block;
  margin:38px auto;
  border-radius:28px;
  background:linear-gradient(135deg,#dbeafe,#fff);
  box-shadow:var(--shadow);
  padding:20px;
  transition:transform .3s ease, box-shadow .3s;
}

.product-image:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:var(--shadow-hover);
}

.content{
  padding:24px clamp(22px,4vw,48px);
}

.title{
  font-size:24px;
  background:var(--gradient-main);
  color:#fff;
  padding:12px 22px;
  border-radius:999px;
  width:fit-content;
  font-weight:950;
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}

.option{
  background:rgba(255,255,255,.84);
  border:1px solid rgba(255,255,255,.88);
  border-radius:24px;
  padding:18px;
  margin:22px 0;
  display:flex;
  align-items:center;
  gap:24px;
  box-shadow:var(--shadow-sm);
  transition:.25s ease;
}

.option:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}

.option a{
  flex:1;
  text-decoration:none;
}

.price{
  font-size:22px;
  font-weight:950;
  color:#1d4ed8;
}

.supplier{
  padding:18px;
  color:var(--muted);
  line-height:1.7;
  margin-bottom:20px;
}

/* ================= CUSTOMIZE / PREVIEW ================= */

.preview-box{
  min-height:min(58vw,560px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at center,rgba(37,99,235,.12),transparent 38%),
    rgba(255,255,255,.84);
}

.preview-box img{
  max-width:78%;
  max-height:100%;
  object-fit:contain;
  border-radius:22px;
  transition:.28s ease;
}

.preview-box:hover img{
  transform:scale(1.035) rotate(1deg);
}

/* ================= PASSWORD FIELD ================= */

.password-field{
  position:relative;
  width:100%;
}

.password-field input{
  padding-right:54px;
}

.toggle-password{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  padding:0;
  border-radius:12px;
  background:var(--button-bg) !important;
  color:var(--button-text) !important;
  box-shadow:none !important;
  font-size:17px;
}

.toggle-password:hover{
  background:var(--button-bg-hover) !important;
  color:var(--button-text-hover) !important;
  transform:translateY(-50%) scale(1.06);
}

/* ================= REVIEWS ================= */

.reviews-section{
  padding:clamp(36px,6vw,80px);
  margin:30px clamp(18px,5vw,70px);
  border-radius:34px;
  background:
    radial-gradient(circle at top right, rgba(14,165,233,.16), transparent 34%),
    rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 24px 70px rgba(37,99,235,.14);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.reviews-header{
  text-align:center;
  max-width:720px;
  margin:0 auto 34px;
}

.reviews-header h2{
  margin-top:10px;
}

.reviews-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px;
}

.review-card{
  padding:26px;
  border-radius:28px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 18px 45px rgba(37,99,235,.12);
  transition:transform .28s ease, box-shadow .28s ease;
  position:relative;
  overflow:hidden;
}

.review-card::before{
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  right:-55px;
  top:-55px;
  border-radius:50%;
  background:rgba(37,99,235,.10);
  transition:.28s ease;
}

.review-card:hover{
  transform:translateY(-10px);
  box-shadow:0 34px 80px rgba(37,99,235,.24);
}

.review-card:hover::before{
  transform:scale(1.25);
  background:rgba(14,165,233,.16);
}

.review-stars{
  color:#2563eb;
  font-size:22px;
  letter-spacing:2px;
  margin-bottom:12px;
  font-weight:950;
}

.review-card h3{
  margin:0 0 10px;
  font-size:22px;
}

.review-card p{
  margin-bottom:18px;
}

.review-user{
  font-weight:950;
  color:#071426;
  padding-top:14px;
  border-top:1px solid rgba(15,23,42,.10);
}

/* ================= TOAST ================= */

.toast-container{
  position:fixed;
  top:24px;
  right:24px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:12px;
  pointer-events:none;
}

.toast-message{
  min-width:280px;
  max-width:420px;
  padding:15px 18px;
  border-radius:20px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 24px 65px rgba(15,23,42,.20);
  color:#071426;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:850;
  line-height:1.45;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  animation:toastSlideIn .35s ease both;
  pointer-events:auto;
}

.toast-message.success{
  border-left:6px solid #2563eb;
}

.toast-message.error{
  border-left:6px solid #ef4444;
}

.toast-icon{
  width:32px;
  height:32px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:950;
  flex-shrink:0;
}

.toast-message.success .toast-icon{
  background:#2563eb;
}

.toast-message.error .toast-icon{
  background:#ef4444;
}

.toast-message.hide{
  animation:toastSlideOut .3s ease both;
}

/* ================= FOOTER ================= */

footer,
.footer{
  margin-top:48px;
  padding:28px clamp(22px,5vw,62px);
  background:
    radial-gradient(circle at top right,rgba(14,165,233,.22),transparent 32%),
    linear-gradient(135deg,#06111f,#071426 48%,#0f2747);
  color:#fff;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:22px;
  border-radius:28px 28px 0 0;
  box-shadow:0 -18px 45px rgba(15,23,42,.16);
}

footer p,
.footer p{
  color:rgba(255,255,255,.68);
  line-height:1.55;
  margin:8px 0;
  font-size:14px;
}

footer h2,
.footer h2{
  color:#fff;
}

footer h3,
.footer h3{
  color:#fff;
  margin:0 0 10px;
  font-size:18px;
}

footer a,
.footer a{
  color:#bfdbfe;
  text-decoration:none;
  display:block;
  margin:6px 0;
  transition:.22s ease;
  font-size:14px;
}

footer a:hover,
.footer a:hover{
  color:#fff;
  padding-left:7px;
}

.footer-brand{
  font-size:30px;
  font-weight:950;
  letter-spacing:-.07em;
  color:transparent;
  background:linear-gradient(135deg,#fff,#60a5fa,#22d3ee);
  -webkit-background-clip:text;
  background-clip:text;
}

/* ================= ANIMATIONS ================= */

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(24px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes softFloat{
  0%,100%{
    transform:translateY(0);
  }

  50%{
    transform:translateY(-10px);
  }
}

@keyframes pulseOrb{
  0%,100%{
    transform:scale(1);
    opacity:.9;
  }

  50%{
    transform:scale(1.14);
    opacity:.6;
  }
}

@keyframes logoLine{
  0%,100%{
    transform:scaleX(.75);
    transform-origin:left;
  }

  50%{
    transform:scaleX(1);
    transform-origin:left;
  }
}

@keyframes statusPulse{
  0%,100%{
    box-shadow:0 0 0 4px rgba(37,99,235,.10);
  }

  50%{
    box-shadow:0 0 0 8px rgba(37,99,235,.04);
  }
}

@keyframes toastSlideIn{
  from{
    opacity:0;
    transform:translateX(40px) translateY(-8px);
  }

  to{
    opacity:1;
    transform:translateX(0) translateY(0);
  }
}

@keyframes toastSlideOut{
  from{
    opacity:1;
    transform:translateX(0);
  }

  to{
    opacity:0;
    transform:translateX(40px);
  }
}

.page > *,
.section > *,
.catalog-content > *,
.hero > *,
.dashboard-page > *,
.customize-page > *{
  animation:fadeUp .58s ease both;
}

.hero-visual{
  animation:softFloat 5.5s ease-in-out infinite;
}

.cards .card:nth-child(2n),
.dashboard-grid .card:nth-child(2n){
  animation-delay:.08s;
}

.cards .card:nth-child(3n),
.dashboard-grid .card:nth-child(3n){
  animation-delay:.16s;
}

/* ================= RESPONSIVE ================= */

@media(max-width:980px){
  .hero,
  .checkout-container{
    grid-template-columns:1fr;
  }

  .navbar{
    flex-wrap:wrap;
  }

  .logo{
    width:100%;
  }

  footer,
  .footer{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .nav-actions{
    width:100%;
  }

  .nav-actions a,
  .nav-actions button{
    flex:1 1 auto;
    text-align:center;
  }

  .search-box,
  .track-input{
    grid-template-columns:1fr;
  }

  h1,
  .hero h1,
  .hero-card h1,
  .catalog-hero h1,
  .help-hero h1,
  .info-hero h1,
  .service-hero h1,
  .delivery-main h1,
  .hero-main h1,
  #previewTitle{
    font-size:34px !important;
    line-height:1.08 !important;
    letter-spacing:-1px !important;
  }

  h2{
    font-size:26px;
  }

  .logo{
    font-size:42px;
  }

  .side-menu{
    width:min(340px,92vw);
  }
}

@media(max-width:650px){
  .page,
  .catalog-content,
  .customize-page,
  .dashboard-page,
  .section{
    padding:22px;
  }

  .navbar{
    padding:14px 18px;
  }

  .cart-item,
  .option{
    flex-direction:column;
    align-items:flex-start;
  }

  table{
    min-width:760px;
  }

  .card img{
    height:230px;
  }
}

@media(max-width:600px){
  .toast-container{
    top:16px;
    right:16px;
    left:16px;
  }

  .toast-message{
    min-width:0;
    max-width:none;
    width:100%;
  }
}
/* =====================================================
   TAGGY FINAL FRONTEND PATCH
   Add this at the END of style.css
===================================================== */

/* ---------- Role visibility before JS loads ---------- */
[data-logged-in],
[data-role-only] {
  display: none;
}

/* JS will reveal them when session is checked */
body.session-ready [data-logged-in],
body.session-ready [data-role-only] {
  display: initial;
}

/* ---------- Admin view-only mode ---------- */
.admin-view-only .status-action,
.admin-view-only .update-status-btn,
.admin-view-only .supplier-update-btn,
.admin-view-only .delivery-update-btn,
.admin-view-only select.status-select {
  display: none !important;
}

.view-only-badge,
.admin-view-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(100, 116, 139, .12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, .18);
  font-size: 13px;
  font-weight: 950;
}

/* ---------- Status colors ---------- */
.status.pending,
.status-Pending {
  background: rgba(245, 158, 11, .12);
  color: #b45309;
  border-color: rgba(245, 158, 11, .22);
}

.status.processing,
.status-Processing {
  background: rgba(37, 99, 235, .12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, .22);
}

.status.production,
.status-In-Production {
  background: rgba(147, 51, 234, .12);
  color: #7e22ce;
  border-color: rgba(147, 51, 234, .22);
}

.status.ready,
.status-Ready-For-Shipping {
  background: rgba(14, 165, 233, .12);
  color: #0369a1;
  border-color: rgba(14, 165, 233, .22);
}

.status.shipped,
.status-Shipped {
  background: rgba(6, 182, 212, .12);
  color: #0e7490;
  border-color: rgba(6, 182, 212, .22);
}

.status.out,
.status-Out-for-Delivery {
  background: rgba(249, 115, 22, .12);
  color: #c2410c;
  border-color: rgba(249, 115, 22, .22);
}

.status.delivered,
.status-Delivered {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
  border-color: rgba(22, 163, 74, .22);
}

.status.cancelled,
.status-Cancelled {
  background: rgba(220, 38, 38, .12);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, .22);
}

/* ---------- Better dashboard cards ---------- */
.kpi-grid,
.stats-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.kpi-card,
.stat-card,
.analytics-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.kpi-card::after,
.stat-card::after,
.analytics-card::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -45px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .10);
}

.kpi-card h3,
.stat-card h3,
.analytics-card h3 {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.kpi-card p,
.stat-card p,
.analytics-card p {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--ink);
  font-weight: 950;
}

/* ---------- Filters / toolbar ---------- */
.toolbar,
.dashboard-toolbar,
.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.toolbar input,
.toolbar select,
.dashboard-toolbar input,
.dashboard-toolbar select,
.filters-row input,
.filters-row select {
  max-width: 280px;
}

/* ---------- Empty / loading states ---------- */
.empty-state,
.loading-state,
.error-state {
  padding: 34px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-weight: 850;
}

.empty-state strong,
.loading-state strong,
.error-state strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 8px;
}

.error-state {
  color: #b91c1c;
  background: rgba(254, 226, 226, .75);
}

/* ---------- Product / supplier badges ---------- */
.qa-badge,
.supplier-badge,
.plan-badge,
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(37, 99, 235, .10);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, .16);
}

.discount-badge {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
  border-color: rgba(22, 163, 74, .18);
}

/* ---------- Forms validation ---------- */
.validation-message,
.input-hint {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.validation-message.valid {
  color: #15803d;
}

.validation-message.invalid {
  color: #dc2626;
}

input.invalid,
textarea.invalid,
select.invalid {
  border-color: rgba(220, 38, 38, .65);
  box-shadow: 0 0 0 5px rgba(220, 38, 38, .10);
}

input.valid,
textarea.valid,
select.valid {
  border-color: rgba(22, 163, 74, .65);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .10);
}

/* ---------- Modal for review / issue ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(7, 20, 38, .52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: min(560px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 28px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 30px 90px rgba(15,23,42,.35);
  padding: 26px;
  animation: fadeUp .28s ease both;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-head h2,
.modal-head h3 {
  margin: 0;
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  padding: 0;
}

/* ---------- Order timeline ---------- */
.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(100,116,139,.10);
  color: #64748b;
  border: 1px solid rgba(100,116,139,.16);
  font-size: 12px;
  font-weight: 950;
}

.timeline-step::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.timeline-step.done,
.timeline-step.completed {
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
  border-color: rgba(37,99,235,.18);
}

.timeline-step.current {
  background: rgba(22,163,74,.12);
  color: #15803d;
  border-color: rgba(22,163,74,.18);
}

/* ---------- Cart count ---------- */
.cart-count,
[data-cart-count] {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Side menu note missing style ---------- */
.side-menu-note {
  margin-top: 12px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,.10);
}

/* ---------- Safer hidden utility ---------- */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Better mobile dashboard tables ---------- */
@media(max-width: 760px) {
  .toolbar,
  .dashboard-toolbar,
  .filters-row {
    align-items: stretch;
  }

  .toolbar input,
  .toolbar select,
  .toolbar button,
  .dashboard-toolbar input,
  .dashboard-toolbar select,
  .dashboard-toolbar button,
  .filters-row input,
  .filters-row select,
  .filters-row button {
    max-width: none;
    width: 100%;
  }

  .modal-box {
    padding: 20px;
    border-radius: 22px;
  }

  .timeline {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-step {
    width: 100%;
    justify-content: flex-start;
  }
}
/* ================= LANGUAGE SWITCHER ================= */

.language-toggle-btn{
  border:0;
  outline:none;
  border-radius:999px;
  color:#1d4ed8;
  background:#dbeafe;
  border:1px solid rgba(37,99,235,.16);
  padding:10px 16px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(37,99,235,.10);
  transition:.22s ease;
}

.language-toggle-btn:hover{
  background:#bfdbfe;
  color:#1e40af;
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(37,99,235,.16);
}

body.arabic-mode{
  direction:rtl;
  text-align:right;
  font-family:"Segoe UI", Tahoma, Arial, sans-serif;
}

body.arabic-mode .navbar{
  direction:rtl;
}

body.arabic-mode .logo{
  margin-right:0;
  margin-left:auto;
}

body.arabic-mode .nav-actions{
  direction:rtl;
}

body.arabic-mode .hero-wow,
body.arabic-mode .checkout-layout,
body.arabic-mode .checkout-container,
body.arabic-mode .hero{
  direction:rtl;
}

body.arabic-mode .hero-left,
body.arabic-mode .checkout-card,
body.arabic-mode .summary-card,
body.arabic-mode .box,
body.arabic-mode .form-box,
body.arabic-mode .summary-box{
  text-align:right;
}

body.arabic-mode input,
body.arabic-mode textarea,
body.arabic-mode select{
  direction:rtl;
  text-align:right;
}

body.arabic-mode .summary-row{
  direction:rtl;
}

body.arabic-mode .summary-row span:last-child{
  text-align:left;
}

body.arabic-mode .flow-mini-card{
  direction:rtl;
}

body.arabic-mode .flow-mini-card:hover{
  transform:translateX(-8px);
}

body.arabic-mode footer,
body.arabic-mode .footer{
  direction:rtl;
  text-align:right;
}
.language-toggle-btn{
  border:0;
  outline:none;
  border-radius:999px;
  color:#1d4ed8;
  background:#dbeafe;
  border:1px solid rgba(37,99,235,.16);
  padding:10px 16px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(37,99,235,.10);
  transition:.22s ease;
}

.language-toggle-btn:hover{
  background:#bfdbfe;
  color:#1e40af;
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(37,99,235,.16);
}