/* ============================================
   ArsBookstore.id - Main Stylesheet
   Aesthetic: Warm editorial / children's book boutique
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --cream: #FDF8F0;
  --warm-white: #FFFCF5;
  --brown-dark: #2C1A0E;
  --brown-mid: #5C3D1E;
  --brown-light: #A0704A;
  --amber: #E8A04A;
  --amber-light: #F5C878;
  --amber-pale: #FDE9B8;
  --sage: #7A9E7E;
  --sage-light: #C4DCC6;
  --coral: #E06B5A;
  --coral-light: #F5B5AC;
  --sky: #6BA3C8;
  --sky-light: #C0D9EE;
  --text-dark: #1E0F05;
  --text-mid: #4A3728;
  --text-muted: #8B6A55;
  --border: #E8D8C0;
  --shadow-soft: 0 2px 12px rgba(44, 26, 14, 0.08);
  --shadow-card: 0 4px 24px rgba(44, 26, 14, 0.12);
  --shadow-lifted: 0 8px 40px rgba(44, 26, 14, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

a { color: var(--brown-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber); }

/* ---- Navbar ---- */
.navbar {
  background: var(--warm-white);
  border-bottom: 2px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.navbar-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--amber);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.navbar-brand span { color: var(--brown-light); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brown-dark);
  border-bottom-color: var(--amber);
}

.btn-nav-login {
  background: var(--brown-dark);
  color: var(--cream) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
}

.btn-nav-login:hover { background: var(--brown-mid) !important; color: white !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--brown-dark);
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,160,74,.35); color: var(--brown-dark); }

.btn-dark {
  background: var(--brown-dark);
  color: var(--cream);
}
.btn-dark:hover { background: var(--brown-mid); transform: translateY(-1px); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--brown-mid);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-sage {
  background: var(--sage);
  color: white;
}
.btn-sage:hover { background: #5c846e; transform: translateY(-1px); color: white; }

.btn-coral {
  background: var(--coral);
  color: white;
}
.btn-coral:hover { background: #c8503f; transform: translateY(-1px); color: white; }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ---- Cards ---- */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lifted); transform: translateY(-2px); }

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 1.5rem; }

/* ---- Status Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
}

.badge-open { background: #d4edda; color: #1e6b34; }
.badge-draft { background: #e2e3e5; color: #495057; }
.badge-closed { background: #f8d7da; color: #721c24; }
.badge-complete { background: #d1ecf1; color: #0c5460; }
.badge-transit { background: var(--sky-light); color: #1a5c8a; }
.badge-delay { background: #fff3cd; color: #856404; }
.badge-dp-pending { background: #fff3cd; color: #856404; }
.badge-dp-lunas { background: var(--sky-light); color: #1a5c8a; }
.badge-lunas { background: #d4edda; color: #1e6b34; }
.badge-belum-lunas { background: #f8d7da; color: #721c24; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1.5px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead tr { background: var(--amber-pale); }
th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brown-mid);
  white-space: nowrap;
}
td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: #FDF8F0; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-label .req { color: var(--coral); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,160,74,.15);
}

textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* ---- Stat Cards ---- */
.stat-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.amber { background: var(--amber-pale); }
.stat-icon.sage { background: var(--sage-light); }
.stat-icon.coral { background: var(--coral-light); }
.stat-icon.sky { background: var(--sky-light); }

.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 3px; }
.stat-value { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); color: var(--brown-dark); line-height: 1.1; }
.stat-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

/* ---- Page Shell ---- */
.page-header {
  background: var(--warm-white);
  border-bottom: 1.5px solid var(--border);
  padding: 2rem;
}

.page-header h1 { font-size: 1.8rem; color: var(--brown-dark); }
.page-header p { color: var(--text-muted); margin-top: 4px; font-size: 0.9rem; }

.page-content { padding: 2rem; max-width: 1400px; }

/* ---- Sidebar Layout ---- */
.app-layout {
  display: flex;
  min-height: calc(100vh - 68px);
}

.sidebar {
  width: 240px;
  background: var(--warm-white);
  border-right: 1.5px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 1.5rem; }

.sidebar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 1.25rem;
  margin-bottom: 6px;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 1.25rem;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  border-right: 3px solid transparent;
  transition: all .18s;
}

.sidebar-nav li a:hover { background: var(--amber-pale); color: var(--brown-dark); }
.sidebar-nav li a.active { background: var(--amber-pale); color: var(--brown-dark); border-right-color: var(--amber); font-weight: 600; }
.sidebar-nav li a .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.main-content { flex: 1; overflow: hidden; }

/* ---- Tabs ---- */
.tabs { display: flex; border-bottom: 2px solid var(--border); gap: 4px; padding: 0 1.5rem; background: var(--warm-white); }
.tab-btn {
  padding: 12px 20px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.tab-btn:hover { color: var(--brown-dark); }
.tab-btn.active { color: var(--brown-dark); border-bottom-color: var(--amber); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Alerts ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border-left: 4px solid;
  margin-bottom: 1rem;
}
.alert-info { background: var(--sky-light); border-color: var(--sky); color: #1a5c8a; }
.alert-success { background: #d4edda; border-color: var(--sage); color: #1e6b34; }
.alert-warning { background: #fff3cd; border-color: var(--amber); color: #856404; }
.alert-danger { background: #f8d7da; border-color: var(--coral); color: #721c24; }

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,26,14,.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-overlay.active { display: flex; }
.modal {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lifted);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(.95) translateY(10px); } to { opacity:1; transform: none; } }
.modal-header {
  padding: 1.5rem;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--brown-dark); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1.5px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.btn-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.btn-close:hover { color: var(--text-dark); }

/* ---- Progress Bar ---- */
.progress { height: 8px; background: var(--border); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--amber); border-radius: 100px; transition: width .6s ease; }
.progress-bar.sage { background: var(--sage); }

/* ---- Key Display ---- */
.key-display {
  font-family: var(--font-mono);
  background: var(--brown-dark);
  color: var(--amber-light);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  letter-spacing: .12em;
  font-size: 1rem;
  word-break: break-all;
}

/* ---- Misc ---- */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.divider { height: 1.5px; background: var(--border); margin: 1.5rem 0; }

/* ---- Search Bar ---- */
.search-wrap { position: relative; }
.search-wrap input { padding-left: 38px; }
.search-wrap .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .nav-links { display: none; }
  .page-content { padding: 1rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Batch PO Card ---- */
.batch-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: 1.5rem;
  transition: box-shadow .25s;
}
.batch-card:hover { box-shadow: var(--shadow-card); }
.batch-tag {
  font-size: 0.78rem;
  background: var(--amber-pale);
  color: var(--brown-mid);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* ---- Home Hero ---- */
.hero {
  background: var(--brown-dark);
  color: white;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Mosaic background — 4 images tiled, low opacity */
.hero-bg-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  z-index: 0;
}
.hero-bg-img {
  background-size: cover;
  background-position: center;
  opacity: 0.19;
  filter: saturate(0.65);
}

/* Gradient overlay on top of mosaic */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,26,14,0.88) 0%,
    rgba(44,26,14,0.70) 55%,
    rgba(92,61,30,0.55) 100%
  );
  z-index: 1;
}

/* Amber glow accents (keep decorative circles) */
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 340px; height: 340px;
  background: var(--amber);
  border-radius: 50%;
  opacity: .10;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 260px; height: 260px;
  background: var(--amber-light);
  border-radius: 50%;
  opacity: .07;
  z-index: 1;
}

.hero-inner { max-width: 700px; position: relative; z-index: 2; }
.hero h1 { color: white; margin-bottom: 1rem; }
.hero p { opacity: .85; font-size: 1.1rem; margin-bottom: 2rem; }
.hero-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--amber-light);
  font-weight: 600;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--amber); }

/* ---- Footer ---- */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 { color: white; font-family: var(--font-display); margin-bottom: .5rem; }
.site-footer p { font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

/* ---- Loading ---- */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { font-family: var(--font-display); color: var(--text-mid); margin-bottom: .5rem; }

/* ---- WAG Cards ---- */
.wag-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all .22s ease;
  box-shadow: var(--shadow-soft);
}
.wag-card:hover {
  border-color: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.18);
  transform: translateY(-2px);
  color: var(--text-dark);
}
.wag-card--toy:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 20px rgba(232, 160, 74, 0.2);
}
.wag-icon {
  font-size: 1.9rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-pale);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.wag-card--toy .wag-icon { background: var(--sage-light); }
.wag-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.wag-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--brown-dark);
}
.wag-join {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 600;
  color: #25D366;
  white-space: nowrap;
}
.wag-card--toy .wag-join { color: var(--amber); }

/* ============================================
   READING SLIDESHOW SECTION
   ============================================ */
.reading-slider-section {
  position: relative;
  overflow: hidden;
  background: var(--brown-dark);
}

.reading-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.reading-slider {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.reading-slide {
  min-width: 100%;
  position: relative;
  height: 460px;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 10, 4, 0.25) 0%,
    rgba(20, 10, 4, 0.65) 40%,
    rgba(20, 10, 4, 0.80) 100%
  );
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 2rem 2.5rem 4rem;
  max-width: 100%;
}

.slide-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--amber-light);
  margin-bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.35);
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.slide-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 600;
  color: #FFFCF5;
  line-height: 1.45;
  margin: 0 0 .85rem;
  border: none;
  padding: 0;
  max-width: 680px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.slide-quote::before { content: '\201C'; color: var(--amber); font-size: 1.4em; line-height: 0; vertical-align: -0.25em; margin-right: 2px; }
.slide-quote::after  { content: '\201D'; color: var(--amber); font-size: 1.4em; line-height: 0; vertical-align: -0.25em; margin-left: 2px; }

.slide-sub {
  font-size: .85rem;
  color: rgba(255,252,245,.7);
  line-height: 1.6;
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* --- Arrows --- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(20,10,4,.45);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--brown-dark);
}
.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }

/* --- Dots --- */
.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: all .25s;
}
.slider-dot.active {
  background: var(--amber);
  width: 24px;
  border-radius: 4px;
}

/* --- Responsive slider --- */
@media (max-width: 640px) {
  .reading-slide { height: 400px; }
  .slide-content { padding: 1.25rem 1.25rem 3.5rem; }
  .slide-quote { font-size: 1rem; }
  .slide-sub { font-size: .78rem; }
  .slider-arrow { display: none; }
}

/* ============================================
   FOOTER SOCIAL MEDIA LINKS
   ============================================ */
.footer-social-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: rgba(255,255,255,.65);
  transition: color .2s;
  padding: .25rem 0;
}
.footer-social-link:hover { color: #fff; }

.footer-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.footer-social-link:hover .footer-social-icon { transform: scale(1.1); }

.footer-social-ig {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.footer-social-threads {
  background: #101010;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}

.footer-social-label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: 2px;
}
.footer-social-handle {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  line-height: 1;
}
.footer-social-link:hover .footer-social-handle { color: var(--amber-light); }

/* ============================================================
   MOBILE FIRST — HOME & BUYER (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* --- Navbar --- */
  .navbar {
    padding: .75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .navbar-brand { font-size: 1rem; }
  .navbar-brand img { width: 34px !important; height: 34px !important; }
  .nav-links { display: none; }

  /* --- Hero --- */
  .hero {
    padding: 3rem 1.25rem 2.5rem;
    text-align: center;
  }
  .hero-inner { max-width: 100%; }
  .hero-eyebrow { justify-content: center; }
  .hero-eyebrow::before { display: none; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero p { font-size: .95rem; }
  .hero .flex { justify-content: center; flex-direction: column; align-items: center; gap: .75rem; }
  .hero .btn-lg { width: 100%; max-width: 320px; justify-content: center; }

  /* --- Section padding --- */
  .section { padding: 2rem 1.25rem; }
  [style*="padding: 3rem 2rem"] { padding: 2rem 1.25rem !important; }
  [style*="padding:3rem 2rem"] { padding: 2rem 1.25rem !important; }

  /* --- How it works — stack to single column --- */
  .section > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* --- Batch open cards --- */
  .batch-open-cards { grid-template-columns: 1fr !important; }

  /* --- Trust grid --- */
  .trust-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
  .trust-card { padding: 1rem !important; }

  /* --- WAG section grid --- */
  [style*="grid-template-columns:repeat(auto-fit,minmax(260px"] {
    grid-template-columns: 1fr !important;
  }

  /* --- Section label & title center on mobile --- */
  .section-label { justify-content: center; }

  /* --- Footer --- */
  .site-footer > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ============================================================
   BUYER PAGE — MOBILE
   ============================================================ */
@media (max-width: 768px) {

  /* Key entry card */
  .key-entry-card { padding: 2rem 1.25rem; border-radius: var(--radius-md); }

  /* Buyer tabs — horizontal scroll, don't wrap ugly */
  #buyer-tabs-header {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding: 0 1rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #buyer-tabs-header::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; font-size: .8rem; padding: .6rem .85rem !important; }

  /* Dashboard content */
  #buyer-dashboard > div[style*="padding:2rem"] {
    padding: 1.25rem 1rem !important;
    max-width: 100% !important;
  }

  /* Overview grid */
  .overview-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .overview-card .val { font-size: 1.3rem !important; }

  /* Order cards */
  .order-card { padding: 1rem; }
  .order-card-header { flex-direction: column; gap: .25rem; align-items: flex-start; }
  .order-footer { flex-direction: column; align-items: flex-start; gap: .5rem; }

  /* Buyer header */
  .buyer-header { padding: 1.25rem 1rem !important; }
}

/* ============================================================
   EXTRA SMALL — phones < 400px
   ============================================================ */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.45rem; }
  .key-entry-card { padding: 1.5rem 1rem; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr !important; }
  .wag-card { padding: .85rem 1rem; }
  .slide-quote { font-size: .95rem; }
}

/* ---- Hamburger menu for mobile ---- */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brown-dark);
  cursor: pointer;
  padding: .25rem .5rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1.5px solid var(--border);
    padding: .75rem 1.25rem 1.25rem;
    gap: .25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 200;
  }
  .navbar { position: relative; }
}
