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

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Marcellus', 'Playfair Display', serif;
  
  /* Light Mode Palette (Warm Ivory & Royal Navy/Saffron Accent) */
  --bg-app: #faf7f2;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --text-main: #0c1424;
  --text-muted: #4b5563;
  --border-color: rgba(217, 119, 6, 0.15);
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 20px -8px rgba(180, 83, 9, 0.08), 0 4px 6px -2px rgba(180, 83, 9, 0.02);
  --shadow-lg: 0 25px 50px -12px rgba(12, 20, 36, 0.08);
  --accent-color: #b45309;
  --accent-hover: #9a4706;
  --accent-glow: rgba(217, 119, 6, 0.08);
  --accent-glow-strong: rgba(217, 119, 6, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(217, 119, 6, 0.2);
  --card-divider: #b45309;
  
  /* Swatch settings */
  --swatch-aspect: 2.1;
  --swatch-border-radius: 4px;

  /* Fixed header height offset — main content padding-top uses this */
  --header-offset: 180px;
}

[data-theme="dark"] {
  /* Dark Mode Palette (Surmai Deep Navy & Gold Accent) */
  --bg-app: #060b13;
  --bg-card: rgba(13, 22, 38, 0.85);
  --bg-card-hover: rgba(19, 31, 53, 0.95);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(217, 119, 6, 0.25);
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --accent-color: #d97706;
  --accent-hover: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.18);
  --accent-glow-strong: rgba(217, 119, 6, 0.4);
  --glass-bg: rgba(9, 16, 28, 0.88);
  --glass-border: rgba(217, 119, 6, 0.25);
  --card-divider: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ── Lucide Icon Sizing ───────────────────────────────────── */
.ann-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  position: relative;
  top: -1px;
}

.btn-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 3;
  display: inline-block;
  vertical-align: middle;
}

.search-icon-svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  stroke-width: 2;
  pointer-events: none;
  flex-shrink: 0;
}

.footer-link-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  display: inline-block;
  vertical-align: middle;
  margin-right: 3px;
  position: relative;
  top: -1px;
}

/* Feature card Lucide icon sizing */
.feature-icon-wrapper i,
.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-color);
  stroke-width: 1.75;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  padding: 0;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, var(--accent-glow) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--accent-glow) 0px, transparent 50%);
  background-attachment: fixed;
}


/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-main);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* PUBLIC MODE VS ADMIN MODE VISIBILITY RULES */
body.public-mode .admin-only {
  display: none !important;
}

body.public-mode .swatch-edit-indicator {
  display: none !important;
}

body.admin-mode .admin-only {
  display: inline-flex !important;
}

body.admin-mode .swatch-edit-indicator {
  display: block !important;
}

/* Header wrapper — scrolls naturally with the page */
.sticky-header-wrapper {
  position: relative;
  width: 100%;
  z-index: 10;
}

[data-theme="dark"] .sticky-header-wrapper {
  /* no special override needed in scroll mode */
}

.header-container-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem 0.5rem;
}

/* Header UI */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 1.25rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brand-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.actions-panel {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

button {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

button.primary {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
}

button.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px var(--accent-glow-strong);
}

/* Control bar (Search + Filter) */
.controls-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-input {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 0.25rem;
}

.tag {
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.tag.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

/* Shade Card Grid Layout */
.shade-card-board {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}

.shade-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  min-width: 800px;
  position: relative;
}

.shade-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

/* vertical separator lines on the right of each column except the last */
.shade-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -1rem;
  bottom: -1rem;
  right: -1rem;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 4px,
    var(--card-divider) 4px,
    var(--card-divider) 8px
  );
  opacity: 0.55;
  pointer-events: none;
}

/* Swatch Component */
.swatch-card {
  position: relative;
  aspect-ratio: var(--swatch-aspect);
  border-radius: var(--swatch-border-radius);
  cursor: pointer;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.swatch-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 
    0 10px 20px -5px rgba(0, 0, 0, 0.25),
    0 0 15px var(--hover-color);
  z-index: 10;
}

.swatch-cloth {
  position: absolute;
  inset: 0;
  background-color: var(--swatch-color);
  clip-path: polygon(
    0% 0%, 1.5% 2.08%, 0% 4.17%, 1.5% 6.25%, 0% 8.33%, 1.5% 10.42%, 0% 12.50%, 1.5% 14.58%, 0% 16.67%, 1.5% 18.75%, 0% 20.83%, 1.5% 22.92%, 0% 25.00%, 1.5% 27.08%, 0% 29.17%, 1.5% 31.25%, 0% 33.33%, 1.5% 35.42%, 0% 37.50%, 1.5% 39.58%, 0% 41.67%, 1.5% 43.75%, 0% 45.83%, 1.5% 47.92%, 0% 50.00%, 1.5% 52.08%, 0% 54.17%, 1.5% 56.25%, 0% 58.33%, 1.5% 60.42%, 0% 62.50%, 1.5% 64.58%, 0% 66.67%, 1.5% 68.75%, 0% 70.83%, 1.5% 72.92%, 0% 75.00%, 1.5% 77.08%, 0% 79.17%, 1.5% 81.25%, 0% 83.33%, 1.5% 85.42%, 0% 87.50%, 1.5% 89.58%, 0% 91.67%, 1.5% 93.75%, 0% 95.83%, 1.5% 97.92%, 0% 100%,
    100% 100%, 98.5% 97.92%, 100% 95.83%, 98.5% 93.75%, 100% 91.67%, 98.5% 89.58%, 100% 87.50%, 98.5% 85.42%, 100% 83.33%, 98.5% 81.25%, 100% 79.17%, 98.5% 77.08%, 100% 75.00%, 98.5% 72.92%, 100% 70.83%, 98.5% 68.75%, 100% 66.67%, 98.5% 64.58%, 100% 62.50%, 98.5% 60.42%, 100% 58.33%, 98.5% 56.25%, 100% 54.17%, 98.5% 52.08%, 100% 50.00%, 98.5% 47.92%, 100% 45.83%, 98.5% 43.75%, 100% 41.67%, 98.5% 39.58%, 100% 37.50%, 98.5% 35.42%, 100% 33.33%, 98.5% 31.25%, 100% 29.17%, 98.5% 27.08%, 100% 25.00%, 98.5% 22.92%, 100% 20.83%, 98.5% 18.75%, 100% 16.67%, 98.5% 14.58%, 100% 12.50%, 98.5% 10.42%, 100% 8.33%, 98.5% 6.25%, 100% 4.17%, 98.5% 2.08%
  );
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Fabric texture overlay */
.swatch-cloth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('texture.svg');
  opacity: 0.85;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* 3D fabric cylinders fold shading effect */
.swatch-cloth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 12%,
    rgba(255, 255, 255, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.05) 88%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

/* Label text overlaying swatches */
.swatch-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  pointer-events: none;
  text-shadow: var(--label-shadow);
  color: var(--label-color);
  user-select: none;
  opacity: 0.85;
  transition: transform 0.2s, opacity 0.2s;
}

.swatch-card:hover .swatch-label {
  transform: scale(1.1);
  opacity: 1;
}

/* Hover Quick Info Overlay */
.swatch-tooltip {
  position: absolute;
  bottom: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  letter-spacing: 0.05em;
  font-family: monospace;
}

.swatch-card:hover .swatch-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.swatch-edit-indicator {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  color: #1e293b;
  pointer-events: none;
  font-size: 0.65rem;
}

.swatch-card:hover .swatch-edit-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Modal Drawer for Edits & Additions */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-main);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  box-shadow: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-main);
  transform: none;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

input[type="text"] {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,0.02);
  color: var(--text-main);
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--accent-color);
}

.color-picker-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.color-preview-block {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm), inset 0 0 10px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.color-preview-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('texture.svg');
  opacity: 0.85;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.color-preview-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 12%,
    rgba(255, 255, 255, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.05) 88%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

/* Spotlight Swatch size customization & zig-zag edges style */
.spotlight-modal-container {
  max-width: 780px !important;
  width: 100%;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.spotlight-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.spotlight-swatch-wrapper {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  width: 100%;
}

#spotlightPreviewBlock {
  width: 100%;
  height: 180px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0% 0%, 1.5% 2.08%, 0% 4.17%, 1.5% 6.25%, 0% 8.33%, 1.5% 10.42%, 0% 12.50%, 1.5% 14.58%, 0% 16.67%, 1.5% 18.75%, 0% 20.83%, 1.5% 22.92%, 0% 25.00%, 1.5% 27.08%, 0% 29.17%, 1.5% 31.25%, 0% 33.33%, 1.5% 35.42%, 0% 37.50%, 1.5% 39.58%, 0% 41.67%, 1.5% 43.75%, 0% 45.83%, 1.5% 47.92%, 0% 50.00%, 1.5% 52.08%, 0% 54.17%, 1.5% 56.25%, 0% 58.33%, 1.5% 60.42%, 0% 62.50%, 1.5% 64.58%, 0% 66.67%, 1.5% 68.75%, 0% 70.83%, 1.5% 72.92%, 0% 75.00%, 1.5% 77.08%, 0% 79.17%, 1.5% 81.25%, 0% 83.33%, 1.5% 85.42%, 0% 87.50%, 1.5% 89.58%, 0% 91.67%, 1.5% 93.75%, 0% 95.83%, 1.5% 97.92%, 0% 100%,
    100% 100%, 98.5% 97.92%, 100% 95.83%, 98.5% 93.75%, 100% 91.67%, 98.5% 89.58%, 100% 87.50%, 98.5% 85.42%, 100% 83.33%, 98.5% 81.25%, 100% 79.17%, 98.5% 77.08%, 100% 75.00%, 98.5% 72.92%, 100% 70.83%, 98.5% 68.75%, 100% 66.67%, 98.5% 64.58%, 100% 62.50%, 98.5% 60.42%, 100% 58.33%, 98.5% 56.25%, 100% 54.17%, 98.5% 52.08%, 100% 50.00%, 98.5% 47.92%, 100% 45.83%, 98.5% 43.75%, 100% 41.67%, 98.5% 39.58%, 100% 37.50%, 98.5% 35.42%, 100% 33.33%, 98.5% 31.25%, 100% 29.17%, 98.5% 27.08%, 100% 25.00%, 98.5% 22.92%, 100% 20.83%, 98.5% 18.75%, 100% 16.67%, 98.5% 14.58%, 100% 12.50%, 98.5% 10.42%, 100% 8.33%, 98.5% 6.25%, 100% 4.17%, 98.5% 2.08%
  );
}

.spotlight-title-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.25rem;
}

#spotlightLabel {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

.spotlight-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 20px;
}

.mockup-header-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 680px) {
  .spotlight-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .spotlight-right {
    padding: 1rem;
  }
}

input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  outline: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 2px solid var(--border-color);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.color-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.75rem;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.color-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.color-info-val {
  font-weight: 700;
  color: var(--text-main);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 600; /* Above TV Overlay */
}

.toast {
  background: #1e293b;
  color: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

/* STORE TV SHOWCASE OVERLAY STYLING */
body.tv-fullscreen-active {
  overflow: hidden;
  height: 100vh;
  padding-top: 0; /* TV mode is fullscreen, no header offset needed */
}

.tv-overlay {
  position: fixed;
  inset: 0;
  background-color: #03070d;
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background-image: 
    radial-gradient(at 0% 0%, rgba(217, 119, 6, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(251, 191, 36, 0.04) 0px, transparent 50%);
}

.tv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tv-live-indicator {
  color: #ef4444;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  animation: tvBlink 1.5s infinite;
}

.tv-title {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-primary);
}

.tv-controls {
  display: flex;
  gap: 1rem;
}

.tv-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.tv-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.tv-btn-exit {
  background: #dc2626;
  border: none;
}

.tv-btn-exit:hover {
  background: #b91c1c;
}

.tv-spotlight-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 3rem 4rem;
}

/* Large TV Spotlight Swatch Card */
.tv-swatch-display {
  width: 480px;
  height: 290px;
  position: relative;
  border-radius: 16px;
  box-shadow: 
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 50px var(--swatch-color);
  transition: box-shadow 0.5s ease;
}

.tv-swatch-cloth {
  position: absolute;
  inset: 0;
  background-color: var(--swatch-color);
  border-radius: 16px;
  clip-path: polygon(
    0% 0%, 1.5% 2.08%, 0% 4.17%, 1.5% 6.25%, 0% 8.33%, 1.5% 10.42%, 0% 12.50%, 1.5% 14.58%, 0% 16.67%, 1.5% 18.75%, 0% 20.83%, 1.5% 22.92%, 0% 25.00%, 1.5% 27.08%, 0% 29.17%, 1.5% 31.25%, 0% 33.33%, 1.5% 35.42%, 0% 37.50%, 1.5% 39.58%, 0% 41.67%, 1.5% 43.75%, 0% 45.83%, 1.5% 47.92%, 0% 50.00%, 1.5% 52.08%, 0% 54.17%, 1.5% 56.25%, 0% 58.33%, 1.5% 60.42%, 0% 62.50%, 1.5% 64.58%, 0% 66.67%, 1.5% 68.75%, 0% 70.83%, 1.5% 72.92%, 0% 75.00%, 1.5% 77.08%, 0% 79.17%, 1.5% 81.25%, 0% 83.33%, 1.5% 85.42%, 0% 87.50%, 1.5% 89.58%, 0% 91.67%, 1.5% 93.75%, 0% 95.83%, 1.5% 97.92%, 0% 100%,
    100% 100%, 98.5% 97.92%, 100% 95.83%, 98.5% 93.75%, 100% 91.67%, 98.5% 89.58%, 100% 87.50%, 98.5% 85.42%, 100% 83.33%, 98.5% 81.25%, 100% 79.17%, 98.5% 77.08%, 100% 75.00%, 98.5% 72.92%, 100% 70.83%, 98.5% 68.75%, 100% 66.67%, 98.5% 64.58%, 100% 62.50%, 98.5% 60.42%, 100% 58.33%, 98.5% 56.25%, 100% 54.17%, 98.5% 52.08%, 100% 50.00%, 98.5% 47.92%, 100% 45.83%, 98.5% 43.75%, 100% 41.67%, 98.5% 39.58%, 100% 37.50%, 98.5% 35.42%, 100% 33.33%, 98.5% 31.25%, 100% 29.17%, 98.5% 27.08%, 100% 25.00%, 98.5% 22.92%, 100% 20.83%, 98.5% 18.75%, 100% 16.67%, 98.5% 14.58%, 100% 12.50%, 98.5% 10.42%, 100% 8.33%, 98.5% 6.25%, 100% 4.17%, 98.5% 2.08%
  );
  overflow: hidden;
}

.tv-swatch-cloth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('texture.svg');
  opacity: 0.92;
  mix-blend-mode: overlay;
}

.tv-swatch-cloth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(255, 255, 255, 0.1) 12%,
    rgba(255, 255, 255, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.08) 88%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

.tv-color-details {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
}

.tv-color-details h2 {
  font-family: var(--font-serif);
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tv-hex {
  font-family: monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.tv-metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.tv-meta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0.5rem;
  border-radius: 14px;
  text-align: center;
}

.tv-meta-lbl {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.tv-meta-val {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* TV Bottom scrolling swatches ticker */
.tv-ticker-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  height: 120px;
}

.tv-ticker-wrapper {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0.5rem;
  width: max-content;
}

.tv-ticker-item {
  width: 120px;
  height: 65px;
  position: relative;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tv-ticker-item.active {
  transform: scale(1.18) translateY(-6px);
  border: 2px solid #ffffff;
  box-shadow: 0 12px 24px rgba(0,0,0,0.6), 0 0 10px var(--item-color);
  z-index: 10;
}

.tv-ticker-cloth {
  position: absolute;
  inset: 0;
  background-color: var(--item-color);
  border-radius: 8px;
  clip-path: polygon(
    0% 0%, 1.5% 2.08%, 0% 4.17%, 1.5% 6.25%, 0% 8.33%, 1.5% 10.42%, 0% 12.50%, 1.5% 14.58%, 0% 16.67%, 1.5% 18.75%, 0% 20.83%, 1.5% 22.92%, 0% 25.00%, 1.5% 27.08%, 0% 29.17%, 1.5% 31.25%, 0% 33.33%, 1.5% 35.42%, 0% 37.50%, 1.5% 39.58%, 0% 41.67%, 1.5% 43.75%, 0% 45.83%, 1.5% 47.92%, 0% 50.00%, 1.5% 52.08%, 0% 54.17%, 1.5% 56.25%, 0% 58.33%, 1.5% 60.42%, 0% 62.50%, 1.5% 64.58%, 0% 66.67%, 1.5% 68.75%, 0% 70.83%, 1.5% 72.92%, 0% 75.00%, 1.5% 77.08%, 0% 79.17%, 1.5% 81.25%, 0% 83.33%, 1.5% 85.42%, 0% 87.50%, 1.5% 89.58%, 0% 91.67%, 1.5% 93.75%, 0% 95.83%, 1.5% 97.92%, 0% 100%,
    100% 100%, 98.5% 97.92%, 100% 95.83%, 98.5% 93.75%, 100% 91.67%, 98.5% 89.58%, 100% 87.50%, 98.5% 85.42%, 100% 83.33%, 98.5% 81.25%, 100% 79.17%, 98.5% 77.08%, 100% 75.00%, 98.5% 72.92%, 100% 70.83%, 98.5% 68.75%, 100% 66.67%, 98.5% 64.58%, 100% 62.50%, 98.5% 60.42%, 100% 58.33%, 98.5% 56.25%, 100% 54.17%, 98.5% 52.08%, 100% 50.00%, 98.5% 47.92%, 100% 45.83%, 98.5% 43.75%, 100% 41.67%, 98.5% 39.58%, 100% 37.50%, 98.5% 35.42%, 100% 33.33%, 98.5% 31.25%, 100% 29.17%, 98.5% 27.08%, 100% 25.00%, 98.5% 22.92%, 100% 20.83%, 98.5% 18.75%, 100% 16.67%, 98.5% 14.58%, 100% 12.50%, 98.5% 10.42%, 100% 8.33%, 98.5% 6.25%, 100% 4.17%, 98.5% 2.08%
  );
}

.tv-ticker-cloth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('texture.svg');
  opacity: 0.85;
  mix-blend-mode: overlay;
}

.tv-ticker-lbl {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 1px rgba(0,0,0,0.5);
  pointer-events: none;
}

.tv-swatch-display.pulse {
  transform: scale(1.025) rotate(0.4deg);
}

@keyframes tvBlink {
  50% { opacity: 0.2; }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .container {
    padding: 1rem 1.25rem 2.5rem;
  }
  .header-container-wrapper {
    padding: 0.5rem 1.25rem 0.25rem;
  }
  .shade-card-board {
    padding: 1.5rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  .tv-spotlight-section {
    gap: 3rem;
    padding: 2rem;
  }
  .tv-swatch-display {
    width: 380px;
    height: 230px;
  }
  .tv-color-details h2 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 1rem 2rem;
  }
  .header-container-wrapper {
    padding: 0.5rem 1rem 0.25rem;
  }
  .shade-grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: unset;
    gap: 1rem;
  }
  .shade-column:not(:last-child)::after {
    display: none;
  }
  .tv-spotlight-section {
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
  }
  .tv-swatch-display {
    width: 320px;
    height: 190px;
  }
  .tv-color-details h2 {
    font-size: 2.25rem;
    text-align: center;
  }
  .tv-hex {
    font-size: 1.75rem;
    text-align: center;
  }
  .tv-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .shade-grid {
    grid-template-columns: 1fr;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .actions-panel {
    width: 100%;
    justify-content: space-between;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  header, .controls-bar, button, .swatch-edit-indicator, .swatch-tooltip, .tv-overlay {
    display: none !important;
  }
  .shade-card-board {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .shade-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5cm;
    min-width: 100%;
  }
  .swatch-card {
    box-shadow: none !important;
    transform: none !important;
    border: 1px solid #000;
  }
  .swatch-cloth::after {
    display: none !important;
  }
}

/* Real Turban Photo Mockup Frame */
.turban-mockup-frame {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.turban-mockup-bg {
  position: absolute;
  inset: 0;
  background-image: url('mockup.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.turban-mockup-turban {
  position: absolute;
  inset: 0;
  background-image: url('mockup.jpg');
  background-size: cover;
  background-position: center;
  /* Grayscale filter to remove yellow hue and make it colorable */
  filter: grayscale(1) brightness(1.4) contrast(1.05);
  /* Precise pixel-perfect computer-vision turban boundaries */
  clip-path: polygon(36.43% 12.6%, 32.52% 16.31%, 29.49% 20.8%, 27.83% 24.9%, 27.05% 28.42%, 26.66% 32.13%, 26.95% 37.79%, 28.71% 44.14%, 30.47% 47.85%, 34.28% 53.91%, 35.06% 54.0%, 35.25% 55.47%, 37.11% 52.64%, 37.5% 51.46%, 37.79% 51.56%, 40.82% 46.78%, 40.92% 46.0%, 44.2% 41.5%, 46.0% 36.5%, 47.56% 32.81%, 46.97% 32.71%, 49.12% 29.59%, 50.98% 25.88%, 55.27% 32.62%, 55.27% 33.01%, 54.79% 32.91%, 55.96% 35.06%, 56.45% 35.35%, 56.15% 35.45%, 56.35% 35.84%, 56.45% 35.55%, 56.74% 35.74%, 56.74% 36.13%, 58.01% 37.7%, 58.89% 39.45%, 58.98% 40.72%, 61.04% 44.43%, 61.04% 45.02%, 63.2% 52.0%, 66.7% 53.42%, 69.34% 50.2%, 72.56% 44.53%, 74.71% 38.28%, 75.29% 34.18%, 75.29% 29.3%, 74.51% 25.1%, 73.14% 21.39%, 70.7% 17.19%, 67.19% 13.28%, 65.23% 11.82%, 59.57% 9.18%, 57.03% 8.59%, 53.91% 8.5%, 52.93% 8.89%, 50.29% 8.4%, 47.56% 8.4%, 45.02% 8.69%, 40.33% 10.25%);
  z-index: 2;
}

.turban-mockup-shade {
  position: absolute;
  inset: 0;
  background-color: var(--turban-shade, #ffcc00);
  /* Precise pixel-perfect computer-vision turban boundaries */
  clip-path: polygon(36.43% 12.6%, 32.52% 16.31%, 29.49% 20.8%, 27.83% 24.9%, 27.05% 28.42%, 26.66% 32.13%, 26.95% 37.79%, 28.71% 44.14%, 30.47% 47.85%, 34.28% 53.91%, 35.06% 54.0%, 35.25% 55.47%, 37.11% 52.64%, 37.5% 51.46%, 37.79% 51.56%, 40.82% 46.78%, 40.92% 46.0%, 44.2% 41.5%, 46.0% 36.5%, 47.56% 32.81%, 46.97% 32.71%, 49.12% 29.59%, 50.98% 25.88%, 55.27% 32.62%, 55.27% 33.01%, 54.79% 32.91%, 55.96% 35.06%, 56.45% 35.35%, 56.15% 35.45%, 56.35% 35.84%, 56.45% 35.55%, 56.74% 35.74%, 56.74% 36.13%, 58.01% 37.7%, 58.89% 39.45%, 58.98% 40.72%, 61.04% 44.43%, 61.04% 45.02%, 63.2% 52.0%, 66.7% 53.42%, 69.34% 50.2%, 72.56% 44.53%, 74.71% 38.28%, 75.29% 34.18%, 75.29% 29.3%, 74.51% 25.1%, 73.14% 21.39%, 70.7% 17.19%, 67.19% 13.28%, 65.23% 11.82%, 59.57% 9.18%, 57.03% 8.59%, 53.91% 8.5%, 52.93% 8.89%, 50.29% 8.4%, 47.56% 8.4%, 45.02% 8.69%, 40.33% 10.25%);
  /* Multiply the color onto the grayscale shading of folds/creases */
  mix-blend-mode: multiply;
  transition: background-color 0.3s ease;
  z-index: 3;
}

/* Watermark overlay on every swatch card */
.swatch-watermark {
  position: absolute;
  inset: 0;
  background-image: url('logo.jpg');
  background-size: 190%; /* Crop white space and zoom on monogram */
  background-position: center 38%;
  background-repeat: no-repeat;
  opacity: 0.18; /* Visibly darker, premium watermark */
  mix-blend-mode: multiply; /* Make white transparent on color background */
  pointer-events: none;
  user-select: none;
  z-index: 3;
  transition: opacity 0.3s ease;
}

/* Dynamic theme watermark inversion (so it turns white on dark colors in dark mode!) */
[data-theme="dark"] .swatch-watermark,
.tv-swatch-display .swatch-watermark {
  filter: invert(1);
  mix-blend-mode: screen; /* Screen mode makes black transparent, leaving white logo */
  opacity: 0.12;
}

/* GN Pagri House Header Branding styles */
.brand-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 0.6rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
  position: relative;
  top: -3px;
}

/* Premium Footer Styling */
.app-footer {
  margin-top: 4rem;
  padding: 3rem 2rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  color: var(--text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-col .tagline {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-col .desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
}

.footer-col p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-copyright {
  font-weight: 600;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: rgba(180, 83, 9, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  text-align: left;
  max-width: 860px;
  margin: 0 auto;
}

.footer-disclaimer strong {
  color: var(--accent-color);
}

.footer-powered {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.studio-link {
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.studio-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}


@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Announcement Bar Styling */
.announcement-bar {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #ffffff;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 180;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap; /* Single line on desktop */
  white-space: nowrap;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.announcement-divider {
  opacity: 0.5;
}

.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 800;
  transition: opacity 0.2s;
}

.announcement-bar a:hover {
  opacity: 0.85;
}

[data-theme="dark"] .announcement-bar {
  background: linear-gradient(135deg, #091220, #0c182c);
  border-bottom: 1px solid var(--accent-color);
  color: var(--accent-color);
}

[data-theme="dark"] .announcement-bar a {
  color: #ffffff;
}

/* Brand Features Section */
.brand-features {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(217, 119, 6, 0.15);
  border-color: var(--accent-color);
}

.feature-icon-wrapper {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: rgba(217, 119, 6, 0.15);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .announcement-content {
    gap: 0.35rem;
    flex-wrap: wrap;        /* Allow wrap on mobile */
    white-space: normal;    /* Allow text to wrap on mobile */
    flex-direction: row;
    justify-content: center;
  }
  .announcement-divider {
    display: none;
  }
}

