/* ==========================================================================
   MAIN STYLE AGGREGATOR - THIỆP CƯỚI TND
   Kiến trúc CSS phân lớp: Base -> Components -> Layout
   ========================================================================== */

/* 1. Base Layers */
/* css/base/variables.css */
/* ==========================================================================
   VARIABLES & DESIGN SYSTEM - THIỆP CƯỚI TND
   ========================================================================== */

:root {
  /* Color Palette - Elegant Wedding Royal Blue & Champagne Gold */
  --color-primary: #2b5d9b;
  --color-primary-hover: #1b4477;
  --color-primary-light: #edf4fb;
  --color-primary-soft: #dbe8f7;
  --color-primary-dark: #122844;
  --color-primary-gradient: linear-gradient(135deg, #2b5d9b 0%, #1a3d6d 100%);
  --color-primary-glow: rgba(43, 93, 155, 0.28);

  --color-secondary: #c29562;
  --color-secondary-hover: #a87e4c;
  --color-secondary-light: #faf5ed;
  --color-secondary-gradient: linear-gradient(135deg, #d4a36e 0%, #a8783e 100%);
  --color-gold-glow: rgba(194, 149, 98, 0.3);

  /* Accent & Badges */
  --badge-new-bg: linear-gradient(135deg, #2b5d9b 0%, #1d4677 100%);
  --badge-new-text: #ffffff;
  --badge-premium-bg: linear-gradient(135deg, #c99355 0%, #9e6d30 100%);
  --badge-premium-text: #ffffff;
  --badge-basic-bg: linear-gradient(135deg, #5b8db8 0%, #3e6d96 100%);
  --badge-basic-text: #ffffff;

  /* Neutral Colors */
  --color-bg-main: #fbfcfe;
  --color-bg-card: #ffffff;
  --color-bg-alt: #f6f9fd;
  --color-bg-subtle: #f8fafc;
  --color-glass: rgba(255, 255, 255, 0.82);
  
  --color-text-title: #13243a;
  --color-text-body: #475569;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --color-border: #e2eaf2;
  --color-border-card: rgba(226, 235, 245, 0.9);
  --color-border-hover: #b4d0ed;

  --color-tag-bg: #f0f5fb;
  --color-tag-text: #325f93;
  --color-tag-border: #e0ecf7;

  --color-heart-active: #e11d48;
  --color-heart-inactive: #94a3b8;

  /* Typography */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', 'Alex Brush', cursive;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(35, 68, 110, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 68, 110, 0.08);
  --shadow-lg: 0 16px 38px rgba(35, 68, 110, 0.12);
  --shadow-card: 0 10px 30px rgba(25, 45, 75, 0.06);
  --shadow-card-hover: 0 22px 45px rgba(35, 68, 110, 0.16);
  --shadow-floating: 0 24px 50px -10px rgba(35, 68, 110, 0.22);
  --shadow-button: 0 6px 18px rgba(43, 93, 155, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Container */
  --container-max-width: 1280px;
  --container-padding: 24px;
}

/* css/base/reset.css */
/* ==========================================================================
   RESET & BASE STYLES - THIỆP CƯỚI TND
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: #f7fafd;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(220, 236, 252, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(228, 241, 254, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 5% 45%, rgba(224, 239, 254, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 95% 65%, rgba(222, 238, 254, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(228, 241, 254, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #f9fcff 0%, #f4f8fd 35%, #f8fbfe 70%, #f4f8fd 100%);
  background-attachment: fixed;
  color: var(--color-text-body);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font-size: 16px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Background Atmospheric Elements */
.bg-ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 12% 15%, rgba(220, 238, 255, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 88% 25%, rgba(225, 240, 255, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 8% 70%, rgba(222, 239, 255, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 92% 80%, rgba(226, 241, 255, 0.22) 0%, transparent 50%);
  z-index: -1;
}

/* Floral & Petal Decorative Accents */
main {
  position: relative;
  z-index: 3; /* Trên canvas cánh hoa để nút/link luôn nhận được click (Zalo WebView) */
}

/* ==========================================================================
   FALLING FLOWERS & PETALS CANVAS (PROCEDURAL CODE GENERATED)
   ========================================================================== */
.falling-flowers-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Một số WebView (Zalo) bỏ qua pointer-events:none trên canvas → chặn click nút */
  pointer-events: none !important;
  touch-action: none;
  overflow: hidden;
  z-index: 2; /* Trên nền, dưới nội dung tương tác (card actions / header / modal) */
  display: block;
}


/* 2. Component Layers */
/* css/components/header.css */
/* ==========================================================================
   HEADER & NAVBAR - THIỆP CƯỚI TND
   Thiết kế cao cấp, hỗ trợ Desktop hiện đại & Mobile Drawer mượt mà
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 235, 245, 0.8);
  z-index: 100;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(35, 68, 110, 0.04);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(35, 68, 110, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}

/* --------------------------------------------------------------------------
   1. Brand Logo
   -------------------------------------------------------------------------- */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(43, 93, 155, 0.08) 0%, rgba(194, 149, 98, 0.12) 100%);
  border: 1px solid rgba(43, 93, 155, 0.15);
  color: var(--color-primary);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(43, 93, 155, 0.08);
}

.brand-logo:hover .brand-icon-wrapper {
  transform: scale(1.06) rotate(-2deg);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(43, 93, 155, 0.15) 0%, rgba(194, 149, 98, 0.2) 100%);
  box-shadow: 0 4px 14px rgba(43, 93, 155, 0.16);
}

.brand-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  color: #152d4c;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #2b5d9b 0%, #c29562 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   2. Desktop Navigation (Default >= 769px)
   -------------------------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-drawer-header,
.nav-link-desc,
.nav-link-arrow {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #475569;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link-icon-box {
  display: none; /* Hide on desktop for clean minimalist pill design */
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(43, 93, 155, 0.06);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background: #edf4fb;
  box-shadow: inset 0 0 0 1px rgba(43, 93, 155, 0.18);
}

/* Nav Dropdown (Desktop >= 769px) */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-dropdown-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  opacity: 0.78;
}

.nav-dropdown-caret svg {
  width: 14px;
  height: 14px;
}

.nav-item-dropdown.dropdown-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .nav-item-dropdown:hover .nav-dropdown-caret {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 260px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(226, 235, 245, 0.95);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 100;
  }

  /* Hover bridge so cursor moving from trigger to menu does not close it */
  .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu,
  .nav-item-dropdown.dropdown-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown-item {
    list-style: none;
  }

  .nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 11px;
    box-sizing: border-box;
    text-align: left;
  }

  .nav-dropdown-link .nav-link-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
  }

  .nav-dropdown-link .nav-link-icon-box svg {
    width: 17px;
    height: 17px;
  }

  .nav-dropdown-link .nav-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .nav-dropdown-link .nav-link-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
  }

  .nav-dropdown-link .nav-link-desc {
    display: block;
    font-size: 11.5px;
    opacity: 0.72;
    line-height: 1.2;
  }
}

/* --------------------------------------------------------------------------
   3. Mobile Hamburger Toggle Button
   -------------------------------------------------------------------------- */
.mobile-nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(43, 93, 155, 0.06);
  border: 1px solid rgba(43, 93, 155, 0.16);
  color: #152d4c;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all var(--transition-fast);
  z-index: 102;
}

.mobile-nav-toggle:hover {
  background: rgba(43, 93, 155, 0.12);
  border-color: rgba(43, 93, 155, 0.3);
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #1e3a63;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              background-color 0.3s ease;
  transform-origin: center;
}

/* Animated Hamburger -> X */
.site-header.nav-open .toggle-bar.bar-1 {
  transform: translateY(7px) rotate(45deg);
  background: #2b5d9b;
}

.site-header.nav-open .toggle-bar.bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.nav-open .toggle-bar.bar-3 {
  transform: translateY(-7px) rotate(-45deg);
  background: #2b5d9b;
}

.site-header.nav-open .mobile-nav-toggle {
  background: rgba(43, 93, 155, 0.12);
  border-color: rgba(43, 93, 155, 0.35);
}

/* --------------------------------------------------------------------------
   4. Mobile Backdrop Overlay
   -------------------------------------------------------------------------- */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-header.nav-open ~ .mobile-nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   5. Responsive Mobile Drawer Navigation (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    height: 68px;
  }

  .brand-title {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 8.5px;
    letter-spacing: 1.6px;
  }

  .brand-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .brand-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Mobile Dropdown Drawer Menu */
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(216, 230, 247, 0.9);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 22px 45px -10px rgba(18, 40, 68, 0.18), 0 4px 12px rgba(18, 40, 68, 0.05);
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 101;
    
    /* Animation state: Hidden by default */
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s ease,
                visibility 0.28s ease;
  }

  /* Open State */
  .site-header.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Drawer Top Header */
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 12px;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(226, 235, 245, 0.9);
  }

  .nav-drawer-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #64748b;
  }

  .nav-drawer-badge {
    font-size: 11px;
    font-weight: 600;
    color: #2b5d9b;
    background: rgba(43, 93, 155, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(43, 93, 155, 0.14);
  }

  /* Nav Items List */
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(226, 235, 245, 0.85);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.22s ease;
  }

  .nav-link:hover {
    background: #f1f5f9;
    border-color: rgba(43, 93, 155, 0.25);
    transform: translateX(2px);
  }

  /* Active Menu Item */
  .nav-link.active {
    background: linear-gradient(135deg, rgba(43, 93, 155, 0.09) 0%, rgba(194, 149, 98, 0.12) 100%);
    border: 1px solid rgba(43, 93, 155, 0.28);
    box-shadow: 0 4px 14px rgba(43, 93, 155, 0.06);
  }

  /* Icon Box */
  .nav-link-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .nav-link-icon-box svg {
    width: 19px;
    height: 19px;
  }

  .nav-icon-home {
    background: rgba(43, 93, 155, 0.1);
    color: #2b5d9b;
  }

  .nav-icon-wedding {
    background: rgba(225, 29, 72, 0.1);
    color: #e11d48;
  }

  .nav-icon-yearbook {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
  }

  .nav-icon-birthday {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
  }

  .nav-icon-contact {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
  }

  .nav-link.active .nav-link-icon-box {
    transform: scale(1.05);
  }

  /* Text Info */
  .nav-link-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .nav-link-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
  }

  .nav-link.active .nav-link-title {
    color: #122844;
    font-weight: 700;
  }

  .nav-link-desc {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-link.active .nav-link-desc {
    color: #436280;
  }

  /* Right Chevron Arrow */
  .nav-link-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-link-arrow svg {
    width: 16px;
    height: 16px;
  }

  .nav-link:hover .nav-link-arrow,
  .nav-link.active .nav-link-arrow {
    color: #2b5d9b;
    transform: translateX(3px);
  }

  /* Mobile Nav Dropdown Accordion */
  .nav-dropdown-toggle {
    text-align: left;
    font-family: inherit;
    cursor: pointer;
  }

  .nav-dropdown-caret {
    width: 24px;
    height: 24px;
    color: #94a3b8;
    flex-shrink: 0;
  }

  .nav-dropdown-caret svg {
    width: 16px;
    height: 16px;
  }

  .nav-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 0 14px;
  }

  .nav-item-dropdown.dropdown-open .nav-dropdown-menu {
    display: flex;
  }

  .nav-dropdown-item {
    list-style: none;
    width: 100%;
  }

}


/* css/components/hero.css */
/* ==========================================================================
   HERO SECTION - THIỆP CƯỚI TND
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 44px 0 32px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 36px;
}

/* Left Hero Column */
.hero-content {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #245591;
  background: linear-gradient(135deg, rgba(43, 93, 155, 0.08) 0%, rgba(194, 149, 98, 0.12) 100%);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(43, 93, 155, 0.18);
  box-shadow: 0 2px 10px rgba(43, 93, 155, 0.05);
}

.hero-badge-sparkle {
  color: var(--color-secondary);
  font-size: 13px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.16;
  font-weight: 700;
  color: #122844;
  margin-bottom: 8px;
  letter-spacing: -0.6px;
}

.hero-script-tagline {
  font-family: var(--font-script);
  font-size: 34px;
  line-height: 1.25;
  color: #2b5d9b;
  margin-bottom: 18px;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(43, 93, 155, 0.12);
}

.hero-desc {
  font-size: 15.5px;
  color: #4b5d73;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* Hero Feature Pills */
.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2c4a6f;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(216, 230, 247, 0.9);
  box-shadow: 0 2px 6px rgba(35, 68, 110, 0.04);
}

.hero-feat-chip span.chip-icon {
  font-size: 13px;
}

.hero-quote-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.hero-quote-line {
  height: 2px;
  background: linear-gradient(90deg, #2b5d9b, #c29562);
  width: 42px;
  border-radius: 2px;
}

.hero-quote-text {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b5d9b;
}

/* css/components/features.css */
/* ==========================================================================
   FEATURES BAR - THIỆP CƯỚI TND
   ========================================================================== */

.features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(35, 68, 110, 0.06);
  border: 1px solid rgba(226, 235, 245, 0.9);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  background-color: #f0f6fc;
  transform: translateY(-3px);
}

.feature-icon-box {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf4fb 0%, #e2edf8 100%);
  border: 1px solid rgba(43, 93, 155, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(43, 93, 155, 0.06);
}

.feature-item:hover .feature-icon-box {
  background: var(--color-primary-gradient);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(43, 93, 155, 0.28);
  transform: scale(1.05);
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #142845;
  line-height: 1.25;
  margin-bottom: 3px;
}

.feature-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.35;
  white-space: nowrap;
}

/* css/components/filter.css */
/* ==========================================================================
   FILTER & SEARCH CONTROLS - THIỆP CƯỚI TND
   ========================================================================== */

.filter-section {
  padding: 10px 0 24px;
}

.filter-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Left Group: Search + Category Pills */
.filter-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 320px;
  flex-wrap: wrap;
}

/* Search Bar */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
  max-width: 240px;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--color-text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-icon svg {
  width: 17px;
  height: 17px;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  font-size: 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-title);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input::placeholder {
  color: var(--color-text-light);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 95, 158, 0.12);
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #4b5d73;
  border: 1px solid var(--color-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  background: #f1f6fc;
  color: var(--color-primary);
  border-color: var(--color-primary-soft);
}

.pill-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(45, 95, 158, 0.22);
}

/* Right Group: Dropdowns */
.filter-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dropdown-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 34px 8px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #4b5d73;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.dropdown-select:hover {
  border-color: var(--color-primary-soft);
}

.dropdown-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 95, 158, 0.12);
}

.dropdown-icon {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.dropdown-icon svg {
  width: 15px;
  height: 15px;
}

/* css/components/cards.css */
/* ==========================================================================
   CARDS GRID & CARD COMPONENT - THIỆP CƯỚI TND
   ========================================================================== */

.cards-section {
  padding: 10px 0 40px;
}

.catalog-section-header {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalog-section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.catalog-section-title::after {
  content: '';
  display: inline-block;
  width: 38px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
}

/* Single Card Item */
.wedding-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(25, 45, 75, 0.05);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.wedding-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(35, 68, 110, 0.15);
  border-color: var(--color-border-hover);
}

/* Card Preview Thumbnail Container */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 386 / 841;
  background-color: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wedding-card:hover .card-img {
  transform: scale(1.06);
}

/* Floating Badge */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-new {
  background: var(--badge-new-bg);
  color: var(--badge-new-text);
}

.badge-premium {
  background: var(--badge-premium-bg);
  color: var(--badge-premium-text);
}

.badge-basic {
  background: var(--badge-basic-bg);
  color: var(--badge-basic-text);
}

/* Card Content Area */
.card-body {
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #122844;
  margin-bottom: 8px;
  line-height: 1.32;
  transition: color var(--transition-fast);
}

.wedding-card:hover .card-title {
  color: var(--color-primary);
}

/* Tag Pills */
.card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-tag-text);
  background: var(--color-tag-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-tag-border);
  white-space: nowrap;
}

/* Action Row */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 5; /* Trên canvas cánh hoa - tránh Zalo WebView nuốt click */
}

.btn-preview {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: #ffffff;
  border: 1.5px solid #bfd5ed;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-preview svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-preview:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

.btn-preview:hover svg {
  transform: translateX(3px);
}

.btn-demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary-gradient);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(43, 93, 155, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-demo-link:hover {
  background: linear-gradient(135deg, #1b4477 0%, #122c50 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 93, 155, 0.38);
}

/* Phản hồi tức thì trên Zalo khi đang chờ WebView mở domain thiệp */
.btn-demo-link.is-opening {
  opacity: 0.72;
  pointer-events: none;
  transform: none;
}

.btn-demo-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Heart Favorite Button (top-right inside card media) */
.card-media .btn-favorite,
.btn-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 254, 253, 0.88);
  border: 1px solid rgba(40, 39, 36, 0.1);
  color: var(--color-heart-inactive);
  box-shadow: 0 3px 10px rgba(20, 16, 12, 0.12);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-favorite svg {
  width: 17px;
  height: 17px;
  transition: transform var(--transition-fast);
}

.btn-favorite:hover {
  border-color: #f43f5e;
  color: #f43f5e;
  transform: scale(1.1);
  background-color: #fff1f2;
}

.btn-favorite.active {
  color: #e11d48;
  border-color: #fecdd3;
  background-color: #fff1f2;
}

.btn-favorite.active svg {
  fill: #e11d48;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   SKELETON LOADING PLACEHOLDERS - THIỆP CƯỚI TND
   ========================================================================== */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.card-skeleton {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e6edf5 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite ease-in-out;
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 386 / 841;
}

.skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-title {
  height: 18px;
  width: 80%;
  border-radius: var(--radius-sm);
}

.skeleton-tags {
  display: flex;
  gap: 8px;
}

.skeleton-tag {
  height: 20px;
  width: 50px;
  border-radius: var(--radius-full);
}

.skeleton-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.skeleton-btn {
  height: 36px;
  flex: 1;
  border-radius: var(--radius-full);
}

.skeleton-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
}

@keyframes heartPop {
  0% { transform: scale(0.7); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Empty State */
.cards-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--color-text-light);
}

.empty-text {
  font-size: 16px;
  color: var(--color-text-muted);
}

/* css/components/support.css */
/* Contact cards used in the footer. */
.contact-channels {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.contact-card:focus-visible,
.zalo-chat-bubble:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 4px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #1877f2;
  background: #edf4ff;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
}

.contact-card-tiktok .contact-icon {
  color: #182538;
  background: #f1f4f7;
}

.contact-card-zalo {
  border-color: #c5dbf5;
}

.contact-card-zalo .contact-icon {
  background: #0068ff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.contact-card-content {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.contact-channel-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.contact-channel-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-channel-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-channel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 6px;
  white-space: normal;
}

.contact-channel-or {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.contact-channel-actions .contact-channel-action {
  margin-top: 0;
  text-decoration: none;
}

.contact-channel-actions .contact-channel-action:hover {
  text-decoration: underline;
}

@media (min-width: 1001px) and (max-width: 1150px) {
  .contact-channel-actions .contact-channel-action,
  .contact-channel-actions .contact-channel-or {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .contact-channel-actions {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .contact-card {
    padding: 18px 16px;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card {
    transition: none;
  }

  .contact-card:hover {
    transform: none;
  }
}

/* css/components/footer.css */
/* Multi-column site footer */
.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 3;
  scroll-margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand-desc {
  margin: 0;
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.footer-contact-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-title);
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-title);
}

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

.footer-links a {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.site-footer .contact-channels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-light);
}

.footer-bottom-note {
  color: var(--color-text-muted) !important;
}

.zalo-chat-widget {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.zalo-chat-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 4px;
  width: max-content;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.zalo-chat-widget.is-open .zalo-chat-menu,
.zalo-picker-wrap.is-open .zalo-picker-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.zalo-picker-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.zalo-picker-menu {
  left: 0;
  right: auto;
  bottom: calc(100% + 10px);
  z-index: 60;
}

.zalo-chat-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.zalo-chat-menu-item:hover {
  background: rgba(0, 104, 255, 0.08);
}

.zalo-menu-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0068ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.zalo-menu-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.zalo-menu-role {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-text-muted);
}

html[data-theme="dark"] .zalo-menu-role {
  color: rgba(246, 239, 233, 0.62);
}

.zalo-menu-or {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.zalo-menu-or::before,
.zalo-menu-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

html[data-theme="dark"] .zalo-menu-or {
  color: rgba(246, 239, 233, 0.56);
}

html[data-theme="dark"] .zalo-menu-or::before,
html[data-theme="dark"] .zalo-menu-or::after {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .zalo-chat-menu {
  background: #211c1e;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .zalo-chat-menu-item {
  color: #f6efe9;
}

html[data-theme="dark"] .zalo-chat-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.zalo-chat-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-full);
  -webkit-tap-highlight-color: transparent;
}

.zalo-chat-label {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.zalo-chat-widget.is-open .zalo-chat-label {
  display: none;
}

.zalo-chat-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0068ff;
  box-shadow: 0 6px 24px rgba(0, 104, 255, 0.26);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  /* Nhảy lên rồi lắc như chuông; dùng rotate/translate riêng để không đụng transform của hover */
  transform-origin: 50% 60%;
  animation: zaloRing 3s ease-in-out infinite;
}

/* Hai vòng sóng lan ra, lệch nhịp nhau */
.zalo-chat-icon::before,
.zalo-chat-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid rgba(0, 104, 255, 0.6);
  opacity: 0;
  pointer-events: none;
  animation: zaloPulse 3s ease-out infinite;
}

.zalo-chat-icon::after {
  animation-delay: 0.35s;
}

@keyframes zaloRing {
  0%, 30%, 100% { rotate: 0deg; translate: 0 0; }
  /* Nảy 3 lần, thấp dần, mỗi lần chạm đáy thì nén nhẹ */
  35% { translate: 0 -22px; }
  40% { translate: 0 0; }
  45% { translate: 0 -12px; }
  50% { translate: 0 0; }
  54% { translate: 0 -5px; }
  58% { translate: 0 0; }
  /* Rồi lắc như chuông */
  62% { rotate: -20deg; }
  68% { rotate: 18deg; }
  74% { rotate: -14deg; }
  80% { rotate: 10deg; }
  86% { rotate: -4deg; }
  92% { rotate: 0deg; }
}

@keyframes zaloPulse {
  0%, 30% { opacity: 0; transform: scale(1); }
  36% { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(1.5); }
}

.zalo-chat-icon svg {
  width: 46px;
  height: 46px;
}

.zalo-chat-icon span {
  position: absolute;
  top: 19px;
  left: 10px;
  color: #0068ff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.zalo-chat-bubble:hover .zalo-chat-icon {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 104, 255, 0.35);
  animation-play-state: paused;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .site-footer .contact-channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 32px 0 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-brand .brand-title {
    font-size: 18px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .zalo-chat-widget {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .zalo-chat-label {
    display: none;
  }

  .zalo-chat-icon {
    width: 58px;
    height: 58px;
  }

  .zalo-chat-icon span {
    top: 17px;
    left: 8px;
  }
}

@keyframes zaloGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  /* Giảm chuyển động: không lắc, không phóng to; chỉ 2 vòng sáng nhấp nháy luân phiên (đổi độ trong suốt) */
  .zalo-chat-icon {
    animation: none;
    transition: none;
  }

  .zalo-chat-icon::before,
  .zalo-chat-icon::after {
    inset: -4px;
    transform: none;
    border-width: 4px;
    box-shadow: 0 0 18px rgba(0, 104, 255, 0.55);
    animation: zaloGlow 1.4s ease-in-out infinite;
  }

  .zalo-chat-icon::after {
    animation-delay: 0.7s;
  }

  .zalo-chat-bubble:hover .zalo-chat-icon {
    transform: none;
  }
}

/* css/components/legal.css */
/* Policy / legal pages - cùng palette + cùng lưới container với footer trang chủ */
.legal-page {
  position: relative;
  min-height: 100vh;
  background: var(--bg, #f6f4ef);
  background-image: none;
  color: var(--ink, var(--color-text-body));
}

.legal-main {
  position: relative;
  z-index: 1;
  padding: 40px 0 32px;
  background: transparent;
}

.minimal-site.legal-page .site-footer {
  background: var(--bg, #f6f4ef);
}

.legal-article {
  /* giữ margin auto + padding ngang của .container (không dùng shorthand padding: 0) */
  padding-block: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--rose-soft, var(--color-primary-light));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose, var(--color-primary));
}

.legal-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose, var(--color-primary));
}

.legal-article h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink, var(--color-text-title));
}

.legal-updated {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line, var(--color-border));
  font-size: 13px;
  color: var(--muted, var(--color-text-muted));
}

.legal-updated::before {
  content: "✦ ";
  color: var(--rose, var(--color-secondary));
}

.legal-article h2 {
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--rose, var(--color-primary));
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, var(--color-text-title));
}

.legal-article p,
.legal-article li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted, var(--color-text-body));
}

.legal-article p {
  margin: 0 0 14px;
}

.legal-article ul {
  margin: 0 0 18px;
  padding: 0 0 0 1.15em;
  list-style: disc;
}

.legal-article li {
  padding: 0;
  margin: 0 0 8px;
}

.legal-article li::marker {
  color: var(--rose, var(--color-primary));
}

.legal-article li strong {
  color: var(--ink, var(--color-text-title));
}

.legal-article a {
  color: var(--rose, var(--color-primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-article a:visited {
  color: var(--rose-dark, var(--color-primary-hover));
}

.legal-note {
  margin-top: 28px;
  padding: 16px 18px 16px 20px;
  border: 1px solid var(--line, var(--color-border));
  border-left: 4px solid var(--rose, var(--color-primary));
  border-radius: 10px;
  background: var(--panel, #fffefd);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted, var(--color-text-muted));
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line, var(--color-border));
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line, var(--color-border));
  border-radius: var(--radius-full);
  background: var(--panel, #fff);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, var(--color-text-title));
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.legal-nav a:hover {
  border-color: rgba(164, 77, 88, 0.35);
  background: var(--rose-soft, #f6e9eb);
  color: var(--rose, #a44d58);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  border-color: transparent;
  background: var(--rose-soft, #f6e9eb);
  color: var(--rose-dark, #833b46);
  pointer-events: none;
}

/* Dark theme - cùng token trang chủ */
html[data-theme="dark"] .legal-page,
html[data-theme="dark"] .minimal-site.legal-page .site-footer {
  background: var(--ms-bg);
  background-image: none;
}

html[data-theme="dark"] .legal-page {
  color: var(--ms-muted);
}

html[data-theme="dark"] .legal-article {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="dark"] .legal-eyebrow {
  background: var(--ms-rose-soft);
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .legal-eyebrow::before {
  background: var(--ms-gold);
}

html[data-theme="dark"] .legal-article h1,
html[data-theme="dark"] .legal-article h2,
html[data-theme="dark"] .legal-article li strong {
  color: var(--ms-ink);
}

html[data-theme="dark"] .legal-article h2 {
  border-left-color: var(--ms-rose);
}

html[data-theme="dark"] .legal-updated,
html[data-theme="dark"] .legal-article p,
html[data-theme="dark"] .legal-article li {
  color: var(--ms-muted);
}

html[data-theme="dark"] .legal-updated::before {
  color: var(--ms-gold);
}

html[data-theme="dark"] .legal-updated,
html[data-theme="dark"] .legal-nav,
html[data-theme="dark"] .legal-note {
  border-color: var(--ms-line);
}

html[data-theme="dark"] .legal-article li::marker {
  color: var(--ms-gold);
}

html[data-theme="dark"] .legal-article a,
html[data-theme="dark"] .legal-article a:visited {
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .legal-note {
  background: var(--ms-bg-soft);
  border-left-color: var(--ms-rose);
  color: var(--ms-muted-2);
}

html[data-theme="dark"] .legal-nav a {
  background: var(--ms-bg-soft);
  border-color: var(--ms-line);
  color: var(--ms-muted);
}

html[data-theme="dark"] .legal-nav a:hover {
  background: var(--ms-panel-hover);
  border-color: var(--ms-line-strong);
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .legal-nav a[aria-current="page"] {
  background: var(--ms-rose-soft);
  color: var(--ms-rose-glow);
}

@media (max-width: 600px) {
  .legal-main {
    padding: 28px 0 24px;
  }

  .legal-article.container {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* css/components/modal.css */
/* ==========================================================================
   STUDIO PREVIEW - XEM TRỰC TIẾP MẪU THIỆP TRÊN 1 MÀN HÌNH (THIỆP CƯỚI TND)
   ========================================================================== */

.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1050;
  background: #f5f1ea;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

.studio-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.studio-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink, #282724);
  font-family: var(--font-sans, system-ui, sans-serif);
}

/* Badges & Spinner reused across studio */
.modal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.modal-badge.badge-new {
  background: var(--rose, #a44d58);
  color: #fff;
}

.modal-badge.badge-premium {
  background: linear-gradient(135deg, #d4a574 0%, #b88656 100%);
  color: #fff;
}

.modal-badge.badge-basic {
  background: #f1ece6;
  color: var(--ink, #282724);
}

.preview-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(164, 77, 88, 0.2);
  border-top-color: var(--rose, #a44d58);
  border-radius: 50%;
  animation: modalSpin 0.85s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.preview-loader-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #6f6b65);
  letter-spacing: 0.2px;
}

@keyframes modalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Top Studio Bar */
.studio-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 18px;
  background: rgba(255, 254, 253, 0.94);
  border-bottom: 1px solid #e8e3dc;
  flex-shrink: 0;
  z-index: 20;
}

.studio-topbar-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.studio-topbar-center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid #e8e3dc;
  background: #fffefd;
  color: #282724;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.studio-back-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.studio-back-btn:hover {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, 0.35);
  color: #a44d58;
}

.studio-tpl-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 310px;
  height: 44px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  border: 1px solid #e8e3dc;
  background: #f8f5ef;
  color: #282724;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.studio-tpl-trigger:hover,
.studio-tpl-trigger.is-open {
  background: #fffefd;
  border-color: rgba(164, 77, 88, 0.42);
  box-shadow: 0 4px 14px rgba(57, 45, 37, 0.08);
}

.studio-tpl-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #ebe5dc;
  border: 1px solid rgba(40, 39, 36, 0.08);
  flex-shrink: 0;
}

.studio-tpl-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.studio-tpl-counter {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #847d74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-tpl-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.studio-tpl-name {
  font-size: 13px;
  font-weight: 700;
  color: #282724;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-tpl-tier {
  display: none;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f6e9eb;
  color: #a44d58;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.studio-tpl-chevron {
  width: 15px;
  height: 15px;
  color: #777168;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.studio-tpl-trigger.is-open .studio-tpl-chevron {
  transform: rotate(180deg);
}

.studio-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.studio-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e8e3dc;
  background: #fffefd;
  color: #5b564f;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.studio-icon-btn svg {
  width: 16px;
  height: 16px;
}

.studio-icon-btn:hover:not(:disabled) {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, 0.35);
  color: #a44d58;
}

.studio-icon-btn.is-active {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, 0.4);
  color: #a44d58;
}

.studio-icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* Device Toggle Group */
.studio-device-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #e8e3dc;
  background: #f2ede5;
}

.studio-device-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f6b65;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.studio-device-btn svg {
  width: 15px;
  height: 15px;
}

.studio-device-btn:hover {
  color: #282724;
}

.studio-device-btn.is-active {
  background: #fffefd;
  color: #a44d58;
  box-shadow: 0 2px 8px rgba(40, 32, 24, 0.08);
}

/* Topbar CTA Button */
.studio-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a44d58 0%, #833b46 100%);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(164, 77, 88, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.studio-cta-btn svg {
  width: 15px;
  height: 15px;
}

.studio-cta-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(164, 77, 88, 0.36);
}

.studio-cta-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.studio-cta-text-mobile {
  display: none;
}

/* Workspace Body */
.studio-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Editorial Info Sidebar */
.studio-sidebar {
  width: 330px;
  flex-shrink: 0;
  background: #fffefd;
  border-right: 1px solid #e8e3dc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, border-color 0.2s ease;
}

.studio-shell.is-sidebar-hidden .studio-sidebar {
  width: 0;
  opacity: 0;
  border-right-color: transparent;
  pointer-events: none;
}

.studio-sidebar-scroll {
  width: 330px;
  flex: 1;
  overflow-y: auto;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #a44d58;
}

.studio-title {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 26px;
  line-height: 1.24;
  font-weight: 600;
  color: #282724;
}

.studio-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #6f6b65;
}

.studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-tier-card {
  margin-top: 4px;
  padding: 18px;
  border-radius: 16px;
  background: #faf7f2;
  border: 1px solid #e8e3dc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.studio-tier-label {
  font-size: 12px;
  font-weight: 600;
  color: #777168;
}

.studio-tier-price {
  font-size: 20px;
  font-weight: 700;
  color: #282724;
  letter-spacing: -0.02em;
}

.studio-tier-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #777168;
}

.studio-sidebar-cta {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #a44d58 0%, #833b46 100%);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(164, 77, 88, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.studio-sidebar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(164, 77, 88, 0.32);
}

.studio-sidebar-subactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.studio-sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid #e4ded5;
  background: #fffefd;
  color: #282724;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.studio-sub-btn:hover {
  background: #f6eedc;
  border-color: #d8cfc3;
}

.studio-sub-btn.is-active {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, 0.4);
  color: #a44d58;
}

.studio-sidebar-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #ebe5dc;
}

.studio-pager-btn {
  height: 34px;
  border-radius: 9px;
  border: 1px solid #e4ded5;
  background: #fffefd;
  color: #5b564f;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.studio-pager-btn:hover:not(:disabled) {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, 0.35);
  color: #a44d58;
}

.studio-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.studio-shortcut-hint {
  margin: auto 0 0;
  padding-top: 6px;
  font-size: 11.5px;
  color: #8b857c;
  text-align: center;
}

.studio-shortcut-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid #dcd5cb;
  background: #f6f2eb;
  color: #4f4b45;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

/* Interactive Device Stage */
.studio-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 44px;
  background: #f5f1ea;
  overflow: hidden;
}

.studio-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 22%, rgba(164, 77, 88, 0.1) 0%, transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(194, 149, 98, 0.14) 0%, transparent 45%);
}

.studio-fit {
  position: relative;
  z-index: 1;
  flex: none;
}

.studio-device {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  transform-origin: top left;
  transform: translateZ(0);
}

.studio-stage[data-device="phone"] .studio-device {
  border-radius: 44px;
  box-shadow:
    0 0 0 11px #1d1b19,
    0 0 0 13px #3d3934,
    0 28px 60px rgba(34, 24, 18, 0.28);
}

.studio-stage[data-device="tablet"] .studio-device {
  border-radius: 26px;
  box-shadow:
    0 0 0 10px #22201d,
    0 0 0 12px #44403a,
    0 24px 56px rgba(34, 24, 18, 0.24);
}

.studio-stage[data-device="desktop"] {
  padding: 14px 16px 40px;
}

.studio-stage[data-device="desktop"] .studio-fit {
  width: 100%;
  height: 100%;
}

.studio-stage[data-device="desktop"] .studio-device {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid #dfd8cd;
  box-shadow: 0 20px 48px rgba(34, 24, 18, 0.14);
}

.studio-device-notch {
  display: none;
}

.studio-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: #fff;
}

.studio-fallback-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.studio-fallback-img.is-loaded {
  opacity: 1;
}

.studio-device.is-image-fallback .studio-iframe {
  display: none;
}

.studio-device.is-image-fallback .studio-fallback-img {
  display: block;
}

/* Non-blocking slim progress indicator so iframe renders progressively immediately */
.studio-frame-loader {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 254, 253, 0.94);
  border: 1px solid #e8e3dc;
  box-shadow: 0 6px 18px rgba(34, 24, 18, 0.12);
  pointer-events: none;
  z-index: 3;
}

.studio-frame-loader .preview-spinner {
  width: 15px;
  height: 15px;
  border-width: 2px;
}

.studio-frame-loader .preview-loader-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #5b564f;
  white-space: nowrap;
}

.studio-device.is-loading .studio-frame-loader {
  display: flex;
}

.studio-viewport-pill {
  position: absolute;
  bottom: 11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(255, 254, 253, 0.9);
  border: 1px solid #e8e3dc;
  box-shadow: 0 4px 12px rgba(40, 32, 24, 0.06);
  font-size: 11px;
  font-weight: 600;
  color: #6f6b65;
  white-space: nowrap;
  pointer-events: none;
}

/* Template Switcher Drawer / Popover */
/* Không dùng backdrop-filter trên lớp phủ đè lên iframe: GPU không phải blur lại toàn iframe mỗi frame khi scroll. */
.studio-switcher-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 72px 18px 20px;
  background: rgba(28, 25, 22, 0.56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.studio-switcher-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.studio-switcher-panel {
  width: min(680px, 100%);
  max-height: calc(100dvh - 96px);
  display: flex;
  flex-direction: column;
  background: #fffefd;
  border: 1px solid #e8e3dc;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(24, 18, 14, 0.24);
  overflow: hidden;
  contain: layout paint;
  transform: translate3d(0, -10px, 0) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-switcher-backdrop.active .studio-switcher-panel {
  transform: translate3d(0, 0, 0) scale(1);
}

.studio-switcher-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.studio-switcher-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f1ea;
  border: 1px solid #e8e3dc;
  color: #7a746b;
}

.studio-switcher-search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #282724;
  font: inherit;
  font-size: 13.5px;
  outline: none;
}

.studio-switcher-search::placeholder {
  color: #8f8980;
}

.studio-switcher-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f5f1ea;
  color: #6f6b65;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.studio-switcher-close:hover {
  background: #f6e9eb;
  color: #a44d58;
}

.studio-switcher-cats {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #f0ebe3;
}

.studio-switcher-cats::-webkit-scrollbar {
  display: none;
}

.studio-cat-pill {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e8e3dc;
  background: #fffefd;
  color: #5b564f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.studio-cat-pill:hover {
  background: #f6f2eb;
  color: #282724;
}

.studio-cat-pill.is-active {
  background: #a44d58;
  border-color: #a44d58;
  color: #fff;
}

.studio-switcher-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  transform: translateZ(0);
  padding: 14px 16px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.studio-switcher-empty {
  grid-column: 1 / -1;
  padding: 36px 16px;
  text-align: center;
  font-size: 13.5px;
  color: #777168;
}

.studio-sw-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  contain: layout style paint;
}

.studio-sw-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 386 / 841;
  border-radius: 12px;
  overflow: hidden;
  background: #ebe5dc;
  border: 2px solid transparent;
  transition: border-color 0.14s ease;
}

.studio-sw-card:hover .studio-sw-media {
  border-color: rgba(164, 77, 88, 0.45);
}

.studio-sw-card.is-selected .studio-sw-media {
  border-color: #a44d58;
}

.studio-sw-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.studio-sw-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #a44d58;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

.studio-sw-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #a44d58;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.studio-sw-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: #282724;
  line-height: 1.3;
}

.studio-sw-price {
  font-size: 11px;
  font-weight: 500;
  color: #777168;
  line-height: 1.2;
}

.studio-sw-card.is-selected .studio-sw-title {
  color: #a44d58;
  font-weight: 700;
}

.studio-mobile-collapse-btn,
.studio-mobile-reveal-pill {
  display: none;
}

/* Mobile & Tablet Responsive Studio (<= 959px) */
@media (max-width: 959px) {
  .studio-modal-backdrop {
    background: #fff;
  }

  .studio-topbar {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 52px;
    margin: 0;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(232, 227, 220, 0.85);
    background: rgba(255, 254, 253, 0.86);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 10px 28px rgba(40, 32, 24, 0.14);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    will-change: transform, opacity;
  }

  .studio-shell.is-mobile-topbar-collapsed .studio-topbar {
    transform: translate3d(0, calc(-100% - 20px), 0);
    opacity: 0;
    pointer-events: none;
  }

  .studio-topbar-right {
    gap: 4px;
    flex-shrink: 0;
  }

  .studio-mobile-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(45, 42, 38, 0.06);
    color: #5b554e;
    cursor: pointer;
    flex-shrink: 0;
  }

  .studio-mobile-reveal-pill {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    z-index: 29;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 34px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(232, 227, 220, 0.88);
    background: rgba(255, 254, 253, 0.88);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 8px 22px rgba(40, 32, 24, 0.14);
    color: #2d2a26;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -18px, 0) scale(0.92);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    will-change: transform, opacity;
  }

  .studio-shell.is-mobile-topbar-collapsed .studio-mobile-reveal-pill {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .studio-mobile-pill-back {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .studio-mobile-pill-sep {
    width: 1px;
    height: 14px;
    background: rgba(45, 42, 38, 0.14);
  }

  .studio-mobile-pill-expand {
    height: 28px;
    padding: 0 8px 0 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #a44d58;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
  }

  .studio-topbar-left {
    flex: 1;
    min-width: 0;
    gap: 4px;
  }

  .studio-back-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: transparent;
  }

  .studio-back-label,
  .studio-nav-arrows,
  .studio-topbar-center,
  .studio-info-toggle,
  .studio-ext-btn,
  .studio-cta-text-desktop,
  .studio-sidebar,
  .studio-viewport-pill {
    display: none !important;
  }

  .studio-cta-text-mobile {
    display: inline;
  }

  .studio-tpl-trigger {
    flex: 1;
    min-width: 0;
    max-width: none;
    height: 42px;
    padding: 2px 6px 2px 2px;
    border: 0;
    background: transparent;
  }

  .studio-tpl-trigger:hover,
  .studio-tpl-trigger.is-open {
    background: transparent;
    box-shadow: none;
  }

  .studio-cta-btn {
    height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
    gap: 5px;
  }

  .studio-stage {
    padding: 0;
    background: #fff;
  }

  .studio-ambient {
    display: none;
  }

  .studio-fit,
  .studio-stage[data-device="phone"] .studio-device,
  .studio-stage[data-device="tablet"] .studio-device,
  .studio-stage[data-device="desktop"] .studio-device {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    transform: none !important;
  }

  .studio-frame-loader {
    top: max(72px, calc(env(safe-area-inset-top) + 68px));
    z-index: 15;
  }

  /* Mobile bottom-sheet template switcher */
  .studio-switcher-backdrop {
    align-items: flex-end;
    justify-content: center;
    padding: 68px 0 0;
  }

  .studio-switcher-panel {
    width: 100%;
    max-height: 78dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    transform: translate3d(0, 24px, 0);
  }

  .studio-switcher-backdrop.active .studio-switcher-panel {
    transform: translate3d(0, 0, 0);
  }

  .studio-switcher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   LIVE DEMO DIALOG - desktop web / mobile viewport
   ========================================================================== */

.live-demo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  /* Không dùng backdrop-filter: dialog phủ gần kín màn hình nên blur chỉ lộ ở viền 10px,
     nhưng GPU vẫn phải blur toàn màn mỗi frame -> scroll iframe chế độ Web bị giật. */
  background: rgba(28, 26, 24, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.live-demo-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.live-demo-container {
  display: flex;
  flex-direction: column;
  width: min(1680px, 100%);
  height: calc(100dvh - 20px);
  max-height: calc(100dvh - 20px);
  overflow: hidden;
  border: 1px solid var(--line, #e8e3dc);
  border-radius: 16px;
  background: var(--panel, #fffefd);
  box-shadow: 0 28px 70px rgba(20, 16, 12, 0.4);
  transform: scale(0.97) translateY(10px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-demo-backdrop.active .live-demo-container {
  transform: scale(1) translateY(0);
}

.live-demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #e8e3dc);
  background: var(--panel, #fffefd);
}

.live-demo-title {
  margin: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ink, #282724);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-demo-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line, #e8e3dc);
  border-radius: 10px;
  background: #f4f0ea;
}

.live-demo-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #77736d);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.live-demo-view-btn:hover {
  color: var(--ink, #282724);
  background: rgba(255, 255, 255, 0.7);
}

.live-demo-view-btn.is-active {
  color: #fff;
  background: var(--rose, #a44d58);
  box-shadow: 0 3px 10px rgba(164, 77, 88, 0.28);
}

.live-demo-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.live-demo-open-tab {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line, #e8e3dc);
  border-radius: 8px;
  color: var(--ink, #282724);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.live-demo-open-tab:hover {
  background: var(--gold-soft, #f6eedc);
  border-color: #ddd6cd;
}

.live-demo-close-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1ece6;
  color: var(--muted, #77736d);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.live-demo-close-btn:hover {
  background: var(--rose-soft, #f6e9eb);
  color: var(--rose, #a44d58);
  transform: rotate(90deg);
}

.live-demo-close-btn svg {
  width: 18px;
  height: 18px;
}

.live-demo-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
  background:
    radial-gradient(ellipse at top, rgba(164, 77, 88, 0.08), transparent 55%),
    #ebe6df;
}

.live-demo-fit {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.live-demo-device {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(57, 45, 37, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(40, 30, 24, 0.18);
  /* Layer riêng cho khung iframe (như chế độ Mobile đã có nhờ scale()) để clip bo góc
     được xử lý trên compositor, scroll không phải repaint lại cả dialog. */
  transform: translateZ(0);
}

.live-demo-stage[data-view="mobile"] {
  align-items: center;
  padding: 16px;
}

/* iPhone 12 Pro logical viewport: 390 × 844. Viền nằm ngoài, không ăn vào iframe. */
.live-demo-stage[data-view="mobile"] .live-demo-fit {
  width: 390px;
  height: 844px;
  flex: none;
}

.live-demo-stage[data-view="mobile"] .live-demo-device {
  width: 390px;
  height: 844px;
  max-width: none;
  border: 0;
  border-radius: 44px;
  box-shadow:
    0 0 0 11px #1c1b19,
    0 0 0 12px #3a3834,
    0 22px 50px rgba(20, 16, 12, 0.35);
  transform-origin: top left;
}

.live-demo-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.live-demo-stage[data-view="mobile"] .live-demo-frame {
  width: 390px;
  height: 844px;
  border-radius: 32px;
}

@media (max-width: 768px) {
  /* Mobile dùng tab mới; ẩn dialog nếu lỡ mở */
  .live-demo-backdrop {
    display: none !important;
  }
}

/* css/components/faq.css */
/* ==========================================================================
   FAQ ACCORDION COMPONENT - THIỆP CƯỚI TND
   Thiết kế câu hỏi thường gặp chuẩn SEO, thanh lịch và mượt mà
   ========================================================================== */

.home-faq-section {
  padding-top: 48px;
  padding-bottom: 32px;
  scroll-margin-top: 96px;
}

.home-faq-section .home-block-header {
  margin-bottom: 28px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e7e8e5;
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: #cbd7dd;
  box-shadow: 0 4px 16px rgba(36, 56, 68, 0.05);
}

.faq-item.is-open {
  border-color: #b8c9d1;
  box-shadow: 0 6px 20px rgba(36, 56, 68, 0.07);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #273d49;
  line-height: 1.5;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-question:hover {
  color: #1b4477;
  background-color: #fafbfb;
}

.faq-item.is-open .faq-question {
  color: #1b4477;
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f4f6;
  color: #4b6270;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
  background: #2b5d9b;
  color: #ffffff;
}

.faq-item.is-open .faq-icon svg {
  transform: rotate(180deg);
}

.faq-answer {
  border-top: 1px solid #edf1f3;
  color: #556772;
  font-size: 14px;
  line-height: 1.75;
  background-color: #fdfdfd;
}

.faq-answer-inner {
  padding: 18px 24px 22px;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-answer li {
  line-height: 1.6;
}

.faq-answer strong {
  color: #273d49;
  font-weight: 600;
}

@media (max-width: 768px) {
  .home-faq-section {
    padding-top: 36px;
  }
  .faq-question {
    padding: 15px 18px;
    font-size: 14px;
  }
  .faq-icon {
    width: 24px;
    height: 24px;
  }
  .faq-icon svg {
    width: 14px;
    height: 14px;
  }
  .faq-answer-inner {
    padding: 14px 18px 18px;
    font-size: 13.5px;
  }
}


/* 3. Layout & Responsive Layer */
/* css/layout/responsive.css */
/* ==========================================================================
   RESPONSIVE STYLES - THIỆP CƯỚI TND
   ========================================================================== */

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-script-tagline {
    font-size: 28px;
    white-space: nowrap;
  }

  .features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

}

@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-quote-bar {
    justify-content: center;
  }

  .hero-quote-line {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .filter-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-left-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper {
    max-width: 100%;
  }

  .category-pills {
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-right-group {
    justify-content: space-between;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .nav-list {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --container-padding: 16px;
  }


  /* Hero Section - Tinh tế, nhỏ gọn */
  .hero-section {
    padding: 24px 0 20px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
  }

  .hero-script-tagline {
    font-size: 20px;
    line-height: 1.35;
    white-space: normal;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #55677d;
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .hero-quote-bar {
    justify-content: center;
    margin-top: 6px;
  }

  .hero-quote-line {
    display: none;
  }

  .hero-quote-text {
    font-size: 9.5px;
    letter-spacing: 0.8px;
    line-height: 1.45;
    text-align: center;
    max-width: 90%;
  }

  /* Features Bar */
  .features-section {
    padding: 4px 0 24px;
  }

  .features-bar {
    grid-template-columns: 1fr;
    padding: 12px 14px;
    gap: 8px;
    border-radius: var(--radius-lg);
  }

  .feature-item {
    padding: 6px 8px;
    gap: 10px;
  }

  .feature-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .feature-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .feature-title {
    font-size: 13px;
    font-weight: 600;
  }

  .feature-desc {
    font-size: 11px;
    color: var(--color-text-muted);
  }

  /* Section Titles */
  .section-header-centered {
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .section-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Filter Controls */
  .filter-controls-row {
    gap: 10px;
  }

  .search-input {
    font-size: 16px;
    padding: 8px 12px 8px 36px;
    height: 40px;
  }

  .search-icon {
    left: 12px;
    width: 14px;
    height: 14px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 5px 12px;
  }

  .sort-select {
    font-size: 16px;
    padding: 6px 12px;
    height: 38px;
  }

  /* Cards Grid - 2 cột trên mobile (thumb dọc 3:4) */
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  /* Hàng 1: Xem mẫu + ♥ · Hàng 2: Mở thiệp full width */
  .card-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-preview {
    flex: 1;
    order: 1;
    min-width: 0;
  }

  .btn-favorite {
    order: 2;
  }

  .btn-demo-link {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .card-item {
    border-radius: var(--radius-md);
  }

  .card-title {
    font-size: 14px;
  }

  .card-tag {
    font-size: 10.5px;
    padding: 3px 8px;
  }

  .btn-card-preview,
  .btn-card-primary {
    font-size: 11.5px;
    padding: 6px 10px;
  }

  .home-view-more-btn {
    font-size: 12.5px;
    padding: 9px 20px;
  }

}

/* css/components/home.css */
/* Shared minimal visual system for home and both catalogs.
   Light mode = palette admin (cream / ink / rose). */

.home-only { display: none; }
.is-home .home-only { display: block; }

.minimal-site {
  --bg: #f6f4ef;
  --panel: #fffefd;
  --ink: #282724;
  --muted: #6f6b65; /* đạt tương phản 4.5:1 trên nền #f6f4ef */
  --line: #e8e3dc;
  --rose: #a44d58;
  --rose-dark: #833b46;
  --rose-soft: #f6e9eb;
  --gold-soft: #f6eedc;
  --shadow: 0 12px 38px rgba(57, 45, 37, .06);
  --color-primary: #a44d58;
  --color-primary-hover: #833b46;
  --color-primary-light: #f6e9eb;
  --color-primary-dark: #282724;
  --color-border: #e8e3dc;
  --color-border-hover: #ddd6cd;
  --badge-new-bg: linear-gradient(135deg, #a44d58 0%, #833b46 100%);
  --badge-premium-bg: linear-gradient(135deg, #d4a574 0%, #b88656 100%);
  --badge-basic-bg: linear-gradient(135deg, #e8e3dc 0%, #ddd6cd 100%);
  --badge-basic-text: #282724;
  background: var(--bg);
  background-image: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.minimal-site .bg-ambient-layer,
.minimal-site .falling-flowers-canvas { display: none; }
.minimal-site > .site-header,
.minimal-site > .site-footer { flex: 0 0 auto; width: 100%; }
.minimal-site > main { flex: 1 0 auto; width: 100%; }
.minimal-site main { background: transparent; color: var(--ink); }
.minimal-site main .container,
.minimal-site .site-header .container,
.minimal-site .site-footer .container { max-width: 1200px; }

/* Header = tong sidebar admin #252522 */
.minimal-site .site-header,
.minimal-site .site-header.scrolled {
  background: #252522;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.minimal-site .header-inner { height: 84px; }
.minimal-site .site-header .brand-icon-wrapper {
  background: rgba(164, 77, 88, .22);
  border-color: rgba(229, 187, 192, .3);
  border-radius: 50%;
  box-shadow: none;
  color: #e5bbc0;
}
.minimal-site .site-header .brand-logo:hover .brand-icon-wrapper {
  background: rgba(164, 77, 88, .34);
  border-color: rgba(229, 187, 192, .45);
  box-shadow: none;
}
.minimal-site .site-header .brand-title { font-size: 22px; color: #f9f5ef; }
.minimal-site .site-header .brand-tagline {
  background: none;
  -webkit-text-fill-color: #aaa7a0;
  letter-spacing: 1.8px;
  font-weight: 500;
}
@media (min-width: 769px) {
  .minimal-site .nav-list { gap: 30px; }
  .minimal-site .nav-link {
    padding: 10px 0;
    border-radius: 0;
    font-size: 13px;
    color: #bebbb4;
  }
  .minimal-site .nav-link:hover,
  .minimal-site .nav-link.active { background: none; box-shadow: none; color: #fff; }
  .minimal-site .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5bbc0;
  }
  .minimal-site .nav-dropdown-menu {
    background: #2b2a27;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
  }
  .minimal-site .nav-dropdown-link {
    padding: 10px 12px;
    border-radius: 10px;
    color: #e8e4dc;
  }
  .minimal-site .nav-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
  .minimal-site .nav-dropdown-link.active {
    background: rgba(229, 187, 192, 0.14);
    color: #ffffff;
  }
  .minimal-site .nav-dropdown-link.active::after {
    display: none;
  }
  .minimal-site .nav-dropdown-link .nav-link-title {
    color: #f6f3ec;
  }
  .minimal-site .nav-dropdown-link .nav-link-desc {
    color: #a9a49c;
  }
  .minimal-site .nav-dropdown-link .nav-icon-wedding {
    background: rgba(229, 187, 192, 0.16);
    color: #e5bbc0;
  }
  .minimal-site .nav-dropdown-link .nav-icon-yearbook {
    background: rgba(212, 175, 122, 0.16);
    color: #e2c08d;
  }
  .minimal-site .nav-dropdown-link .nav-icon-birthday {
    background: rgba(180, 145, 105, 0.18);
    color: #dfc39d;
  }
}

.minimal-site .hero-section { padding: 72px 0 60px; }
/* Hero chỉ có chữ: tiêu đề bên trái, nội dung bên phải ngăn bằng vạch dọc, căn đáy. */
.minimal-site .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: end; text-align: left; }
.home-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 18px;
}
.minimal-site .hero-heading .hero-title { margin-bottom: 0; }
/* Eyebrow nằm trong h1 (từ khoá chính) nhưng vẫn hiển thị như dòng chữ nhỏ phía trên */
.hero-title .home-eyebrow { display: block; font-family: var(--font-sans); font-style: normal; line-height: 1.6; }
.minimal-site .hero-content { max-width: 460px; margin: 0; display: block; padding-left: 40px; border-left: 1px solid var(--line); }
.minimal-site .hero-title {
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.22;
  letter-spacing: -1.9px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.minimal-site .hero-title em { color: var(--rose); font-weight: 400; }
.minimal-site .hero-script-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: normal;
  text-shadow: none;
  margin-bottom: 12px;
}
.minimal-site .hero-desc {
  max-width: 430px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 28px;
  padding: 0;
}
.is-home .hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-actions a { min-height: 46px; display: inline-flex; align-items: center; gap: 20px; font-size: 12px; font-weight: 600; }
.home-primary-link {
  background: var(--rose);
  color: #fff;
  border-radius: 8px;
  padding: 0 20px;
  box-shadow: 0 6px 16px rgba(164, 77, 88, .2);
}
.home-primary-link:hover { background: var(--rose-dark); color: #fff; }
.home-secondary-link { color: var(--ink); }
.home-secondary-link:hover { color: var(--rose); text-decoration: underline; text-underline-offset: 5px; }
.hero-actions a span { font-size: 18px; font-weight: 400; }
.minimal-site .hero-quote-bar { margin-top: 22px; gap: 0; justify-content: flex-start; }
.minimal-site .hero-quote-line { display: none; }
.minimal-site .hero-quote-text {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2px;
  text-transform: none;
  color: var(--muted);
}


.minimal-site .home-showcase-section { padding-bottom: 80px; }
.home-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin-bottom: 70px;
}
.home-intro > div { display: flex; gap: 16px; align-items: baseline; }
.home-step-number { font-size: 10px; color: var(--rose); }
.home-intro p { display: flex; flex-direction: column; gap: 5px; }
.home-intro strong { font-size: 12px; font-weight: 600; color: var(--ink); }
.home-intro p span { font-size: 10px; color: var(--muted); line-height: 1.7; }
.minimal-site .home-block { margin-bottom: 0; }
.minimal-site .home-block + .home-block { margin-top: 96px; }
.minimal-site .home-block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  margin-bottom: 28px;
  border: none;
}
.home-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.home-slider-controls[hidden] {
  display: none !important;
}
.home-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(164, 77, 88, 0.25);
  background: var(--panel, #fffefd);
  color: var(--rose, #a44d58);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}
.home-slider-btn svg {
  width: 18px;
  height: 18px;
}
.home-slider-btn:hover {
  background: var(--rose, #a44d58);
  border-color: var(--rose, #a44d58);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(164, 77, 88, 0.24);
}
.minimal-site .home-block .home-eyebrow { font-size: 9px; margin-bottom: 10px; }
.minimal-site .home-block-meta-row { display: flex; }
.minimal-site .home-block-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -.8px;
}
.minimal-site .home-block-subtitle { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.minimal-site .home-action-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 34px 0 0;
  padding: 0;
  width: 100%;
}
.minimal-site .btn-home-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 36px;
  min-height: 48px;
  border: 1px solid var(--rose);
  border-radius: 9999px;
  background: var(--rose);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(164, 77, 88, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.minimal-site .btn-home-view-more span {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}
.minimal-site .btn-home-view-more svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.minimal-site .btn-home-view-more:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(164, 77, 88, 0.28);
}
.minimal-site .btn-home-view-more:hover svg {
  transform: translate(3px, -2px);
}
.minimal-site .btn-home-view-more:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(164, 77, 88, 0.2);
}
.minimal-site .home-block { overflow-x: clip; }
.minimal-site .cards-grid { gap: 28px 24px; }
.minimal-site .cards-grid.cards-carousel {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  max-width: none;
  margin: -6px -4px -18px;
  padding: 6px 4px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.minimal-site .cards-grid.cards-carousel::-webkit-scrollbar {
  display: none;
}
.minimal-site .cards-grid.cards-carousel > .card-skeleton {
  flex: 0 0 238px;
  width: 238px;
  border-radius: 16px;
}

/* 3D Coverflow Stage (phong cách thiệp cưới 1) */
.coverflow-shell {
  position: relative;
  width: 100%;
  padding-bottom: 6px;
}
.minimal-site .cards-grid.cards-carousel.is-coverflow {
  position: relative;
  width: 100%;
  height: 604px;
  perspective: 1120px;
  transform-style: preserve-3d;
  display: block;
  overflow: visible;
  margin: 4px 0 0;
  padding: 0;
  border-radius: 0;
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card,
.minimal-site .cards-grid.cards-carousel.is-coverflow > .carousel-more-card {
  position: absolute;
  top: 8px;
  left: 50%;
  flex: none;
  width: 244px;
  height: 586px;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(45, 22, 26, 0.16);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  will-change: transform, opacity;
  cursor: pointer;
}
.minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card {
  display: flex;
  flex-direction: column;
}
.minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card .card-media {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}
.minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card .card-body {
  flex: 0 0 auto;
}
.minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card.is-coverflow-active,
.minimal-site .cards-grid.cards-carousel.is-coverflow > .carousel-more-card.is-coverflow-active {
  border-color: rgba(164, 77, 88, 0.32);
  box-shadow: 0 22px 52px rgba(45, 22, 26, 0.22);
}
.minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card.is-coverflow-active:hover,
.minimal-site .cards-grid.cards-carousel.is-coverflow > .carousel-more-card.is-coverflow-active:hover {
  border-color: rgba(164, 77, 88, 0.48);
  box-shadow: 0 26px 56px rgba(164, 77, 88, 0.22);
}
.coverflow-nav-btn {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(40, 39, 36, 0.09);
  background: rgba(255, 255, 255, 0.94);
  color: var(--rose, #a44d58);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(40, 32, 24, 0.08);
  z-index: 25;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.coverflow-nav-btn svg {
  width: 18px;
  height: 18px;
}
.coverflow-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 5px 14px rgba(164, 77, 88, 0.16);
}
.minimal-site main .coverflow-nav-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(164, 77, 88, 0.24), 0 3px 10px rgba(40, 32, 24, 0.08);
}
.coverflow-nav-btn.prev { left: 14px; }
.coverflow-nav-btn.next { right: 14px; }
.coverflow-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.coverflow-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(164, 77, 88, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.coverflow-dot.is-active {
  width: 24px;
  background: var(--rose, #a44d58);
}
html[data-theme="dark"] .coverflow-nav-btn {
  background: rgba(46, 44, 41, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f3e8ea;
}
html[data-theme="dark"] .coverflow-nav-btn:hover {
  background: #3a3733;
}
html[data-theme="dark"] .coverflow-dot {
  background: rgba(229, 187, 192, 0.25);
}
html[data-theme="dark"] .coverflow-dot.is-active {
  background: #e5bbc0;
}
.carousel-more-card {
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  border-radius: 20px;
  border: 1.5px dashed rgba(164, 77, 88, 0.34);
  background: linear-gradient(155deg, rgba(246, 233, 235, 0.55) 0%, rgba(246, 238, 220, 0.55) 100%);
  color: var(--ink, #282724);
  font: inherit;
  cursor: pointer;
}
.carousel-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.carousel-more-count {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink, #282724);
  line-height: 1.2;
}
.carousel-more-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--rose, #a44d58);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.minimal-site .wedding-card,
.minimal-site .card-skeleton {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.minimal-site .wedding-card:hover {
  transform: translateY(-3px);
  border-color: #ddd6cd;
  box-shadow: 0 16px 36px rgba(57, 45, 37, .1);
}
.minimal-site .card-media { aspect-ratio: 386 / 841; background: #f1ece6; }
.minimal-site .card-badge {
  background: rgba(255, 254, 253, .92);
  color: var(--ink);
  box-shadow: none;
  border: none;
  border-radius: 3px;
  padding: 4px 9px;
  font-size: 9px;
  letter-spacing: .3px;
}
.minimal-site .card-body { padding: 14px 16px 16px; }
.minimal-site .card-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 6px; }
.minimal-site .card-tags { gap: 0; margin-bottom: 0; }
.minimal-site .card-tag { color: var(--muted); background: none; border: none; border-radius: 0; padding: 0; font-size: 10px; font-weight: 400; }
.minimal-site .card-tag + .card-tag::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 7px;
  padding: 0;
  border-radius: 50%;
  background: #b8b2a8;
  vertical-align: 0.2em;
}
.minimal-site .card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.minimal-site .card-tags:has(+ .card-actions) {
  margin-bottom: 10px;
}
.minimal-site .btn-preview {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 0 10px;
  min-height: 34px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(164, 77, 88, 0.28);
  border-radius: 8px;
  background: transparent;
  color: var(--rose);
}
.minimal-site .btn-preview:hover {
  background: var(--rose-soft, #f6e9eb);
  border-color: var(--rose);
  color: var(--rose-dark);
}
.minimal-site .btn-demo-link {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  background: var(--rose);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(164, 77, 88, .22);
  min-height: 34px;
}
.minimal-site .btn-demo-link:hover {
  background: var(--rose-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(164, 77, 88, .3);
}
.minimal-site .btn-favorite {
  border-color: var(--line);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
}
.minimal-site .btn-favorite:hover,
.minimal-site .btn-favorite.active {
  color: var(--rose);
  border-color: rgba(164, 77, 88, .35);
  background: var(--rose-soft);
}
.minimal-site main :is(a, button):focus-visible,
.minimal-site .site-header :is(a, button):focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.minimal-site #homeWeddingBlock,
.minimal-site #homeYearbookBlock { scroll-margin-top: 108px; }
.minimal-site #homeBirthdayBlock { scroll-margin-top: 108px; }

/* FAQ ? admin light */
.minimal-site .faq-item {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.minimal-site .faq-item:hover,
.minimal-site .faq-item.is-open {
  border-color: #ddd6cd;
  box-shadow: 0 10px 28px rgba(57, 45, 37, .08);
}
.minimal-site .faq-question { color: var(--ink); }
.minimal-site .faq-question:hover {
  color: var(--rose);
  background-color: rgba(246, 233, 235, .45);
}
.minimal-site .faq-item.is-open .faq-question { color: var(--rose); }
.minimal-site .faq-icon {
  background: var(--rose-soft);
  color: var(--rose);
}
.minimal-site .faq-item.is-open .faq-icon {
  background: var(--rose);
  color: #fff;
}
.minimal-site .faq-answer {
  border-top-color: var(--line);
  color: var(--muted);
  background-color: #fbf9f6;
}
.minimal-site .faq-answer strong { color: var(--ink); }

/* Footer / contact ? admin light */
.minimal-site .site-footer {
  background: rgba(246, 244, 239, .92);
  border-top-color: var(--line);
}
.minimal-site .footer-contact-heading h2 { color: var(--rose); }
.minimal-site .footer-contact-heading h2 span { color: #b88656; }
.minimal-site .footer-brand .brand-title { color: var(--ink); }
.minimal-site .footer-brand .brand-tagline {
  background: none;
  -webkit-text-fill-color: var(--muted);
}
.minimal-site .contact-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.minimal-site .contact-card:hover {
  border-color: #ddd6cd;
  box-shadow: 0 14px 32px rgba(57, 45, 37, .1);
}
.minimal-site .contact-channel-name { color: var(--ink); }
.minimal-site .contact-channel-desc { color: var(--muted); }
.minimal-site .zalo-chat-label {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* Theme toggle ? admin light */
.minimal-site .theme-toggle {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #f0d2ae;
  box-shadow: none;
}
.minimal-site .theme-toggle:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(240, 210, 174, .35);
  color: #f6eedc;
}

/* Modal ? admin light */
.minimal-site .modal-container,
.minimal-site .modal-header {
  background: var(--panel);
  border-color: var(--line);
}
.minimal-site .modal-title { color: var(--ink); }
.minimal-site .modal-close-btn {
  color: var(--muted);
  background: #f1ece6;
}
.minimal-site .modal-close-btn:hover {
  color: var(--ink);
  background: var(--rose-soft);
}
.minimal-site .modal-preview-viewport { background: #f1ece6; }
.minimal-site .modal-details { background: var(--panel); }
.minimal-site .modal-desc-heading { color: var(--rose); }
.minimal-site .modal-desc-text { color: var(--muted); }
.minimal-site .modal-info-list { border-bottom-color: var(--line); }
.minimal-site .modal-info-label { color: var(--muted); }
.minimal-site .modal-info-val { color: var(--ink); }
.minimal-site .btn-modal-primary {
  background: var(--rose);
  box-shadow: 0 4px 14px rgba(164, 77, 88, .25);
}
.minimal-site .btn-modal-primary:hover { background: var(--rose-dark); }
.minimal-site .btn-modal-secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.minimal-site .btn-modal-secondary:hover {
  background: var(--gold-soft);
  border-color: #ddd6cd;
}

@media (max-width: 1000px) {
  .minimal-site .hero-grid { gap: 32px; }
  .minimal-site .hero-content { padding-left: 28px; }
  .minimal-site .hero-title { font-size: 44px; }
  .is-home .hero-actions { gap: 14px; }
  .hero-actions a { gap: 10px; }
}
@media (max-width: 768px) {
  .minimal-site .header-inner { height: 68px; }
  .minimal-site .site-header .brand-title { font-size: 19px; }
  .minimal-site .hero-section { padding: 40px 0 32px; }
  .minimal-site .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .minimal-site .hero-content { max-width: 540px; padding-left: 0; border-left: 0; text-align: left; }
  .minimal-site .hero-title { font-size: 48px; }
  .minimal-site .hero-quote-bar { justify-content: flex-start; }
  .minimal-site .hero-quote-text { max-width: 100%; text-align: left; }
  .home-intro { gap: 24px; margin-bottom: 48px; }
  .home-intro > div { gap: 10px; }
  .minimal-site .cards-grid:not(.cards-carousel) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .minimal-site .card-body { padding: 14px; }
  .minimal-site .card-title { font-size: 12px; }
  .minimal-site .card-actions {
    flex-wrap: nowrap;
    gap: 6px;
    padding-top: 10px;
  }
  .minimal-site .btn-preview,
  .minimal-site .btn-demo-link {
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
    font-size: 11px;
  }
  /* Dialog mobile: ch? gi? Live Demo */
  .minimal-site .btn-modal-secondary {
    display: none;
  }

  /* Mobile drawer ? admin light */
  .minimal-site .mobile-nav-toggle {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #f9f5ef;
  }
  .minimal-site .mobile-nav-toggle:hover,
  .minimal-site .site-header.nav-open .mobile-nav-toggle {
    background: rgba(164, 77, 88, .28);
    border-color: rgba(229, 187, 192, .35);
  }
  .minimal-site .toggle-bar,
  .minimal-site .site-header.nav-open .toggle-bar.bar-1,
  .minimal-site .site-header.nav-open .toggle-bar.bar-3 {
    background: #f9f5ef;
  }
  .minimal-site .main-nav {
    background: rgba(255, 254, 253, .98);
    border-bottom-color: var(--line);
    box-shadow: 0 22px 45px -10px rgba(57, 45, 37, .14);
  }
  .minimal-site .nav-drawer-header { border-bottom-color: var(--line); }
  .minimal-site .nav-drawer-title { color: var(--muted); }
  .minimal-site .nav-drawer-badge {
    color: var(--rose);
    background: var(--rose-soft);
    border-color: rgba(164, 77, 88, .2);
  }
  .minimal-site .nav-link {
    background: #fbf9f6;
    border-color: var(--line);
    color: var(--ink);
  }
  .minimal-site .nav-link:hover {
    background: var(--gold-soft);
    border-color: #ddd6cd;
  }
  .minimal-site .nav-link.active {
    background: var(--rose-soft);
    border-color: rgba(164, 77, 88, .28);
    box-shadow: none;
  }
  .minimal-site .nav-link-title,
  .minimal-site .nav-link.active .nav-link-title { color: var(--ink); }
  .minimal-site .nav-link-desc,
  .minimal-site .nav-link.active .nav-link-desc { color: var(--muted); }
  .minimal-site .nav-link-arrow,
  .minimal-site .nav-link:hover .nav-link-arrow,
  .minimal-site .nav-link.active .nav-link-arrow { color: var(--rose); }
  .minimal-site .nav-icon-home,
  .minimal-site .nav-icon-templates {
    background: var(--rose-soft);
    color: var(--rose);
  }
  .minimal-site .nav-dropdown-caret,
  .minimal-site .nav-link:hover .nav-dropdown-caret,
  .minimal-site .nav-link.active .nav-dropdown-caret {
    color: var(--rose);
  }
  .minimal-site .nav-icon-wedding {
    background: #fbe7ea;
    color: var(--rose-dark);
  }
  .minimal-site .nav-icon-yearbook {
    background: var(--gold-soft);
    color: #8c5b2e;
  }
  .minimal-site .nav-icon-birthday {
    background: #f3ecdd;
    color: #8c5b2e;
  }
}
@media (max-width: 600px) {
  .minimal-site .hero-title { font-size: clamp(34px, 9.6vw, 48px); letter-spacing: -1.3px; }
  .minimal-site .home-eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .minimal-site .hero-script-tagline { font-size: 13px; }
  .minimal-site .hero-desc { font-size: 12px; margin-bottom: 24px; }
  .is-home .hero-actions { gap: 18px; }
  .hero-actions a { font-size: 11px; gap: 10px; }
  .home-primary-link { padding: 0 14px; }
  .home-intro { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; margin-bottom: 40px; }
  .home-intro > div { gap: 18px; }
  .home-intro p span { font-size: 11px; }
  .minimal-site .home-block-header { gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
  .minimal-site .home-block-title { font-size: 28px; }
  .minimal-site .home-block-subtitle { font-size: 11px; }
  .minimal-site .btn-home-view-more { width: 100%; max-width: 320px; padding: 12px 24px; font-size: 13px; }
  .minimal-site .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .minimal-site .cards-grid.cards-carousel.is-coverflow {
    height: 486px;
    perspective: 820px;
    margin: 2px 0 0;
    padding: 0;
  }
  .minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card,
  .minimal-site .cards-grid.cards-carousel.is-coverflow > .carousel-more-card {
    width: min(194px, 54vw);
    height: 472px;
  }
  .coverflow-nav-btn {
    width: 36px;
    height: 36px;
  }
  .coverflow-nav-btn.prev { left: 10px; }
  .coverflow-nav-btn.next { right: 10px; }
  .coverflow-dots {
    gap: 6px;
    margin-top: 10px;
  }
  .home-slider-btn {
    width: 38px;
    height: 38px;
  }
  .minimal-site .card-body { padding: 12px 12px 14px; }
  .minimal-site .card-title { font-size: 12px; }
  .minimal-site .card-tags { margin-bottom: 0; }
  .minimal-site .card-media .btn-favorite,
  .minimal-site .btn-favorite { width: 30px; height: 30px; top: 8px; right: 8px; }
  .minimal-site .home-block + .home-block { margin-top: 48px; }
  .minimal-site .home-showcase-section { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .minimal-site .wedding-card,
  .minimal-site .card-img { transition: none; }
  .minimal-site .wedding-card:hover,
  .minimal-site .wedding-card:hover .card-img,
  .minimal-site .cards-grid.cards-carousel > .wedding-card,
  .minimal-site .cards-grid.cards-carousel > .carousel-more-card { transform: none; }
}

/* css/components/catalog.css */
/* Catalog layout builds on the shared minimal header, typography, and cards. */
.is-catalog .hero-section { padding: 46px 0 40px; }
/* Nhỏ hơn trang chủ một chút để "Mẫu thiệp tốt nghiệp" vừa một dòng */
.is-catalog .hero-title { font-size: clamp(34px, 4.8vw, 64px); }
.is-catalog .hero-desc { max-width: 490px; margin-bottom: 0; }
.is-catalog .hero-quote-bar { margin-top: 18px; }
.is-catalog .filter-section { padding: 0 0 30px; }
.is-catalog .filter-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line, #e8e3dc);
  padding-top: 24px;
}
.is-catalog .filter-left-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.is-catalog .search-input-wrapper {
  flex: 0 1 300px;
  min-width: 220px;
  width: 100%;
  max-width: 320px;
}
.is-catalog .search-input {
  height: 44px;
  border-radius: 10px;
  border-color: var(--line, #e8e3dc);
  font-size: 16px;
  background: var(--panel, #fffefd);
  color: var(--ink, #282724);
}
.is-catalog .search-input::placeholder { color: var(--muted, #77736d); }
.is-catalog .search-input:focus,
.is-catalog .dropdown-select:focus {
  border-color: var(--rose, #a44d58);
  box-shadow: 0 0 0 3px rgba(164, 77, 88, .16);
}
.is-catalog .filter-right-group { grid-column: 2; grid-row: 1; }
.is-catalog .dropdown-select {
  height: 44px;
  border-radius: 10px;
  border-color: var(--line, #e8e3dc);
  font-size: 16px;
  background: var(--panel, #fffefd);
  color: var(--ink, #282724);
}
.is-catalog .category-pills {
  gap: 8px;
  flex-wrap: wrap;
}
.is-catalog .pill-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line, #e8e3dc);
  background: transparent;
  color: var(--muted, #77736d);
  font-size: 11px;
  font-weight: 500;
}
.is-catalog .pill-btn:hover {
  background: var(--gold-soft, #f6eedc);
  color: var(--ink, #282724);
  border-color: #ddd6cd;
}
.is-catalog .pill-btn.active {
  background: var(--rose, #a44d58);
  border-color: var(--rose, #a44d58);
  color: #fff;
  box-shadow: none;
}
.is-catalog .cards-section { padding: 0 0 64px; scroll-margin-top: 108px; }
.is-catalog .catalog-section-header { justify-content: flex-start; gap: 18px; margin-bottom: 24px; }
.is-catalog .catalog-section-title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.5px;
  color: var(--ink, #282724);
}
.is-catalog .catalog-section-title::after { display: none; }
.catalog-result-count { font-size: 11px; color: var(--muted, #77736d); }
.is-catalog .cards-empty {
  border-color: var(--line, #e8e3dc);
  border-radius: 12px;
  background: var(--panel, #fffefd);
  box-shadow: var(--shadow, 0 12px 38px rgba(57, 45, 37, .06));
}
.is-catalog .card-media,
.is-catalog .skeleton-media { aspect-ratio: 386 / 841; }
.is-catalog :is(input, select):focus-visible { outline: 2px solid var(--rose, #a44d58); outline-offset: 3px; }

/* Nội dung riêng của trang danh mục: giới thiệu + câu hỏi thường gặp */
.catalog-about { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.is-catalog .catalog-about { display: none; }
.is-catalog:not(.is-yearbook):not(.is-birthday) .catalog-about[data-collection="wedding"],
.is-yearbook .catalog-about[data-collection="yearbook"],
.is-birthday .catalog-about[data-collection="birthday"] { display: block; }
.catalog-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.catalog-about h2 { margin: 0 0 18px; font-family: var(--font-serif); font-size: 28px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.catalog-about h3 { margin: 22px 0 6px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.catalog-about h3:first-child { margin-top: 4px; }
.catalog-about p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.85; color: var(--muted); }

@media (max-width: 768px) {
  .catalog-about { padding: 40px 0 48px; }
  .catalog-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .catalog-about h2 { font-size: 24px; }
  .is-catalog .hero-section { padding: 32px 0; }
  .is-catalog .cards-section { scroll-margin-top: 88px; }
}
@media (max-width: 600px) {
  .is-catalog .hero-desc { font-size: 12px; }
  .is-catalog .filter-controls-row { padding-top: 22px; }
  .is-catalog .filter-left-group { gap: 14px; }
  .is-catalog .search-input-wrapper { flex: 1 1 100%; max-width: none; }
  .is-catalog .filter-right-group { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .is-catalog .category-pills { flex-wrap: wrap; gap: 6px; padding-bottom: 0; overflow: visible; }
  .is-catalog .pill-btn { padding: 8px 12px; min-height: 40px; }
  .is-catalog .dropdown-select { min-width: 188px; }
  .is-catalog .filter-section { padding-bottom: 24px; }
  .is-catalog .catalog-section-title { font-size: 25px; }
  .is-catalog .cards-section { padding-bottom: 44px; }
}

/* css/components/theme-dark.css */
/* ==========================================================================
   DARK THEME - tông màu admin (sidebar #252522, rose #a44d58, cream text)
   Không dùng nền đen xì; giữ ấm như quan-ly / admin.
   ========================================================================== */

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] .minimal-site {
  --ms-bg: #252522;
  --ms-bg-soft: #2c2b28;
  --ms-panel: #2e2d2a;
  --ms-panel-hover: #343330;
  --ms-ink: #f9f5ef;
  --ms-ink-soft: #ebe6de;
  --ms-muted: #c9c5bd;
  --ms-muted-2: #b4b0a8;
  --ms-line: rgba(255, 255, 255, .09);
  --ms-line-strong: rgba(255, 255, 255, .14);
  --ms-rose: #a44d58;
  --ms-rose-hover: #833b46;
  --ms-rose-soft: rgba(164, 77, 88, .22);
  --ms-rose-glow: #e5bbc0;
  --ms-gold: #f0d2ae;
  --ms-gold-soft: rgba(240, 210, 174, .14);
  --ms-shadow: 0 12px 38px rgba(0, 0, 0, .22);

  background: var(--ms-bg);
  background-image: none;
  color: var(--ms-ink-soft);
}

html[data-theme="dark"] .minimal-site .bg-ambient-layer {
  display: block;
  background:
    radial-gradient(circle at 14% 8%, rgba(164, 77, 88, .16) 0%, transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(240, 210, 174, .1) 0%, transparent 40%),
    radial-gradient(circle at 50% 92%, rgba(164, 77, 88, .08) 0%, transparent 46%);
}

html[data-theme="dark"] .minimal-site .falling-flowers-canvas { display: none; }

html[data-theme="dark"] .minimal-site main {
  background: transparent;
  color: var(--ms-ink-soft);
}

/* Header */
html[data-theme="dark"] .minimal-site .site-header,
html[data-theme="dark"] .minimal-site .site-header.scrolled {
  background: rgba(37, 37, 34, .94);
  border-bottom: 1px solid var(--ms-line);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="dark"] .minimal-site .site-header .brand-icon-wrapper {
  background: var(--ms-rose-soft);
  border-color: rgba(229, 187, 192, .3);
  color: var(--ms-rose-glow);
  box-shadow: none;
}

html[data-theme="dark"] .minimal-site .site-header .brand-logo:hover .brand-icon-wrapper {
  background: rgba(164, 77, 88, .34);
  border-color: rgba(229, 187, 192, .45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .minimal-site .site-header .brand-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .site-header .brand-tagline {
  background: none;
  -webkit-text-fill-color: var(--ms-muted-2);
}

@media (min-width: 769px) {
  html[data-theme="dark"] .minimal-site .nav-link { color: var(--ms-muted); }
  html[data-theme="dark"] .minimal-site .nav-link:hover,
  html[data-theme="dark"] .minimal-site .nav-link.active {
    background: none;
    box-shadow: none;
    color: var(--ms-ink);
  }
  html[data-theme="dark"] .minimal-site .nav-link.active::after {
    background: var(--ms-rose);
  }
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border: 1px solid #e8e3dc;
  border-radius: 10px;
  background: #fffefd;
  color: #282724;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, .28);
  color: #a44d58;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: var(--ms-gold);
}
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(240, 210, 174, .35);
  color: #f6eedc;
}
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .minimal-site .header-inner {
    justify-content: flex-start;
    gap: 20px;
  }
  .minimal-site .main-nav { margin-left: auto; }
  .minimal-site .header-actions { margin-left: 4px; }
  .minimal-site .theme-toggle { margin-left: 0; }
}

/* Hero & copy */
html[data-theme="dark"] .minimal-site .home-eyebrow { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .hero-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .hero-title em { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site .hero-script-tagline { color: var(--ms-ink-soft); }
html[data-theme="dark"] .minimal-site .hero-desc { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .hero-quote-text { color: var(--ms-muted-2); }

html[data-theme="dark"] .minimal-site .home-primary-link {
  background: linear-gradient(135deg, #3d342d, #25201b);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] .minimal-site .home-primary-link:hover {
  background: linear-gradient(135deg, #4a4038, #2d251f);
  color: #fff;
}
html[data-theme="dark"] .minimal-site .home-secondary-link { color: var(--ms-gold); }
html[data-theme="dark"] .minimal-site .home-secondary-link:hover { color: #f6eedc; }

@media (max-width: 768px) {
  html[data-theme="dark"] .minimal-site .bg-ambient-layer {
    background:
      radial-gradient(circle at 14% 8%, rgba(164, 77, 88, .08) 0%, transparent 40%),
      radial-gradient(circle at 86% 16%, rgba(240, 210, 174, .04) 0%, transparent 36%);
  }
}

/* Intro steps */
html[data-theme="dark"] .minimal-site .home-intro {
  border-top-color: var(--ms-line);
  border-bottom-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .home-step-number { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site .home-intro strong { color: var(--ms-ink-soft); }
html[data-theme="dark"] .minimal-site .home-intro p span { color: var(--ms-muted); }

/* Section headers */
html[data-theme="dark"] .minimal-site .home-block-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .home-block-subtitle { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .home-slider-btn {
  background: var(--ms-panel);
  border-color: var(--ms-line-strong);
  color: var(--ms-rose-glow);
}
html[data-theme="dark"] .minimal-site .home-slider-btn:hover {
  background: var(--ms-rose);
  border-color: var(--ms-rose);
  color: #fff;
}
html[data-theme="dark"] .minimal-site .cards-grid.cards-carousel,
html[data-theme="dark"] .minimal-site .cards-grid.cards-carousel.is-coverflow {
  background: none;
}
html[data-theme="dark"] .minimal-site .cards-grid.cards-carousel > .wedding-card.is-arc-peak,
html[data-theme="dark"] .minimal-site .cards-grid.cards-carousel.is-coverflow > .wedding-card.is-coverflow-active {
  border-color: rgba(229, 187, 192, 0.34);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.56), 0 10px 24px rgba(164, 77, 88, 0.22);
}
html[data-theme="dark"] .minimal-site .carousel-more-card {
  background: linear-gradient(155deg, rgba(164, 77, 88, 0.14) 0%, rgba(240, 210, 174, 0.08) 100%);
  border-color: rgba(229, 187, 192, 0.3);
  color: var(--ms-ink);
}
html[data-theme="dark"] .minimal-site .carousel-more-card:hover {
  border-color: var(--ms-rose-glow);
}
html[data-theme="dark"] .minimal-site .carousel-more-count {
  color: var(--ms-ink);
}

html[data-theme="dark"] .minimal-site .btn-home-view-more {
  border-color: var(--ms-rose);
  background: var(--ms-rose);
  color: #fff;
  box-shadow: 0 4px 16px rgba(164, 77, 88, .3);
}
html[data-theme="dark"] .minimal-site .btn-home-view-more span { color: #fff; }
html[data-theme="dark"] .minimal-site .btn-home-view-more:hover {
  background: var(--ms-rose-hover);
  border-color: var(--ms-rose-hover);
  color: #fff;
  box-shadow: 0 8px 24px rgba(164, 77, 88, .38);
}

/* Cards */
html[data-theme="dark"] .minimal-site .wedding-card,
html[data-theme="dark"] .minimal-site .card-skeleton {
  background: var(--ms-panel);
  border: 1px solid var(--ms-line);
  box-shadow: none;
}
html[data-theme="dark"] .minimal-site .wedding-card:hover {
  border-color: var(--ms-line-strong);
  background: var(--ms-panel-hover);
  box-shadow: var(--ms-shadow);
}
html[data-theme="dark"] .minimal-site .card-media { background: var(--ms-bg-soft); }
html[data-theme="dark"] .minimal-site .card-badge {
  background: rgba(37, 37, 34, .82);
  color: var(--ms-ink-soft);
}
html[data-theme="dark"] .minimal-site .card-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .card-tag { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .card-tag + .card-tag::before { background: var(--ms-muted-2); }
html[data-theme="dark"] .minimal-site .card-actions { border-top-color: var(--ms-line); }
html[data-theme="dark"] .minimal-site .btn-preview {
  color: var(--ms-gold);
  border-color: rgba(212, 175, 118, 0.34);
}
html[data-theme="dark"] .minimal-site .btn-preview:hover {
  color: #f6eedc;
  background: rgba(212, 175, 118, 0.1);
  border-color: rgba(212, 175, 118, 0.52);
}
html[data-theme="dark"] .minimal-site .btn-demo-link {
  background: var(--ms-rose);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(164, 77, 88, .28);
}
html[data-theme="dark"] .minimal-site .btn-demo-link:hover {
  background: var(--ms-rose-hover, #833b46);
  color: #fff;
}
html[data-theme="dark"] .minimal-site .card-media .btn-favorite,
html[data-theme="dark"] .minimal-site .btn-favorite {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ms-ink-soft);
  background: rgba(37, 37, 34, 0.82);
}
html[data-theme="dark"] .minimal-site .card-media .btn-favorite:hover,
html[data-theme="dark"] .minimal-site .card-media .btn-favorite.active,
html[data-theme="dark"] .minimal-site .btn-favorite:hover,
html[data-theme="dark"] .minimal-site .btn-favorite.active {
  color: var(--ms-rose-glow);
  border-color: rgba(229, 187, 192, .45);
  background: rgba(58, 34, 38, 0.92);
}

html[data-theme="dark"] .minimal-site main :is(a, button):focus-visible,
html[data-theme="dark"] .minimal-site .site-header :is(a, button):focus-visible {
  outline-color: var(--ms-rose);
}

/* Catalog filters */
html[data-theme="dark"] .minimal-site.is-catalog .filter-controls-row { border-top-color: var(--ms-line); }
html[data-theme="dark"] .minimal-site.is-catalog .search-input,
html[data-theme="dark"] .minimal-site.is-catalog .dropdown-select {
  background: var(--ms-panel);
  color: var(--ms-ink-soft);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site.is-catalog .search-input::placeholder { color: var(--ms-muted-2); }
html[data-theme="dark"] .minimal-site.is-catalog .search-input:focus,
html[data-theme="dark"] .minimal-site.is-catalog .dropdown-select:focus {
  border-color: var(--ms-rose);
  box-shadow: 0 0 0 3px rgba(164, 77, 88, .22);
}
html[data-theme="dark"] .minimal-site.is-catalog .pill-btn {
  border-color: var(--ms-line);
  background: transparent;
  color: var(--ms-muted);
}
html[data-theme="dark"] .minimal-site.is-catalog .pill-btn:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--ms-ink);
  border-color: var(--ms-line-strong);
}
html[data-theme="dark"] .minimal-site.is-catalog .pill-btn.active {
  background: var(--ms-rose);
  border-color: var(--ms-rose);
  color: #fff;
}
html[data-theme="dark"] .minimal-site.is-catalog .catalog-section-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site.is-catalog .catalog-result-count { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site.is-catalog .cards-empty {
  border-color: var(--ms-line);
  background: var(--ms-panel);
  color: var(--ms-muted);
}

/* FAQ */
html[data-theme="dark"] .minimal-site .faq-item {
  background: var(--ms-panel);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .faq-item:hover,
html[data-theme="dark"] .minimal-site .faq-item.is-open {
  border-color: var(--ms-line-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] .minimal-site .faq-question { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .faq-question:hover {
  color: var(--ms-rose-glow);
  background-color: rgba(255, 255, 255, .03);
}
html[data-theme="dark"] .minimal-site .faq-item.is-open .faq-question { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site .faq-icon {
  background: rgba(255, 255, 255, .06);
  color: var(--ms-muted);
}
html[data-theme="dark"] .minimal-site .faq-item.is-open .faq-icon {
  background: var(--ms-rose);
  color: #fff;
}
html[data-theme="dark"] .minimal-site .faq-answer {
  border-top-color: var(--ms-line);
  color: var(--ms-muted);
  background-color: rgba(0, 0, 0, .12);
}
html[data-theme="dark"] .minimal-site .faq-answer strong { color: var(--ms-ink-soft); }

/* Footer & contact */
html[data-theme="dark"] .minimal-site .site-footer {
  background: rgba(37, 37, 34, .92);
  border-top-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .footer-brand .brand-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .footer-brand .brand-tagline {
  background: none;
  -webkit-text-fill-color: var(--ms-muted-2);
}
html[data-theme="dark"] .minimal-site .footer-brand-desc,
html[data-theme="dark"] .minimal-site .footer-links a,
html[data-theme="dark"] .minimal-site .footer-bottom p {
  color: var(--ms-muted);
}
html[data-theme="dark"] .minimal-site .footer-col-title,
html[data-theme="dark"] .minimal-site .footer-contact-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .footer-links a:hover { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site .footer-bottom {
  border-top-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .contact-card {
  background: var(--ms-panel);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .contact-card:hover {
  border-color: var(--ms-line-strong);
  box-shadow: var(--ms-shadow);
}
html[data-theme="dark"] .minimal-site .contact-channel-name { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .contact-channel-desc,
html[data-theme="dark"] .minimal-site .contact-channel-or { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .contact-card-tiktok .contact-icon {
  color: var(--ms-ink);
  background: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .minimal-site .zalo-chat-label {
  background: var(--ms-panel);
  border-color: var(--ms-line);
  color: var(--ms-ink);
}

/* Studio Preview & Modal */
html[data-theme="dark"] .minimal-site .studio-modal-backdrop { background: #1e1d1b; }
html[data-theme="dark"] .minimal-site .studio-shell { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .studio-topbar {
  background: rgba(37, 37, 34, 0.94);
  border-bottom-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .studio-back-btn,
html[data-theme="dark"] .minimal-site .studio-icon-btn,
html[data-theme="dark"] .minimal-site .studio-sub-btn,
html[data-theme="dark"] .minimal-site .studio-pager-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ms-line);
  color: var(--ms-ink-soft);
}
html[data-theme="dark"] .minimal-site .studio-back-btn:hover,
html[data-theme="dark"] .minimal-site .studio-icon-btn:hover:not(:disabled),
html[data-theme="dark"] .minimal-site .studio-icon-btn.is-active,
html[data-theme="dark"] .minimal-site .studio-sub-btn:hover,
html[data-theme="dark"] .minimal-site .studio-sub-btn.is-active,
html[data-theme="dark"] .minimal-site .studio-pager-btn:hover:not(:disabled) {
  background: var(--ms-rose-soft);
  border-color: rgba(229, 187, 192, 0.42);
  color: var(--ms-rose-glow);
}
html[data-theme="dark"] .minimal-site .studio-tpl-trigger {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ms-line);
  color: var(--ms-ink);
}
html[data-theme="dark"] .minimal-site .studio-tpl-trigger:hover,
html[data-theme="dark"] .minimal-site .studio-tpl-trigger.is-open {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(229, 187, 192, 0.42);
}
html[data-theme="dark"] .minimal-site .studio-tpl-counter,
html[data-theme="dark"] .minimal-site .studio-tpl-chevron { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .studio-tpl-name { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .studio-device-group {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .studio-device-btn { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .studio-device-btn:hover { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .studio-device-btn.is-active {
  background: var(--ms-rose);
  color: #fff;
  box-shadow: 0 3px 10px rgba(164, 77, 88, 0.35);
}
html[data-theme="dark"] .minimal-site .studio-sidebar {
  background: var(--ms-bg-soft);
  border-right-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .studio-eyebrow { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site .studio-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .studio-desc,
html[data-theme="dark"] .minimal-site .studio-tier-label,
html[data-theme="dark"] .minimal-site .studio-tier-note,
html[data-theme="dark"] .minimal-site .studio-shortcut-hint { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .studio-tier-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .studio-tier-price { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .studio-sidebar-pager { border-top-color: var(--ms-line); }
html[data-theme="dark"] .minimal-site .studio-shortcut-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ms-line-strong);
  color: var(--ms-ink-soft);
}
html[data-theme="dark"] .minimal-site .studio-stage { background: #1a1917; }
html[data-theme="dark"] .minimal-site .studio-ambient {
  background:
    radial-gradient(circle at 20% 22%, rgba(164, 77, 88, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(240, 210, 174, 0.09) 0%, transparent 46%);
}
html[data-theme="dark"] .minimal-site .studio-stage[data-device="desktop"] .studio-device {
  border-color: var(--ms-line-strong);
}
html[data-theme="dark"] .minimal-site .studio-frame-loader {
  background: rgba(37, 37, 34, 0.94);
  border-color: var(--ms-line-strong);
}
html[data-theme="dark"] .minimal-site .studio-frame-loader .preview-loader-text {
  color: var(--ms-ink-soft);
}
html[data-theme="dark"] .minimal-site .studio-viewport-pill {
  background: rgba(37, 37, 34, 0.9);
  border-color: var(--ms-line);
  color: var(--ms-muted);
}
html[data-theme="dark"] .minimal-site .studio-switcher-panel {
  background: var(--ms-bg-soft);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .studio-switcher-search-wrap,
html[data-theme="dark"] .minimal-site .studio-switcher-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ms-line);
  color: var(--ms-muted);
}
html[data-theme="dark"] .minimal-site .studio-switcher-search { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .studio-switcher-cats {
  border-bottom-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .studio-cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ms-line);
  color: var(--ms-muted);
}
html[data-theme="dark"] .minimal-site .studio-cat-pill.is-active {
  background: var(--ms-rose);
  border-color: var(--ms-rose);
  color: #fff;
}
html[data-theme="dark"] .minimal-site .studio-sw-title { color: var(--ms-ink-soft); }
html[data-theme="dark"] .minimal-site .studio-sw-card.is-selected .studio-sw-title { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site .studio-sw-price {
  color: var(--ms-muted);
}
@media (max-width: 959px) {
  html[data-theme="dark"] .minimal-site .studio-topbar,
  html[data-theme="dark"] .minimal-site .studio-mobile-reveal-pill {
    background: rgba(37, 37, 34, 0.88);
    border-color: var(--ms-line);
    color: var(--ms-ink);
  }
  html[data-theme="dark"] .minimal-site .studio-mobile-collapse-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ms-ink-soft);
  }
  html[data-theme="dark"] .minimal-site .studio-mobile-pill-sep {
    background: rgba(255, 255, 255, 0.14);
  }
  html[data-theme="dark"] .minimal-site .studio-mobile-pill-expand {
    color: var(--ms-rose-glow);
  }
  html[data-theme="dark"] .minimal-site .studio-modal-backdrop,
  html[data-theme="dark"] .minimal-site .studio-stage {
    background: #1a1917;
  }
}

html[data-theme="dark"] .minimal-site .preview-spinner {
  border-color: rgba(201, 122, 132, .25);
  border-top-color: var(--ms-rose);
}
html[data-theme="dark"] .minimal-site .preview-loader-text { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .live-demo-container,
html[data-theme="dark"] .minimal-site .live-demo-header {
  background: var(--ms-bg-soft);
  border-color: var(--ms-line);
  color: var(--ms-ink);
}
html[data-theme="dark"] .minimal-site .live-demo-title { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .live-demo-view-toggle {
  background: rgba(255, 255, 255, .06);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .live-demo-view-btn { color: var(--ms-muted); }
html[data-theme="dark"] .minimal-site .live-demo-view-btn:hover {
  color: var(--ms-ink);
  background: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .minimal-site .live-demo-view-btn.is-active {
  color: #fff;
  background: var(--ms-rose);
}
html[data-theme="dark"] .minimal-site .live-demo-open-tab {
  color: var(--ms-ink);
  border-color: var(--ms-line);
  background: rgba(255, 255, 255, .05);
}
html[data-theme="dark"] .minimal-site .live-demo-open-tab:hover {
  background: rgba(240, 210, 174, .12);
  border-color: rgba(240, 210, 174, .35);
}
html[data-theme="dark"] .minimal-site .live-demo-close-btn {
  color: var(--ms-muted);
  background: rgba(255, 255, 255, .06);
}
html[data-theme="dark"] .minimal-site .live-demo-close-btn:hover {
  color: var(--ms-ink);
  background: rgba(255, 255, 255, .1);
}
html[data-theme="dark"] .minimal-site .live-demo-stage {
  background:
    radial-gradient(ellipse at top, rgba(164, 77, 88, 0.12), transparent 55%),
    #1a1917;
}
html[data-theme="dark"] .minimal-site .live-demo-device {
  background: #111;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .minimal-site .live-demo-stage[data-view="mobile"] .live-demo-device {
  border-color: #3a3834;
  box-shadow:
    0 0 0 11px #1c1b19,
    0 0 0 12px #3a3834,
    0 22px 50px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .minimal-site .btn-modal-secondary {
  background: transparent;
  color: var(--ms-ink-soft);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .minimal-site .btn-modal-secondary:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--ms-line-strong);
  color: var(--ms-ink);
}

html[data-theme="dark"] .minimal-site .skeleton-shimmer,
html[data-theme="dark"] .minimal-site .skeleton-title,
html[data-theme="dark"] .minimal-site .skeleton-tag,
html[data-theme="dark"] .minimal-site .skeleton-btn,
html[data-theme="dark"] .minimal-site .skeleton-btn-icon,
html[data-theme="dark"] .minimal-site .skeleton-media {
  background: rgba(255, 255, 255, .06);
}

/* Mobile nav */
@media (max-width: 768px) {
  html[data-theme="dark"] .minimal-site .mobile-nav-toggle {
    background: rgba(255, 255, 255, .06);
    border-color: var(--ms-line);
    color: var(--ms-ink);
  }
  html[data-theme="dark"] .minimal-site .mobile-nav-toggle:hover,
  html[data-theme="dark"] .minimal-site .site-header.nav-open .mobile-nav-toggle {
    background: var(--ms-rose-soft);
    border-color: rgba(229, 187, 192, .35);
  }
  html[data-theme="dark"] .minimal-site .toggle-bar,
  html[data-theme="dark"] .minimal-site .site-header.nav-open .toggle-bar.bar-1,
  html[data-theme="dark"] .minimal-site .site-header.nav-open .toggle-bar.bar-3 {
    background: var(--ms-ink);
  }
  html[data-theme="dark"] .minimal-site .main-nav {
    background: rgba(37, 37, 34, .98);
    border-bottom-color: var(--ms-line);
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, .4);
  }
  html[data-theme="dark"] .minimal-site .nav-drawer-header { border-bottom-color: var(--ms-line); }
  html[data-theme="dark"] .minimal-site .nav-drawer-title { color: var(--ms-muted); }
  html[data-theme="dark"] .minimal-site .nav-drawer-badge {
    color: var(--ms-rose-glow);
    background: var(--ms-rose-soft);
    border-color: rgba(229, 187, 192, .28);
  }
  html[data-theme="dark"] .minimal-site .nav-link {
    background: rgba(255, 255, 255, .06);
    border-color: var(--ms-line);
    color: var(--ms-ink);
  }
  html[data-theme="dark"] .minimal-site .nav-link:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--ms-line-strong);
    transform: none;
  }
  html[data-theme="dark"] .minimal-site .nav-link.active {
    background: rgba(164, 77, 88, .28);
    border-color: rgba(229, 187, 192, .45);
    box-shadow: none;
    color: var(--ms-ink);
  }
  html[data-theme="dark"] .minimal-site .nav-link-title,
  html[data-theme="dark"] .minimal-site .nav-link.active .nav-link-title {
    color: #f9f5ef;
  }
  html[data-theme="dark"] .minimal-site .nav-link-desc,
  html[data-theme="dark"] .minimal-site .nav-link.active .nav-link-desc {
    color: #c8c4bc;
  }
  html[data-theme="dark"] .minimal-site .nav-link-arrow,
  html[data-theme="dark"] .minimal-site .nav-link:hover .nav-link-arrow,
  html[data-theme="dark"] .minimal-site .nav-link.active .nav-link-arrow {
    color: #e5bbc0;
  }
  html[data-theme="dark"] .minimal-site .nav-icon-home,
  html[data-theme="dark"] .minimal-site .nav-icon-templates {
    background: rgba(201, 122, 132, .18);
    color: #e5bbc0;
  }
  html[data-theme="dark"] .minimal-site .nav-dropdown-caret,
  html[data-theme="dark"] .minimal-site .nav-link:hover .nav-dropdown-caret,
  html[data-theme="dark"] .minimal-site .nav-link.active .nav-dropdown-caret {
    color: #e5bbc0;
  }
  html[data-theme="dark"] .minimal-site .nav-icon-wedding {
    background: rgba(164, 77, 88, .22);
    color: #e5bbc0;
  }
  html[data-theme="dark"] .minimal-site .nav-icon-yearbook {
    background: rgba(240, 210, 174, .16);
    color: #f0d2ae;
  }
  html[data-theme="dark"] .minimal-site .nav-icon-birthday {
    background: rgba(240, 210, 174, .16);
    color: #f0d2ae;
  }
  html[data-theme="dark"] .minimal-site .nav-icon-contact {
    background: rgba(233, 241, 234, .12);
    color: #c5d8c8;
  }

  .header-actions { gap: 8px; }
  .theme-toggle {
    width: 42px;
    height: 42px;
    margin-left: 0;
    border-radius: 12px;
  }
}

/* Scrollbar */
html[data-theme="dark"] .minimal-site::-webkit-scrollbar-track,
html[data-theme="dark"] .minimal-site ::-webkit-scrollbar-track { background: #252522; }
html[data-theme="dark"] .minimal-site::-webkit-scrollbar-thumb,
html[data-theme="dark"] .minimal-site ::-webkit-scrollbar-thumb { background: #4a4843; }
html[data-theme="dark"] .minimal-site::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .minimal-site ::-webkit-scrollbar-thumb:hover { background: #6a675f; }

html[data-theme="dark"] .minimal-site .catalog-about { border-top-color: var(--ms-line); }
html[data-theme="dark"] .minimal-site .catalog-about h2,
html[data-theme="dark"] .minimal-site .catalog-about h3 { color: var(--ms-ink); }
html[data-theme="dark"] .minimal-site .catalog-about p { color: var(--ms-muted); }

/* css/components/home-redesign.css */
/* ==========================================================================
   HOME REDESIGN - THIỆP CƯỚI TND
   Hero có minh họa điện thoại, dải 3 bước tối, khối tính năng, FAQ hai cột
   và dải lời mời cuối trang. Nạp sau theme-dark.css nên tự chứa cả bản tối.
   ========================================================================== */

/* Header: logo chữ T&D */
html .minimal-site .site-header .brand-icon-wrapper.brand-icon-monogram,
html .minimal-site .site-header .brand-logo:hover .brand-icon-wrapper.brand-icon-monogram,
html .minimal-site .footer-brand .brand-icon-wrapper.brand-icon-monogram {
  background: var(--rose, #a44d58);
  border: 0;
  color: #fbeedb; /* 4.85:1 trên nền rose */
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  box-shadow: none;
}
html .minimal-site .site-header .brand-logo:hover .brand-icon-wrapper.brand-icon-monogram { background: var(--rose-dark, #833b46); }

/* Hero */
.minimal-site.is-home .hero-section { padding: 64px 0 80px; }
.minimal-site.is-home .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  row-gap: 26px;
  align-items: start;
}
.minimal-site.is-home .hero-heading { grid-column: 1; grid-row: 1; }
.minimal-site.is-home .hero-content {
  grid-column: 1;
  grid-row: 2;
  max-width: 560px;
  padding-left: 0;
  border-left: 0;
}
.minimal-site.is-home .hero-heading .home-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--rose);
}
.minimal-site.is-home .hero-heading .home-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}
.minimal-site.is-home .hero-title {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -1px;
}
.minimal-site.is-home .hero-title em { font-style: italic; }
.minimal-site.is-home .hero-script-tagline,
.minimal-site.is-home .hero-quote-bar { display: none; }
.minimal-site.is-home .hero-desc {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 30px;
}
.minimal-site.is-home .hero-actions { gap: 12px; }
.minimal-site.is-home .hero-actions a {
  min-height: 52px;
  gap: 10px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
}
.minimal-site.is-home .home-secondary-link {
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.minimal-site.is-home .home-secondary-link:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.minimal-site.is-home .hero-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-checklist li { display: inline-flex; align-items: center; gap: 10px; }
.hero-checklist li::before {
  content: '';
  width: 9px;
  height: 5px;
  margin-top: -3px;
  border-left: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(-45deg);
}

/* Hero: ba điện thoại minh họa (Thôi nôi - Thiệp cưới - Tốt nghiệp) */
.minimal-site.is-home .hero-visual {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  height: 590px;
}
.hero-phone {
  position: absolute;
  box-sizing: border-box;
  padding: 10px;
  background: #1e1a17;
  box-shadow: 0 30px 60px -20px rgba(40, 30, 25, .35);
}
.hero-phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  text-align: center;
}
.hero-phone-birthday {
  top: 56px;
  left: 50%;
  margin-left: -292px;
  width: 236px;
  height: 476px;
  border-radius: 40px;
  transform: rotate(-13deg);
  z-index: 1;
}
.hero-phone-birthday .hero-phone-screen {
  justify-content: center;
  gap: 12px;
  padding: 24px 72px 24px 16px;
  border-radius: 31px;
  background: linear-gradient(180deg, #fcf3e3 0%, #f6e2ca 100%);
  color: #5b3b27;
}
.hero-phone-age {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1.5px solid #c98653;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.72);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: #a95d2c;
}
.hero-phone-back {
  top: 50px;
  left: 50%;
  margin-left: 52px;
  width: 236px;
  height: 476px;
  border-radius: 40px;
  transform: rotate(11deg);
  z-index: 2;
}
.hero-phone-back .hero-phone-screen {
  justify-content: center;
  gap: 14px;
  padding: 24px 16px 24px 72px;
  border-radius: 31px;
  background: #dce7ef;
  color: #24496b;
}
.hero-phone-front {
  top: 8px;
  left: 50%;
  margin-left: -128px;
  width: 256px;
  height: 524px;
  border-radius: 42px;
  transform: rotate(-2deg);
  z-index: 3;
}
.hero-phone-front .hero-phone-screen {
  justify-content: space-between;
  padding: 36px 22px 26px;
  border-radius: 33px;
  background: #7d2f3a;
  color: #f3ddb0;
}
.hero-phone-kicker { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.hero-phone-birthday .hero-phone-kicker,
.hero-phone-back .hero-phone-kicker { font-size: 9.5px; letter-spacing: .16em; }
.hero-phone-title { font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1.08; }
.hero-phone-rule { width: 40px; height: 1px; background: currentColor; }
.hero-phone-note { font-size: 10.5px; line-height: 1.35; }
.hero-phone-center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-phone-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border: 1px solid #d9b77a;
  border-radius: 50%;
  font-family: serif;
  font-size: 44px;
}
.hero-phone-names { font-family: var(--font-serif); font-style: italic; font-size: 36px; line-height: 1.1; }
.hero-phone-date { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.hero-phone-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.hero-phone-countdown span {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  border: 1px solid rgba(243, 221, 176, .35);
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.25;
}
.hero-phone-countdown b { font-size: 16px; font-weight: 600; }
.hero-phone-rsvp {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 999px;
  background: #f3ddb0;
  color: #5e1f28;
  font-size: 12px;
  font-weight: 600;
}

/* Dải 3 bước: giữ kiểu kẻ mảnh cũ, chữ to hơn trên màn hình lớn */
@media (min-width: 769px) {
  .minimal-site .home-intro { padding: 30px 0; }
  .minimal-site .home-step-number { font-size: 12px; }
  .minimal-site .home-intro strong { font-size: 15px; }
  .minimal-site .home-intro p span { font-size: 13px; }
}

/* Hero trang mẫu thiệp cưới / tốt nghiệp: chữ cột phải to hơn trên màn hình lớn */
@media (min-width: 769px) {
  .minimal-site.is-catalog .hero-script-tagline { font-size: 17px; margin-bottom: 14px; }
  .minimal-site.is-catalog .hero-desc { max-width: 500px; font-size: 15px; line-height: 1.8; }
  .minimal-site.is-catalog .hero-quote-text { font-size: 12.5px; }
}

/* Bộ sưu tập */
.minimal-site.is-home .home-block-title { display: block; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.minimal-site.is-home .home-block-title em { font-style: italic; color: var(--rose); }
.minimal-site.is-home .home-block .home-eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--rose); }
.minimal-site.is-home .home-block-subtitle { font-size: 15px; margin-top: 12px; }
.minimal-site.is-home .home-block + #homeYearbookBlock {
  margin-top: 88px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

/* Hai cách tạo thiệp song song & qua lại linh hoạt (dải nền ấm tràn ngang) */
.minimal-site .home-modes-section {
  margin-top: 96px;
  padding: 80px 0;
  background: #eee8de;
  box-shadow: 0 0 0 100vmax #eee8de;
  clip-path: inset(0 -100vmax);
}
.minimal-site .home-modes-section .home-block-header { margin-bottom: 36px; }
.minimal-site .home-modes-section .home-block-title-group { max-width: 780px; }
.minimal-site .home-modes-section .home-eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--rose);
  margin-bottom: 12px;
}
.minimal-site .home-modes-section .home-block-title {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
}
.minimal-site .home-modes-section .home-block-title em { font-style: italic; color: var(--rose); }
.minimal-site .home-modes-section .home-block-subtitle {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
  color: var(--muted);
}
.home-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.home-mode-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #ddd3c5;
  background: var(--bg, #fbf9f6);
}
.home-mode-card--accent {
  background: linear-gradient(160deg, rgba(164, 77, 88, 0.07) 0%, #fbf9f6 62%);
  border-color: rgba(164, 77, 88, 0.28);
}
.home-mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.home-mode-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
}
.home-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  background: #eee8de;
  color: var(--ink);
}
.home-mode-badge.is-highlight {
  background: var(--rose, #a44d58);
  color: #ffffff;
}
.home-mode-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--ink);
}
.home-mode-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.home-mode-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.home-mode-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.home-mode-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose, #a44d58);
}
.home-mode-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #d5cab9;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.home-mode-link:hover {
  border-color: var(--rose, #a44d58);
  color: var(--rose, #a44d58);
  background: rgba(164, 77, 88, 0.05);
}
.home-mode-link.is-primary {
  border-color: var(--rose, #a44d58);
  background: var(--rose, #a44d58);
  color: #ffffff;
}
.home-mode-link.is-primary:hover {
  background: var(--rose-dark, #833b46);
  border-color: var(--rose-dark, #833b46);
  color: #ffffff;
}
.home-mode-card .zalo-picker-wrap {
  margin-top: 8px;
}
.home-mode-card .zalo-picker-wrap .home-mode-link {
  margin-top: 0;
}
.home-faq-cta .zalo-picker-wrap {
  margin-top: 4px;
}
.home-faq-cta .zalo-picker-wrap .home-faq-cta-link {
  margin-top: 0;
}
.home-modes-sync {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid #ddd3c5;
  background: var(--bg, #fbf9f6);
}
.home-modes-sync-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eee8de;
  border: 1px solid #ddd3c5;
  color: var(--rose, #a44d58);
}
.home-modes-sync-icon svg { width: 20px; height: 20px; }
.home-modes-sync-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.home-modes-sync-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* FAQ hai cột */
.minimal-site.is-home .home-faq-section { padding: 96px 0 24px; }
.home-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.minimal-site .home-faq-intro .home-block-header { margin-bottom: 0; }
.home-faq-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 26px;
  border-radius: 20px;
  background: #252522;
  color: #f9f5ef;
}
.home-faq-cta p { margin: 0; }
.home-faq-cta-title { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; }
.home-faq-cta-text { font-size: 14px; line-height: 1.7; color: #c9c5bd; }
.home-faq-cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 20px;
  border-radius: 999px;
  background: #f0d2ae;
  color: #252522;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home-faq-cta-link:hover { background: #f6e3c4; color: #252522; }

html .minimal-site .home-faq-layout .faq-accordion {
  gap: 0;
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--line);
}
html .minimal-site .home-faq-layout .faq-item,
html .minimal-site .home-faq-layout .faq-item:hover,
html .minimal-site .home-faq-layout .faq-item.is-open {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
html .minimal-site .home-faq-layout .faq-question {
  min-height: 72px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
}
html .minimal-site .home-faq-layout .faq-question:hover { background: transparent; }
html .minimal-site .home-faq-layout .faq-icon { width: 36px; height: 36px; }
html .minimal-site .home-faq-layout .faq-answer {
  border-top: 0;
  background: transparent;
  font-size: 15px;
}
html .minimal-site .home-faq-layout .faq-answer-inner { padding: 0 52px 26px 0; }

/* Dải lời mời cuối trang */
.minimal-site.is-home .home-showcase-section { padding-bottom: 0; }
.home-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 72px;
  padding: 64px 0;
  background: #252522;
  box-shadow: 0 0 0 100vmax #252522;
  clip-path: inset(0 -100vmax);
}
.home-cta-title {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  color: #f9f5ef;
}
.home-cta-title em { font-style: italic; color: #e5bbc0; }
.home-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #f0d2ae;
  color: #252522;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home-cta-link:hover { background: #f6e3c4; color: #252522; }

/* Footer tối nối liền dải lời mời, điểm nhấn vàng.
   html[data-theme] luôn có (script đầu trang) nên thắng cả rule của theme-dark. */
html[data-theme] .minimal-site .site-footer {
  margin-top: 0;
  background: #252522;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
html[data-theme="dark"] .minimal-site .site-footer { background: #1d1c1a; }
html[data-theme] .minimal-site .footer-brand .brand-title { color: #f9f5ef; }
html[data-theme] .minimal-site .footer-brand .brand-tagline {
  background: none;
  -webkit-text-fill-color: #aaa7a0;
}
html[data-theme] .minimal-site .footer-brand-desc,
html[data-theme] .minimal-site .footer-links a { color: #c9c5bd; }
html[data-theme] .minimal-site .footer-links a:hover { color: #f0d2ae; }
html[data-theme] .minimal-site .footer-col-title,
html[data-theme] .minimal-site .footer-contact-title { color: #f0d2ae; }
html[data-theme] .minimal-site .contact-card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .09);
  box-shadow: none;
}
html[data-theme] .minimal-site .contact-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(240, 210, 174, .35);
  box-shadow: none;
}
html[data-theme] .minimal-site .contact-channel-name { color: #f9f5ef; }
html[data-theme] .minimal-site .contact-channel-desc,
html[data-theme] .minimal-site .contact-channel-or { color: #c9c5bd; }
html[data-theme] .minimal-site .contact-channel-action { color: #f0d2ae; }
html[data-theme] .minimal-site .contact-card-tiktok .contact-icon {
  color: #f9f5ef;
  background: rgba(255, 255, 255, .08);
}
html[data-theme] .minimal-site .footer-bottom { border-top-color: rgba(255, 255, 255, .09); }
html[data-theme] .minimal-site .footer-bottom p,
html[data-theme] .minimal-site .footer-bottom .footer-bottom-note { color: #c9c5bd !important; }

@media (max-width: 600px) {
  /* Sản phẩm và Pháp lý nằm cạnh nhau, phần thương hiệu chiếm cả hàng trên */
  html[data-theme] .minimal-site .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  html[data-theme] .minimal-site .footer-brand-col { grid-column: 1 / -1; }
  html[data-theme] .minimal-site .footer-links { gap: 10px; }
  html[data-theme] .minimal-site .footer-links a { font-size: 13px; line-height: 1.5; }
  html[data-theme] .minimal-site .site-footer { padding-bottom: 28px; }
  html[data-theme] .minimal-site .footer-bottom p:last-child { padding-right: 68px; }
}

/* Bản tối */
html[data-theme="dark"] .minimal-site.is-home .hero-heading .home-eyebrow { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site.is-home .home-secondary-link { border-color: var(--ms-line-strong); color: var(--ms-gold); }
html[data-theme="dark"] .minimal-site.is-home .home-secondary-link:hover { background: var(--ms-gold-soft); color: #f6eedc; }
html[data-theme="dark"] .minimal-site.is-home .hero-checklist { color: var(--ms-muted); }
html[data-theme="dark"] .hero-checklist li::before { border-color: var(--ms-rose-glow); }
html[data-theme="dark"] .hero-phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .home-cta-band {
  background: #1d1c1a;
  box-shadow: 0 0 0 100vmax #1d1c1a;
}
html[data-theme="dark"] .minimal-site.is-home .home-block-title em,
html[data-theme="dark"] .minimal-site.is-home .home-block .home-eyebrow,
html[data-theme="dark"] .minimal-site .home-modes-section .home-eyebrow,
html[data-theme="dark"] .minimal-site .home-modes-section .home-block-title em { color: var(--ms-rose-glow); }
html[data-theme="dark"] .minimal-site.is-home .home-block + #homeYearbookBlock { border-top-color: var(--ms-line); }
html[data-theme="dark"] .minimal-site .home-modes-section {
  background: var(--ms-bg-soft);
  box-shadow: 0 0 0 100vmax var(--ms-bg-soft);
}
html[data-theme="dark"] .minimal-site .home-modes-section .home-block-subtitle { color: var(--ms-muted); }
html[data-theme="dark"] .home-mode-card {
  background: var(--ms-panel);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .home-mode-card--accent {
  background: linear-gradient(160deg, rgba(164, 77, 88, 0.16) 0%, var(--ms-panel) 65%);
  border-color: rgba(229, 187, 192, 0.28);
}
html[data-theme="dark"] .home-mode-tag,
html[data-theme="dark"] .home-mode-lead,
html[data-theme="dark"] .home-modes-sync-text { color: var(--ms-muted); }
html[data-theme="dark"] .home-mode-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ms-ink-soft);
}
html[data-theme="dark"] .home-mode-badge.is-highlight {
  background: var(--ms-rose);
  color: #ffffff;
}
html[data-theme="dark"] .home-mode-title,
html[data-theme="dark"] .home-modes-sync-text strong { color: var(--ms-ink); }
html[data-theme="dark"] .home-mode-list li { color: var(--ms-ink-soft); }
html[data-theme="dark"] .home-mode-list li::before { background: var(--ms-rose-glow); }
html[data-theme="dark"] .home-mode-link {
  border-color: var(--ms-line-strong);
  color: var(--ms-gold);
}
html[data-theme="dark"] .home-mode-link:hover {
  background: var(--ms-gold-soft);
  border-color: var(--ms-gold);
  color: #f6eedc;
}
html[data-theme="dark"] .home-mode-link.is-primary {
  border-color: var(--ms-rose);
  background: var(--ms-rose);
  color: #ffffff;
}
html[data-theme="dark"] .home-mode-link.is-primary:hover {
  background: var(--ms-rose-hover);
  border-color: var(--ms-rose-hover);
  color: #ffffff;
}
html[data-theme="dark"] .home-modes-sync {
  background: var(--ms-panel);
  border-color: var(--ms-line);
}
html[data-theme="dark"] .home-modes-sync-icon {
  background: rgba(164, 77, 88, 0.18);
  border-color: rgba(229, 187, 192, 0.26);
  color: var(--ms-rose-glow);
}
html[data-theme="dark"] .home-faq-cta { background: var(--ms-panel); border: 1px solid var(--ms-line); }
html[data-theme="dark"] .minimal-site .home-faq-layout .faq-accordion { border-top-color: var(--ms-line); }
html[data-theme="dark"] .minimal-site .home-faq-layout .faq-item,
html[data-theme="dark"] .minimal-site .home-faq-layout .faq-item:hover,
html[data-theme="dark"] .minimal-site .home-faq-layout .faq-item.is-open { border-bottom-color: var(--ms-line); }

/* Responsive */
@media (max-width: 1100px) {
  .minimal-site.is-home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); column-gap: 24px; }
  .minimal-site.is-home .hero-visual { height: 480px; }
  .minimal-site.is-home .hero-phone-front { transform: rotate(-2deg) scale(.78); transform-origin: top center; margin-left: -128px; }
  .minimal-site.is-home .hero-phone-birthday { top: 46px; transform: rotate(-13deg) scale(.78); transform-origin: top center; margin-left: -268px; }
  .minimal-site.is-home .hero-phone-back { top: 40px; transform: rotate(11deg) scale(.78); transform-origin: top center; margin-left: 32px; }
  .minimal-site.is-home .hero-phone-birthday .hero-phone-screen { padding-right: 68px; }
  .minimal-site.is-home .hero-phone-back .hero-phone-screen { padding-left: 68px; }
}
@media (max-width: 1000px) {
  .minimal-site .home-modes-grid,
  .home-modes-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-faq-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-faq-cta { max-width: 520px; }
}
@media (max-width: 768px) {
  .minimal-site.is-home .hero-section { padding: 36px 0 24px; }
  .minimal-site.is-home .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .minimal-site.is-home .hero-heading,
  .minimal-site.is-home .hero-content,
  .minimal-site.is-home .hero-visual { grid-column: 1; grid-row: auto; }
  .minimal-site.is-home .hero-title { font-size: clamp(32px, 8.4vw, 46px); }
  .minimal-site.is-home .hero-desc { font-size: 15px; }
  .minimal-site.is-home .hero-visual { height: 370px; margin-top: 4px; }
  .minimal-site.is-home .hero-phone-front { transform: rotate(-2deg) scale(.64); margin-left: -128px; }
  .minimal-site.is-home .hero-phone-birthday { top: 36px; transform: rotate(-13deg) scale(.64); margin-left: -260px; }
  .minimal-site.is-home .hero-phone-back { top: 32px; transform: rotate(11deg) scale(.64); margin-left: 24px; }
  .minimal-site.is-home .hero-phone-birthday .hero-phone-screen { padding-right: 68px; }
  .minimal-site.is-home .hero-phone-back .hero-phone-screen { padding-left: 68px; }
  .minimal-site.is-home .home-block + #homeYearbookBlock { margin-top: 56px; padding-top: 48px; }
  .minimal-site .home-modes-section { margin-top: 64px; padding: 56px 0; }
  .home-mode-card { padding: 24px; }
  .minimal-site.is-home .home-faq-section { padding-top: 64px; }
  html .minimal-site .home-faq-layout .faq-question { min-height: 60px; padding: 16px 0; font-size: 15.5px; }
  html .minimal-site .home-faq-layout .faq-answer-inner { padding: 0 0 22px; }
  .home-cta-band { margin-top: 56px; padding: 48px 0; }
}
@media (max-width: 600px) {
  .minimal-site.is-home .hero-section { padding: 32px 0 18px; }
  .minimal-site.is-home .hero-actions a { flex: 1 1 100%; justify-content: center; }
  .minimal-site.is-home .hero-visual { height: 282px; margin-top: 0; }
  .minimal-site.is-home .hero-phone-front { transform: rotate(-2deg) scale(.49); margin-left: -128px; }
  .minimal-site.is-home .hero-phone-birthday { top: 24px; transform: rotate(-13deg) scale(.54); margin-left: -232px; }
  .minimal-site.is-home .hero-phone-back { top: 22px; transform: rotate(11deg) scale(.54); margin-left: -4px; }
  .minimal-site.is-home .hero-phone-birthday .hero-phone-screen { padding: 20px 82px 20px 14px; gap: 10px; }
  .minimal-site.is-home .hero-phone-back .hero-phone-screen { padding: 20px 14px 20px 82px; gap: 10px; }
  .minimal-site.is-home .hero-phone-birthday .hero-phone-title,
  .minimal-site.is-home .hero-phone-back .hero-phone-title { font-size: 24px; }
  .minimal-site.is-home .hero-phone-birthday .hero-phone-kicker,
  .minimal-site.is-home .hero-phone-back .hero-phone-kicker { letter-spacing: .12em; }
  .minimal-site.is-home .hero-phone-birthday .hero-phone-note,
  .minimal-site.is-home .hero-phone-back .hero-phone-note { font-size: 9.5px; }
  .home-mode-card { padding: 20px 18px; border-radius: 16px; gap: 12px; }
  .home-mode-title { font-size: 22px; }
  .home-mode-card .zalo-picker-wrap,
  .home-mode-link { width: 100%; }
  .home-modes-sync { align-items: flex-start; gap: 12px; padding: 16px; }
  .home-modes-sync-icon { width: 36px; height: 36px; }
  .home-cta-link { width: 100%; justify-content: center; }
}

/* ==========================================================================
   TRANG CHỦ: TÍNH NĂNG NỔI BẬT & BẢNG GIÁ
   ========================================================================== */
.minimal-site.is-home .home-features-section,
.minimal-site.is-home .home-steps-section,
.minimal-site.is-home .home-pricing-section {
  padding-top: 64px;
}

.home-steps-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--surface, #fffdf9);
  border: 1px solid var(--line, rgba(40, 39, 36, .1));
}

.home-step-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(164, 77, 88, .1);
  color: var(--rose, #a44d58);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.home-step-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink, #282724);
}

.home-step-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #6f6c66);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--surface, #fffdf9);
  border: 1px solid var(--line, rgba(40, 39, 36, .1));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 77, 88, .3);
  box-shadow: 0 14px 30px -18px rgba(40, 39, 36, .2);
}

.home-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(164, 77, 88, .1);
  color: var(--rose, #a44d58);
}

.home-feature-icon svg {
  width: 22px;
  height: 22px;
}

.home-feature-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink, #282724);
}

.home-feature-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted, #6f6c66);
}

/* Bảng giá */
.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 26px;
  border-radius: 22px;
  background: var(--surface, #fffdf9);
  border: 1px solid var(--line, rgba(40, 39, 36, .11));
}

.home-pricing-card--featured {
  border-color: rgba(164, 77, 88, .42);
  background: linear-gradient(180deg, rgba(164, 77, 88, .05) 0%, var(--surface, #fffdf9) 48%);
  box-shadow: 0 20px 40px -24px rgba(164, 77, 88, .35);
}

.home-pricing-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-pricing-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--rose, #a44d58);
}

.home-pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rose, #a44d58);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.home-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.home-pricing-price strong {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink, #282724);
}

.home-pricing-price span {
  font-size: 13.5px;
  color: var(--muted, #6f6c66);
}

.home-pricing-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #6f6c66);
}

.home-pricing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #3f3d38);
}

.home-pricing-list li {
  position: relative;
  padding-left: 22px;
}

.home-pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--rose, #a44d58);
}

.home-pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(40, 39, 36, .18));
  background: transparent;
  color: var(--ink, #282724);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.home-pricing-cta:hover {
  border-color: var(--rose, #a44d58);
  color: var(--rose, #a44d58);
}

.home-pricing-cta.is-primary {
  background: var(--rose, #a44d58);
  border-color: var(--rose, #a44d58);
  color: #fff;
}

.home-pricing-cta.is-primary:hover {
  background: var(--rose-hover, #8e3e49);
  border-color: var(--rose-hover, #8e3e49);
  color: #fff;
}

/* Dark theme overrides */
html[data-theme="dark"] .minimal-site .home-feature-card,
html[data-theme="dark"] .minimal-site .home-step-card,
html[data-theme="dark"] .minimal-site .home-pricing-card {
  background: var(--ms-panel);
  border-color: var(--ms-line);
}

html[data-theme="dark"] .minimal-site .home-feature-card:hover {
  border-color: var(--ms-line-strong);
  background: var(--ms-panel-hover);
}

html[data-theme="dark"] .minimal-site .home-feature-icon,
html[data-theme="dark"] .minimal-site .home-step-badge {
  background: rgba(229, 187, 192, .12);
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .minimal-site .home-feature-title,
html[data-theme="dark"] .minimal-site .home-step-title,
html[data-theme="dark"] .minimal-site .home-pricing-price strong,
html[data-theme="dark"] .minimal-site .home-pricing-cta {
  color: var(--ms-ink);
}

html[data-theme="dark"] .minimal-site .home-feature-desc,
html[data-theme="dark"] .minimal-site .home-step-desc,
html[data-theme="dark"] .minimal-site .home-pricing-price span,
html[data-theme="dark"] .minimal-site .home-pricing-lead {
  color: var(--ms-muted);
}

html[data-theme="dark"] .minimal-site .home-pricing-list {
  color: var(--ms-ink-soft);
}

html[data-theme="dark"] .minimal-site .home-pricing-tier,
html[data-theme="dark"] .minimal-site .home-pricing-list li::before {
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .minimal-site .home-pricing-card--featured {
  border-color: rgba(229, 187, 192, .38);
  background: linear-gradient(180deg, rgba(164, 77, 88, .16) 0%, var(--ms-panel) 52%);
}

html[data-theme="dark"] .minimal-site .home-pricing-cta {
  border-color: var(--ms-line-strong);
}

html[data-theme="dark"] .minimal-site .home-pricing-cta.is-primary {
  color: #fff;
  border-color: var(--ms-rose);
}

@media (max-width: 1000px) {
  .home-features-grid,
  .home-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-pricing-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .minimal-site.is-home .home-features-section,
  .minimal-site.is-home .home-steps-section,
  .minimal-site.is-home .home-pricing-section {
    padding-top: 40px;
  }
  .home-features-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .home-feature-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: start;
    padding: 13px 14px;
    border-radius: 14px;
  }
  .home-feature-icon {
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .home-feature-icon svg {
    width: 18px;
    height: 18px;
  }
  .home-feature-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
  }
  .home-feature-desc {
    font-size: 13px;
    line-height: 1.48;
  }
  .home-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-step-card {
    padding: 14px 12px;
    gap: 6px;
    border-radius: 14px;
  }
  .home-step-badge {
    padding: 2px 8px;
    font-size: 10.5px;
  }
  .home-step-title {
    margin: 2px 0 0;
    font-size: 15.5px;
    line-height: 1.25;
  }
  .home-step-desc {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .home-pricing-card {
    padding: 20px 18px;
    border-radius: 16px;
  }
  .home-cta-title {
    font-size: clamp(19px, 5.4vw, 24px);
    white-space: nowrap;
  }
  .minimal-site.is-home .hero-heading .home-eyebrow {
    font-size: clamp(10.5px, 2.95vw, 12.5px);
    font-weight: 700;
    letter-spacing: 0.04em;
    gap: 7px;
    white-space: nowrap;
  }
  .minimal-site.is-home .hero-heading .home-eyebrow::before {
    width: 14px;
    flex-shrink: 0;
  }
}

/* css/components/client-auth.css */
/* ==========================================================================
   CLIENT AUTH (HEADER LOGIN, USER MENU & GOOGLE LOGIN MODAL)
   ========================================================================== */

.header-auth {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(40, 39, 36, 0.16);
  background: #fffefd;
  color: #282724;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-login-btn:hover {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, 0.35);
  color: #a44d58;
}

.header-login-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 210px;
  padding: 3px 11px 3px 4px;
  border-radius: 999px;
  border: 1px solid rgba(40, 39, 36, 0.14);
  background: #fffefd;
  color: #282724;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-user-btn:hover {
  background: #f6e9eb;
  border-color: rgba(164, 77, 88, 0.35);
}

.header-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(40, 39, 36, 0.1);
}

.header-user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #a44d58;
  color: #fbeedb;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.header-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.header-user-btn[aria-expanded="true"] .header-user-chevron {
  transform: rotate(180deg);
}

/* Header tối của minimal-site (dùng #252522 ở cả light & dark) */
.minimal-site .site-header .header-login-btn,
.minimal-site .site-header .header-user-btn,
html[data-theme="dark"] .header-login-btn,
html[data-theme="dark"] .header-user-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f9f5ef;
}

.minimal-site .site-header .header-login-btn:hover,
.minimal-site .site-header .header-user-btn:hover,
html[data-theme="dark"] .header-login-btn:hover,
html[data-theme="dark"] .header-user-btn:hover {
  background: rgba(164, 77, 88, 0.28);
  border-color: rgba(229, 187, 192, 0.42);
  color: #fff;
}

.minimal-site .site-header .header-user-avatar {
  border-color: rgba(255, 255, 255, 0.2);
}

.header-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border-radius: 14px;
  background: #fffefd;
  border: 1px solid #e8e3dc;
  box-shadow: 0 16px 38px rgba(40, 32, 24, 0.16);
  z-index: 250;
}

.header-user-menu[hidden] {
  display: none;
}

.header-user-menu-profile {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #efeae2;
  margin-bottom: 6px;
}

.header-user-menu-profile strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #282724;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-menu-profile span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #77736d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a44d58;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.header-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  color: #282724;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

.header-menu-link:hover {
  background: #f4efe8;
  color: #282724;
}

.header-menu-link svg {
  width: 16px;
  height: 16px;
}

html[data-theme="dark"] .header-menu-link {
  color: #f9f5ef;
}

html[data-theme="dark"] .header-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-logout-btn:hover {
  background: #f6e9eb;
}

.header-logout-btn svg {
  width: 16px;
  height: 16px;
}

html[data-theme="dark"] .header-user-menu {
  background: #2e2d2a;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .header-user-menu-profile {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .header-user-menu-profile strong {
  color: #f9f5ef;
}

html[data-theme="dark"] .header-user-menu-profile span {
  color: #c9c5bd;
}

html[data-theme="dark"] .header-logout-btn {
  color: #e5bbc0;
}

html[data-theme="dark"] .header-logout-btn:hover {
  background: rgba(164, 77, 88, 0.22);
}

/* Login Modal */
.client-auth-backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: rgba(30, 27, 24, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.client-auth-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.client-auth-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #fffefd;
  border: 1px solid #e8e3dc;
  box-shadow: 0 24px 60px rgba(40, 32, 24, 0.24);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.24s ease;
}

.client-auth-backdrop.active .client-auth-dialog {
  transform: translateY(0) scale(1);
}

.client-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1ece6;
  color: #6b655e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.client-auth-close:hover {
  background: #f6e9eb;
  color: #a44d58;
}

.client-auth-close svg {
  width: 17px;
  height: 17px;
}

.client-auth-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #a44d58;
  color: #fbeedb;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 18px;
  font-weight: 700;
}

.client-auth-title {
  margin: 0 0 8px;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 24px;
  font-weight: 700;
  color: #282724;
}

.client-auth-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #6b655e;
}

.client-auth-google-box {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.client-auth-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b655e;
}

.client-auth-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdf2f2;
  border: 1px solid #f5c2c7;
  color: #9e2a35;
  font-size: 12.5px;
  line-height: 1.45;
}

.client-auth-error[hidden] {
  display: none;
}

.client-auth-note {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8c857d;
}

.client-auth-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  box-sizing: border-box;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: 11px 18px;
  border-radius: 12px;
  background: #252522;
  color: #f9f5ef;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  z-index: 1300;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.client-auth-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.client-auth-toast.error {
  background: #9e2a35;
}

html[data-theme="dark"] .client-auth-dialog {
  background: #2e2d2a;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .client-auth-close {
  background: rgba(255, 255, 255, 0.08);
  color: #c9c5bd;
}

html[data-theme="dark"] .client-auth-close:hover {
  background: rgba(164, 77, 88, 0.3);
  color: #f9f5ef;
}

html[data-theme="dark"] .client-auth-title {
  color: #f9f5ef;
}

html[data-theme="dark"] .client-auth-subtitle,
html[data-theme="dark"] .client-auth-status {
  color: #c9c5bd;
}

html[data-theme="dark"] .client-auth-note {
  color: #a39d94;
}

html[data-theme="dark"] .client-auth-error {
  background: rgba(164, 42, 53, 0.2);
  border-color: rgba(229, 130, 140, 0.35);
  color: #f5b7bd;
}

/* Responsive mobile header alignment: giữ logo và các nút gọn trên 1 hàng */
@media (max-width: 768px) {
  .minimal-site .header-inner {
    height: 68px;
    gap: 8px;
  }

  .minimal-site .site-header .brand-logo {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .minimal-site .site-header .brand-icon-wrapper {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .minimal-site .site-header .brand-info {
    min-width: 0;
  }

  .minimal-site .site-header .brand-title {
    font-size: clamp(14.5px, 4vw, 18px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .minimal-site .site-header .brand-tagline {
    font-size: 7.5px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .minimal-site .header-actions {
    gap: 5px;
  }

  .minimal-site .theme-toggle {
    width: 34px;
    height: 34px;
    margin-left: 0;
  }

  .minimal-site .mobile-nav-toggle {
    width: 36px;
    height: 36px;
  }

  .header-login-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    gap: 4px;
  }

  /* Mobile: gọn thành nút avatar + chevron để không chèn ép logo */
  .header-user-btn {
    height: 34px;
    max-width: none;
    padding: 2px 8px 2px 3px;
    gap: 4px;
  }

  .header-user-name {
    display: none;
  }

  .header-user-avatar,
  .header-user-avatar-fallback {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 440px) {
  .header-login-btn svg {
    display: none;
  }

  .header-login-btn {
    padding: 0 9px;
    font-size: 11.5px;
  }
}

@media (max-width: 350px) {
  .minimal-site .site-header .brand-tagline {
    display: none;
  }
}

/* ==========================================================================
   NAV ITEM & SECTION "THIỆP CỦA TÔI"
   ========================================================================== */
.nav-item-auth-only[hidden] {
  display: none !important;
}

@media (min-width: 769px) {
  .minimal-site .nav-list {
    gap: clamp(14px, 1.7vw, 26px);
  }

  .minimal-site .nav-link {
    white-space: nowrap;
  }
}

.nav-icon-my-cards {
  background: rgba(164, 77, 88, 0.12);
  color: #a44d58;
}

.minimal-site.is-my-cards .hero-section {
  display: none;
}

.my-cards-section {
  padding: 52px 0 92px;
  min-height: 55vh;
  scroll-margin-top: 84px;
}

.my-cards-header {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line, #e8e3dc);
}

.my-cards-header-main {
  width: 100%;
}

.my-cards-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-cards-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  height: 34px;
  padding: 0 12px 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(164, 77, 88, 0.3);
  background: rgba(164, 77, 88, 0.08);
  color: var(--rose, #a44d58);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.my-cards-guide-trigger:hover {
  background: rgba(164, 77, 88, 0.15);
  border-color: rgba(164, 77, 88, 0.5);
}

.my-cards-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose, #a44d58);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

html[data-theme="dark"] .my-cards-guide-trigger {
  background: rgba(229, 187, 192, 0.12);
  border-color: rgba(229, 187, 192, 0.3);
  color: #f3c6cc;
}

html[data-theme="dark"] .my-cards-guide-trigger:hover {
  background: rgba(229, 187, 192, 0.2);
}

.my-cards-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.my-cards-tab-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-cards-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--rose, #a44d58);
  background: var(--rose, #a44d58);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(164, 77, 88, 0.22);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.my-cards-create-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.my-cards-create-btn:hover:not(:disabled) {
  background: var(--rose-dark, #833b46);
  border-color: var(--rose-dark, #833b46);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(164, 77, 88, 0.3);
}

.my-cards-create-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.my-cards-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line, #e8e3dc);
  background: var(--panel, #fffefd);
  color: var(--muted, #6f6b65);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.my-cards-tab:hover {
  color: var(--ink, #282724);
  border-color: rgba(164, 77, 88, 0.35);
}

.my-cards-tab.is-active {
  background: var(--rose, #a44d58);
  border-color: var(--rose, #a44d58);
  color: #fff;
}

.my-cards-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(40, 39, 36, 0.08);
  color: inherit;
}

.my-cards-tab.is-active .my-cards-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

html[data-theme="dark"] .my-cards-tab {
  background: var(--ms-panel);
  border-color: var(--ms-line);
  color: var(--ms-muted);
}

html[data-theme="dark"] .my-cards-tab:hover {
  color: var(--ms-ink);
  border-color: rgba(229, 187, 192, 0.35);
}

html[data-theme="dark"] .my-cards-tab.is-active {
  background: var(--ms-rose);
  border-color: var(--ms-rose);
  color: #fff;
}

html[data-theme="dark"] .my-cards-tab-count {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .my-cards-create-btn {
  background: var(--ms-rose, #a44d58);
  border-color: var(--ms-rose, #a44d58);
  color: #ffffff;
}

.my-cards-header .home-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--rose, #a44d58);
}

.my-cards-title {
  margin: 0 0 6px;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink, #282724);
}

.my-cards-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #6f6b65);
}

.my-cards-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line, #e8e3dc);
  background: var(--panel, #fffefd);
  color: var(--ink, #282724);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.my-cards-refresh-btn:hover:not(:disabled) {
  border-color: var(--rose, #a44d58);
  color: var(--rose, #a44d58);
}

.my-cards-refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.my-cards-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.my-cards-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.my-cards-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-cards-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line, #e8e3dc);
}

.my-cards-group-title {
  margin: 0;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #282724);
}

.my-cards-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--rose-soft, #f6e9eb);
  color: var(--rose, #a44d58);
}

html[data-theme="dark"] .my-cards-group-header {
  border-bottom-color: var(--ms-line, rgba(255, 255, 255, 0.1));
}

html[data-theme="dark"] .my-cards-group-title {
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .my-cards-group-count {
  background: var(--ms-rose-soft, rgba(182, 108, 118, 0.2));
  color: var(--ms-rose-glow, #e5bbc0);
}

.my-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(348px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.my-card-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  padding: 18px 20px 16px;
  border-radius: 20px;
  background: var(--panel, #fffefd);
  border: 1px solid var(--line, #e8e3dc);
  box-shadow: 0 10px 28px rgba(40, 32, 24, 0.055);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.my-card-row:hover {
  transform: translateY(-3px);
  border-color: rgba(164, 77, 88, 0.34);
  box-shadow: 0 18px 40px rgba(45, 34, 28, 0.09);
}

.my-card-row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.my-card-head-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.my-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
}

.my-card-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f3efe8;
  color: #5c564e;
  white-space: nowrap;
}

.my-card-status.is-active {
  background: rgba(58, 125, 68, 0.13);
  color: #2c6d38;
}

.my-card-status.is-deposit {
  background: rgba(194, 149, 98, 0.18);
  color: #8c5b2e;
}

.my-card-name {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink, #282724);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-card-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(40, 39, 36, 0.025);
  border: 1px solid rgba(40, 39, 36, 0.055);
}

.my-card-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(40, 39, 36, 0.08);
}

.my-card-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.my-card-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.my-card-spec-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted, #77736d);
  flex-shrink: 0;
}

.my-card-spec-val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #282724);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-card-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
  padding: 7px 10px;
  border-radius: 11px;
  background: #faf8f4;
  border: 1px solid var(--line, #e8e3dc);
  font-size: 12px;
}

.my-card-link-icon {
  width: 14px;
  height: 14px;
  color: var(--muted, #77736d);
  flex-shrink: 0;
}

.my-card-full-url {
  flex: 1;
  min-width: 0;
  color: var(--rose, #a44d58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-card-full-url:hover {
  text-decoration: underline;
}

.my-card-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line, #e8e3dc);
  background: #fffefd;
  color: var(--muted, #6f6b65);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.my-card-copy-btn:hover {
  background: var(--rose-soft, #f6e9eb);
  border-color: rgba(164, 77, 88, 0.35);
  color: var(--rose, #a44d58);
}

.my-card-copy-btn svg {
  width: 13px;
  height: 13px;
}

.my-card-row-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 2px;
}

.my-card-primary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.my-card-utility-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed var(--line, #e8e3dc);
}

.my-card-open-btn,
.my-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.my-card-open-btn svg,
.my-card-action-btn svg {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
}

.my-card-action-btn {
  border: 1px solid var(--line, #e8e3dc);
  background: transparent;
  color: var(--ink, #282724);
}

.my-card-open-btn {
  border: 1px solid var(--rose, #a44d58);
  background: var(--rose, #a44d58);
  color: #ffffff;
}

.my-card-open-btn:hover {
  background: var(--rose-dark, #833b46);
  border-color: var(--rose-dark, #833b46);
  color: #ffffff;
}

.my-card-manage-btn {
  border-color: rgba(164, 77, 88, 0.3);
  background: rgba(164, 77, 88, 0.08);
  color: var(--rose, #a44d58);
}

.my-card-manage-btn:hover:not(:disabled) {
  background: rgba(164, 77, 88, 0.15);
  border-color: var(--rose, #a44d58);
}

.my-card-utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted, #6f6b65);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.my-card-utility-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.my-card-edit-btn:hover,
.my-card-copy-mgmt-btn:hover:not(:disabled),
.my-card-duplicate-btn:hover:not(:disabled) {
  background: #f4efe8;
  border-color: var(--line, #e8e3dc);
  color: var(--ink, #282724);
}

.my-card-copy-mgmt-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.my-card-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(164, 77, 88, 0.3);
  background: rgba(164, 77, 88, 0.07);
  color: var(--rose, #a44d58);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.my-card-help-btn:hover {
  background: var(--rose, #a44d58);
  border-color: var(--rose, #a44d58);
  color: #ffffff;
}

.my-card-action-btn:disabled,
.my-card-utility-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.my-card-delete-btn {
  margin-left: 0;
  flex-shrink: 0;
  color: #b4434e;
}

.my-card-duplicate-btn {
  margin-left: auto;
}

.my-card-delete-btn:hover {
  background: #fdf2f2;
  border-color: rgba(164, 59, 70, 0.25);
  color: #9e2d39;
}

.my-card-pending-url {
  display: inline-block;
  font-size: 12.5px;
  color: var(--muted, #6f6b65);
}

.my-cards-state-box {
  max-width: 560px;
  margin: 24px auto;
  padding: 40px 28px;
  border-radius: 22px;
  background: var(--panel, #fffefd);
  border: 1px solid var(--line, #e8e3dc);
  text-align: center;
  box-shadow: 0 12px 32px rgba(40, 32, 24, 0.06);
}

.my-cards-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--rose-soft, #f6e9eb);
  color: var(--rose, #a44d58);
}

.my-cards-state-icon svg {
  width: 26px;
  height: 26px;
}

.my-cards-state-box h1,
.my-cards-state-box h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink, #282724);
}

.my-cards-state-box p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted, #6f6b65);
}

.my-cards-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-cards-primary-btn,
.my-cards-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.my-cards-primary-btn {
  border: 0;
  background: var(--rose, #a44d58);
  color: #fff;
}

.my-cards-primary-btn:hover {
  background: var(--rose-dark, #833b46);
  color: #fff;
}

.my-cards-secondary-btn {
  border: 1px solid var(--line, #e8e3dc);
  background: transparent;
  color: var(--ink, #282724);
}

.my-cards-secondary-btn:hover {
  border-color: var(--ink, #282724);
}

.my-card-row.is-skeleton {
  gap: 16px;
}

.my-card-row.is-skeleton .my-card-row-main {
  display: grid;
  gap: 10px;
}

.my-card-skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: rgba(40, 39, 36, 0.08);
}

.my-card-skeleton-line.is-short {
  width: 42%;
}

.my-card-skeleton-line.is-title {
  height: 24px;
  width: 75%;
}

.my-card-skeleton-line.is-btn {
  height: 38px;
  width: 120px;
  border-radius: 999px;
  margin-top: 8px;
}

html[data-theme="dark"] .my-cards-header {
  border-bottom-color: var(--ms-line);
}

html[data-theme="dark"] .my-cards-header .home-eyebrow,
html[data-theme="dark"] .my-card-kind {
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .my-cards-title,
html[data-theme="dark"] .my-card-name,
html[data-theme="dark"] .my-card-spec-val,
html[data-theme="dark"] .my-cards-state-box h1,
html[data-theme="dark"] .my-cards-state-box h2 {
  color: var(--ms-ink);
}

html[data-theme="dark"] .my-cards-subtitle,
html[data-theme="dark"] .my-card-spec-label,
html[data-theme="dark"] .my-card-link-icon,
html[data-theme="dark"] .my-card-pending-url,
html[data-theme="dark"] .my-cards-state-box p {
  color: var(--ms-muted);
}

html[data-theme="dark"] .my-card-row,
html[data-theme="dark"] .my-cards-state-box,
html[data-theme="dark"] .my-cards-refresh-btn {
  background: var(--ms-panel);
  border-color: var(--ms-line);
  color: var(--ms-ink);
}

html[data-theme="dark"] .my-card-specs {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--ms-line);
}

html[data-theme="dark"] .my-card-spec-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .my-card-link-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ms-line);
}

html[data-theme="dark"] .my-card-full-url {
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .my-card-copy-btn,
html[data-theme="dark"] .my-card-utility-btn {
  color: var(--ms-muted);
}

html[data-theme="dark"] .my-card-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ms-line-strong);
  color: var(--ms-ink);
}

html[data-theme="dark"] .my-card-copy-btn:hover {
  background: var(--ms-rose-soft);
  border-color: rgba(229, 187, 192, 0.4);
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .my-card-edit-btn:hover,
html[data-theme="dark"] .my-card-copy-mgmt-btn:hover:not(:disabled),
html[data-theme="dark"] .my-card-duplicate-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ms-line-strong);
  color: var(--ms-ink);
}

html[data-theme="dark"] .my-card-delete-btn {
  color: #f5b7bd;
}

html[data-theme="dark"] .my-card-delete-btn:hover {
  background: rgba(164, 42, 53, 0.24);
  border-color: rgba(229, 130, 140, 0.32);
}

html[data-theme="dark"] .my-card-status {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ms-muted);
}

html[data-theme="dark"] .my-card-status.is-active {
  background: rgba(143, 209, 154, 0.16);
  color: #8fd19a;
}

html[data-theme="dark"] .my-card-status.is-deposit {
  background: var(--ms-gold-soft);
  color: var(--ms-gold);
}

html[data-theme="dark"] .my-cards-state-icon {
  background: var(--ms-rose-soft);
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .my-cards-secondary-btn {
  border-color: var(--ms-line-strong);
  color: var(--ms-ink);
}

html[data-theme="dark"] .my-card-skeleton-line {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .my-card-utility-actions {
  border-top-color: var(--ms-line);
}

@media (max-width: 820px) {
  .my-cards-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
  }

  .my-card-row {
    padding: 18px 16px 14px;
  }
}

@media (max-width: 600px) {
  .my-cards-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .my-cards-section {
    padding: 20px 0 56px;
  }

  .my-cards-tabs {
    gap: 8px;
    margin-bottom: 12px;
  }

  .my-cards-tab-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 6px;
    padding-bottom: 2px;
  }

  .my-cards-tab-list::-webkit-scrollbar {
    display: none;
  }

  .my-cards-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    justify-content: center;
    height: 34px;
    padding: 0 11px;
    gap: 6px;
    font-size: 12px;
  }

  .my-cards-tab > span:first-child {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .my-cards-tab-count {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10.5px;
  }

  .my-cards-create-btn {
    width: 100%;
    height: 38px;
    font-size: 13px;
  }

  .my-cards-policy-note {
    margin: 14px 0 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.42;
  }

  .my-card-primary-actions {
    flex-wrap: wrap;
  }

  .my-card-primary-actions .my-card-action-btn {
    min-width: calc(50% - 4px);
  }

  .my-card-utility-actions {
    flex-wrap: nowrap;
    gap: 2px;
  }

  .my-card-utility-actions .my-card-utility-btn {
    padding: 0 4px;
    gap: 3px;
    font-size: 10.5px;
  }
}

/* Preview Modal: Tạo thiệp button */
.btn-modal-create {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(164, 77, 88, 0.35);
  background: rgba(164, 77, 88, 0.08);
  color: var(--rose, #a44d58);
  cursor: pointer;
  transition: all var(--transition-fast, 0.18s ease);
}

.btn-modal-create:hover {
  background: rgba(164, 77, 88, 0.15);
  border-color: var(--rose, #a44d58);
  transform: translateY(-1px);
}

.btn-modal-create svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

html[data-theme="dark"] .btn-modal-create {
  background: rgba(182, 108, 118, 0.14);
  border-color: rgba(229, 187, 192, 0.35);
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .btn-modal-create:hover {
  background: rgba(182, 108, 118, 0.24);
  border-color: rgba(229, 187, 192, 0.6);
}

/* Client Create Card Modal */
.client-create-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 17, 15, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.client-create-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.client-create-modal-dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  border-radius: 18px;
  background: var(--panel, #fffefd);
  border: 1px solid var(--line, #e8e3dc);
  box-shadow: 0 28px 70px rgba(18, 14, 10, 0.34);
  color: var(--ink, #282724);
  transform: translateY(8px);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-create-modal-backdrop.active .client-create-modal-dialog {
  transform: none;
}

.client-create-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line, #e8e3dc);
}

.client-create-modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.client-create-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(164, 77, 88, 0.12);
  color: var(--rose, #a44d58);
}

.client-create-modal-title {
  margin: 0;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink, #282724);
}

.client-create-modal-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted, #6f6b65);
}

.client-create-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted, #6f6b65);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.client-create-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink, #282724);
}

.client-create-modal-form {
  padding: 20px 24px 22px;
}

.client-create-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.client-create-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.client-create-field[hidden] {
  display: none;
}

.client-create-field--full {
  grid-column: 1 / -1;
}

.client-create-field label,
.client-create-field .cc-label-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #282724);
}

.cc-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cc-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(164, 77, 88, 0.35);
  background: rgba(164, 77, 88, 0.08);
  color: var(--rose, #a44d58);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cc-help-btn:hover,
.cc-help-btn[aria-expanded="true"] {
  background: var(--rose, #a44d58);
  border-color: var(--rose, #a44d58);
  color: #ffffff;
}

.cc-tier-help {
  margin-top: 4px;
}

.cc-tier-help[hidden] {
  display: none;
}

.cp-tier-card--info {
  cursor: default;
  padding: 12px 14px;
}

.cc-required {
  color: var(--rose, #a44d58);
}

.client-create-field input[type="text"],
.client-create-field input[type="tel"],
.client-create-field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line, #e8e3dc);
  background: var(--bg, #fbf9f6);
  color: var(--ink, #282724);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.client-create-field textarea {
  resize: vertical;
  min-height: 68px;
}

.client-create-field input:focus,
.client-create-field textarea:focus {
  outline: none;
  border-color: var(--rose, #a44d58);
  box-shadow: 0 0 0 3px rgba(164, 77, 88, 0.12);
}

.client-create-field input:disabled {
  background: #f1ece6;
  color: var(--muted, #6f6b65);
  cursor: not-allowed;
  opacity: 0.9;
}

.cc-date-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cc-date-wrap input[type="text"] {
  padding-right: 40px;
}

.cc-date-native {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
}

.cc-date-picker-btn {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #6f6b65);
  cursor: pointer;
}

.cc-date-picker-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink, #282724);
}

.cc-field-hint {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted, #6f6b65);
}

.cc-radio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cc-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line, #e8e3dc);
  background: var(--bg, #fbf9f6);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.cc-radio-card input[type="radio"] {
  accent-color: var(--rose, #a44d58);
  width: 16px;
  height: 16px;
  margin: 0;
}

.cc-radio-card.is-selected {
  border-color: var(--rose, #a44d58);
  background: rgba(164, 77, 88, 0.09);
  color: var(--rose-dark, #833b46);
}

.cc-form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(180, 42, 54, 0.1);
  border: 1px solid rgba(180, 42, 54, 0.28);
  color: #a42a35;
  font-size: 13px;
  font-weight: 500;
}

.client-create-modal-backdrop.is-picker-only .client-create-form-grid {
  display: none;
}

.client-create-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e8e3dc);
}

.cc-btn-cancel,
.cc-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cc-btn-cancel {
  border: 1px solid var(--line, #e8e3dc);
  background: var(--panel, #fffefd);
  color: var(--ink, #282724);
}

.cc-btn-cancel:hover {
  background: #f4f0ea;
}

.cc-btn-submit {
  border: 0;
  background: var(--rose, #a44d58);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(164, 77, 88, 0.25);
}

.cc-btn-submit:hover:not(:disabled) {
  background: var(--rose-dark, #833b46);
  transform: translateY(-1px);
}

.cc-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

html[data-theme="dark"] .client-create-modal-dialog {
  background: var(--ms-surface, #1e1c1a);
  border-color: var(--ms-line, rgba(255, 255, 255, 0.1));
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .client-create-modal-header,
html[data-theme="dark"] .client-create-modal-footer {
  border-color: var(--ms-line, rgba(255, 255, 255, 0.1));
}

html[data-theme="dark"] .client-create-modal-title,
html[data-theme="dark"] .client-create-field label,
html[data-theme="dark"] .client-create-field .cc-label-text {
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .client-create-modal-subtitle,
html[data-theme="dark"] .cc-field-hint,
html[data-theme="dark"] .cc-date-picker-btn {
  color: var(--ms-muted, #a7a098);
}

html[data-theme="dark"] .client-create-modal-close:hover,
html[data-theme="dark"] .cc-date-picker-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .client-create-field input[type="text"],
html[data-theme="dark"] .client-create-field input[type="tel"],
html[data-theme="dark"] .client-create-field textarea,
html[data-theme="dark"] .cc-radio-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.14));
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .client-create-field input:disabled {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ms-muted, #a7a098);
}

html[data-theme="dark"] .cc-radio-card.is-selected {
  border-color: var(--ms-rose-glow, #e5bbc0);
  background: rgba(182, 108, 118, 0.16);
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-help-btn,
html[data-theme="dark"] .my-card-help-btn {
  border-color: rgba(229, 187, 192, 0.35);
  background: rgba(229, 187, 192, 0.12);
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-help-btn:hover,
html[data-theme="dark"] .cc-help-btn[aria-expanded="true"],
html[data-theme="dark"] .my-card-help-btn:hover {
  background: var(--ms-rose-glow, #e5bbc0);
  border-color: var(--ms-rose-glow, #e5bbc0);
  color: #1e1c1a;
}

html[data-theme="dark"] .cc-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.14));
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .cc-form-error {
  background: rgba(180, 42, 54, 0.2);
  border-color: rgba(229, 130, 140, 0.35);
  color: #f5b7bd;
}

/* Selected Template Summary Card inside Client Create Modal */
.cc-selected-template-wrap {
  margin-bottom: 18px;
}

.cc-selected-template {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg, #fbf9f6);
  border: 1px solid var(--line, #e8e3dc);
}

.cc-change-template-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong, #dcd4cb);
  background: #ffffff;
  color: var(--rose, #a44d58);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cc-change-template-btn:hover,
.cc-change-template-btn[aria-expanded="true"] {
  background: rgba(164, 77, 88, 0.08);
  border-color: var(--rose, #a44d58);
}

.cc-template-picker {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line, #e8e3dc);
  background: var(--bg, #fbf9f6);
}

.cc-template-picker-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.cc-picker-kinds {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cc-picker-kinds::-webkit-scrollbar {
  display: none;
}

.cc-picker-kind-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line, #e8e3dc);
  background: #ffffff;
  color: var(--muted, #6f6b65);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cc-picker-kind-btn.is-active {
  background: var(--rose, #a44d58);
  border-color: var(--rose, #a44d58);
  color: #ffffff;
}

html[data-theme="dark"] .cc-picker-kind-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ms-muted, #c9c5bd);
}

html[data-theme="dark"] .cc-picker-kind-btn.is-active {
  background: var(--ms-rose, #a44d58);
  border-color: var(--ms-rose, #a44d58);
  color: #ffffff;
}

.cc-template-search {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line, #e8e3dc);
  background: #ffffff;
  color: var(--ink, #282724);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
}

.cc-template-search:focus {
  border-color: var(--rose, #a44d58);
}

.cc-template-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 276px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  padding-right: 4px;
}

.cc-template-picker-empty {
  grid-column: 1 / -1;
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #6f6b65);
}

.cc-template-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line, #e8e3dc);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.cc-template-option:hover {
  border-color: rgba(164, 77, 88, 0.45);
}

.cc-template-option.is-selected {
  border-color: var(--rose, #a44d58);
  background: rgba(164, 77, 88, 0.06);
}

.cc-template-option-thumb {
  width: 36px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line, #e8e3dc);
  background: #f1ece6;
}

.cc-template-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-template-option-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cc-template-option-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #282724);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-template-option-check {
  flex-shrink: 0;
  color: var(--rose, #a44d58);
  opacity: 0;
}

.cc-template-option.is-selected .cc-template-option-check {
  opacity: 1;
}

.cc-selected-thumb-wrap {
  width: 52px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line, #e8e3dc);
  background: #f1ece6;
}

.cc-selected-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-selected-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-selected-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-selected-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose, #a44d58);
}

.cc-selected-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: #f1ece6;
  color: #5c5750;
}

.cc-selected-badge.is-premium {
  background: rgba(194, 149, 98, 0.2);
  color: #8c5b2e;
}

.cc-selected-badge.is-new {
  background: rgba(164, 77, 88, 0.14);
  color: var(--rose, #a44d58);
}

.cc-selected-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, #282724);
}

.cc-selected-tags {
  font-size: 12px;
  color: var(--muted, #6f6b65);
}

html[data-theme="dark"] .cc-selected-template {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.14));
}

html[data-theme="dark"] .cc-selected-thumb-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ms-line, rgba(255, 255, 255, 0.1));
}

html[data-theme="dark"] .cc-selected-eyebrow {
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-selected-title {
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-selected-tags {
  color: var(--ms-muted, #a7a098);
}

html[data-theme="dark"] .cc-selected-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ms-muted, #a7a098);
}

html[data-theme="dark"] .cc-selected-badge.is-premium {
  background: rgba(212, 168, 114, 0.2);
  color: #e6c292;
}

html[data-theme="dark"] .cc-selected-badge.is-new {
  background: rgba(182, 108, 118, 0.22);
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-change-template-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.16));
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-change-template-btn:hover,
html[data-theme="dark"] .cc-change-template-btn[aria-expanded="true"] {
  background: rgba(182, 108, 118, 0.2);
  border-color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-template-picker {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.14));
}

html[data-theme="dark"] .cc-template-search {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.16));
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-template-option {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ms-line, rgba(255, 255, 255, 0.12));
}

html[data-theme="dark"] .cc-template-option.is-selected {
  background: rgba(182, 108, 118, 0.18);
  border-color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-template-option-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ms-line, rgba(255, 255, 255, 0.1));
}

html[data-theme="dark"] .cc-template-option-title {
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-template-option-check {
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-template-picker-empty {
  color: var(--ms-muted, #a7a098);
}

html[data-theme="dark"] .my-card-manage-btn {
  background: rgba(182, 108, 118, 0.16);
  border-color: rgba(229, 187, 192, 0.35);
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .my-card-manage-btn:hover:not(:disabled) {
  background: rgba(182, 108, 118, 0.25);
  border-color: rgba(229, 187, 192, 0.55);
}

/* Confirm Delete Modal */
.cc-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 20, 18, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cc-confirm-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cc-confirm-dialog {
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  border-radius: 18px;
  background: var(--panel, #fffefd);
  border: 1px solid var(--line, #e8e3dc);
  box-shadow: 0 24px 60px rgba(18, 14, 10, 0.34);
  text-align: center;
  color: var(--ink, #282724);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-confirm-backdrop.active .cc-confirm-dialog {
  transform: scale(1) translateY(0);
}

.cc-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(164, 59, 70, 0.12);
  color: #a43b46;
}

.cc-confirm-title {
  margin: 0 0 8px;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #282724);
}

.cc-confirm-text {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #6f6b65);
}

.cc-confirm-text strong {
  color: var(--ink, #282724);
}

.cc-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cc-confirm-actions .cc-btn-cancel,
.cc-confirm-actions .cc-btn-danger {
  flex: 1 1 0;
  height: 40px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.cc-btn-danger {
  border: 0;
  background: #b42b38;
  color: #ffffff;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.cc-btn-danger:hover:not(:disabled) {
  background: #961f2b;
  transform: translateY(-1px);
}

.cc-btn-danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

html[data-theme="dark"] .cc-confirm-dialog {
  background: var(--ms-surface, #1e1c1a);
  border-color: var(--ms-line, rgba(255, 255, 255, 0.1));
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-confirm-title,
html[data-theme="dark"] .cc-confirm-text strong {
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-confirm-text {
  color: var(--ms-muted, #a7a098);
}

.cc-guide-dialog {
  width: min(470px, 100%);
}

.cc-guide-icon {
  background: rgba(164, 77, 88, 0.12);
  color: var(--rose, #a44d58);
}

.cc-guide-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #6f6b65);
}

.cc-guide-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(107, 45, 62, 0.04);
  border: 1px solid rgba(107, 45, 62, 0.1);
}

.cc-guide-list li strong {
  color: var(--ink, #282724);
}

.cc-guide-list li.is-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
  color: #92400e;
}

.cc-guide-list li.is-warning strong {
  color: #78350f;
}

.cc-confirm-actions .cc-btn-submit {
  min-width: 140px;
}

html[data-theme="dark"] .cc-guide-icon {
  background: rgba(229, 187, 192, 0.14);
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-guide-list {
  color: var(--ms-muted, #a7a098);
}

html[data-theme="dark"] .cc-guide-list li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .cc-guide-list li strong {
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-guide-list li.is-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fcd34d;
}

html[data-theme="dark"] .cc-guide-list li.is-warning strong {
  color: #fde68a;
}

html[data-theme="dark"] .cc-confirm-icon {
  background: rgba(229, 130, 140, 0.18);
  color: #f5b7bd;
}

/* Linked Cards & Duplicate Modal */
.my-card-tier.is-linked {
  background: rgba(107, 45, 62, 0.09);
  border-color: rgba(107, 45, 62, 0.22);
  color: var(--burgundy, #6b2d3e);
}

.cc-confirm-linked-list {
  margin: 0 0 18px;
  padding: 10px 14px 10px 28px;
  border-radius: 10px;
  background: rgba(164, 42, 53, 0.07);
  border: 1px solid rgba(164, 42, 53, 0.2);
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: #8f242e;
}

.cc-duplicate-dialog {
  width: min(460px, 100%);
  text-align: left;
}

.cc-duplicate-dialog .cc-confirm-icon {
  display: flex;
  margin: 0 auto 14px;
}

.cc-duplicate-dialog .cc-confirm-icon,
.cc-duplicate-dialog .cc-confirm-title,
.cc-duplicate-dialog .cc-confirm-text {
  text-align: center;
}

.cc-duplicate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.cc-duplicate-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #282724);
}

.cc-duplicate-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line, #e2dcd3);
  background: #fffdf9;
  color: var(--ink, #282724);
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cc-duplicate-field input:focus {
  border-color: var(--rose, #a44d58);
  box-shadow: 0 0 0 3px rgba(164, 77, 88, 0.12);
}

.cc-duplicate-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #6f6b65);
}

.cc-duplicate-error {
  min-height: 16px;
  font-size: 12px;
  color: #a42a35;
}

.cc-duplicate-link.is-locked {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(107, 45, 62, 0.04);
  border: 1px solid rgba(107, 45, 62, 0.14);
  cursor: not-allowed;
}

.cc-duplicate-link.is-locked input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--burgundy, #6b2d3e);
  cursor: not-allowed;
}

.cc-duplicate-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-duplicate-link-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #282724);
}

.cc-duplicate-link-text span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #6f6b65);
}

#ccDuplicateCardModal .cc-btn-submit {
  background: var(--burgundy, #6b2d3e);
  color: #fff;
}

#ccDuplicateCardModal .cc-btn-submit:hover:not(:disabled) {
  background: #582332;
}

html[data-theme="dark"] .my-card-tier.is-linked {
  background: rgba(229, 187, 192, 0.14);
  border-color: rgba(229, 187, 192, 0.28);
  color: var(--ms-rose-glow, #e5bbc0);
}

html[data-theme="dark"] .cc-confirm-linked-list {
  background: rgba(229, 130, 140, 0.14);
  border-color: rgba(229, 130, 140, 0.3);
  color: #f5b7bd;
}

html[data-theme="dark"] .cc-duplicate-field-label,
html[data-theme="dark"] .cc-duplicate-link-text strong {
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-duplicate-field input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.14));
  color: var(--ms-ink, #f4efe8);
}

html[data-theme="dark"] .cc-duplicate-field input:focus {
  border-color: var(--ms-rose-glow, #e5bbc0);
  box-shadow: 0 0 0 3px rgba(229, 187, 192, 0.14);
}

html[data-theme="dark"] .cc-duplicate-hint,
html[data-theme="dark"] .cc-duplicate-link-text span {
  color: var(--ms-muted, #a7a098);
}

html[data-theme="dark"] .cc-duplicate-error {
  color: #f5b7bd;
}

html[data-theme="dark"] .cc-duplicate-link.is-locked {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ms-line-strong, rgba(255, 255, 255, 0.14));
}

html[data-theme="dark"] #ccDuplicateCardModal .cc-btn-submit {
  background: var(--ms-rose-glow, #e5bbc0);
  color: #1f1719;
}

html[data-theme="dark"] #ccDuplicateCardModal .cc-btn-submit:hover:not(:disabled) {
  background: #f0ccd1;
}

/* Expired Trial Notice & Activate CTA */
.my-card-row.is-trial-expired {
  border-color: rgba(198, 92, 54, 0.35);
}

.my-card-status.is-expired {
  background: rgba(198, 72, 60, 0.14);
  color: #a9362b;
}

.my-card-trial-warning {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.09);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #9a4b06;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.my-card-trial-warning svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.my-card-activate-btn {
  border: 1px solid #c26507;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.18);
}

.my-card-activate-btn:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
}

html[data-theme="dark"] .my-card-row.is-trial-expired {
  border-color: rgba(245, 158, 11, 0.36);
}

html[data-theme="dark"] .my-card-status.is-expired {
  background: rgba(239, 108, 96, 0.2);
  color: #f6aba4;
}

html[data-theme="dark"] .my-card-trial-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fcd34d;
}

.my-cards-policy-note {
  margin: 20px 0 0;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-left: 3px solid #d97706;
  color: #8a4b08;
  font-size: 13px;
  line-height: 1.5;
}

html[data-theme="dark"] .my-cards-policy-note {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fcd34d;
}

.my-card-tier {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(107, 45, 62, 0.18);
  background: rgba(107, 45, 62, 0.06);
  color: #6b2d3e;
  white-space: nowrap;
}

.my-card-tier.is-premium {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.14), rgba(180, 83, 9, 0.12));
  border-color: rgba(217, 119, 6, 0.35);
  color: #92400e;
}

html[data-theme="dark"] .my-card-tier {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f3e8ea;
}

html[data-theme="dark"] .my-card-tier.is-premium {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.my-card-upgrade-btn {
  width: 100%;
  flex: 0 0 auto;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.18);
}

.my-card-upgrade-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.client-payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 12, 16, 0.62);
  backdrop-filter: blur(6px);
}

.client-payment-modal-backdrop.active {
  display: flex;
}

.client-payment-modal-dialog {
  width: min(740px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 20px;
  background: #fffdfb;
  border: 1px solid rgba(107, 45, 62, 0.14);
  box-shadow: 0 28px 70px rgba(15, 8, 12, 0.32);
  color: #24181c;
}

.client-payment-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(107, 45, 62, 0.1);
}

.client-payment-modal-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.client-payment-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(158, 63, 86, 0.12);
  color: #8f3149;
}

.client-payment-modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.client-payment-modal-subtitle {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: #6b5860;
}

.client-payment-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #6b5860;
  cursor: pointer;
}

.client-payment-modal-close:hover {
  background: rgba(107, 45, 62, 0.08);
  color: #24181c;
}

.client-payment-modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cp-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cp-tier-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(107, 45, 62, 0.18);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  color: inherit;
}

.cp-tier-card.is-selected {
  border-color: #8f3149;
  background: rgba(143, 49, 73, 0.05);
  box-shadow: 0 0 0 3px rgba(143, 49, 73, 0.12);
}

.cp-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cp-tier-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.cp-tier-price {
  font-weight: 700;
  color: #8f3149;
  font-size: 0.95rem;
}

.cp-tier-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b5860;
}

.cp-upgrade-banner {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cp-upgrade-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
}

.cp-upgrade-banner-row strong {
  color: #b45309;
  font-size: 1.05rem;
}

.cp-upgrade-banner-note {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: #78552b;
  line-height: 1.45;
}

.cp-payment-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cp-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-qr-frame {
  width: 248px;
  padding: 12px 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(107, 45, 62, 0.16);
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 24, 28, 0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.cp-qr-frame.is-loading {
  opacity: 0.55;
}

.cp-qr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(15, 61, 122, 0.1);
}

.cp-vietqr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.cp-vietqr-wordmark {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-vietqr-wordmark .is-viet {
  color: #0f3d7a;
}

.cp-vietqr-wordmark .is-qr {
  color: #d9232e;
}

.cp-qr-bank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #141ed2;
  line-height: 1;
}

.cp-mb-star {
  flex-shrink: 0;
}

.cp-mb-text {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

.cp-mb-text strong {
  color: #141ed2;
  font-weight: 800;
}

.cp-mb-text span {
  color: #0f3d7a;
  font-weight: 700;
  font-size: 0.74rem;
}

.cp-qr-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.cp-qr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cp-qr-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 61, 122, 0.1);
}

.cp-napas-badge {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cp-napas-word {
  color: #005aab;
}

.cp-napas-247 {
  color: #00a651;
  margin-left: 1px;
}

.cp-qr-foot-divider {
  width: 1px;
  height: 12px;
  background: rgba(15, 61, 122, 0.18);
}

.cp-qr-foot-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
}

.cp-qr-caption {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
  color: #6b5860;
}

.cp-info-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(107, 45, 62, 0.04);
  border: 1px solid rgba(107, 45, 62, 0.08);
}

.cp-info-label {
  font-size: 0.8125rem;
  color: #6b5860;
}

.cp-info-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.cp-info-value.is-highlight strong,
.cp-info-value.is-highlight code {
  color: #8f3149;
  font-size: 0.98rem;
  font-weight: 700;
}

.cp-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(107, 45, 62, 0.22);
  background: #fff;
  color: #6b2d3e;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.cp-download-btn:hover {
  background: rgba(107, 45, 62, 0.08);
}

.cp-download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cp-transfer-note {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: #6b5860;
  line-height: 1.45;
}

.cp-status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(107, 45, 62, 0.1);
}

.cp-polling-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b5860;
}

.cp-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: cpPulse 1.5s infinite;
}

@keyframes cpPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cp-primary-btn,
.cp-secondary-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cp-primary-btn {
  border: none;
  background: linear-gradient(135deg, #8f3149, #6b2235);
  color: #fff;
}

.cp-secondary-btn {
  border: 1px solid rgba(107, 45, 62, 0.24);
  background: #fff;
  color: #6b2d3e;
}

.cp-loading-box,
.cp-error-box,
.cp-success-box {
  padding: 22px 18px;
  border-radius: 14px;
  text-align: center;
}

.cp-loading-box {
  background: rgba(107, 45, 62, 0.04);
  color: #6b5860;
}

.cp-error-box {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.24);
  color: #991b1b;
}

.cp-success-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.cp-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  margin-bottom: 10px;
}

.cp-success-box h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.cp-success-box p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #4b5563;
}

html[data-theme="dark"] .client-payment-modal-dialog {
  background: #1f171b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f6eef1;
}

html[data-theme="dark"] .client-payment-modal-header,
html[data-theme="dark"] .cp-status-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .client-payment-modal-subtitle,
html[data-theme="dark"] .cp-tier-desc,
html[data-theme="dark"] .cp-qr-caption,
html[data-theme="dark"] .cp-info-label,
html[data-theme="dark"] .cp-transfer-note,
html[data-theme="dark"] .cp-polling-indicator,
html[data-theme="dark"] .cp-success-box p {
  color: #c2b2b8;
}

html[data-theme="dark"] .cp-tier-card {
  background: #271e23;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .cp-tier-card.is-selected {
  border-color: #f08da4;
  background: rgba(240, 141, 164, 0.12);
  box-shadow: 0 0 0 3px rgba(240, 141, 164, 0.18);
}

html[data-theme="dark"] .cp-tier-price,
html[data-theme="dark"] .cp-info-value.is-highlight strong,
html[data-theme="dark"] .cp-info-value.is-highlight code {
  color: #f6a6b8;
}

html[data-theme="dark"] .cp-info-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .cp-download-btn,
html[data-theme="dark"] .cp-secondary-btn {
  background: #2d2228;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f3e4e8;
}

html[data-theme="dark"] .cp-upgrade-banner {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
}

html[data-theme="dark"] .cp-upgrade-banner-row strong,
html[data-theme="dark"] .cp-upgrade-banner-note {
  color: #fcd34d;
}

@media (max-width: 640px) {
  .cp-tier-grid,
  .cp-payment-grid {
    grid-template-columns: 1fr;
  }

  .cp-qr-frame {
    width: 224px;
  }

  .client-payment-modal-header,
  .client-payment-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .client-create-modal-header,
  .client-create-modal-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .client-create-form-grid,
  .cc-radio-row,
  .cc-template-picker-list {
    grid-template-columns: 1fr;
  }

  .cc-selected-template {
    position: relative;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .cc-selected-thumb-wrap {
    width: 44px;
    height: 58px;
    border-radius: 6px;
  }

  .cc-selected-info {
    flex: 1;
    min-width: 0;
  }

  .cc-selected-meta {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 4px;
  }

  .cc-selected-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cc-selected-badge {
    flex-shrink: 0;
    font-size: 9.5px;
    padding: 1px 6px;
  }

  .cc-selected-title {
    padding-right: 88px;
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cc-selected-tags {
    display: none;
  }

  .cc-change-template-btn {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 5px 9px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .cc-picker-kinds {
    gap: 4px;
  }

  .cc-picker-kind-btn {
    flex: 1 1 auto;
    height: 28px;
    padding: 0 7px;
    font-size: 11px;
    text-align: center;
  }
}

