.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition-fast);
  cursor: none;
  white-space: nowrap;
  user-select: none;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 27px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition-fast);
  cursor: none;
  white-space: nowrap;
  user-select: none;
}
.btn-ghost:hover {
  border-color: var(--dim);
  color: var(--white);
  background: var(--muted);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 27px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition-fast), box-shadow var(--transition);
  cursor: none;
  white-space: nowrap;
  user-select: none;
}
.btn-gold:hover {
  background: #ccc0a0;
  border-color: #ccc0a0;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184, 168, 130, 0.25);
}
.btn-gold:active { transform: translateY(0); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition), background var(--transition);
}
.form-input::placeholder { color: var(--dim); }
.form-input:focus,
.form-select:focus {
  border-color: var(--dim);
  background: var(--surface);
  outline: none;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: none;
}
.form-select option { background: var(--surface); color: var(--white); }

.form-error {
  font-size: 12px;
  color: var(--danger);
  font-family: var(--font-body);
}

.form-hint {
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-body);
  line-height: 1.5;
}

#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 8000;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.success { border-color: var(--success); color: var(--success); }
#toast.danger  { border-color: var(--danger);  color: var(--danger); }

#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}
.loader-logo span {
  color: var(--gold);
}

.loader-bar-wrap {
  width: 160px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  border-radius: 1px;
}

.loader-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  animation: loaderFill 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes loaderFill {
  from { width: 0; }
  to   { width: 100%; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--subtle);
  font-size: 18px;
  line-height: 1;
  transition: color var(--transition), background var(--transition);
  cursor: none;
}
.modal-close:hover {
  color: var(--white);
  background: var(--mid);
}

.section-label {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-link {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
  cursor: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.section-link:hover { color: var(--gold); border-color: var(--gold); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  white-space: nowrap;
}
.badge.gold  { background: rgba(184,168,130,0.12); border-color: rgba(184,168,130,0.3); color: var(--gold); }
.badge.green { background: rgba(46,204,113,0.1);  border-color: rgba(46,204,113,0.3);  color: var(--success); }
.badge.red   { background: rgba(192,57,43,0.1);   border-color: rgba(192,57,43,0.3);   color: var(--danger); }

.checkout-modal {
  max-width: 480px !important;
}
.checkout-items-list {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--white);
}
.checkout-item-name { color: var(--dim); }
.checkout-item-size {
  font-size: 11px;
  color: var(--subtle);
  margin-left: 4px;
}
.checkout-item-price {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--dim);
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.checkout-total-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}
.checkout-pay-btn {
  background: var(--gold) !important;
  color: #080808 !important;
}
.checkout-pay-btn:hover {
  background: #d4bc7a !important;
}
.checkout-secure-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--subtle);
  margin-top: 12px;
  letter-spacing: 0.03em;
}
