@import url('https://fonts.googleapis.com/css2?family=Khand:wght@400;600&family=Spectral:wght@400;600&display=swap');

:root {
  color-scheme: light;
  --ink: #231d28;
  --muted: #6a5f73;
  --accent: #ff8a34;
  --accent-dark: #c45b14;
  --surface: #fff6eb;
  --surface-strong: #ffffff;
  --border: #e7d8c5;
  --highlight: #f7e1ff;
  --shadow: 0 24px 60px rgba(26, 18, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Spectral', 'Times New Roman', serif;
  color: var(--ink);
  background: linear-gradient(120deg, #fff1da 0%, #ffe9f6 45%, #f3f7ff 100%);
  min-height: 100vh;
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.4;
  z-index: 0;
}

.page::before {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #ffd6a5 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.page::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #e3d4ff 0%, transparent 70%);
  bottom: -160px;
  left: -120px;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6vw 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffcb75 0%, #ff8a34 100%);
  display: grid;
  place-items: center;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 26px;
  color: #3d1d0d;
  letter-spacing: 1px;
}

.brand-title {
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.brand-sub {
  color: var(--muted);
  font-size: 14px;
}

.account {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(34, 24, 30, 0.08);
}

.account-meta .label {
  color: var(--muted);
  font-size: 13px;
}

.account-meta .value {
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 18px;
}

.menu {
  position: relative;
  z-index: 1;
  margin: 10px 6vw 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-strong);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.menu .auth-only,
.menu .guest-only {
  display: none;
}

body.is-guest .menu .guest-only {
  display: inline-flex;
}

body.is-auth .menu .auth-only {
  display: inline-flex;
}

.account.auth-only,
.account.guest-only {
  display: none;
}

body.is-guest .account.guest-only {
  display: flex;
}

body.is-auth .account.auth-only {
  display: flex;
}

.menu-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.menu-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-link:hover {
  color: var(--accent-dark);
}

.menu a {
  text-decoration: none;
  color: var(--ink);
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu a:hover {
  color: var(--accent-dark);
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 32px;
  padding: 32px 6vw 60px;
}

.layout.single {
  grid-template-columns: 1fr;
}

.page-body {
  position: relative;
  z-index: 1;
  padding: 32px 6vw 60px;
  display: grid;
  gap: 24px;
}

.sidebar {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar h2 {
  margin: 0;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.category-list li {
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.category-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px dashed #f0caa0;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  background: var(--surface-strong);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.stat {
  background: linear-gradient(135deg, #fff8ed 0%, #f1f6ff 100%);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stat strong {
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 26px;
}

.forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 14px;
}

input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

select,
textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  resize: vertical;
}

input:focus {
  outline: 2px solid rgba(255, 138, 52, 0.35);
  border-color: var(--accent);
}

select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 138, 52, 0.35);
  border-color: var(--accent);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.captcha {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.captcha-title {
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 6px;
}

.captcha-box {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 6px;
  display: grid;
  place-items: center;
}

.small {
  font-size: 12px;
}

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

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #2d1404;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover {
  background: #ff9f55;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--accent-dark);
}

.page-title {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.page-title h1 {
  margin: 0 0 8px;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface-strong);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.admin-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 24px;
}

.section-actions {
  display: flex;
  justify-content: flex-end;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table a {
  color: inherit;
  text-decoration: none;
}

.data-table a:hover {
  color: var(--accent-dark);
}

.data-table th {
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--muted);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.table-actions form {
  margin: 0;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0 16px;
}

.inline-form {
  display: inline-flex;
  margin: 0 0 0 6px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.image-card {
  display: grid;
  gap: 8px;
}

.thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.alert {
  background: #fff0ef;
  border: 1px solid #f5b2a9;
  color: #7a2b1e;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.request-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cta-card {
  display: grid;
  gap: 10px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 24px;
  align-items: start;
}

.auth-side {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.auth-side ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
}

.garant-hero {
  background: linear-gradient(135deg, #fff1e8 0%, #f3f0ff 100%);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.garant-steps {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.garant-steps ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
}

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

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tile {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(26, 18, 32, 0.08);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
}

.signup-success {
  display: grid;
  gap: 16px;
}

.success-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #fff5e8 0%, #f5f0ff 100%);
}

.success-id {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  min-width: 180px;
  text-align: center;
}

.success-id span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.success-id strong {
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
}

.success-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.success-steps ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-card {
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  box-shadow: inset 0 0 0 3px #fff;
}

.timeline-step.is-done {
  border-color: var(--accent);
}

.timeline-step.is-done .timeline-dot {
  background: var(--accent);
}

.timeline-step.is-active {
  border-color: var(--accent-dark);
}

.timeline-step.is-active .timeline-dot {
  background: var(--accent-dark);
}

.timeline-step.is-canceled {
  opacity: 0.6;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.marketplace {
  background: var(--surface-strong);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

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

.chip {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: 'Khand', 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* --- Marketplace Premium Redesign --- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  /* Changed 1fr to a fixed max to prevent stretching */
  gap: 16px;
}

.product {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(26, 18, 32, 0.05);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(26, 18, 32, 0.1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Force square aspect ratio */
  background-color: #f8f9fa;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  content: "";
}

.product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-body .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
}

.product-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  /* Adding standard property for compatibility */
}

.product-body .price {
  color: var(--accent-dark);
  font-size: 18px;
  font-family: 'Khand', sans-serif;
  margin-bottom: 4px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #ffb800;
}

.rating-row .sold-count {
  color: var(--muted);
  margin-left: auto;
}

/* --- Product Detail Premium --- */
.item-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image-box {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  overflow: hidden;
}

.main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-box {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.thumb-box.active {
  border-color: var(--accent);
  border-width: 2px;
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-info h1 {
  font-size: 24px;
  margin: 0;
  line-height: 1.2;
}

.price-main {
  font-size: 32px;
  color: var(--accent-dark);
  font-family: 'Khand', sans-serif;
  padding: 16px;
  background: var(--surface);
  border-radius: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.info-row .label {
  color: var(--muted);
  width: 80px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: fit-content;
  overflow: hidden;
}

.quantity-selector button {
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.quantity-selector input {
  width: 50px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  padding: 0;
  border-radius: 0;
}

.action-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.action-btns .btn {
  flex-grow: 1;
  padding: 14px;
  font-size: 16px;
}

.btn-buy {
  background: var(--accent);
}

.btn-add-cart {
  background: #fff6eb;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--accent-dark);
  text-decoration: none;
}

.breadcrumbs span::after {
  content: '>';
  margin-left: 8px;
}

.news {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.news-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  background: #f8e7ff;
  padding: 3px 10px;
  border-radius: 999px;
  color: #5a2c6f;
  font-weight: 600;
}

.support-section {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.support-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
}

.support-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.support-form {
  display: grid;
  gap: 10px;
}

.logout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw 30px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .account {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

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

  .item-detail {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .success-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .support,
  .logout-bar,
  .success-steps {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .menu {
    border-radius: 16px;
    gap: 12px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .captcha {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}