:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --surface-green: #ecfff0;
  --text: #31353b;
  --muted: #6c727c;
  --green: #03ac0e;
  --green-dark: #009b0f;
  --green-soft: #d6ffe1;
  --orange: #ff8a00;
  --orange-soft: #fff2df;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(49, 53, 59, 0.08);
  --shadow-soft: 0 4px 14px rgba(49, 53, 59, 0.06);
  --radius: 20px;
  --shell: min(1200px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f7f7 0%, #f3f4f5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.market-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.market-announcement {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.84rem;
  color: #fff;
  background: linear-gradient(90deg, var(--green) 0%, #12c33b 100%);
  padding: 10px 16px;
  border-radius: 0 0 18px 18px;
}

.market-announcement a {
  font-weight: 700;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), #17c73f);
  color: #fff;
  box-shadow: 0 8px 18px rgba(3, 172, 14, 0.2);
  font-size: 1.35rem;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.search-icon {
  color: #9ca3af;
  font-size: 1rem;
}

.search-shell input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.18s ease;
}

.topnav a:hover,
.category-chip:hover,
.btn:hover,
.laptop-card:hover,
.feature-card:hover,
.step-card:hover,
.inventory-card:hover,
.booking-card:hover {
  transform: translateY(-1px);
}

.subnav {
  padding: 0 0 14px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  transition: 0.18s ease;
}

.category-chip.active {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: rgba(3, 172, 14, 0.18);
  font-weight: 700;
}

.page {
  padding: 24px 0 56px;
}

.card,
.feature-card,
.laptop-card,
.step-card,
.inventory-card,
.booking-card,
.summary-tile,
.promo-banner,
.trust-strip article {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f5fff7 0%, #ffffff 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eefdf1;
  color: var(--green-dark);
  border: 1px solid rgba(3, 172, 14, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow.green {
  background: #eefdf1;
}

.hero-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  max-width: 11ch;
}

.lead,
.section-head p,
.support-copy,
.feature-card p,
.step-card p,
.laptop-copy p,
.muted,
.range-hint,
.inventory-card p,
.booking-card p,
.quote-note,
.summary-tile span,
.promo-banner p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.filter-actions,
.project-actions,
.booking-actions,
.admin-toolbar,
.panel-head,
.booking-card__footer,
.booking-card__top,
.inventory-card__top,
.status-row,
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hero-actions {
  margin-top: 22px;
  justify-content: flex-start;
}

.btn,
.btn-ghost,
.icon-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  transition: 0.18s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--green-dark);
  font-weight: 700;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.promo-banner {
  border-radius: 20px;
  padding: 20px;
}

.promo-banner--main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  min-height: 220px;
  background: linear-gradient(135deg, #02a50d 0%, #31d15b 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 32px rgba(3, 172, 14, 0.22);
}

.promo-banner--main p,
.promo-banner--main h2,
.promo-banner--main .promo-chip {
  color: #fff;
}

.promo-banner--main h2 {
  margin: 12px 0 10px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.promo-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
}

.promo-illustration {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}

.promo-illustration span:first-child {
  font-size: 3.2rem;
}

.promo-illustration span:nth-child(2),
.promo-illustration span:nth-child(3) {
  font-size: 1.35rem;
}

.promo-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.promo-banner--mini {
  background: #fff;
}

.promo-banner--mini.orange {
  background: #fffaf2;
  border-color: #ffe6bf;
}

.promo-banner--mini strong {
  display: block;
  margin-bottom: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.trust-strip article {
  padding: 18px;
  border-radius: 18px;
}

.trust-strip strong,
.summary-tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.section {
  margin-top: 26px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.section-head--market {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.laptop-card,
.step-card,
.inventory-card,
.booking-card,
.summary-tile {
  border-radius: 18px;
  padding: 18px;
}

.feature-card__emoji,
.laptop-card__emoji {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f3fff3;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h3,
.laptop-card h3,
.step-card h3,
.inventory-card h3,
.booking-card h3,
.card h3 {
  margin: 0 0 8px;
}

.feature-meta,
.project-actions,
.laptop-meta,
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafb;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}

.filter-panel {
  padding: 18px;
  border-radius: 20px;
}

.filter-grid,
.form-grid,
.booking-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(3, 172, 14, 0.34);
  box-shadow: 0 0 0 3px rgba(3, 172, 14, 0.08);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.laptop-card {
  display: grid;
  gap: 14px;
}

.laptop-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.price-stack {
  display: grid;
  gap: 5px;
}

.price-stack strong {
  color: var(--green-dark);
  font-size: 1.14rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.availability.available {
  background: #edfdf0;
  color: var(--green-dark);
  border: 1px solid #c9f5d0;
}

.availability.unavailable {
  background: #fff2f4;
  color: #c2415d;
  border: 1px solid #ffd3da;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card strong {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eefdf1;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.admin-section .card,
.admin-login-card,
.summary-tile {
  border-radius: 20px;
}

.admin-login-card {
  padding: 20px;
}

.admin-login-form {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  margin-top: 18px;
}

.inventory-list,
.bookings-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.booking-card {
  display: grid;
  gap: 14px;
}

.booking-card__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-row {
  justify-content: flex-start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #f8fafb;
}

.status-badge.pending { background: #fff8eb; color: #b26d00; border-color: #ffe2ad; }
.status-badge.approved,
.status-badge.verified,
.status-badge.paid,
.status-badge.active { background: #edfdf0; color: var(--green-dark); border-color: #c9f5d0; }
.status-badge.rejected,
.status-badge.cancelled,
.status-badge.unpaid { background: #fff2f4; color: #c2415d; border-color: #ffd3da; }
.status-badge.overdue { background: #fff0ec; color: #d85814; border-color: #ffd0bf; }

.booking-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(49, 53, 59, 0.4);
  backdrop-filter: blur(4px);
}

.booking-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 640px);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 22px;
  overflow-y: auto;
}

.booking-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.booking-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.quote-card {
  padding: 16px;
  background: #f8fafb;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: var(--muted);
}

.quote-row strong {
  color: var(--text);
}

.quote-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.full-span {
  grid-column: 1 / -1;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(49, 53, 59, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.empty-state {
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d1d5db;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .hero-card,
  .featured-grid,
  .catalog-grid,
  .steps-grid,
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid,
  .form-grid,
  .booking-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1200px);
  }

  .market-announcement,
  .topbar,
  .admin-login-form,
  .booking-actions,
  .filter-actions,
  .admin-toolbar,
  .section-head--market {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topnav {
    justify-content: flex-start;
  }

  .promo-mini-grid,
  .trust-strip,
  .featured-grid,
  .catalog-grid,
  .steps-grid,
  .admin-summary-grid,
  .filter-grid,
  .form-grid,
  .booking-card__grid {
    grid-template-columns: 1fr;
  }

  .promo-banner--main {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    width: 100%;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
