/* ==========================================================================
   VENCANTO CLASS WEBSITE DESIGN SYSTEM
   Theme: THE MIRACLE IS YOU ✨
   Concept: Magical Classroom / Magical Casa
   ========================================================================== */

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

/* --- 1. CSS VARIABLES & TOKENS --- */
:root {
  /* Official Palette */
  --bg-main: #FFF7E8;
  --bg-cream: #FFF1D6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFDF9;
  --bg-card-subtle: #FDF9F2;
  
  --terracotta: #C96F52;
  --terracotta-dark: #A85338;
  --terracotta-light: #F7DFD7;
  
  --coral: #E89A7A;
  --coral-soft: #FDEEE8;
  
  --leaf-green: #71966B;
  --leaf-green-light: #EBF3E9;
  --deep-green: #416B55;
  --deep-green-dark: #2D4C3C;
  
  --yellow-gold: #F4D477;
  --yellow-light: #FEF9E7;
  
  --sky-blue: #8EC6D5;
  --sky-blue-light: #EDF7FA;
  
  --pink-soft: #E7A0AD;
  --pink-light: #FDF2F4;
  
  --lavender: #B8A6D4;
  --lavender-light: #F3EFF9;
  
  /* Text & Neutral Hierarchy */
  --text-main: #2D2723;
  --text-muted: #5E534C;
  --text-light: #8C7F75;
  --text-inverse: #FFFFFF;
  
  /* Borders & Shadows */
  --border-subtle: rgba(201, 111, 82, 0.14);
  --border-card: rgba(142, 198, 213, 0.2);
  --border-focus: #C96F52;
  
  --shadow-sm: 0 2px 8px rgba(100, 70, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(100, 70, 50, 0.08);
  --shadow-lg: 0 16px 36px rgba(100, 70, 50, 0.12);
  --shadow-glow-terracotta: 0 10px 25px rgba(201, 111, 82, 0.25);
  --shadow-glow-magic: 0 12px 30px rgba(244, 212, 119, 0.35);
  
  /* Typography */
  --font-heading: 'Fredoka', 'Outfit', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Layout Dimensions */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --topbar-height: 72px;
  --bottombar-height: 68px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  /* Animation */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dusk Warm Mode (Theme Variant) */
[data-theme="dusk"] {
  --bg-main: #26201D;
  --bg-cream: #322B27;
  --bg-surface: #362E29;
  --bg-surface-elevated: #3E352F;
  --bg-card-subtle: #2F2723;
  --text-main: #FFF8EF;
  --text-muted: #D3C6BC;
  --text-light: #A8988D;
  --border-subtle: rgba(244, 212, 119, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* --- 2. CSS RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Background Ambient Decorative Canvas & Gradients */
.ambient-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -10vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(244, 212, 119, 0.18) 0%, rgba(232, 154, 122, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.ambient-glow-2 {
  position: absolute;
  bottom: 5vh;
  left: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(142, 198, 213, 0.16) 0%, rgba(113, 150, 107, 0.08) 55%, transparent 75%);
  border-radius: 50%;
  filter: blur(50px);
}

.ambient-glow-3 {
  position: absolute;
  top: 40vh;
  left: 30vw;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(231, 160, 173, 0.12) 0%, rgba(184, 166, 212, 0.06) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(55px);
}

/* Sparkle Canvas */
#sparkleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

a:hover {
  color: var(--terracotta-dark);
}

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 3. APP SHELL LAYOUT --- */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   4. SIDEBAR NAVIGATION (DESKTOP)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: width var(--transition-slow), transform var(--transition-slow);
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(201, 111, 82, 0.28), 0 0 12px rgba(244, 212, 119, 0.35);
  border: 1.5px solid rgba(244, 212, 119, 0.6);
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1614;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.class-emblem-showcase {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(244, 212, 119, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(201, 111, 82, 0.12), 0 0 20px rgba(244, 212, 119, 0.2);
  margin-bottom: 1.5rem;
  max-width: fit-content;
}

[data-theme="dusk"] .class-emblem-showcase {
  background: var(--bg-surface-elevated);
}

.class-emblem-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow-gold);
  box-shadow: 0 0 16px rgba(244, 212, 119, 0.5);
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--deep-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav-container::-webkit-scrollbar {
  width: 5px;
}
.sidebar-nav-container::-webkit-scrollbar-thumb {
  background: var(--terracotta-light);
  border-radius: var(--radius-pill);
}

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  padding: 0.6rem 0.75rem 0.25rem;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: all var(--transition-fast);
}

.nav-item-btn .nav-icon {
  font-size: 1.15rem;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.nav-item-btn .nav-label {
  font-size: 0.92rem;
  font-weight: 500;
  flex: 1;
}

.nav-item-btn:hover {
  background-color: var(--bg-cream);
  color: var(--terracotta);
  transform: translateX(3px);
}

.nav-item-btn:hover .nav-icon {
  transform: scale(1.18);
}

.nav-item-btn.active {
  background: linear-gradient(135deg, var(--terracotta-light) 0%, var(--bg-cream) 100%);
  color: var(--terracotta-dark);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(201, 111, 82, 0.12);
}

.nav-item-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background-color: var(--terracotta);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.nav-item-btn.highlight-tka {
  border: 1px dashed rgba(65, 107, 85, 0.35);
  background-color: var(--leaf-green-light);
  color: var(--deep-green);
  margin-top: 0.4rem;
}
.nav-item-btn.highlight-tka.active {
  background: linear-gradient(135deg, var(--leaf-green-light) 0%, var(--bg-cream) 100%);
  border-style: solid;
}

.nav-badge-pill {
  font-size: 0.65rem;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-pill);
  background-color: var(--deep-green);
  color: #fff;
  font-weight: 700;
}

.sidebar-footer-widget {
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.quick-casa-card {
  background: linear-gradient(145deg, var(--bg-cream) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-casa-icon {
  font-size: 1.5rem;
}

.quick-casa-text h4 {
  font-size: 0.82rem;
  color: var(--text-main);
}
.quick-casa-text p {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ==========================================================================
   5. MAIN CONTENT AREA & TOPBAR
   ========================================================================== */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: margin-left var(--transition-slow);
}

/* Topbar Header */
.topbar {
  height: var(--topbar-height);
  background: rgba(255, 247, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 10px rgba(100, 70, 50, 0.03);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.75rem;
}
.breadcrumb-current {
  color: var(--terracotta);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-action-btn {
  height: 38px;
  padding: 0 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.topbar-action-btn:hover {
  background: var(--bg-cream);
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.tka-direct-topbtn {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--leaf-green) 100%);
  color: #fff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(65, 107, 85, 0.25);
}
.tka-direct-topbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(65, 107, 85, 0.35);
}

/* Main Content Container */
.content-area {
  flex: 1;
  padding: 2.2rem 2.5rem;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

/* Page Section Container (SPA Views) */
.page-section {
  display: none;
  animation: fadeInSection 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.active {
  display: block;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   6. SECTION HEADERS & COMMON UTILITIES
   ========================================================================== */
.section-header-block {
  margin-bottom: 2.2rem;
  text-align: center;
  position: relative;
}

.section-header-block.align-left {
  text-align: left;
}

.section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--bg-cream);
  color: var(--terracotta-dark);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}
.section-header-block.align-left .section-subtitle {
  margin: 0;
}

/* Custom Decorative Arch Divider */
.arch-divider {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--yellow-gold) 100%);
  border-radius: var(--radius-pill);
  margin: 0.85rem auto 0;
}
.align-left .arch-divider {
  margin: 0.85rem 0 0;
}

/* Standard Buttons */
.btn-vencanto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--coral) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow-terracotta);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(201, 111, 82, 0.35);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-cream);
  color: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--leaf-green) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(65, 107, 85, 0.25);
}
.btn-green:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(65, 107, 85, 0.35);
  color: #fff;
}

/* ==========================================================================
   7. HERO / HOME SECTION
   ========================================================================== */
.hero-casa-container {
  background: linear-gradient(145deg, #FFFDF9 0%, #FFF3DC 100%);
  border: 1.5px solid rgba(201, 111, 82, 0.16);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

[data-theme="dusk"] .hero-casa-container {
  background: linear-gradient(145deg, #382F2A 0%, #2A221E 100%);
  border-color: rgba(244, 212, 119, 0.2);
}

.hero-casa-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 111, 82, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

[data-theme="dusk"] .hero-pill-badge {
  background: rgba(54, 46, 41, 0.9);
}

.hero-greeting {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.hero-subheading {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.hero-tagline-highlight {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--deep-green);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Vector Illustration (Pure SVG & CSS - NO AI/RASTER) */
.hero-casa-graphic {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 480px;
  height: 440px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
}

.casa-svg-art {
  width: 100%;
  height: 100%;
}

/* Floating animation for botanical leaves */
.leaf-sway-1 {
  transform-origin: bottom center;
  animation: swayLeaf 4.5s ease-in-out infinite alternate;
}
.leaf-sway-2 {
  transform-origin: bottom center;
  animation: swayLeaf 6s ease-in-out infinite alternate-reverse;
}
.sparkle-pulse {
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes swayLeaf {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(4deg); }
}

@keyframes pulseGlow {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* Quick Glance Cards Grid on Home */
.home-widgets-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.home-card-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-card-widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.widget-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.widget-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.widget-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.widget-title-group h3 {
  font-size: 1.15rem;
}

/* Special TKA Portal Teaser Card on Home */
.tka-teaser-banner {
  background: linear-gradient(135deg, rgba(65, 107, 85, 0.08) 0%, rgba(244, 212, 119, 0.15) 100%), var(--bg-surface);
  border: 1.5px solid rgba(65, 107, 85, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.tka-teaser-content h3 {
  font-size: 1.45rem;
  color: var(--deep-green);
  margin-bottom: 0.35rem;
}

.tka-teaser-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.tka-mini-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-cream);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   8. ABOUT VENCANTO & VALUES
   ========================================================================== */
.about-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.about-quote-box {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #FFF8ED 100%);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--terracotta-dark);
  font-family: var(--font-heading);
}

[data-theme="dusk"] .about-quote-box {
  background: var(--bg-surface-elevated);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.stat-item-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition-fast);
}

.stat-item-card:hover {
  transform: translateY(-3px);
  background: var(--bg-cream);
}

.stat-icon {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--card-accent, var(--terracotta));
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.value-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform var(--transition-base);
}

.value-card:hover .value-icon-wrapper {
  transform: scale(1.15) rotate(6deg);
}

.value-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value-description {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   9. MEMBERS (VENCANTO FAMILY)
   ========================================================================== */
.controls-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 400px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.search-input-wrapper input:focus {
  border-color: var(--terracotta);
  background: var(--bg-surface-elevated);
}

.search-icon-svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.filter-pills-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.filter-pill-btn:hover,
.filter-pill-btn.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

/* Member Cards Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}

.member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.member-avatar-box {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.1rem;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 3px solid var(--bg-surface);
  transition: transform var(--transition-base);
  overflow: visible;
}

.member-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.member-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.member-card:hover .member-avatar-box {
  transform: scale(1.08);
}

.member-badge {
  position: absolute;
  bottom: -4px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.member-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.member-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.member-quote {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.45;
  flex: 1;
}

.member-interests-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.interest-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg-cream);
  color: var(--text-muted);
}

/* ==========================================================================
   10. CLASS AGENDA (CALENDAR UI)
   ========================================================================== */
/* ==========================================================================
   10. CLASS AGENDA & INTERACTIVE CALENDAR
   ========================================================================== */
.agenda-calendar-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Calendar Card Panel */
.calendar-card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.calendar-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.cal-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-nav-btn:hover {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
  transform: scale(1.1);
}

.cal-current-month-display {
  text-align: center;
}

.cal-current-month-display h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.cal-sub-status {
  font-size: 0.76rem;
  color: var(--text-light);
}

/* Weekdays */
.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Calendar Dates Grid */
.cal-dates-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 1.5rem;
}

.cal-date-cell {
  aspect-ratio: 1 / 1;
  min-height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  user-select: none;
}

.cal-date-cell:hover {
  background: var(--bg-cream);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.cal-date-cell.other-month {
  opacity: 0.35;
}

.cal-date-cell.today {
  border-color: var(--terracotta);
  background: rgba(201, 111, 82, 0.08);
  font-weight: 700;
}

.cal-date-cell.today .cal-num {
  color: var(--terracotta);
}

.cal-date-cell.selected {
  background: var(--terracotta) !important;
  color: #fff !important;
  border-color: var(--terracotta) !important;
  box-shadow: 0 4px 14px rgba(201, 111, 82, 0.4);
}

.cal-date-cell.selected .cal-num {
  color: #fff !important;
}

.cal-date-cell.selected .cal-event-dot {
  background: #fff !important;
}

.cal-num {
  font-size: 0.88rem;
  font-weight: 600;
}

.cal-dots-row {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-height: 6px;
}

.cal-event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.cal-event-dot.tryout { background: #C96F52; }
.cal-event-dot.event { background: #8EC6D5; }
.cal-event-dot.deadline { background: #E89A7A; }
.cal-event-dot.meeting { background: #71966B; }

/* Legend */
.cal-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.cal-legend-item {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.leg-dot.tryout { background: #C96F52; }
.leg-dot.event { background: #8EC6D5; }
.leg-dot.deadline { background: #E89A7A; }
.leg-dot.meeting { background: #71966B; }

/* Agenda Feed Cards */
.agenda-feed-panel {
  display: flex;
  flex-direction: column;
}

.agenda-column-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.agenda-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.today-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.today-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--terracotta);
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.today-item-card:hover {
  transform: translateX(4px);
  background: var(--bg-cream);
  border-color: var(--terracotta);
}

.today-thumb-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--bg-cream);
}

.today-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.today-info {
  flex: 1;
}

.today-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.today-info .time-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.15rem;
}

.today-info .room-text {
  font-size: 0.76rem;
  color: var(--text-light);
}

.agenda-cards-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.agenda-feed-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.agenda-feed-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-md);
}

.agenda-card-banner {
  height: 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
}

.agenda-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.agenda-art-svg {
  width: 100%;
  height: 100%;
}

.agenda-card-badge-floating {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.agenda-card-date-floating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.agenda-feed-card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.agenda-feed-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.agenda-feed-card-meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.agenda-feed-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   11. ANNOUNCEMENTS
   ========================================================================== */
.announcement-top-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.create-announcement-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(201, 111, 82, 0.15);
  animation: fadeInDown 0.35s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.create-ann-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.create-ann-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.btn-close-form {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-form:hover {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.form-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.form-group-item.full-width {
  grid-column: 1 / -1;
}

.form-group-item label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.required-star {
  color: var(--terracotta);
}

.vencanto-input,
.vencanto-select,
.vencanto-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.vencanto-input:focus,
.vencanto-select:focus,
.vencanto-textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 111, 82, 0.2);
}

.form-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.announcement-custom-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-cream);
  color: var(--terracotta);
  border: 1px solid var(--border-subtle);
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.announcement-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.announcement-card.pinned {
  border-top: 4px solid var(--terracotta);
  background: linear-gradient(180deg, rgba(201, 111, 82, 0.04) 0%, var(--bg-surface) 30%);
}

.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.announcement-category-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
}

.announcement-category-pill.important {
  background: rgba(201, 111, 82, 0.15);
  color: var(--terracotta);
}
.announcement-category-pill.activity {
  background: rgba(113, 150, 107, 0.18);
  color: var(--deep-green);
}
.announcement-category-pill.info {
  background: rgba(142, 198, 213, 0.22);
  color: #2F6B7E;
}
.announcement-category-pill.celebration {
  background: rgba(244, 212, 119, 0.3);
  color: #8C6A18;
}

.announcement-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.announcement-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.announcement-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.announcement-footer {
  font-size: 0.76rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   12. MEMORIES (PHOTO GALLERY & LIGHTBOX)
   ========================================================================== */
.memories-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.memory-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.memory-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Stylized Vector Image Visual Container (NO AI/RASTER) */
.memory-image-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-cream);
}

.memory-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.memory-card:hover .memory-photo-img {
  transform: scale(1.08);
}

.memory-gradient-sunset {
  background: linear-gradient(135deg, #E89A7A 0%, #F4D477 50%, #C96F52 100%);
}
.memory-gradient-forest {
  background: linear-gradient(135deg, #71966B 0%, #416B55 60%, #2D4C3C 100%);
}
.memory-gradient-emerald {
  background: linear-gradient(135deg, #8EC6D5 0%, #71966B 50%, #F4D477 100%);
}
.memory-gradient-coral {
  background: linear-gradient(135deg, #E7A0AD 0%, #E89A7A 60%, #C96F52 100%);
}
.memory-gradient-sunshine {
  background: linear-gradient(135deg, #F4D477 0%, #FFF1D6 60%, #E89A7A 100%);
}
.memory-gradient-lavender {
  background: linear-gradient(135deg, #B8A6D4 0%, #E7A0AD 50%, #8EC6D5 100%);
}

.memory-art-svg {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.memory-card:hover .memory-art-svg {
  transform: scale(1.08);
}

.memory-overlay-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.memory-photos-count-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.memory-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.memory-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.memory-card-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  flex: 1;
}

.memory-card-date {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ==========================================================================
   13. ACHIEVEMENTS
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}

.achievement-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.achievement-image-container {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-cream);
}

.achievement-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.achievement-card:hover .achievement-photo-img {
  transform: scale(1.08);
}

.achievement-art-svg {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.achievement-card:hover .achievement-art-svg {
  transform: scale(1.08);
}

.achievement-icon-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.achievement-card-body {
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.achievement-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-cream);
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  width: fit-content;
}

.achievement-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.achievement-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* ==========================================================================
   14. ⭐ KEY FEATURE: BELAJAR TKA (LEARNING PORTAL)
   ========================================================================== */
.tka-portal-hero-banner {
  background: linear-gradient(135deg, rgba(65, 107, 85, 0.12) 0%, rgba(244, 212, 119, 0.18) 50%, rgba(201, 111, 82, 0.12) 100%), var(--bg-surface);
  border: 2px solid rgba(65, 107, 85, 0.25);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tka-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--deep-green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(65, 107, 85, 0.25);
}

.tka-hero-title {
  font-size: 2.4rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.tka-hero-subheading {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.tka-portal-notice-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-muted);
}
[data-theme="dusk"] .tka-portal-notice-box {
  background: var(--bg-surface-elevated);
}

/* Responsive TKA Grid: 3 columns (Desktop), 2 columns (Tablet), 1 column (Mobile) */
.tka-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.tka-subject-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tka-subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--subject-accent, var(--terracotta));
}

.tka-subject-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--subject-accent, var(--terracotta));
}

.tka-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.tka-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.tka-subject-card:hover .tka-icon-box {
  transform: scale(1.12) rotate(4deg);
}

.tka-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tka-status-badge.available {
  background: rgba(65, 107, 85, 0.14);
  color: var(--deep-green);
  border: 1px solid rgba(65, 107, 85, 0.25);
}

.tka-status-badge.coming-soon {
  background: rgba(244, 212, 119, 0.25);
  color: #926E10;
  border: 1px solid rgba(244, 212, 119, 0.4);
}

.tka-subject-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.tka-hub-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.tka-subject-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  flex: 1;
}

.tka-action-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
}

.tka-action-btn.btn-active {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--leaf-green) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(65, 107, 85, 0.25);
}

.tka-action-btn.btn-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(65, 107, 85, 0.35);
  color: #fff;
}

.tka-action-btn.btn-disabled {
  background: var(--bg-cream);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
.tka-action-btn.btn-disabled:hover {
  background: #FFE8CC;
  color: var(--terracotta);
}

/* ==========================================================================
   15. TKA LEARNING JOURNEY STEPPER
   ========================================================================== */
.tka-journey-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.tka-journey-steps-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.8rem 0;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
}

.journey-step-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.journey-step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 2px solid var(--terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.journey-step-item:hover .journey-step-circle {
  transform: scale(1.15);
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-glow-terracotta);
}

.journey-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.journey-step-desc {
  font-size: 0.76rem;
  color: var(--text-light);
  max-width: 130px;
}

.journey-arrow-indicator {
  font-size: 1.4rem;
  color: var(--terracotta);
  opacity: 0.6;
}

.journey-motto-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--terracotta);
  font-family: var(--font-heading);
  margin-top: 1.5rem;
}

/* ==========================================================================
   16. MINI PLAYLIST PLAYER
   ========================================================================== */
.playlist-container-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.player-core-widget {
  background: linear-gradient(145deg, var(--bg-cream) 0%, #FFF4DF 100%);
  border: 1.5px solid rgba(201, 111, 82, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="dusk"] .player-core-widget {
  background: linear-gradient(145deg, #382E28 0%, #2B231F 100%);
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.player-album-art {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--coral) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: var(--shadow-glow-terracotta);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all var(--transition-base);
}

.player-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.playing .player-album-art {
  animation: pulseAlbumGlow 2s infinite alternate;
}

@keyframes pulseAlbumGlow {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(201, 111, 82, 0.35); }
  100% { transform: scale(1.04); box-shadow: 0 0 24px rgba(244, 212, 119, 0.6); }
}

.player-details h3 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}
.player-details p {
  font-size: 0.9rem;
  color: var(--terracotta);
  font-weight: 600;
}

.player-waveform-visual {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin: 1.25rem 0;
}

.wave-bar {
  flex: 1;
  background: var(--terracotta);
  opacity: 0.35;
  border-radius: var(--radius-pill);
  height: 6px;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.playing .wave-bar {
  opacity: 0.85;
  animation: audioWave 1.2s ease-in-out infinite alternate;
}

.playing .wave-bar:nth-child(2) { animation-delay: 0.2s; }
.playing .wave-bar:nth-child(3) { animation-delay: 0.4s; }
.playing .wave-bar:nth-child(4) { animation-delay: 0.1s; }
.playing .wave-bar:nth-child(5) { animation-delay: 0.5s; }
.playing .wave-bar:nth-child(6) { animation-delay: 0.3s; }
.playing .wave-bar:nth-child(7) { animation-delay: 0.6s; }

@keyframes audioWave {
  0% { height: 6px; }
  100% { height: 26px; }
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.player-btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.player-btn:hover {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
  transform: scale(1.08);
}

.player-btn-play {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--coral) 100%);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow-terracotta);
}

.player-volume-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.player-volume-group input[type="range"] {
  accent-color: var(--terracotta);
}

/* Tracklist */
.track-list-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.track-item-row:hover {
  background: var(--bg-cream);
  border-color: var(--terracotta);
  transform: translateX(4px);
}

.track-item-row.active {
  background: var(--terracotta-light);
  border-color: var(--terracotta);
  font-weight: 700;
}

.track-left-meta {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.track-thumb-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
}

.track-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.track-vibe-tag {
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
}

/* Spotify Integration Styles */
.spotify-embed-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.spotify-embed-container iframe {
  border: none;
  width: 100%;
  height: 352px;
  display: block;
}

.spotify-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(135deg, #1DB954 0%, #169c46 100%);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.spotify-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-spotify {
  background: #1DB954;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-spotify:hover {
  background: #1ed760;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}

.btn-spotify-outline {
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid #1DB954;
  color: #1DB954;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-spotify-outline:hover {
  background: #1DB954;
  color: #fff;
  transform: translateY(-1px);
}

.player-mode-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
}

.player-mode-tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.player-mode-tab-btn:hover {
  background: var(--bg-cream);
  color: var(--terracotta);
}

.player-mode-tab-btn.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.player-mode-tab-btn.spotify-tab.active {
  background: #1DB954;
  border-color: #1DB954;
}

/* ==========================================================================
   17. SETTINGS & INTERACTIVITY
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-label h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.setting-label p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Switch Toggle UI */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D3C6BC;
  transition: .3s;
  border-radius: var(--radius-pill);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--deep-green);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem 2.5rem;
  margin-top: auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-brand-title {
  font-size: 1.8rem;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.footer-tagline-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-green);
  margin-bottom: 0.85rem;
}

.footer-quote-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.footer-nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-nav-links a:hover {
  color: var(--terracotta);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ==========================================================================
   19. MOBILE BOTTOM NAVIGATION & MODALS
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottombar-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 120;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dusk"] .mobile-bottom-nav {
  background: rgba(42, 34, 30, 0.95);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  border: none;
  background: transparent;
  transition: all var(--transition-fast);
}

.bottom-nav-item .b-icon {
  font-size: 1.25rem;
  pointer-events: none;
}

.bottom-nav-item span {
  pointer-events: none;
}

.bottom-nav-item.active {
  color: var(--terracotta);
}

/* Toast Notifications */
.vencanto-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 360px;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lightbox Modal */
/* Modal Scroll Lock */
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* Lightbox Modal */
.vencanto-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.vencanto-modal-backdrop.active {
  display: flex;
}

.modal-content-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.modal-content-box::-webkit-scrollbar {
  width: 6px;
}
.modal-content-box::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content-box::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}
.modal-content-box::-webkit-scrollbar-thumb:hover {
  background: var(--terracotta);
}

@keyframes scaleUpModal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -1rem;
  margin-right: -1rem;
  margin-bottom: 0.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-main);
  z-index: 50;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--terracotta);
  color: #fff;
  transform: rotate(90deg);
}

/* ==========================================================================
   Memories Carousel Lightbox & Interactive Slider
   ========================================================================== */
.memory-carousel-container {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.memory-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2.5rem;
}

.memory-counter-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.memory-carousel-stage {
  position: relative;
  height: 270px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  user-select: none;
  background-color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.memory-carousel-stage:active {
  transform: scale(0.99);
}

.memory-carousel-stage .memory-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: carouselFadeIn 0.3s ease;
}

.memory-carousel-stage .memory-art-svg {
  width: 100%;
  height: 100%;
  animation: carouselFadeIn 0.3s ease;
}

@keyframes carouselFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.memory-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-subtle);
  z-index: 10;
  transition: all var(--transition-fast);
  cursor: pointer;
}

[data-theme="dusk"] .memory-carousel-nav-btn {
  background: rgba(42, 34, 30, 0.9);
  color: #fff;
}

.memory-carousel-nav-btn:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
}

.memory-carousel-nav-btn.prev-btn {
  left: 0.75rem;
}

.memory-carousel-nav-btn.next-btn {
  right: 0.75rem;
}

.memory-carousel-info {
  animation: fadeInText 0.3s ease;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.memory-carousel-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.memory-carousel-caption {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.memory-carousel-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.memory-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.memory-carousel-dot:hover {
  background: var(--terracotta-light);
}

.memory-carousel-dot.active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--terracotta);
}

.memory-thumbnails-strip {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem;
  justify-content: center;
}

.memory-thumb-item {
  width: 62px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-thumb-item:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.memory-thumb-item.active {
  border-color: var(--terracotta);
  box-shadow: 0 0 10px rgba(201, 111, 82, 0.45);
  transform: scale(1.08);
}

.memory-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-thumb-item svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   19. ADMIN AUTHENTICATION & ROLE-BASED ACCESS
   ========================================================================== */
/* Role-based Visibility Rules */
body:not(.is-admin-active) .admin-only-action {
  display: none !important;
}
body.is-admin-active .admin-only-action {
  display: inline-flex !important;
}
body:not(.is-admin-active) .admin-only-block {
  display: none !important;
}
body.is-admin-active .admin-only-block {
  display: block !important;
}

/* Floating Admin Status Bar */
.admin-status-bar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: linear-gradient(90deg, #1C4431 0%, #2A5A44 100%);
  color: #FFF;
  padding: 0.6rem 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border-bottom: 2px solid var(--sunshine-gold);
  animation: fadeInDown 0.3s ease;
}

.admin-status-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 0.86rem;
}

.admin-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-admin-logout {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFF;
  font-weight: 700;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.76rem;
  transition: all var(--transition-fast);
}

.btn-admin-logout:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

/* Admin Login Modal */
.admin-login-modal-box {
  max-width: 420px;
  padding: 2.5rem 2.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.admin-login-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.admin-login-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 0.85rem;
  box-shadow: var(--shadow-sm);
}

.admin-login-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.admin-login-error {
  background: rgba(201, 111, 82, 0.12);
  color: var(--terracotta);
  border: 1px solid rgba(201, 111, 82, 0.3);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: center;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .vencanto-input {
  padding-right: 2.8rem;
}

.btn-toggle-pw {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.btn-toggle-pw:hover {
  opacity: 1;
}

.admin-login-hint {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.admin-login-hint code {
  background: var(--bg-cream);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  color: var(--terracotta);
}

.admin-topbar-btn {
  border-color: rgba(201, 111, 82, 0.35);
}

body.is-admin-active .admin-topbar-btn {
  background: var(--deep-green);
  color: #FFF;
  border-color: var(--deep-green);
}

body.is-admin-active #sidebarAdminAuthBtn {
  background: rgba(42, 90, 68, 0.15);
  color: var(--deep-green);
  font-weight: 700;
}

/* ==========================================================================
   20. RESPONSIVE BREAKPOINTS
   ========================================================================== */
/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }
  
  .content-area {
    padding: 1.8rem;
  }
  
  .tka-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .agenda-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .home-widgets-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-casa-graphic {
    opacity: 0.3;
    right: -60px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: var(--shadow-lg);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-wrapper {
    margin-left: 0;
    padding-bottom: calc(var(--bottombar-height) + 1rem);
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  .topbar {
    padding: 0 1.2rem;
  }
  
  .content-area {
    padding: 1.25rem 1rem;
  }
  
  .hero-casa-container {
    padding: 2.2rem 1.4rem;
  }
  
  .hero-greeting {
    font-size: 2rem;
  }
  
  .hero-tagline-highlight {
    font-size: 1.4rem;
  }
  
  .hero-casa-graphic {
    display: none;
  }
  
  .tka-subjects-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tka-journey-steps-flow {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .journey-arrow-indicator {
    transform: rotate(90deg);
  }
  
  .tka-teaser-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .vencanto-modal-backdrop {
    padding: 0.6rem;
    align-items: flex-start;
  }

  .modal-content-box {
    max-height: 90vh;
    max-height: 90dvh;
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius-lg);
    margin: 1.2rem auto;
  }

  /* Notification Flyout Mobile Protection & Full Viewport Placement */
  .notif-flyout-panel {
    position: fixed !important;
    top: 64px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 125px) !important;
    max-height: calc(100dvh - 125px) !important;
    z-index: 99999 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    border: 1.5px solid var(--terracotta) !important;
    border-radius: var(--radius-lg) !important;
  }

  .notif-list-container {
    max-height: calc(100vh - 245px) !important;
    max-height: calc(100dvh - 245px) !important;
    -webkit-overflow-scrolling: touch;
  }

  .btn-close-notif-mobile {
    display: inline-flex !important;
  }
}

/* ====================================================================
   ADMIN MANAGEMENT HUB & EDIT CONTROLS
   ==================================================================== */
.admin-hub-header h2 {
  font-family: var(--font-heading);
  color: var(--text-main);
}

.btn-edit-agenda, .btn-delete-agenda,
.btn-edit-memory, .btn-delete-memory,
.btn-edit-achievement, .btn-delete-achievement,
.btn-delete-member,
.btn-edit-tka, .btn-delete-tka,
.btn-delete-msg, .btn-delete-trx {
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-edit-agenda:hover,
.btn-edit-memory:hover,
.btn-edit-achievement:hover,
.btn-edit-tka:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.btn-delete-agenda:hover,
.btn-delete-memory:hover,
.btn-delete-achievement:hover,
.btn-delete-member:hover,
.btn-delete-tka:hover,
.btn-delete-msg:hover,
.btn-delete-trx:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.message-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.message-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.treasury-table-card table tr:hover {
  background: rgba(201, 111, 82, 0.04);
}

/* ==========================================================================
   NOTIFICATION CENTER & DROPDOWN FLYOUT
   ========================================================================== */
.notification-dropdown-wrapper {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
}

.notif-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #E63946;
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  animation: pulseDot 1.8s infinite;
}

.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #E63946;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(230, 57, 70, 0.4);
  border: 2px solid var(--bg-surface);
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.notif-flyout-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInDown 0.22s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-header {
  padding: 0.95rem 1.15rem;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-mark-all-read {
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--deep-green);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mark-all-read:hover {
  background: rgba(65, 107, 85, 0.1);
  border-color: var(--deep-green);
}

.btn-close-notif-mobile {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-notif-mobile:hover {
  background: rgba(201, 111, 82, 0.12);
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.notif-filter-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface);
  border-bottom: 1px dashed var(--border-subtle);
  overflow-x: auto;
}

.notif-tab-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--text-light);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notif-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-cream);
}

.notif-tab-btn.active {
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
}

.notif-list-container {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
}

.notif-list-container::-webkit-scrollbar {
  width: 4px;
}
.notif-list-container::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.notif-item-card {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
  text-align: left;
}

.notif-item-card:last-child {
  border-bottom: none;
}

.notif-item-card:hover {
  background: var(--bg-cream);
}

.notif-item-card.unread {
  background: rgba(201, 111, 82, 0.05);
}

.notif-item-card.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--terracotta);
}

.notif-item-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.2rem;
  line-height: 1.35;
}

.notif-item-desc {
  font-size: 0.76rem;
  color: var(--text-light);
  margin: 0 0 0.35rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.notif-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
}

.notif-footer {
  padding: 0.65rem 1rem;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.notif-footer-text {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.notif-empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   18. CLASS ASSIGNMENTS HUB STYLING
   ========================================================================== */

.assignment-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.assignment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.assignment-card.is-completed {
  opacity: 0.88;
  background: #FAFCFA;
  border-color: rgba(113, 150, 107, 0.4);
}

.assignment-card-banner {
  padding: 1rem 1.25rem;
  color: #fff;
  position: relative;
}

.assignment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.assignment-subject-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.assignment-type-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.assignment-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.assignment-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.assignment-teacher {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.assignment-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assignment-deadline-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.asg-deadline-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.asg-deadline-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.asg-deadline-time {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
}

.asg-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.asg-status-urgent {
  background: #FFE8E8;
  color: #D9383A;
  border: 1px solid rgba(217, 56, 58, 0.3);
  animation: pulseUrgent 2s infinite alternate;
}

.asg-status-pending {
  background: #FFF4DE;
  color: #B57D00;
  border: 1px solid rgba(181, 125, 0, 0.3);
}

.asg-status-overdue {
  background: #F4F4F4;
  color: #777;
  border: 1px solid #DDD;
}

.asg-status-completed {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

@keyframes pulseUrgent {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.assignment-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FLOATING IN-APP NOTIFICATION BANNER
   ========================================================================== */
.vencanto-in-app-banner {
  position: fixed !important;
  top: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-60px) !important;
  opacity: 0 !important;
  width: calc(100% - 24px) !important;
  max-width: 440px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 0.9rem 1.15rem !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  border: 1.5px solid #ea580c !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.vencanto-in-app-banner.is-visible {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

@media (max-width: 600px) {
  .vencanto-in-app-banner {
    top: 16px !important;
    width: calc(100% - 20px) !important;
    padding: 0.8rem 1rem !important;
  }
}

