/* CTAS Life Design System Tokens & Self-Hosted Be Vietnam Pro Font */
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-700-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-800-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "BVP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/be-vietnam-pro-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #5B4BE0;
  --brand2: #7B6CF6;
  --brandSoft: #EEECFE;
  --spend: #F08C00;
  --spend2: #FFC078;
  --spendSoft: #FFF3E2;
  --spendInk: #C46A00;
  --chia: #0E9F8E;
  --chia2: #19C2AE;
  --chiaSoft: #E3F6F3;
  --chiaInk: #0B7F72;
  --lunar: #C53030;
  --lunar2: #FCA5A5;
  --lunarSoft: #FDECEC;
  --lunarInk: #B42626;
  --lucky: #805AD5;
  --lucky2: #B794F4;
  --luckySoft: #F1EBFD;
  --luckyInk: #6B46C1;
  --bg: #FBFAFF;
  --surface: #FFFFFF;
  --surface2: #F4F3FA;
  --line: #E7E5F2;
  --text: #14122B;
  --text2: #56566E;
  --text3: #8A8AA0;
  --glass: rgba(255, 255, 255, 0.76);
  --shadow: 0 30px 60px -20px rgba(43, 32, 120, 0.22), 0 8px 20px -8px rgba(43, 32, 120, 0.10);
  --shadow-soft: 0 12px 32px -14px rgba(43, 32, 120, 0.14);
  --font-ctas: "BVP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@keyframes ctas-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(28px, -18px) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i { animation: none !important; }
}

/* Global Dark Theme Tokens & Toggle Button */
html[data-theme="dark"] {
  --bg: #0B1020;
  --surface: #131B31;
  --surface2: #1A2440;
  --line: rgba(255, 255, 255, 0.11);
  --text: #EDF2FF;
  --text2: #A5B2CF;
  --text3: #8391AE;
  --glass: rgba(11, 16, 32, 0.8);
  --brandSoft: rgba(123, 108, 246, 0.22);
  --spendSoft: rgba(240, 140, 0, 0.14);
  --spendInk: #FCD34D;
  --chiaSoft: rgba(14, 159, 142, 0.16);
  --chiaInk: #5EEAD4;
  --lunarSoft: rgba(220, 38, 38, 0.16);
  --lunarInk: #FCA5A5;
  --lunar: #F87171;
  --luckySoft: rgba(128, 90, 213, 0.2);
  --luckyInk: #D6BCFA;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 16px 36px -14px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* Global Tet 2027 Festive Theme Tokens ("Thiệp Tết Đương Đại") */
html[data-theme="tet"] {
  --brand: #B42318;
  --brand2: #D94E28;
  --brandSoft: #FCEBE6;
  --tetGold: #C98A1C;
  --tetGoldSoft: #FDF4DE;
  --spend: #C97A00;
  --spend2: #F2B84B;
  --spendSoft: #FDF2DA;
  --spendInk: #8A5200;
  --chia: #15694E;
  --chia2: #1E8A67;
  --chiaSoft: #E5F5EE;
  --chiaInk: #115740;
  --lunar: #B42318;
  --lunar2: #F08074;
  --lunarSoft: #FCEBE6;
  --lunarInk: #8A1710;
  --lucky: #9E2A2B;
  --lucky2: #D96B52;
  --luckySoft: #FCEAE7;
  --luckyInk: #7F1D1D;
  --bg: #FAF5EA;
  --surface: #FFFDF8;
  --surface2: #F3E8D4;
  --line: #E7D5B8;
  --text: #241410;
  --text2: #624739;
  --text3: #8D6E5C;
  --glass: rgba(250, 245, 234, 0.88);
  --shadow: 0 28px 56px -20px rgba(138, 23, 16, 0.20), 0 8px 20px -8px rgba(138, 23, 16, 0.10);
  --shadow-soft: 0 12px 30px -14px rgba(138, 23, 16, 0.14);
  color-scheme: light;
}

.tc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ctas);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.tc-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--brand2);
}
html[data-theme="tet"] .tc-theme-toggle {
  background: linear-gradient(135deg, #FFF7E4, #FDEBD0);
  border-color: #DFB562;
  color: #8A1710;
  box-shadow: 0 4px 12px -6px rgba(180, 35, 24, 0.35);
}
html[data-theme="tet"] .tc-theme-toggle:hover {
  border-color: #B42318;
}
.tc-theme-ic { font-size: 14px; line-height: 1; }
@media (max-width: 520px) {
  .tc-theme-txt { display: none; }
  .tc-theme-toggle { padding: 0 10px; }
}

/* Tet 2027 Festive Bar & Gentle Drifting Blossom Petals (only visible in data-theme="tet") */
.hp-tet-bar,
.hp-tet-petals {
  display: none;
}
html[data-theme="tet"] .hp-tet-bar {
  display: block;
  position: relative;
  z-index: 30;
  background: linear-gradient(90deg, #8A1710 0%, #B42318 48%, #9A1B12 100%);
  color: #FFF8EA;
  border-bottom: 1px solid rgba(235, 194, 108, 0.55);
  font-family: var(--font-ctas);
}
.hp-tet-bar-inner {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
  min-height: 44px;
  padding-block: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  font-size: 13px;
  line-height: 1.45;
}
.hp-tet-bar-copy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hp-tet-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 244, 214, 0.16);
  border: 1px solid rgba(242, 201, 114, 0.55);
  color: #FFE4A3;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hp-tet-bar-countdown {
  font-weight: 700;
  color: #FFE7AC;
}
.hp-tet-bar-sep {
  opacity: 0.55;
}
.hp-tet-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(56, 10, 6, 0.38);
  border: 1px solid rgba(242, 201, 114, 0.35);
}
.hp-tet-switcher button {
  border: 0;
  background: transparent;
  color: rgba(255, 245, 224, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-ctas);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.hp-tet-switcher button:hover {
  color: #fff;
  background: rgba(255, 245, 224, 0.14);
}
.hp-tet-switcher button[aria-pressed="true"] {
  background: #FCE6B2;
  color: #7A140D;
  font-weight: 700;
}

@keyframes hp-petal-fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% { opacity: 0.52; }
  85% { opacity: 0.42; }
  100% {
    transform: translate3d(var(--drift, 48px), 106vh, 0) rotate(var(--spin, 260deg));
    opacity: 0;
  }
}
html[data-theme="tet"] .hp-tet-petals {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.hp-tet-petals i {
  position: absolute;
  top: -24px;
  left: var(--x, 12%);
  width: var(--sz, 12px);
  height: calc(var(--sz, 12px) * 0.72);
  border-radius: 70% 30% 65% 35% / 60% 40% 60% 40%;
  background: radial-gradient(circle at 35% 35%, #FFE89E 0%, #F4B942 65%, #DF9421 100%);
  box-shadow: 0 2px 6px rgba(180, 35, 24, 0.14);
  opacity: 0;
  animation: hp-petal-fall var(--dur, 16s) linear var(--delay, 0s) infinite;
}
.hp-tet-petals i:nth-child(even) {
  background: radial-gradient(circle at 35% 35%, #FFD7DC 0%, #F490A0 68%, #DF6A7E 100%);
}
@media (max-width: 720px) {
  .hp-tet-bar-inner { width: calc(100% - 28px); font-size: 12px; }
  .hp-tet-petals i:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-tet-petals { display: none !important; }
}
@media print {
  .hp-tet-bar, .hp-tet-petals { display: none !important; }
}
