/* ==========================================================================
   SUB SIAM COMMERCE GROUP — Layout Type A & Page Color Weighting (hub-v2.css)
   CI Palette:
   - Deep Ocean Navy #06162B
   - Royal Blue      #176BFF
   - Cyan Aqua       #20D9FF
   - Premium Gold    #D8AD52 (with #06162B text)
   - Pure White      #FFFFFF
   ========================================================================== */

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  padding-bottom: 0;
  background: var(--paper);
  color: var(--ink);
  max-width: 100%;
  overflow-x: clip;
  line-height: 1.7;
}

/* Readable Thai typography — never clip tone marks or vowels */
h1, h2, h3, h4, strong, button, a {
  line-height: 1.45;
}

/* Accessible Links on White Surfaces & Focus / Hover / Active States */
main a:not(.btn):not(.live-service):not(.v2-pillar-card):not(.contact-channel):not(.vote-event-poster) {
  color: var(--ci-royal-link);
  text-underline-offset: 3px;
}
main a:not(.btn):not(.live-service):not(.v2-pillar-card):not(.contact-channel):not(.vote-event-poster):hover {
  color: var(--ci-royal-hover);
  text-decoration: underline;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ci-royal);
  outline-offset: 3px;
}

.site-header :is(button, a):focus-visible,
.hero :is(button, a):focus-visible,
.live-hub :is(button, a):focus-visible,
.talay-hero :is(button, a):focus-visible,
.m-ai-cover :is(button, a):focus-visible {
  outline: 3px solid var(--ci-cyan);
  outline-offset: 3px;
}

/* Unified CI Buttons & Minimum 44x44px Touch Targets */
.btn {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--ci-gold) !important;
  color: var(--ci-navy) !important;
  border: 1px solid var(--ci-gold) !important;
  box-shadow: 0 6px 18px rgba(6, 22, 43, 0.14);
}

.btn-gold:hover {
  background: var(--ci-gold-hover) !important;
  border-color: var(--ci-gold-hover) !important;
  box-shadow: 0 8px 22px rgba(216, 173, 82, 0.34);
}

.btn-gold:active {
  background: var(--ci-gold-active) !important;
}

.btn-dark {
  background: var(--ci-navy);
  color: var(--ci-white);
  border: 1px solid var(--ci-navy);
}

.btn-dark:hover {
  background: var(--ci-navy-soft);
  border-color: var(--ci-navy-soft);
}

.btn-light {
  background: var(--ci-white);
  color: var(--ci-navy);
  border: 1px solid var(--line);
}

.btn-light:hover {
  border-color: var(--ci-royal);
  color: var(--ci-royal-link);
  background: #F8FAFF;
}

.btn-text {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ci-royal-link);
  font-weight: 700;
}

.btn-text:hover {
  color: var(--ci-royal-hover);
  background: rgba(23, 107, 255, 0.06);
  border-radius: 8px;
}

.icon-button,
.account-button,
.mobile-menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   1. GLOBAL HEADER & FOOTER (Deep Ocean Navy #06162B + Cyan/Gold Accents)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 84px;
  background: var(--ci-navy) !important;
  border-bottom: 1px solid rgba(216, 173, 82, 0.36) !important;
  box-shadow: 0 4px 20px rgba(6, 22, 43, 0.22);
}

.shell {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.brand-name {
  color: var(--ci-white);
}

.brand-subtitle {
  color: var(--ci-gold) !important;
}

.desktop-nav {
  gap: 6px;
}

.nav-item {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #D2DFEE !important;
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
}

.nav-item:hover {
  color: var(--ci-white) !important;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  color: var(--ci-cyan) !important;
  background: rgba(32, 217, 255, 0.08);
}

.nav-item.active::after {
  background: var(--ci-cyan) !important;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2.5px;
  border-radius: 2px;
}

.jobs-top-link {
  color: var(--ci-gold-light) !important;
}

.language-switch {
  border-color: rgba(255, 255, 255, 0.28);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.language-switch button {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 10px;
  font-weight: 600;
  border-radius: 0;
}

.header-actions .login-button {
  min-height: 44px;
  min-width: 44px;
}

.breadcrumb button {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ci-gold);
  color: var(--ci-navy);
}

.account-menu {
  width: 274px;
  padding: 12px;
  border-radius: 14px;
  z-index: 120;
  background: var(--ci-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
}

.account-menu .menu-section-label {
  font: 700 10px/1.3 Arial, sans-serif;
  letter-spacing: 1.6px;
  color: var(--muted);
  padding: 8px 10px 4px;
  text-transform: uppercase;
}

.account-menu a.menu-link,
.account-menu button {
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

.account-menu a.menu-link:hover,
.account-menu button:hover {
  background: var(--ci-royal-tint);
  color: var(--ci-royal-link);
}

.account-menu .menu-divider {
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.site-footer {
  background: var(--ci-navy) !important;
  color: #C9D7E8 !important;
  border-top: 2px solid rgba(216, 173, 82, 0.35) !important;
  padding: 28px 0 !important;
}

.site-footer .footer-links {
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.site-footer .footer-links a,
.site-footer .footer-links button {
  color: #E2ECF7 !important;
  font-size: 12.5px !important;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links button:hover {
  color: var(--ci-cyan) !important;
}

/* ==========================================================================
   2. HOMEPAGE SUB SIAM ([data-page="home"]) — Layout Type A
   Primary: Deep Ocean Navy #06162B | CTA: Gold #D8AD52 | Clean Shortcuts
   ========================================================================== */
.hero-future {
  width: min(1360px, calc(100% - 48px));
  margin: 24px auto 0;
  border-radius: 20px;
  border: 1px solid rgba(216, 173, 82, 0.35);
  background-color: var(--ci-navy);
  box-shadow: 0 20px 44px rgba(6, 22, 43, 0.18);
}

.hero-future .hero-inner {
  min-height: clamp(460px, 44vw, 600px);
  padding: clamp(36px, 4.5vw, 64px) clamp(28px, 4vw, 56px);
}

.hero-future .hero-copy {
  width: min(52%, 600px);
}

.hero-future h1 {
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.35;
}

.hero-future h1 em {
  color: var(--ci-gold-light);
}

.hero-future .hero-copy > p {
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.7;
  margin-top: 18px;
}

.hero-future .hero-entry-buttons {
  margin-top: 28px;
  gap: 12px;
}

.hero-future .hero-entry-buttons .btn {
  min-height: 50px;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15.5px;
}

.v2-quick-launch {
  margin-top: 32px;
}

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

.v2-pillar-card {
  background: var(--ci-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.v2-pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--ci-royal);
  box-shadow: var(--shadow-hover);
}

.v2-pillar-card.featured {
  background: linear-gradient(140deg, var(--ci-navy) 0%, #0D2D53 100%);
  color: var(--ci-white);
  border-color: rgba(32, 217, 255, 0.42);
}

.v2-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v2-pillar-badge {
  font: 700 10px/1.4 Arial, sans-serif;
  letter-spacing: 1.4px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--ci-royal-tint);
  color: var(--ci-royal-link);
}

.v2-pillar-card.featured .v2-pillar-badge {
  background: rgba(32, 217, 255, 0.16);
  color: var(--ci-cyan);
}

.v2-pillar-card h3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ci-navy);
}

.v2-pillar-card.featured h3 {
  color: var(--ci-white);
}

.v2-pillar-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.v2-pillar-card.featured p {
  color: #D2E1F2;
}

.v2-pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ci-royal-link);
  margin-top: 4px;
  min-height: 28px;
}

.v2-pillar-card.featured .v2-pillar-cta {
  color: var(--ci-gold-light);
}

.entry-strip-inner {
  margin-top: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ci-white);
  box-shadow: var(--shadow);
}

.entry-item {
  min-height: 64px;
}

/* ==========================================================================
   3. SUB SIAM AI HUB ([data-page="hub"]) — Layout Type A + Cyan Aqua Accent
   ========================================================================== */
.v2-hub-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 12px 14px;
  background: var(--ci-navy);
  border: 1px solid rgba(32, 217, 255, 0.32);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.v2-hub-switcher .btn {
  min-height: 44px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ci-white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.v2-hub-switcher .btn:hover,
.v2-hub-switcher .btn-dark {
  background: rgba(32, 217, 255, 0.16);
  border-color: var(--ci-cyan);
  color: var(--ci-cyan);
}

[data-page="hub"] .live-hub {
  background: linear-gradient(155deg, var(--ci-navy) 0%, #0A2547 100%);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(32, 217, 255, 0.32);
  box-shadow: 0 16px 40px rgba(6, 22, 43, 0.16);
}

[data-page="hub"] .live-card-grid {
  gap: 20px;
}

[data-page="hub"] .live-service {
  background: var(--ci-white);
  border: 1.5px solid rgba(32, 217, 255, 0.25);
  border-radius: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

[data-page="hub"] .live-service::after {
  background: var(--ci-cyan);
  height: 3px;
  width: 100%;
}

[data-page="hub"] .live-service:hover {
  transform: translateY(-3px);
  border-color: var(--ci-cyan);
  box-shadow: 0 12px 28px rgba(32, 217, 255, 0.22);
}

[data-page="hub"] .live-service .service-label strong {
  font-size: 17px;
  color: var(--ci-navy);
  line-height: 1.38;
}

[data-page="hub"] .live-service .service-label small {
  font-size: 13px;
  color: #4D5E73;
  line-height: 1.55;
  margin-top: 4px;
}

[data-page="hub"] .service-arrow {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ci-cyan-tint);
  color: var(--ci-navy);
  border: 1px solid rgba(32, 217, 255, 0.45);
}

/* ==========================================================================
   3B. SOFTWARE SOLUTIONS ([data-page="programs"] — สนใจโปรแกรม)
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.program-option-card {
  background: var(--ci-white);
  border: 1.5px solid #D5E2F6;
  border-top: 4px solid var(--ci-royal);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(6, 22, 43, 0.07);
}

.program-card-banner {
  margin: -10px -8px 4px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(216, 173, 82, 0.45);
  background: var(--ci-navy);
  box-shadow: 0 8px 22px rgba(6, 22, 43, 0.16);
}

.program-card-banner img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
}

.v2-page-hero-banner {
  background: linear-gradient(135deg, var(--ci-navy) 0%, #0D2D53 100%);
  color: var(--ci-white);
  border: 1.5px solid rgba(216, 173, 82, 0.42);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  align-items: center;
  box-shadow: 0 14px 34px rgba(6, 22, 43, 0.14);
}

.v2-page-hero-banner h1 {
  color: var(--ci-white) !important;
  margin: 0 0 6px;
}

.v2-page-hero-banner p {
  color: #D2E1F2 !important;
  margin: 0;
}

.v2-page-hero-img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid rgba(216, 173, 82, 0.55);
  box-shadow: 0 8px 22px rgba(3, 19, 41, 0.4);
}

.program-option-card.is-line-card {
  border-top-color: var(--ci-gold);
}

.program-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.program-option-card h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  color: var(--ci-navy);
  margin: 0;
  line-height: 1.4;
}

.program-option-lead {
  color: #3E5066;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.program-feature-list {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.program-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ci-navy);
  line-height: 1.65;
  background: #F6F9FE;
  border: 1px solid #E3ECF8;
  border-radius: 10px;
  padding: 10px 14px;
}

.program-feature-list li .icon {
  color: var(--ci-royal);
  flex-shrink: 0;
  margin-top: 3px;
}

.program-card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-line-panel {
  background: linear-gradient(145deg, #06162B 0%, #0C2648 100%);
  color: var(--ci-white);
  border: 1.5px solid rgba(216, 173, 82, 0.45);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-line-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6, 199, 85, 0.18);
  border: 1px solid rgba(6, 199, 85, 0.55);
  color: #6FF2A3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.program-line-panel strong {
  font-size: 16px;
  color: var(--ci-white);
}

.program-line-panel small {
  color: #C7D7EA;
  font-size: 13px;
  line-height: 1.6;
}

.program-line-qr {
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 8px;
  border: 2px solid var(--ci-gold);
}

.btn-line-official {
  background: #06C755 !important;
  border: 1px solid #06C755 !important;
  color: #FFFFFF !important;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.24);
}

.btn-line-official:hover:not([aria-disabled="true"]) {
  background: #05B34C !important;
  border-color: #05B34C !important;
}

.btn-line-official[aria-disabled="true"] {
  opacity: 0.72;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 820px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .program-option-card {
    padding: 22px 18px;
  }
  .v2-page-hero-banner {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}

/* ==========================================================================
   4. M COMMERCE ([data-page="mcommerce"]) — Prominent Royal Blue #176BFF + Gold CTA
   ========================================================================== */
.mcommerce-page {
  background: linear-gradient(180deg, #06162B 0%, #0B2548 360px, #EEF3FA 360px, #F4F7FC 100%) !important;
  border: 1px solid rgba(23, 107, 255, 0.28);
  border-radius: 22px;
  margin-top: 22px;
  padding: 24px 28px 56px !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow);
}

.mcommerce-page .talay-top {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(23, 107, 255, 0.38);
  border-radius: 12px;
  padding: 8px 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.mcommerce-page .talay-top > span {
  color: #8FC0FF;
  font-weight: 700;
}

.mcommerce-page .talay-top .btn {
  color: var(--ci-white) !important;
}

.mcommerce-page .talay-top .btn:hover {
  color: var(--ci-cyan) !important;
  background: rgba(23, 107, 255, 0.22);
}

.mcommerce-page .m-ai-cover {
  background: radial-gradient(ellipse at 82% 22%, rgba(23, 107, 255, 0.44), transparent 54%), linear-gradient(125deg, #06162B 0%, #0B2852 100%);
  border: 1.5px solid rgba(23, 107, 255, 0.55);
  box-shadow: 0 20px 50px rgba(6, 22, 43, 0.28);
}

.mcommerce-page .m-cover-kicker {
  color: var(--ci-cyan);
  font-weight: 700;
}

.mcommerce-page .m-rainbow-text {
  animation: none !important;
  clip-path: none !important;
  background: linear-gradient(100deg, #20D9FF 0%, #74ABFF 48%, #F5DC96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mcommerce-page .m-cover-controls button {
  min-height: 44px;
  min-width: 44px;
}

.mcommerce-page .m-cover-picker button {
  min-height: 44px;
  padding: 8px 14px;
  border-color: rgba(23, 107, 255, 0.45);
  background: rgba(6, 22, 43, 0.72);
  color: #D8E6FA;
}

.mcommerce-page .m-cover-picker button[aria-pressed="true"] {
  background: var(--ci-royal);
  border-color: var(--ci-cyan);
  color: var(--ci-white);
  font-weight: 700;
}

.mcommerce-page .talay-collection {
  padding-top: 42px;
}

.mcommerce-page .talay-collection .section-kicker {
  color: var(--ci-royal);
  font-weight: 700;
}

.mcommerce-page .talay-collection h2 {
  color: var(--ci-navy);
}

.mcommerce-page .muted {
  color: var(--muted) !important;
}

.mcommerce-page .v2-catalog-toolbar {
  border-color: rgba(23, 107, 255, 0.25);
  box-shadow: 0 6px 20px rgba(23, 107, 255, 0.06);
}

.mcommerce-page .v2-filter-chip.active {
  background: var(--ci-royal);
  color: var(--ci-white);
  border-color: var(--ci-royal);
}

.mcommerce-page .talay-card {
  background: var(--ci-white) !important;
  border: 1.5px solid #D5E2F6 !important;
  border-top: 4px solid var(--ci-royal) !important;
  box-shadow: 0 8px 22px rgba(6, 22, 43, 0.06) !important;
}

.mcommerce-page .talay-card:hover {
  border-color: var(--ci-royal) !important;
  box-shadow: 0 14px 32px rgba(23, 107, 255, 0.16) !important;
}

.mcommerce-page .talay-number {
  color: var(--ci-royal) !important;
  font-weight: 700;
}

.mcommerce-page .talay-card h3 {
  color: var(--ci-navy) !important;
}

.mcommerce-page .talay-card strong {
  color: #0E4BB8 !important;
}

.mcommerce-page .talay-card p {
  color: var(--muted) !important;
}

.mcommerce-page .talay-card .btn {
  background: var(--ci-gold) !important;
  color: var(--ci-navy) !important;
  border-color: var(--ci-gold) !important;
  font-weight: 700;
}

.mcommerce-page .talay-card .btn:hover {
  background: var(--ci-gold-hover) !important;
}

/* ==========================================================================
   5. TALAY.AI ([data-page="talay"]) — Deep Ocean Navy #06162B + Cyan Aqua #20D9FF
   ========================================================================== */
[data-page="talay"] .talay-top {
  background: var(--ci-navy);
  color: var(--ci-white);
  border: 1px solid rgba(32, 217, 255, 0.35);
  border-radius: 12px;
  padding: 8px 14px;
  gap: 12px;
  flex-wrap: wrap;
}

[data-page="talay"] .talay-top > span {
  color: var(--ci-cyan);
  font-weight: 700;
}

[data-page="talay"] .talay-top .btn {
  color: var(--ci-white);
}

[data-page="talay"] .talay-top .btn:hover {
  color: var(--ci-cyan);
  background: rgba(32, 217, 255, 0.12);
}

[data-page="talay"] .talay-hero {
  border: 1.5px solid rgba(32, 217, 255, 0.38);
  background-color: var(--ci-navy);
  background-image: linear-gradient(90deg, rgba(6, 22, 43, 0.88) 0%, rgba(6, 22, 43, 0.56) 52%, rgba(6, 22, 43, 0.15) 85%), url('/assets/talay-ocean-hero.webp');
}

[data-page="talay"] .talay-identity span {
  color: var(--ci-cyan);
  font-weight: 700;
}

[data-page="talay"] .v2-filter-chip.active {
  background: var(--ci-navy);
  color: var(--ci-cyan);
  border-color: var(--ci-cyan);
  box-shadow: inset 0 0 0 1px var(--ci-cyan);
}

[data-page="talay"] .talay-card {
  border: 1.5px solid #D3E7EE;
  border-top: 4px solid var(--ci-cyan);
}

[data-page="talay"] .talay-card:hover {
  border-color: #0FA8C7;
  box-shadow: 0 14px 32px rgba(6, 22, 43, 0.14);
}

[data-page="talay"] .talay-card strong {
  color: var(--ci-cyan-ink);
}

[data-page="talay"] .talay-card .btn {
  background: var(--ci-navy);
  color: var(--ci-cyan);
  border-color: var(--ci-navy);
}

[data-page="talay"] .talay-card .btn:hover {
  background: var(--ci-gold);
  color: var(--ci-navy);
  border-color: var(--ci-gold);
}

/* Catalog Toolbar & Search Shared Controls */
.v2-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 24px;
  padding: 14px 16px;
  background: var(--ci-white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.v2-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-filter-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
}

.v2-filter-chip:hover:not(.active) {
  border-color: var(--ci-royal);
  color: var(--ci-royal-link);
}

.v2-catalog-search {
  position: relative;
  min-width: 240px;
  flex: 0 1 340px;
}

.v2-catalog-search input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px 9px 38px;
  font-size: 13.5px;
  border-radius: 8px;
  background: var(--ci-white);
  color: var(--ink);
}

.v2-catalog-search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.v2-studio-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}

.v2-studio-shortcuts .btn {
  min-height: 44px;
  margin: 0 !important;
  border-color: rgba(32, 217, 255, 0.48);
  background: rgba(6, 22, 43, 0.72);
}

.v2-studio-shortcuts .btn:hover {
  border-color: var(--ci-cyan);
  color: var(--ci-cyan);
}

/* Hide prototype preview dock on live production site */
.preview-dock {
  display: none !important;
}

/* Contact Inquiry Lead Form, Legal Policy Cards & M COMMERCE Live AI Runner */
.contact-lead-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--ci-white);
  border: 1.5px solid #D5E2F6;
  border-top: 4px solid var(--ci-gold);
  box-shadow: var(--shadow);
}

.contact-lead-card h3 {
  margin: 0 0 6px;
  color: var(--ci-navy);
  font-size: 20px;
}

.mc-live-ai-panel {
  margin: 16px 0 22px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, #06162B 0%, #0D2A50 100%);
  color: var(--ci-white);
  border: 1.5px solid rgba(32, 217, 255, 0.42);
  box-shadow: 0 10px 26px rgba(6, 22, 43, 0.16);
}

.mc-live-ai-panel h3 {
  margin: 6px 0 6px;
  color: var(--ci-white);
  font-size: 18px;
}

.mc-live-ai-panel p {
  margin: 0 0 12px;
  color: #C9D9EC;
  font-size: 13.5px;
  line-height: 1.65;
}

.mc-ai-output {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--ci-white);
  color: var(--ci-navy);
  border: 1.5px solid var(--ci-gold);
  line-height: 1.75;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.legal-card {
  background: var(--ci-white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ci-royal);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  font-size: 19px;
  color: var(--ci-navy);
  margin: 8px 0 12px;
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #37485E;
  font-size: 14px;
  line-height: 1.7;
}

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

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (1440 / 1024 / 768 / 390 / 320 px)
   ========================================================================== */
@media (max-width: 1080px) {
  .shell {
    width: calc(100% - 40px);
  }
  .v2-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desktop-nav {
    gap: 2px;
  }
  .nav-item {
    padding: 8px 9px;
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 72px;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .desktop-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ci-navy);
    border-bottom: 2px solid var(--ci-gold);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 20px 36px rgba(6, 22, 43, 0.45);
  }
  .desktop-nav.open {
    display: flex;
  }
  .nav-item {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    justify-content: flex-start;
  }
  .nav-item.active::after {
    display: none;
  }
  .header-actions .signup-button {
    display: none;
  }
  .hero-future {
    width: calc(100% - 28px);
    margin-top: 14px;
  }
  .hero-future .hero-copy {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 28px);
  }
  .v2-quick-grid {
    grid-template-columns: 1fr;
  }
  .v2-catalog-search {
    flex: 1 1 100%;
    min-width: 0;
  }
  .mcommerce-page {
    padding: 16px 14px 40px !important;
    border-radius: 16px;
  }
  [data-page="hub"] .live-hub {
    padding: 16px;
    border-radius: 16px;
  }
  .talay-top {
    flex-direction: column;
    align-items: stretch !important;
    text-align: center;
  }
  .talay-top > div {
    justify-content: center;
  }
  .v2-hub-switcher .btn {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (max-width: 389px) {
  .shell {
    width: calc(100% - 16px);
  }
  .header-inner {
    gap: 4px;
  }
  .brand {
    gap: 6px;
  }
  .logo-official,
  .logo-uploaded {
    max-width: 28px;
    max-height: 28px;
  }
  .brand-name {
    font-size: 13.5px;
    letter-spacing: 0.6px;
  }
  .brand-subtitle {
    display: none;
  }
  .header-actions {
    gap: 4px;
  }
  .language-switch button {
    min-height: 44px;
    min-width: 44px;
    padding: 4px 5px;
    font-size: 10.5px;
  }
  .header-actions .login-button {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 7px;
    font-size: 10.5px;
  }
  .v2-hub-switcher .btn {
    flex: 1 1 100%;
  }
  .hero-future .hero-inner {
    padding: 26px 16px 240px;
  }
  .hero-future h1 {
    font-size: 28px;
  }
}
