:root{
    --bg: #F2F4ED;
    --bg-soft: #EAEEE1;
    --ink: #202B1F;
    --rose: #B8707C;
    --rose-deep: #8E4F5B;
    --sage: #7E9A6D;
    --sage-deep: #3E5636;
    --sage-pale: #E3E8DA;
    --muted: #7E7C6E;
    --line: #D6D8C6;
    --paper: #F8F9F3;
    --font-display: 'Vazirmatn', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', sans-serif;
  }

  *{ box-sizing: border-box; margin:0; padding:0; }
  html{ scroll-behavior: smooth; }
  body{
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.85;
    overflow-x: hidden;
  }
  img, svg{ display:block; max-width:100%; }
  a{ color: inherit; text-decoration: none; }
  ul{ list-style: none; }

  h1,h2,h3, .eyebrow{ font-family: var(--font-display); }

  :focus-visible{
    outline: 2px solid var(--rose-deep);
    outline-offset: 4px;
  }

  .wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- NAV ---------- */
  header.site-nav{
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 50;
    padding: 22px 0;
    transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
  }
  header.site-nav.scrolled{
    background: rgba(242,244,237,.88);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--line);
  }
  .nav-inner{
    display:flex;
    align-items:center;
    justify-content: space-between;
  }
  .logo{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .5px;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .logo-mark{ width:26px; height:26px; flex-shrink:0; }
  .nav-links{
    display:flex;
    gap: 36px;
    font-size: 15px;
    font-weight: 500;
  }
  .nav-links a{
    position:relative;
    padding: 4px 0;
    color: var(--ink);
    opacity: .8;
  }
  .nav-links a:hover{ opacity: 1; }
  .nav-links a::after{
    content:"";
    position:absolute;
    right:0; bottom:-2px;
    width:0; height:1.5px;
    background: var(--rose-deep);
    transition: width .3s ease;
  }
  .nav-links a:hover::after{ width:100%; }
  .nav-cta{
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border: 1.3px solid var(--ink);
    border-radius: 999px;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
  }
  .nav-cta:hover{ background: var(--ink); color: var(--paper); }
  .nav-toggle{ display:none; }

  /* ---------- HERO ---------- */
  .hero{
    position: relative;
    min-height: 100svh;
    display:flex;
    align-items:center;
    padding-top: 90px;
    overflow: hidden;
  }
  .hero .wrap{
    position: relative;
    z-index: 2;
    display:grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items:center;
  }
  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rose-deep);
    letter-spacing: .3px;
    margin-bottom: 22px;
  }
  .eyebrow::before{
    content:"";
    width: 26px; height: 1.3px;
    background: var(--rose-deep);
  }
  .hero h1{
    font-size: clamp(40px, 5.6vw, 68px);
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: -.5px;
    color: var(--ink);
  }
  .hero h1 strong{
    font-weight: 700;
    color: var(--sage-deep);
    display:block;
  }
  .hero p.lead{
    margin-top: 26px;
    max-width: 460px;
    font-size: 17px;
    color: #3c4437;
  }
  .hero-actions{
    margin-top: 40px;
    display:flex;
    gap: 18px;
    align-items:center;
  }
  .btn-primary{
    background: var(--sage-deep);
    color: var(--paper);
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(62,86,54,.5); }
  .btn-ghost{
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    display:inline-flex;
    align-items:center;
    gap: 8px;
    border-bottom: 1.3px solid var(--ink);
    padding-bottom: 2px;
  }

  /* Signature: folded-paper visual */
  .fold-art{
    position: relative;
    aspect-ratio: 1/1.05;
  }
  .fold-art svg{ width:100%; height:100%; }
  .fold-caption{
    position:absolute;
    bottom: -6px; left: 6px;
    font-size: 12px;
    color: var(--muted);
    display:flex;
    align-items:center;
    gap: 8px;
  }
  .fold-caption span.dot{
    width:6px; height:6px; border-radius:50%;
    background: var(--rose);
    display:inline-block;
  }

  .hero-bg-blob{
    position:absolute;
    inset: -10% -10% auto auto;
    width: 55vw; height: 55vw;
    max-width: 700px; max-height: 700px;
    background: radial-gradient(circle at 30% 30%, var(--sage-pale), transparent 70%);
    z-index: 1;
    pointer-events:none;
  }

  .scroll-cue{
    position:absolute;
    bottom: 34px; right: 50%;
    transform: translateX(50%);
    font-size: 12px;
    color: var(--muted);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 8px;
    z-index: 2;
  }
  .scroll-cue .line{
    width:1px; height: 34px;
    background: linear-gradient(var(--muted), transparent);
    animation: scrollpulse 2.2s ease-in-out infinite;
  }
  @keyframes scrollpulse{
    0%,100%{ opacity:.25; }
    50%{ opacity:1; }
  }

  /* ---------- fold divider ---------- */
  .fold-divider{
    width: 100%;
    height: 46px;
    display:block;
  }
  .fold-divider path{ fill: var(--bg); }
  .section-sage .fold-divider path{ fill: var(--sage-pale); }
  .section-dark .fold-divider path{ fill: var(--sage-deep); }

  /* ---------- SECTIONS ---------- */
  section{ position: relative; }
  .section-pad{ padding: 130px 0 110px; }
  .section-sage{ background: var(--sage-pale); }
  .section-dark{ background: var(--sage-deep); color: var(--paper); }

  .section-head{
    max-width: 620px;
    margin-bottom: 64px;
  }
  .section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
  .section-head h2{
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 300;
    margin-top: 14px;
    line-height: 1.35;
  }
  .section-head h2 strong{ font-weight: 700; }
  .section-head p{
    margin-top: 18px;
    color: var(--muted);
    font-size: 15.5px;
    max-width: 520px;
  }
  .section-dark .section-head p{ color: #C9D6C1; }

  /* about */
  .about-grid{
    display:grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 70px;
    align-items:center;
  }
  .about-frame{
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 4px 60px 4px 60px;
    background: linear-gradient(155deg, #DCE3CE, #C7D3B6);
    overflow:hidden;
  }
  .about-frame::after{
    content: "تصویر نمونه — کارخانه رز آرشام";
    position:absolute; inset:auto 0 18px 0;
    text-align:center;
    font-size: 12px;
    color: #45543a;
    opacity:.7;
  }
  .about-copy p{ margin-bottom: 18px; color: #3c4437; font-size: 15.5px; }
  .about-stats{
    display:flex;
    gap: 46px;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
  }
  .about-stats .num{
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--sage-deep);
  }
  .about-stats .lbl{ font-size: 13px; color: var(--muted); margin-top: 4px; }

  /* products */
  .product-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
  }
  .product-card{
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 26px 26px;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  }
  .product-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -20px rgba(32,43,31,.18);
    border-color: transparent;
  }
  .product-icon{
    width: 46px; height: 46px;
    margin-bottom: 22px;
  }
  .product-card h3{
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .product-card p{
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 20px;
  }
  .product-link{
    font-size: 13px;
    font-weight: 600;
    color: var(--rose-deep);
    display:inline-flex;
    align-items:center;
    gap: 6px;
  }

  /* process */
  .process-list{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
  }
  .process-list::before{
    content:"";
    position:absolute;
    top: 21px; right: 12%; left: 12%;
    height: 1px;
    background: rgba(242,244,237,.25);
  }
  .process-item{ position: relative; padding-inline-end: 24px; }
  .process-num{
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.3px solid rgba(242,244,237,.4);
    display:flex; align-items:center; justify-content:center;
    margin-bottom: 26px;
    background: var(--sage-deep);
    position:relative; z-index:1;
  }
  .process-item h3{ font-size: 16px; font-weight: 600; margin-bottom: 10px; }
  .process-item p{ font-size: 13.5px; color: #C9D6C1; }

  /* gallery */
  .gallery-grid{
    display:grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 90px;
    gap: 14px;
  }
  .g-item{
    border-radius: 12px;
    background: linear-gradient(160deg, var(--sage-pale), #d3ddc2);
    position: relative;
    overflow:hidden;
  }
  .g-item::after{
    content: attr(data-label);
    position:absolute; inset:auto 0 10px 0;
    text-align:center;
    font-size: 11px;
    color: #45543a;
    opacity: .65;
  }
  .g1{ grid-column: span 2; grid-row: span 2; }
  .g2{ grid-column: span 2; grid-row: span 3; background: linear-gradient(160deg, #EAD9DB, #D8B7BC); }
  .g3{ grid-column: span 2; grid-row: span 2; }
  .g4{ grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #EAD9DB, #D8B7BC); }
  .g5{ grid-column: span 2; grid-row: span 3; }
  .g6{ grid-column: span 2; grid-row: span 2; }

  /* contact / footer */
  footer{ background: var(--ink); color: var(--paper); }
  .footer-top{
    padding: 90px 0 60px;
    display:grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
  }
  .footer-brand .logo{ color: var(--paper); margin-bottom: 18px; }
  .footer-brand p{ color: #A7AC9F; font-size: 14px; max-width: 280px; }
  .footer-col h4{
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #C9D6C1;
  }
  .footer-col li{ margin-bottom: 12px; }
  .footer-col a{ color: #C7CBBE; font-size: 14px; }
  .footer-col a:hover{ color: var(--rose); }
  .footer-bottom{
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 24px 0;
    display:flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #8B9080;
  }

  /* reveal on scroll */
  .reveal{
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal.in{ opacity:1; transform: none; }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    .reveal{ opacity:1; transform:none; transition:none; }
    .scroll-cue .line{ animation: none; }
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 980px){
    .hero .wrap{ grid-template-columns: 1fr; }
    .fold-art{ order:-1; max-width: 340px; margin: 0 auto; }
    .about-grid{ grid-template-columns: 1fr; }
    .product-grid{ grid-template-columns: repeat(2,1fr); }
    .process-list{ grid-template-columns: repeat(2,1fr); gap: 40px 0; }
    .process-list::before{ display:none; }
    .footer-top{ grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px){
    .wrap{ padding: 0 22px; }
    .nav-links{ display:none; }
    .product-grid{ grid-template-columns: 1fr; }
    .gallery-grid{ grid-template-columns: repeat(3,1fr); grid-auto-rows: 70px; }
    .g1,.g2,.g3,.g4,.g5,.g6{ grid-column: span 3; grid-row: span 2; }
    .about-stats{ flex-wrap: wrap; gap: 24px; }
    .footer-top{ grid-template-columns: 1fr; padding: 70px 0 40px; }
    .footer-bottom{ flex-direction: column; gap: 10px; }
    .section-pad{ padding: 90px 0 70px; }
  }

/* ---------- INNER PAGE HERO ---------- */
.page-hero{
  padding: 160px 0 70px;
  position: relative;
}
.page-hero .wrap{ position: relative; z-index: 2; }
.breadcrumb{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  display:flex; align-items:center; gap: 8px;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--rose-deep); }
.page-hero h1{
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 300;
  line-height: 1.3;
}
.page-hero h1 strong{ font-weight:700; color: var(--sage-deep); }
.page-hero p{
  margin-top: 18px;
  max-width: 520px;
  color: #3c4437;
  font-size: 15.5px;
}

/* ---------- FILTER TABS (products) ---------- */
.filter-tabs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.filter-tab{
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.3px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  transition: all .25s ease;
}
.filter-tab:hover{ border-color: var(--sage-deep); color: var(--ink); }
.filter-tab.active{
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--paper);
}

/* ---------- FULL PRODUCT GRID (more items) ---------- */
.product-grid.full{
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card.link-card{ cursor:pointer; }
.product-card .card-thumb{
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--sage-pale), #d3ddc2);
  margin-bottom: 20px;
}
.product-card:nth-child(3n+2) .card-thumb{ background: linear-gradient(160deg, #EAD9DB, #D8B7BC); }
@media (max-width: 980px){ .product-grid.full{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .product-grid.full{ grid-template-columns: 1fr; } }

/* ---------- PRODUCT DETAIL ---------- */
.detail-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items:flex-start;
}
.detail-media{
  aspect-ratio: 1/1;
  border-radius: 4px 60px 4px 60px;
  background: linear-gradient(155deg, #DCE3CE, #C7D3B6);
  position: relative;
}
.detail-media::after{
  content: "تصویر نمونه محصول";
  position:absolute; inset:auto 0 18px 0;
  text-align:center; font-size:12px; color:#45543a; opacity:.7;
}
.detail-thumbs{ display:flex; gap: 12px; margin-top: 16px; }
.detail-thumbs span{
  width: 64px; height: 64px; border-radius: 10px;
  background: var(--sage-pale); display:block;
}
.detail-copy .category-tag{
  display:inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose-deep);
  background: rgba(184,112,124,.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.detail-copy h1{ font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.detail-copy .desc{ color:#3c4437; font-size: 15.5px; margin-bottom: 28px; }
.feature-list{ display:grid; gap: 14px; margin-bottom: 32px; }
.feature-list li{
  display:flex; align-items:flex-start; gap: 12px;
  font-size: 14.5px; color: var(--ink);
}
.feature-list svg{ flex-shrink:0; margin-top: 3px; }
.variant-row{
  display:flex; gap: 10px; flex-wrap:wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.variant-chip{
  font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  border: 1.3px solid var(--line); color: var(--muted);
}
.variant-chip.active{ border-color: var(--sage-deep); color: var(--sage-deep); background: var(--sage-pale); }

/* ---------- FULL GALLERY ---------- */
.gallery-grid.full{
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
}
.gallery-grid.full .g-item{ grid-column: span 1; grid-row: span 1; }
.gallery-filter{ margin-bottom: 40px; }
@media (max-width: 980px){ .gallery-grid.full{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .gallery-grid.full{ grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } }

/* ---------- ABOUT PAGE EXTRAS ---------- */
.value-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.value-card{
  padding: 32px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.value-card svg{ margin-bottom: 20px; }
.value-card h3{ font-size: 16.5px; font-weight: 600; margin-bottom: 10px; }
.value-card p{ font-size: 14px; color: var(--muted); }
@media (max-width: 900px){ .value-grid{ grid-template-columns: 1fr; } }

.timeline{ display:grid; gap: 0; }
.timeline-row{
  display:grid; grid-template-columns: 110px 1fr;
  gap: 26px; padding: 26px 0;
  border-top: 1px solid var(--line);
}
.timeline-row:last-child{ border-bottom: 1px solid var(--line); }
.timeline-row .yr{ font-family: var(--font-display); font-weight:700; color: var(--sage-deep); }
.timeline-row h3{ font-size: 15.5px; font-weight:600; margin-bottom: 6px; }
.timeline-row p{ font-size: 13.5px; color: var(--muted); }

/* ---------- CONTACT PAGE ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
}
.contact-info-card{
  background: var(--sage-pale);
  border-radius: 20px;
  padding: 40px 34px;
}
.contact-info-item{
  display:flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(62,86,54,.14);
}
.contact-info-item:last-child{ border-bottom:none; }
.contact-info-item svg{ flex-shrink:0; margin-top: 2px; }
.contact-info-item h4{ font-size: 14px; font-weight:600; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a{ font-size: 13.5px; color: var(--muted); }
.map-placeholder{
  margin-top: 26px;
  aspect-ratio: 16/10;
  border-radius: 14px;
  background: linear-gradient(160deg, #DCE3CE, #C7D3B6);
  position: relative;
}
.map-placeholder::after{
  content: "نقشه — پس از ثبت آدرس نهایی نمایش داده می‌شود";
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  text-align:center; font-size:12.5px; color:#45543a; opacity:.75; padding: 20px;
}
.form-field{ margin-bottom: 22px; }
.form-field label{
  display:block; font-size: 13.5px; font-weight:600;
  margin-bottom: 9px; color: var(--ink);
}
.form-field input, .form-field textarea{
  width: 100%;
  border: 1.3px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .25s ease;
}
.form-field input:focus, .form-field textarea:focus{
  outline: none;
  border-color: var(--sage-deep);
}
.form-field textarea{ resize: vertical; min-height: 130px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } .form-row{ grid-template-columns: 1fr; } }
.form-note{ font-size: 12.5px; color: var(--muted); margin-top: -6px; margin-bottom: 22px; }
.form-status{
  font-size: 13.5px; font-weight: 600; margin-top: 16px;
  display:none;
}
.form-status.show{ display:block; }
.form-status.ok{ color: var(--sage-deep); }
.form-status.err{ color: var(--rose-deep); }

/* ==================== ADMIN PANEL ==================== */
.admin-body{ background: var(--bg); min-height: 100vh; }

.login-screen{
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  padding: 24px;
}
.login-card{
  width: 100%; max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 36px;
}
.login-card .logo{ justify-content:center; margin-bottom: 8px; font-size: 20px; }
.login-card .sub{ text-align:center; color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.login-card .btn-primary{ width:100%; justify-content:center; border:none; cursor:pointer; margin-top: 6px; }
.login-error{ color: var(--rose-deep); font-size: 13px; margin-top: 14px; text-align:center; display:none; }
.login-error.show{ display:block; }

.admin-shell{ display:flex; min-height: 100vh; }
.admin-sidebar{
  width: 240px;
  flex-shrink: 0;
  background: var(--sage-deep);
  color: var(--paper);
  padding: 28px 20px;
  display:flex; flex-direction:column;
}
.admin-sidebar .logo{ color: var(--paper); margin-bottom: 40px; font-size: 18px; }
.admin-nav{ display:flex; flex-direction:column; gap: 4px; flex:1; }
.admin-nav button{
  text-align: right;
  background: none; border:none;
  color: #C9D6C1;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  display:flex; align-items:center; gap: 10px;
  transition: background .2s ease, color .2s ease;
}
.admin-nav button:hover{ background: rgba(255,255,255,.08); color: var(--paper); }
.admin-nav button.active{ background: rgba(255,255,255,.14); color: var(--paper); }
.admin-logout{
  font-size: 13px; color: #C9D6C1; background:none; border:none; cursor:pointer;
  padding: 12px 14px; text-align:right;
}
.admin-logout:hover{ color: var(--rose); }

.admin-main{ flex: 1; padding: 40px 44px; max-width: 1100px; }
.admin-panel{ display:none; }
.admin-panel.active{ display:block; }
.admin-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 30px; }
.admin-head h1{ font-size: 24px; font-weight: 700; }
.admin-head p{ color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.admin-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
}
.admin-table{ width:100%; border-collapse: collapse; font-size: 14px; }
.admin-table th{ text-align: right; font-weight:600; color: var(--muted); font-size: 12.5px; padding: 10px 8px; border-bottom: 1.3px solid var(--line); }
.admin-table td{ padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td{ border-bottom:none; }
.admin-thumb{ width: 44px; height: 44px; border-radius: 8px; background: var(--sage-pale); object-fit: cover; }
.status-pill{ font-size: 11.5px; font-weight:600; padding: 4px 10px; border-radius: 999px; }
.status-pill.on{ background: var(--sage-pale); color: var(--sage-deep); }
.status-pill.off{ background: #EEE; color: var(--muted); }
.row-actions{ display:flex; gap: 10px; }
.row-actions button{
  font-size: 12.5px; font-weight:600; border:none; background:none; cursor:pointer; color: var(--rose-deep);
}
.row-actions button.edit{ color: var(--sage-deep); }

.admin-btn-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 20px; }
.btn-small{
  font-size: 13px; font-weight:600; padding: 9px 18px; border-radius: 999px;
  background: var(--sage-deep); color: var(--paper); border:none; cursor:pointer;
}
.btn-small.secondary{ background: none; border: 1.3px solid var(--line); color: var(--ink); }

.modal-backdrop{
  position: fixed; inset:0; background: rgba(32,43,31,.45);
  display:none; align-items:center; justify-content:center; z-index: 100; padding: 20px;
}
.modal-backdrop.show{ display:flex; }
.modal{
  background: var(--paper); border-radius: 18px; padding: 32px;
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y:auto;
}
.modal h2{ font-size: 18px; font-weight:700; margin-bottom: 22px; }
.modal-actions{ display:flex; gap: 12px; margin-top: 8px; }
.modal-actions button{ flex:1; }
.upload-drop{
  border: 1.6px dashed var(--line); border-radius: 12px;
  padding: 24px; text-align:center; font-size: 13px; color: var(--muted);
  cursor: pointer; margin-bottom: 18px;
}
.upload-drop:hover{ border-color: var(--sage-deep); }
.upload-preview{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 18px; }
.upload-preview img{ width: 56px; height:56px; border-radius:8px; object-fit:cover; }
.toast{
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 12px 24px;
  border-radius: 999px; font-size: 13.5px; z-index: 200; opacity:0; pointer-events:none;
  transition: opacity .3s ease;
}
.toast.show{ opacity:1; }

@media (max-width: 860px){
  .admin-shell{ flex-direction: column; }
  .admin-sidebar{ width:100%; flex-direction:row; align-items:center; padding: 16px 20px; }
  .admin-sidebar .logo{ margin-bottom:0; }
  .admin-nav{ flex-direction:row; flex:1; overflow-x:auto; }
  .admin-main{ padding: 26px 20px; }
}
