/* ==========================================================================
   IASTA 2026 Conference T-Shirt Portal Design System & Styles
   ========================================================================== */

:root {
  /* Color Palette: Deep Academic Tech & Modern Gradient Aesthetic */
  --bg-primary: #0b0f19;
  --bg-surface: #111827;
  --bg-card: rgba(19, 26, 42, 0.78);
  --bg-card-hover: rgba(26, 36, 58, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.5);

  --brand-primary: #38bdf8;
  --brand-secondary: #818cf8;
  --brand-gold: #f59e0b;
  --accent-green: #34d399;
  --accent-maroon: #881337;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient dynamic background blurs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-1 {
  top: -100px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
}

.glow-2 {
  top: 30%;
  right: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, transparent 70%);
}

.glow-3 {
  bottom: 50px;
  left: 25%;
  width: 600px;
  height: 450px;
  background: radial-gradient(circle, rgba(136, 19, 55, 0.2) 0%, transparent 75%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Banner Section */
.conference-header {
  padding: 38px 0 24px 0;
  position: relative;
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 auto;
}

/* Honeycomb Group Styles */
.honeycomb-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.left-honeycombs {
  justify-content: flex-start;
}

.right-honeycombs {
  justify-content: flex-end;
}

/* White Honeycomb Cell */
.honeycomb-wrapper {
  position: relative;
  width: 96px;
  height: 108px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.honeycomb-wrapper:hover {
  transform: translateY(-4px) scale(1.05);
}

.honeycomb-cell {
  width: 100%;
  height: 100%;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  position: relative;
}

/* Subtle white rim accent inside honeycomb */
.honeycomb-cell::after {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: radial-gradient(circle at 50% 30%, #ffffff 60%, #f1f5f9 100%);
  z-index: 1;
}

.honeycomb-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.honeycomb-img2 {
  max-width: 140%;
  max-height: 140%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.honeycomb-img3 {
  max-width: 110%;
  max-height: 110%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.honeycomb-wrapper:hover .honeycomb-img {
  transform: scale(1.06);
}

@media (max-width: 980px) {
  .header-layout {
    flex-direction: column;
    gap: 20px;
  }

  .honeycomb-group {
    justify-content: center;
  }

  .honeycomb-wrapper {
    width: 80px;
    height: 90px;
  }
}

.brand-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-accent {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--brand-primary);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.1);
}

.badge-subtle {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--brand-gold);
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.conference-theme {
  font-size: clamp(15px, 1.8vw, 17.5px);
  color: var(--brand-primary);
  max-width: 800px;
  font-style: italic;
  margin-bottom: 22px;
  font-weight: 400;
}

.quote {
  font-style: normal;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2em;
}

.event-meta-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 13.5px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item strong {
  color: var(--text-primary);
}

.meta-item svg {
  color: var(--brand-primary);
}

.meta-divider {
  color: var(--text-muted);
}

/* App Layout Grid */
.app-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 60px;
  align-items: start;
}

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

/* Generic Glassmorphism Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-subtle);
  padding: 34px;
  transition: var(--transition);
}

/* Left Column: Live Visualizer */
.sticky-card {
  position: sticky;
  top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-subtle);
  padding: 28px;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.visualizer-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.btn-text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-text-action:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

/* T-shirt Canvas Box */
.tshirt-display-wrapper {
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.45) 80%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tshirt-canvas-box {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.tshirt-canvas-box:hover {
  transform: scale(1.02);
}

.tshirt-vector {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.tshirt-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.tshirt-base {
  transition: fill 0.35s ease;
}

/* Spec Pill Status Bar */
.preview-spec-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.spec-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.spec-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.spec-value.highlight {
  color: var(--brand-primary);
}

.badge-tag-provisional {
  font-size: 10px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-left: 6px;
}

.preview-note.provisional-alert {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.preview-note.provisional-alert svg {
  color: #f59e0b;
}

.sheet-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.sheet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
}

.sheet-dot.syncing {
  background-color: #38bdf8;
  animation: pulseDot 1s infinite;
}

.records-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-download-csv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-download-csv:hover {
  background: rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
  transform: translateY(-1px);
}

/* Right Column: Order & Preference Form */
.form-card {
  padding: 38px 40px;
}

@media (max-width: 640px) {
  .form-card {
    padding: 24px 20px;
  }
}

.card-intro {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 22px;
}

.card-intro h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-intro p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Accordion behaviour: click each section to reveal its fields */
.form-section {
  border-radius: 16px;
  transition: opacity 0.25s ease;
}

.form-section .section-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}

.form-section .section-header:hover .section-heading {
  color: var(--brand-primary, #38bdf8);
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.section-chevron {
  color: var(--text-muted, #64748b);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.form-section.open .section-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary, #38bdf8);
}

.section-body {
  display: none;
  margin-top: 18px;
}

.form-section.open .section-body {
  display: block;
  animation: sectionFadeIn 0.35s ease;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section.locked {
  opacity: 0.45;
}

.form-section.locked .section-header {
  cursor: not-allowed;
}

.step-num.step-completed {
  background: #22c55e !important;
}

.section-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.section-status-badge.status-done {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.section-status-badge.status-locked {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--brand-primary);
  color: #031427;
  font-weight: 800;
  font-size: 13px;
  border-radius: 50%;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 18px;
  margin-left: 36px;
}

.req {
  color: #f43f5e;
}

.opt {
  color: var(--text-muted);
  font-weight: normal;
  font-size: 12px;
}

/* Inputs & Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

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

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

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.input-field-wrap,
.textarea-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

.input-field-wrap input,
.textarea-field-wrap textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 16px 12px 44px;
  outline: none;
  transition: var(--transition);
}

.textarea-field-wrap textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 90px;
}

.input-field-wrap input:focus,
.textarea-field-wrap textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.85);
}

.input-field-wrap input:focus+.input-icon,
.input-field-wrap:focus-within .input-icon {
  color: var(--brand-primary);
}

.field-error {
  display: none;
  font-size: 12px;
  color: #fb7185;
  margin-top: 4px;
}

.has-error input {
  border-color: #f43f5e !important;
}

.has-error .field-error {
  display: block;
}

.char-count {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 5px;
}

/* Color Chips Grid */
.color-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.color-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.color-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.color-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.color-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.color-tag {
  font-size: 11px;
  color: var(--text-secondary);
}

.chip-check {
  display: none;
  color: var(--brand-primary);
}

.color-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.color-chip.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--brand-primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.color-chip.active .chip-check {
  display: flex;
}

/* Size Selection Matrix */
.size-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  color: #7dd3fc;
}

.size-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
}

.size-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.size-box input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-code {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.size-dimension {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.size-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.size-box.active {
  border-color: var(--brand-primary);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.size-box.active .size-code {
  color: var(--brand-primary);
}

.size-box.active .size-dimension {
  color: #bae6fd;
}

/* Payment / Bank Details */
.bank-box {
  background: #0f172a;
  padding: 16px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.bank-box .line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.bank-box .line span {
  color: var(--text-secondary);
}

.bank-box .line strong {
  color: #38bdf8;
  text-align: right;
  letter-spacing: 1px;
}

.detail-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
  padding-top: 8px;
  font-size: 13px;
}

.detail-row span {
  color: var(--text-secondary);
}

.detail-row strong {
  color: var(--text-primary);
  text-align: right;
}

/* Checkbox Declaration */
.declaration-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.custom-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.checkbox-label input:checked+.custom-check {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkbox-label input:checked+.custom-check::after {
  content: "✔";
  color: #041324;
  font-size: 12px;
  font-weight: 900;
}

.declaration-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Action Buttons */
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  padding: 15px 34px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
  transition: var(--transition);
  flex-grow: 1;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(2, 132, 199, 0.6);
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #031427;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 24px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--brand-primary);
  color: #031427;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #7dd3fc;
}

/* Recent Local Records Log */
.recent-records-card {
  margin-top: 24px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.records-header h4 {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-ghost-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-ghost-sm:hover {
  color: #fb7185;
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.record-meta {
  display: flex;
  flex-direction: column;
}

.record-meta strong {
  color: var(--text-primary);
}

.record-meta span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.record-pill {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: var(--brand-primary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-right: 8px;
}

.footer-sub {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a {
  color: var(--brand-primary);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.footer-copyright strong {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #131b2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

/* Sizing Table */
.table-responsive {
  overflow-x: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.size-table th {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.size-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.size-badge {
  display: inline-block;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.size-badge.current {
  background: var(--brand-primary);
  color: #031427;
}

.highlight-row {
  background: rgba(56, 189, 248, 0.06);
}

.measurement-tips {
  margin-top: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.measurement-tips h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.measurement-tips ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Success Receipt Modal Specifics */
.success-dialog {
  max-width: 580px;
}

.success-icon-badge {
  width: 50px;
  height: 50px;
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-right: 14px;
}

.receipt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
}

.receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.receipt-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.receipt-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.ref-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--brand-primary);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 18px;
}

.r-item {
  display: flex;
  flex-direction: column;
}

.r-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.r-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.r-item.highlight .r-val {
  color: var(--brand-primary);
  font-size: 15px;
}

.r-queries {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.r-val-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-style: italic;
}

.receipt-footer-note {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }

  #receiptPrintable,
  #receiptPrintable * {
    visibility: visible;
  }

  #receiptPrintable {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 1px solid #000;
    color: #000;
    background: #fff;
    padding: 30px;
  }
}