/* ============================================================
   CC Calendar — Custom Styles
   Complements Tailwind utilities. Does NOT duplicate them.
   ============================================================ */

/* ---------- Alpine.js cloak (MUST be first) ---------- */
[x-cloak] {
  display: none !important;
}

/* ---------- Scroll Performance Optimizations ---------- */
.overflow-y-auto {
  -webkit-overflow-scrolling: touch;
  contain: layout style paint;
}

/* Card items in modal — isolate from repaints */
.overflow-y-auto > .grid > div {
  will-change: auto;
  contain: layout style;
}

/* Modal backdrop — no GPU compositing needed */
.bg-black\\/40 {
  will-change: opacity;
}

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Brand */
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;

  /* Neutral */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Semantic */
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-800: #991b1b;

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Shadows */
  --shadow-focus: 0 0 0 3px rgba(22, 163, 74, 0.4);
  --shadow-focus-red: 0 0 0 3px rgba(239, 68, 68, 0.4);

  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --touch-min: 44px;
  --nav-height: 4rem;
}

@media (min-width: 640px) {
  :root {
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.75rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-xl: 1.75rem;
  }
}

/* ============================================================
   CALENDAR GRID
   ============================================================ */

/* Ensure 7-column grid cells have equal width */
.grid.grid-cols-7 > div {
  flex-basis: 0;
  min-width: 0;
}

/* Day cell hover enhancement — subtle lift + accent border */
.group:hover {
  box-shadow: inset 0 0 0 1px var(--brand-200);
}

/* Left border accent on days with payments due (badge container present) */
.min-h-\[100px\] > .mt-1:not(:empty) {
  /* parent gets accent via JS class — handled below */
}

/* Days that have payment badges get a subtle left accent bar */
.min-h-\[100px\]:has(> .mt-1 > div) {
  border-left: 3px solid var(--brand-500);
}

/* Today highlight enhancement */
.bg-brand-50\/50 {
  box-shadow: inset 0 0 0 1px var(--brand-200);
}

/* ============================================================
   CARD BADGES (Calendar day badges)
   ============================================================ */

/* Normal badge — already styled by Tailwind, enhance hover */
.bg-brand-100.text-brand-800 {
  border-left: 2px solid var(--brand-500);
  transition: all var(--transition-base);
}

.bg-brand-100.text-brand-800:hover {
  border-left-width: 3px;
  transform: translateX(1px);
}

/* Max-reached badge — grey background, strikethrough */
.bg-neutral-200.text-neutral-500 {
  background-color: var(--neutral-200) !important;
  color: var(--neutral-500) !important;
  text-decoration: line-through;
  border-left: 2px solid var(--neutral-400);
  cursor: pointer;
  transition: all var(--transition-base);
}

.bg-neutral-200.text-neutral-500:hover {
  background-color: var(--neutral-300) !important;
  border-left-color: var(--neutral-500);
}

/* "Đạt max" badge styling — red indicator */
.max-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background-color: var(--red-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* ============================================================
   MAX-CASHBACK VISUAL STATES (List view cards)
   ============================================================ */

/* Max-reached card container */
.opacity-60 {
  background-color: var(--neutral-50);
}

.opacity-60 .bg-gradient-to-r {
  background: var(--neutral-100) !important;
}

/* Strikethrough text for max-reached card names */
.line-through.text-neutral-500 {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--neutral-400);
}

/* ============================================================
   MODAL ENHANCEMENTS
   ============================================================ */

/* Modal backdrop — smooth blur transition */
.fixed.inset-0.z-50 > .absolute.inset-0 {
  transition: backdrop-filter var(--transition-slow), background-color var(--transition-slow);
}

/* Modal content — centered, scrollable */
.relative.bg-white.rounded-2xl {
  transform-origin: center;
  will-change: transform, opacity;
}

/* Modal scrollable content areas — custom scrollbar */
.overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: var(--neutral-300) transparent;
}

.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background-color: var(--neutral-300);
  border-radius: 999px;
  transition: background-color var(--transition-fast);
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background-color: var(--neutral-400);
}

/* Close button hover enhancement */
button:has(svg[stroke="currentColor"][viewBox="0 0 24 24"]) {
  transition: all var(--transition-fast);
}

/* Modal enter animation fallback (Alpine handles most, this is safety) */
[x-transition\:enter] {
  will-change: transform, opacity;
}

/* ============================================================
   CARD LIST ITEMS
   ============================================================ */

/* Card container — already has Tailwind classes, enhance depth */
.bg-white.rounded-xl.border {
  transition: all var(--transition-base);
}

.bg-white.rounded-xl.border:hover {
  transform: translateY(-2px);
}

/* Cashback category tags — colored backgrounds */
/* Applied via Alpine dynamic classes; style the rows */
.space-y-1\.5 > div,
.space-y-3 > .flex {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.space-y-1\.5 > div:hover,
.space-y-3 > .flex:hover {
  background-color: var(--neutral-50);
}

/* Bank name styling */
.text-sm.text-neutral-500 {
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ============================================================
   TOAST SLIDE-IN ANIMATION
   ============================================================ */

/* Toast — enhanced slide-in from bottom-right */
.fixed.bottom-6.right-6.z-\[60\] {
  animation: toast-slide-in 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   FOCUS STATES (Accessibility)
   ============================================================ */

/* Buttons — focus ring */
button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Danger buttons (delete) */
button[title="Xóa thẻ"]:focus-visible,
button[title="Xóa"]:focus-visible {
  box-shadow: var(--shadow-focus-red);
}

/* Inputs — focus ring enhancement */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Tab buttons */
.border-b-2:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Mobile: < 640px */
@media (max-width: 639px) {
  button, 
  [role="button"] {
    min-height: var(--touch-min);
    min-width: var(--touch-min);
  }
  
  .touch-target {
    min-height: var(--touch-min);
    min-width: var(--touch-min);
  }
  
  .touch-target-pad {
    padding: 0.625rem 0.75rem;
  }
  
  .min-h-\[50px\] {
    min-height: 50px !important;
  }
  
  .min-h-\[50px\] > span {
    width: 1.25rem !important;
    height: 1.25rem !important;
    font-size: 0.65rem !important;
  }

  .min-h-\[50px\] .text-\[9px\] {
    font-size: 0.5rem !important;
    padding: 0.1rem 0.25rem !important;
  }

  .grid.grid-cols-7 > div {
    font-size: 0.55rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  .text-xl {
    font-size: 1rem !important;
  }

  .text-lg {
    font-size: 0.875rem !important;
  }

  .text-base {
    font-size: 0.875rem !important;
  }

  .grid.gap-4 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .rounded-2xl {
    border-radius: 0.75rem !important;
  }

  .fixed.bottom-6.right-6.z-\[60\] {
    left: 0.5rem !important;
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    text-align: center;
  }
}

/* Tablet: 640px – 1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid.gap-4.sm\:grid-cols-2 {
    gap: 0.75rem;
  }

  .min-h-\[80px\] {
    min-height: 80px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .grid.gap-4.sm\:grid-cols-2.lg\:grid-cols-3 {
    gap: 1.25rem;
  }

  .min-h-\[100px\] {
    min-height: 100px;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  nav,
  button,
  .fixed {
    display: none !important;
  }

  .grid.grid-cols-7 > div {
    border: 1px solid var(--neutral-300) !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}



/* ============================================================
   LUXURY LIQUID GLASS THEME — Black / Gold
   ============================================================ */

:root {
  --brand-50: #fff9e8;
  --brand-100: #fff1bf;
  --brand-200: #ffe28a;
  --brand-300: #f7cf57;
  --brand-400: #eabf3a;
  --brand-500: #d4a72c;
  --brand-600: #b88a16;
  --brand-700: #926b0c;
  --brand-800: #694b08;
  --brand-900: #3f2c03;

  --neutral-50: #050505;
  --neutral-100: #0b0b0f;
  --neutral-200: #16161b;
  --neutral-300: #23232b;
  --neutral-400: #5b5447;
  --neutral-500: #8f846b;
  --neutral-600: #b9ab86;
  --neutral-700: #d8caab;
  --neutral-800: #eee2c5;
  --neutral-900: #fff7e6;

  --gold-glow: 0 10px 40px rgba(212, 167, 44, 0.18);
  --glass-border: 1px solid rgba(255, 227, 156, 0.18);
  --glass-bg: linear-gradient(135deg, rgba(255, 244, 214, 0.12), rgba(255, 255, 255, 0.04));
  --glass-panel: rgba(18, 18, 23, 0.72);
  --glass-panel-soft: rgba(18, 18, 23, 0.52);
  --shadow-focus: 0 0 0 3px rgba(212, 167, 44, 0.32);
}

html {
  color-scheme: dark;
}

body.luxury-theme {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(212, 167, 44, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(255, 225, 138, 0.1), transparent 22%),
    radial-gradient(circle at bottom center, rgba(212, 167, 44, 0.12), transparent 24%),
    linear-gradient(145deg, #040404 0%, #0b0b0f 45%, #141217 100%);
  color: var(--neutral-800);
}

body.luxury-theme::before,
body.luxury-theme::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.22;
}

body.luxury-theme::before {
  top: 4rem;
  left: -6rem;
  background: rgba(212, 167, 44, 0.45);
}

body.luxury-theme::after {
  right: -6rem;
  bottom: 2rem;
  background: rgba(255, 241, 191, 0.2);
}

body.luxury-theme > * {
  position: relative;
  z-index: 1;
}

body.luxury-theme nav,
body.luxury-theme section,
body.luxury-theme footer {
  backdrop-filter: blur(20px);
}

body.luxury-theme nav {
  background: rgba(10, 10, 12, 0.72) !important;
  border-bottom: 1px solid rgba(255, 225, 138, 0.14) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

body.luxury-theme footer,
body.luxury-theme section.border-b,
body.luxury-theme .bg-white,
body.luxury-theme .bg-neutral-50,
body.luxury-theme .bg-neutral-100,
body.luxury-theme .bg-neutral-50\/50,
body.luxury-theme .bg-brand-50,
body.luxury-theme .bg-brand-50\/50 {
  background: var(--glass-bg), var(--glass-panel) !important;
  border-color: rgba(255, 225, 138, 0.12) !important;
  box-shadow: var(--gold-glow);
}

body.luxury-theme .bg-white\/80,
body.luxury-theme .bg-white\/70,
body.luxury-theme .bg-white\/60 {
  background: rgba(14, 14, 18, 0.68) !important;
}

body.luxury-theme .shadow-sm,
body.luxury-theme .shadow-md,
body.luxury-theme .shadow-lg,
body.luxury-theme .shadow-xl,
body.luxury-theme .shadow-2xl,
body.luxury-theme .shadow-brand-600\/25 {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 225, 138, 0.06), 0 10px 40px rgba(212, 167, 44, 0.12) !important;
}

body.luxury-theme .border,
body.luxury-theme .border-b,
body.luxury-theme .border-r,
body.luxury-theme .divide-y > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(255, 225, 138, 0.12) !important;
}

body.luxury-theme .text-neutral-900 { color: var(--neutral-900) !important; }
body.luxury-theme .text-neutral-800 { color: var(--neutral-800) !important; }
body.luxury-theme .text-neutral-700 { color: var(--neutral-700) !important; }
body.luxury-theme .text-neutral-600 { color: var(--neutral-600) !important; }
body.luxury-theme .text-neutral-500 { color: rgba(238, 226, 197, 0.72) !important; }
body.luxury-theme .text-neutral-400 { color: rgba(238, 226, 197, 0.52) !important; }
body.luxury-theme .text-brand-700,
body.luxury-theme .text-brand-800 { color: #ffd76a !important; }
body.luxury-theme .text-brand-600 { color: #f3c74f !important; }

body.luxury-theme .bg-brand-600,
body.luxury-theme .bg-brand-700,
body.luxury-theme .bg-brand-500 {
  background: linear-gradient(135deg, #fff1bf 0%, #e3b643 18%, #c6941c 52%, #8b6208 100%) !important;
  color: #120f08 !important;
  border: 1px solid rgba(255, 238, 184, 0.26) !important;
  box-shadow: 0 18px 34px rgba(122, 84, 8, 0.35), inset 0 1px 0 rgba(255, 247, 230, 0.25) !important;
}

body.luxury-theme .bg-brand-600:hover,
body.luxury-theme .bg-brand-700:hover,
body.luxury-theme .bg-brand-500:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body.luxury-theme .text-white {
  color: #16110a !important;
}

body.luxury-theme input,
body.luxury-theme textarea,
body.luxury-theme select {
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--neutral-900) !important;
  border-color: rgba(255, 225, 138, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.luxury-theme input::placeholder,
body.luxury-theme textarea::placeholder {
  color: rgba(238, 226, 197, 0.45) !important;
}

body.luxury-theme input:focus,
body.luxury-theme textarea:focus,
body.luxury-theme select:focus {
  border-color: rgba(255, 225, 138, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(212, 167, 44, 0.18), 0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

body.luxury-theme .rounded-xl,
body.luxury-theme .rounded-2xl,
body.luxury-theme .rounded-lg {
  backdrop-filter: blur(18px);
}

body.luxury-theme .group:hover,
body.luxury-theme .bg-white.rounded-xl.border:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 225, 138, 0.22) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 225, 138, 0.08), 0 10px 40px rgba(212, 167, 44, 0.18) !important;
}

body.luxury-theme .bg-brand-100.text-brand-800 {
  background: linear-gradient(135deg, rgba(255, 241, 191, 0.18), rgba(212, 167, 44, 0.24)) !important;
  color: #ffe8a0 !important;
  border-left: 2px solid rgba(255, 221, 125, 0.88);
}

body.luxury-theme .bg-neutral-200.text-neutral-500 {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(238, 226, 197, 0.5) !important;
  border-left-color: rgba(255, 225, 138, 0.2) !important;
}

body.luxury-theme .max-badge {
  background: linear-gradient(135deg, #f7cf57, #b8790d) !important;
  color: #15110a !important;
  box-shadow: 0 8px 22px rgba(212, 167, 44, 0.28);
}

body.luxury-theme table,
body.luxury-theme table thead,
body.luxury-theme table tbody,
body.luxury-theme table tr,
body.luxury-theme table th,
body.luxury-theme table td {
  border-color: rgba(255, 225, 138, 0.12) !important;
}

body.luxury-theme table thead {
  background: rgba(255, 241, 191, 0.08) !important;
}

body.luxury-theme table tbody tr:hover {
  background: rgba(255, 241, 191, 0.05) !important;
}

body.luxury-theme .sticky.left-0 {
  box-shadow: 8px 0 18px -12px rgba(0, 0, 0, 0.65);
}

body.luxury-theme .fixed.inset-0.z-50 > .absolute.inset-0,
body.luxury-theme .bg-black\/40 {
  background: rgba(0, 0, 0, 0.56) !important;
  backdrop-filter: blur(16px);
}

body.luxury-theme .relative.bg-white.rounded-2xl,
body.luxury-theme .relative.bg-white.rounded-none {
  background: linear-gradient(145deg, rgba(31, 29, 24, 0.92), rgba(11, 11, 15, 0.9)) !important;
  border: var(--glass-border);
}

body.luxury-theme button {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

body.luxury-theme button:hover {
  box-shadow: 0 10px 26px rgba(212, 167, 44, 0.12);
}

body.luxury-theme .bg-red-500,
body.luxury-theme .text-red-600,
body.luxury-theme .border-red-200,
body.luxury-theme .hover\:bg-red-50:hover {
  color: #ffb4a8 !important;
  border-color: rgba(255, 120, 90, 0.3) !important;
}

body.luxury-theme .bg-amber-50,
body.luxury-theme .bg-amber-500,
body.luxury-theme .border-amber-200,
body.luxury-theme .text-amber-800 {
  border-color: rgba(255, 215, 106, 0.2) !important;
}

body.luxury-theme .bg-amber-50 {
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.12), rgba(255, 255, 255, 0.04)) !important;
  color: #ffe6a0 !important;
}

body.luxury-theme .bg-amber-500 {
  background: linear-gradient(135deg, #ffe8a0, #d7a62e) !important;
  color: #17120a !important;
}

body.luxury-theme .bg-brand-50\/60 {
  background: linear-gradient(135deg, rgba(255, 239, 186, 0.09), rgba(255, 255, 255, 0.03)) !important;
}

body.luxury-theme .overflow-y-auto::-webkit-scrollbar-thumb,
body.luxury-theme .overflow-x-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 225, 138, 0.52), rgba(143, 105, 24, 0.72));
}

body.luxury-theme .overflow-y-auto,
body.luxury-theme .overflow-x-auto {
  scrollbar-color: rgba(255, 225, 138, 0.45) transparent;
}

@media (max-width: 639px) {
  body.luxury-theme::before,
  body.luxury-theme::after {
    width: 14rem;
    height: 14rem;
    filter: blur(48px);
  }
}



/* ============================================================
   LUXURY LEVEL 2 — modal fix + smoother premium motion
   ============================================================ */

body.luxury-theme > :not(.app-modal):not(.premium-toast) {
  position: relative;
  z-index: 1;
}

body.luxury-theme.luxury-level-2 .app-main {
  animation: luxury-fade-up 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.luxury-theme.luxury-level-2 .app-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999 !important;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  body.luxury-theme.luxury-level-2 .app-modal {
    align-items: center;
  }
}

body.luxury-theme.luxury-level-2 .app-modal > .absolute.inset-0 {
  position: absolute !important;
  inset: 0 !important;
}

body.luxury-theme.luxury-level-2 .app-modal-panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(85dvh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 227, 156, 0.2) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 230, 170, 0.08),
    0 18px 50px rgba(212, 167, 44, 0.18) !important;
  animation: modal-liquid-in 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.luxury-theme.luxury-level-2 .app-modal-panel-wide {
  width: min(100%, 56rem);
}

body.luxury-theme.luxury-level-2 .app-modal-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 233, 173, 0.66), transparent);
  opacity: 0.8;
}

body.luxury-theme.luxury-level-2 .premium-toast {
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 227, 156, 0.18);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 10px 34px rgba(212, 167, 44, 0.2) !important;
}

body.luxury-theme.luxury-level-2 .luxury-logo-mark {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 190, 0.22);
}

body.luxury-theme.luxury-level-2 .luxury-logo-mark::after,
body.luxury-theme.luxury-level-2 .bg-brand-600::after,
body.luxury-theme.luxury-level-2 .bg-brand-700::after,
body.luxury-theme.luxury-level-2 .bg-brand-500::after {
  content: '';
  position: absolute;
  inset: -120% auto auto -30%;
  width: 42%;
  height: 320%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.38), rgba(255,255,255,0));
  pointer-events: none;
  animation: luxury-shine 4.8s ease-in-out infinite;
}

body.luxury-theme.luxury-level-2 .bg-brand-600,
body.luxury-theme.luxury-level-2 .bg-brand-700,
body.luxury-theme.luxury-level-2 .bg-brand-500 {
  position: relative;
  overflow: hidden;
}

body.luxury-theme.luxury-level-2 .luxury-month-chip {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 241, 191, 0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 225, 138, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 30px rgba(0,0,0,0.18);
}

body.luxury-theme.luxury-level-2 .luxury-segment {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.06), rgba(255,255,255,0.025)) !important;
  border: 1px solid rgba(255, 225, 138, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

body.luxury-theme.luxury-level-2 .sync-status-shell > div,
body.luxury-theme.luxury-level-2 .calendar-shell,
body.luxury-theme.luxury-level-2 .bg-white.rounded-xl.border,
body.luxury-theme.luxury-level-2 footer {
  position: relative;
  overflow: hidden;
}

body.luxury-theme.luxury-level-2 .sync-status-shell > div::before,
body.luxury-theme.luxury-level-2 .calendar-shell::before,
body.luxury-theme.luxury-level-2 .bg-white.rounded-xl.border::before,
body.luxury-theme.luxury-level-2 footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255, 232, 165, 0.1), transparent 32%);
}

body.luxury-theme.luxury-level-2 .calendar-shell {
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 225, 138, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

body.luxury-theme.luxury-level-2 .group {
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

body.luxury-theme.luxury-level-2 .group:hover {
  transform: translateY(-1px);
  background: rgba(255, 241, 191, 0.04) !important;
}

body.luxury-theme.luxury-level-2 button svg {
  filter: drop-shadow(0 2px 10px rgba(212, 167, 44, 0.12));
}

body.luxury-theme.luxury-level-2 .inline-flex.items-center.gap-2,
body.luxury-theme.luxury-level-2 .inline-flex.items-center.gap-1\.5,
body.luxury-theme.luxury-level-2 .inline-flex.items-center.gap-1\.5.sm\:gap-2,
body.luxury-theme.luxury-level-2 .inline-flex.items-center.gap-2.px-3,
body.luxury-theme.luxury-level-2 .inline-flex.items-center.gap-2.px-6 {
  backdrop-filter: blur(14px);
}

body.luxury-theme.luxury-level-2 .bg-white.border.border-neutral-200.rounded-lg,
body.luxury-theme.luxury-level-2 .bg-white.border.border-neutral-200.rounded-xl,
body.luxury-theme.luxury-level-2 .bg-white.border.border-neutral-200.rounded.text-xs {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.06), rgba(255,255,255,0.028)) !important;
}

body.luxury-theme.luxury-level-2 .w-16.h-16.mx-auto.mb-4.bg-neutral-100.rounded-full,
body.luxury-theme.luxury-level-2 .w-20.h-20.mx-auto.mb-4.bg-neutral-100.rounded-full {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 40px rgba(212, 167, 44, 0.1);
}

@keyframes luxury-shine {
  0%, 14% {
    transform: translateX(-220%) rotate(24deg);
    opacity: 0;
  }
  18% {
    opacity: 0.55;
  }
  32% {
    transform: translateX(420%) rotate(24deg);
    opacity: 0;
  }
  100% {
    transform: translateX(420%) rotate(24deg);
    opacity: 0;
  }
}

@keyframes modal-liquid-in {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.96);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes luxury-fade-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 639px) {
  body.luxury-theme.luxury-level-2 nav {
    border-radius: 0 0 1.25rem 1.25rem;
  }

  body.luxury-theme.luxury-level-2 .app-main {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  body.luxury-theme.luxury-level-2 .sync-status-shell > div {
    border-radius: 1rem;
  }

  body.luxury-theme.luxury-level-2 .calendar-shell {
    border-radius: 1.1rem !important;
  }

  body.luxury-theme.luxury-level-2 .app-modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 1.25rem 1.25rem 0 0 !important;
  }

  body.luxury-theme.luxury-level-2 .premium-toast {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
  }

  body.luxury-theme.luxury-level-2 .luxury-month-chip {
    min-width: auto;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ============================================================
   MATRIX VIEW
   ============================================================ */

.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--neutral-300) transparent;
}

.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background-color: var(--neutral-300);
  border-radius: 999px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background-color: var(--neutral-400);
}

.sticky.left-0 {
  box-shadow: 2px 0 5px -2px rgba(0, 0, 0, 0.1);
}

table thead th,
table tbody td {
  white-space: nowrap;
}

table tbody tr:hover {
  background-color: var(--neutral-50);
}

@media (max-width: 639px) {
  .overflow-x-auto {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}


/* ============================================================
   LUXURY LEVEL 3 — premium fintech header, native mobile polish
   ============================================================ */

body.luxury-theme.luxury-level-3 {
  background-attachment: fixed;
}

body.luxury-theme.luxury-level-3 .app-main {
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}

body.luxury-theme.luxury-level-3 .premium-nav-shell {
  padding-top: calc(env(safe-area-inset-top) * 0.45);
}

body.luxury-theme.luxury-level-3 .premium-nav-grid {
  position: relative;
  padding: 0.2rem;
}

body.luxury-theme.luxury-level-3 .premium-nav-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at top left, rgba(255, 225, 138, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 225, 138, 0.08);
  pointer-events: none;
}

body.luxury-theme.luxury-level-3 .premium-badge {
  color: #180f04;
  background: linear-gradient(135deg, rgba(255, 240, 186, 0.95), rgba(212, 167, 44, 0.95));
  box-shadow: 0 8px 20px rgba(212, 167, 44, 0.24), inset 0 1px 0 rgba(255,255,255,0.45);
}

body.luxury-theme.luxury-level-3 .luxury-logo-mark-lg {
  background: radial-gradient(circle at 30% 20%, rgba(255, 247, 230, 0.8), rgba(255, 241, 191, 0.28) 18%, rgba(212, 167, 44, 0.3) 32%, rgba(67, 47, 8, 0.95) 100%);
  box-shadow: 0 18px 35px rgba(0,0,0,0.42), 0 0 0 1px rgba(255, 234, 170, 0.12), inset 0 1px 0 rgba(255,255,255,0.22);
}

body.luxury-theme.luxury-level-3 .premium-month-shell,
body.luxury-theme.luxury-level-3 .premium-micro-stats {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 225, 138, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 30px rgba(0,0,0,0.18);
  border-radius: 1.25rem;
}

body.luxury-theme.luxury-level-3 .premium-month-shell {
  padding: 0.35rem;
}

body.luxury-theme.luxury-level-3 .premium-month-chip {
  min-width: 132px;
  padding-inline: 1rem;
}

body.luxury-theme.luxury-level-3 .premium-view-switch {
  gap: 0.15rem;
}

body.luxury-theme.luxury-level-3 .premium-segment-btn {
  position: relative;
  min-height: 48px;
}

body.luxury-theme.luxury-level-3 .premium-view-active {
  box-shadow: 0 14px 26px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}

body.luxury-theme.luxury-level-3 .icon-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.11), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 225, 138, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 20px rgba(0,0,0,0.16);
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

body.luxury-theme.luxury-level-3 .icon-orb-sm {
  width: 1.9rem;
  height: 1.9rem;
}

body.luxury-theme.luxury-level-3 .icon-orb-danger {
  background: linear-gradient(145deg, rgba(255, 120, 90, 0.08), rgba(255,255,255,0.02));
  border-color: rgba(255, 120, 90, 0.12);
}

body.luxury-theme.luxury-level-3 .view-panel {
  animation: luxury-view-enter 420ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

body.luxury-theme.luxury-level-3 .view-panel-calendar { animation-duration: 360ms; }
body.luxury-theme.luxury-level-3 .view-panel-list { animation-duration: 420ms; }
body.luxury-theme.luxury-level-3 .view-panel-matrix { animation-duration: 460ms; }

body.luxury-theme.luxury-level-3 .sync-status-shell > div {
  border-radius: 1.5rem;
  padding: 1rem 1.1rem;
}

body.luxury-theme.luxury-level-3 .luxury-list-grid {
  align-items: stretch;
}

body.luxury-theme.luxury-level-3 .luxury-card-item {
  position: relative;
  border-radius: 1.5rem !important;
  overflow: hidden;
}

body.luxury-theme.luxury-level-3 .luxury-card-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%, transparent 70%, rgba(255,225,138,0.04));
}

body.luxury-theme.luxury-level-3 .luxury-card-top {
  position: relative;
}

body.luxury-theme.luxury-level-3 .luxury-card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 241, 191, 0.14), transparent 35%);
  pointer-events: none;
}

body.luxury-theme.luxury-level-3 .luxury-card-title {
  letter-spacing: -0.02em;
}

body.luxury-theme.luxury-level-3 .luxury-card-bank {
  font-style: normal;
  letter-spacing: 0.01em;
}

body.luxury-theme.luxury-level-3 .luxury-card-chip,
body.luxury-theme.luxury-level-3 .luxury-rate-pill {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 225, 138, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

body.luxury-theme.luxury-level-3 .luxury-rate-pill {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  min-width: 4.1rem;
  text-align: center;
}

body.luxury-theme.luxury-level-3 .luxury-info-tile,
body.luxury-theme.luxury-level-3 .luxury-reward-row,
body.luxury-theme.luxury-level-3 .luxury-toggle-btn,
body.luxury-theme.luxury-level-3 .calendar-shell,
body.luxury-theme.luxury-level-3 table,
body.luxury-theme.luxury-level-3 footer {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 225, 138, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

body.luxury-theme.luxury-level-3 .luxury-info-tile {
  min-height: 74px;
}

body.luxury-theme.luxury-level-3 .luxury-reward-row {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.luxury-theme.luxury-level-3 .luxury-reward-row:hover {
  transform: translateX(2px);
  border-color: rgba(255, 225, 138, 0.22);
}

body.luxury-theme.luxury-level-3 .luxury-toggle-btn {
  min-height: 52px;
}

body.luxury-theme.luxury-level-3 .calendar-shell,
body.luxury-theme.luxury-level-3 table,
body.luxury-theme.luxury-level-3 footer {
  border-radius: 1.5rem !important;
}

body.luxury-theme.luxury-level-3 table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

body.luxury-theme.luxury-level-3 .premium-toast {
  border-radius: 1.2rem;
}

body.luxury-theme.luxury-level-3 button,
body.luxury-theme.luxury-level-3 .group,
body.luxury-theme.luxury-level-3 .luxury-card-item,
body.luxury-theme.luxury-level-3 .luxury-reward-row,
body.luxury-theme.luxury-level-3 .luxury-toggle-btn {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
              color 180ms ease;
}

body.luxury-theme.luxury-level-3 .luxury-card-item:hover {
  transform: translateY(-4px);
}

body.luxury-theme.luxury-level-3 .touch-target,
body.luxury-theme.luxury-level-3 button,
body.luxury-theme.luxury-level-3 [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

@keyframes luxury-view-enter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 639px) {
  body.luxury-theme.luxury-level-3 nav {
    border-radius: 0 0 1.5rem 1.5rem;
  }

  body.luxury-theme.luxury-level-3 .premium-nav-grid {
    gap: 0.8rem;
  }

  body.luxury-theme.luxury-level-3 .premium-view-switch {
    width: 100%;
  }

  body.luxury-theme.luxury-level-3 .premium-segment-btn {
    padding-inline: 0.6rem;
    gap: 0.45rem;
    min-height: 46px;
  }

  body.luxury-theme.luxury-level-3 .premium-segment-btn span:last-child {
    font-size: 0.75rem;
  }

  body.luxury-theme.luxury-level-3 .premium-month-shell,
  body.luxury-theme.luxury-level-3 .premium-micro-stats,
  body.luxury-theme.luxury-level-3 .sync-status-shell > div,
  body.luxury-theme.luxury-level-3 .luxury-card-item,
  body.luxury-theme.luxury-level-3 .calendar-shell,
  body.luxury-theme.luxury-level-3 table,
  body.luxury-theme.luxury-level-3 footer {
    border-radius: 1.2rem !important;
  }

  body.luxury-theme.luxury-level-3 .app-main {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  body.luxury-theme.luxury-level-3 .luxury-card-top,
  body.luxury-theme.luxury-level-3 .luxury-card-item > div:last-child {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.luxury-theme.luxury-level-3 .luxury-card-meta-grid {
    grid-template-columns: 1fr;
  }

  body.luxury-theme.luxury-level-3 .luxury-reward-row {
    padding: 0.78rem 0.88rem;
  }

  body.luxury-theme.luxury-level-3 .luxury-rate-pill {
    min-width: 3.75rem;
    padding-inline: 0.72rem;
  }

  body.luxury-theme.luxury-level-3 .premium-micro-stats {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.luxury-theme.luxury-level-3 .app-modal-panel {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (min-width: 1024px) {
  body.luxury-theme.luxury-level-3 .premium-nav-grid {
    padding: 0.35rem 0.45rem;
  }

  body.luxury-theme.luxury-level-3 .luxury-list-grid {
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.luxury-theme.luxury-level-3 .view-panel,
  body.luxury-theme.luxury-level-3 .app-main,
  body.luxury-theme.luxury-level-3 .app-modal-panel,
  body.luxury-theme.luxury-level-3 .luxury-logo-mark::after,
  body.luxury-theme.luxury-level-3 .bg-brand-600::after,
  body.luxury-theme.luxury-level-3 .bg-brand-700::after,
  body.luxury-theme.luxury-level-3 .bg-brand-500::after {
    animation: none !important;
  }

  body.luxury-theme.luxury-level-3 button,
  body.luxury-theme.luxury-level-3 .group,
  body.luxury-theme.luxury-level-3 .luxury-card-item,
  body.luxury-theme.luxury-level-3 .luxury-reward-row,
  body.luxury-theme.luxury-level-3 .luxury-toggle-btn {
    transition: none !important;
  }
}


/* ============================================================
   LUXURY LEVEL 4 — iOS micro-interactions, tiered cards, premium polish
   ============================================================ */

body.luxury-theme.luxury-level-3 .premium-micro-stats {
  min-height: 48px;
}

body.luxury-theme.luxury-level-3 .premium-skeleton-card,
body.luxury-theme.luxury-level-3 .premium-empty-state,
body.luxury-theme.luxury-level-3 .auth-intro-panel,
body.luxury-theme.luxury-level-3 .premium-matrix-shell {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.07), rgba(255,255,255,0.025));
  border: 1px solid rgba(255, 225, 138, 0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
}

body.luxury-theme.luxury-level-3 .premium-skeleton-card {
  overflow: hidden;
  position: relative;
}

body.luxury-theme.luxury-level-3 .premium-skeleton-line {
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 10%, rgba(255, 241, 191, 0.2) 50%, rgba(255,255,255,0.08) 90%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s linear infinite;
}

body.luxury-theme.luxury-level-3 .premium-empty-orb {
  background: radial-gradient(circle at 30% 25%, rgba(255, 252, 237, 0.9), rgba(255, 232, 165, 0.26) 35%, rgba(90, 68, 18, 0.88) 100%);
  box-shadow: 0 22px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

body.luxury-theme.luxury-level-3 .auth-benefit-chip {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 225, 138, 0.12);
}

body.luxury-theme.luxury-level-3 .luxury-card-top {
  border-bottom-color: rgba(35, 26, 8, 0.08) !important;
}

body.luxury-theme.luxury-level-3 .luxury-card-top .luxury-card-title,
body.luxury-theme.luxury-level-3 .luxury-card-top .luxury-card-bank,
body.luxury-theme.luxury-level-3 .luxury-card-top .luxury-card-chip,
body.luxury-theme.luxury-level-3 .luxury-card-top .text-neutral-500,
body.luxury-theme.luxury-level-3 .luxury-card-top .text-neutral-600,
body.luxury-theme.luxury-level-3 .luxury-card-top .text-neutral-700,
body.luxury-theme.luxury-level-4 .luxury-card-top .luxury-card-title,
body.luxury-theme.luxury-level-4 .luxury-card-top .luxury-card-bank {
  color: #050505 !important;
}

body.luxury-theme.luxury-level-3 .luxury-card-top .luxury-card-bank,
body.luxury-theme.luxury-level-4 .luxury-card-top .luxury-card-bank {
  opacity: 1;
  font-weight: 600;
}

body.luxury-theme.luxury-level-3 .luxury-card-top .icon-orb-danger {
  color: rgba(23, 18, 10, 0.72) !important;
  background: rgba(255, 248, 223, 0.45) !important;
  border-color: rgba(23, 18, 10, 0.08) !important;
}

body.luxury-theme.luxury-level-3 .luxury-card-tone-gold {
  background: linear-gradient(135deg, rgba(255, 249, 231, 0.98) 0%, rgba(244, 226, 175, 0.96) 35%, rgba(196, 168, 103, 0.92) 100%) !important;
}

body.luxury-theme.luxury-level-3 .luxury-card-tone-platinum {
  background: linear-gradient(135deg, rgba(250, 250, 248, 0.98) 0%, rgba(222, 221, 214, 0.96) 38%, rgba(164, 160, 152, 0.94) 100%) !important;
}

body.luxury-theme.luxury-level-3 .luxury-card-tone-sapphire {
  background: linear-gradient(135deg, rgba(236, 244, 255, 0.98) 0%, rgba(184, 212, 255, 0.96) 35%, rgba(87, 124, 191, 0.92) 100%) !important;
}

body.luxury-theme.luxury-level-3 .luxury-card-tone-rose {
  background: linear-gradient(135deg, rgba(255, 240, 244, 0.98) 0%, rgba(246, 196, 208, 0.96) 35%, rgba(182, 96, 120, 0.92) 100%) !important;
}

body.luxury-theme.luxury-level-3 .luxury-card-tone-emerald {
  background: linear-gradient(135deg, rgba(241, 255, 249, 0.98) 0%, rgba(187, 236, 216, 0.96) 35%, rgba(68, 142, 113, 0.92) 100%) !important;
}

body.luxury-theme.luxury-level-3 .premium-matrix-shell {
  border-radius: 1.55rem;
  padding: 0.35rem;
}

body.luxury-theme.luxury-level-3 .premium-matrix-table {
  overflow: hidden;
}

body.luxury-theme.luxury-level-3 .premium-matrix-table thead {
  background: linear-gradient(180deg, rgba(255, 241, 191, 0.12), rgba(255,255,255,0.03)) !important;
}

body.luxury-theme.luxury-level-3 .premium-matrix-table tbody tr {
  transition: transform 180ms ease, background-color 180ms ease;
}

body.luxury-theme.luxury-level-3 .premium-matrix-table tbody tr:hover {
  transform: translateX(2px);
}

body.luxury-theme.luxury-level-3 .matrix-note-btn {
  background: linear-gradient(145deg, rgba(255, 241, 191, 0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,225,138,0.1);
}

body.luxury-theme.luxury-level-3 .app-modal-panel {
  overscroll-behavior: contain;
}

body.luxury-theme.luxury-level-3 button:active,
body.luxury-theme.luxury-level-3 .luxury-card-item:active,
body.luxury-theme.luxury-level-3 .luxury-reward-row:active,
body.luxury-theme.luxury-level-3 .matrix-note-btn:active {
  transform: scale(0.985);
}

body.luxury-theme.luxury-level-3 .luxury-card-item:hover {
  box-shadow: 0 22px 48px rgba(0,0,0,0.26), 0 0 0 1px rgba(255,225,138,0.08), 0 12px 28px rgba(212,167,44,0.15) !important;
}

body.luxury-theme.luxury-level-3 .icon-orb,
body.luxury-theme.luxury-level-3 .premium-segment-btn,
body.luxury-theme.luxury-level-3 .matrix-note-btn,
body.luxury-theme.luxury-level-3 .premium-empty-state button {
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 639px) {
  body.luxury-theme.luxury-level-3 .premium-empty-state,
  body.luxury-theme.luxury-level-3 .auth-intro-panel,
  body.luxury-theme.luxury-level-3 .premium-skeleton-card,
  body.luxury-theme.luxury-level-3 .premium-matrix-shell {
    border-radius: 1.25rem !important;
  }

  body.luxury-theme.luxury-level-3 .premium-empty-state {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  body.luxury-theme.luxury-level-3 .premium-month-shell {
    padding-inline: 0.2rem;
  }
}


body.luxury-theme.luxury-level-4 .view-panel,
body.luxury-theme.luxury-level-4 .app-modal-panel,
body.luxury-theme.luxury-level-4 .luxury-card-item,
body.luxury-theme.luxury-level-4 .premium-matrix-table tbody tr,
body.luxury-theme.luxury-level-4 .premium-empty-state,
body.luxury-theme.luxury-level-4 .premium-skeleton-card {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.luxury-theme.luxury-level-4 .premium-segment-btn,
body.luxury-theme.luxury-level-4 .icon-orb,
body.luxury-theme.luxury-level-4 .luxury-toggle-btn,
body.luxury-theme.luxury-level-4 .matrix-note-btn,
body.luxury-theme.luxury-level-4 .app-modal-panel button {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease, border-color 220ms ease, color 180ms ease;
}

body.luxury-theme.luxury-level-4 .premium-segment-btn:active,
body.luxury-theme.luxury-level-4 .icon-orb:active,
body.luxury-theme.luxury-level-4 .luxury-toggle-btn:active,
body.luxury-theme.luxury-level-4 .matrix-note-btn:active {
  transform: scale(0.982);
}
