/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
   :root {
    /* Light Theme (Default fallback, though body starts as dark-theme) */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f7f6;
    --bg-tertiary: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
  
    --accent-primary: #0B3C5D; /* Royal Blue */
    --accent-secondary: #D9B310; /* Gold */
    --accent-hover: #155b8a;
    --accent-gold-hover: #e5c430;
  
    --border-color: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
  
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  body.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
  
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
  
    --accent-primary: #1d6190;
    --accent-secondary: #e5a823; 
    --accent-hover: #2982be;
    --accent-gold-hover: #ffd15c;
  
    --border-color: #334155;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  }
  
  /* ==========================================================================
     Reset & Base
     ========================================================================== */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-medium), color var(--transition-medium);
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }
  
  a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  
  a:hover {
    color: var(--accent-hover);
  }
  
  ul {
    list-style: none;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .text-center { text-align: center; }
  
  /* ==========================================================================
     Backgrounds & Decor
     ========================================================================== */
  .bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
      linear-gradient(var(--border-color) 1px, transparent 1px),
      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    z-index: -3;
    pointer-events: none;
  }
  
  .bg-glow {
    position: fixed;
    top: 20%; left: 10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    opacity: 0.05;
    z-index: -2;
    filter: blur(60px);
    pointer-events: none;
  }
  
  /* Decorative SVGs */
  .decor-landmark {
    position: fixed;
    bottom: -20px;
    z-index: -1;
    opacity: 0.15;
    color: var(--text-secondary);
    pointer-events: none;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
  }
  
  .landmark-left {
    left: 2rem;
    width: 250px;
  }
  
  .landmark-right {
    right: 2rem;
    width: 300px;
  }
  
  @media (max-width: 768px) {
    .decor-landmark { opacity: 0.05; width: 150px; }
    .landmark-left { left: -20px; }
    .landmark-right { right: -20px; }
  }
  
  /* ==========================================================================
     Header & Navigation
     ========================================================================== */
  .app-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-medium);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
  }
  
  .logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-primary);
  }
  
  .logo-subtitle {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 2px;
  }
  
  .desktop-nav {
    display: flex;
    gap: 2.5rem;
  }
  
  .nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent-secondary);
    transition: width var(--transition-fast);
  }
  
  .nav-link:hover, .nav-link.active {
    color: var(--text-primary);
  }
  
  .nav-link.active::after, .nav-link:hover::after {
    width: 100%;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  /* Buttons */
  button {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
  }
  
  .lang-switch {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 0.2rem;
  }
  
  .lang-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 16px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
  }
  
  .lang-btn.active {
    background: var(--accent-primary);
    color: #fff;
  }
  
  .theme-toggle-btn {
    font-size: 1.2rem;
    color: var(--text-primary);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
  }
  
  .theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: rotate(15deg);
  }
  
  body:not(.dark-theme) .sun-icon { display: none; }
  body.dark-theme .moon-icon { display: none; }
  
  .mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
  }
  
  /* Mobile Nav */
  .mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }
  
  .mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-nav-container {
    text-align: center;
    position: relative;
    width: 100%;
  }
  
  .mobile-close-btn {
    position: absolute;
    top: -4rem; right: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
  }
  
  .mobile-link.active, .mobile-link:hover {
    color: var(--accent-secondary);
  }
  
  @media (max-width: 900px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
  }
  
  /* ==========================================================================
     App Main & Views
     ========================================================================== */
  .app-main {
    padding-top: 80px; /* Header offset */
    min-height: calc(100vh - 80px);
  }
  
  .view-section {
    display: none;
    animation: fadeIn var(--transition-slow);
  }
  
  .view-section.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ==========================================================================
     Home View Elements
     ========================================================================== */
  .hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
  }
  
  .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(217, 179, 16, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(217, 179, 16, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
  }
  
  .event-hero-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-secondary);
    margin-top: 3rem;
    display: flex;
    min-height: 400px;
    cursor: pointer;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  }
  
  .event-hero-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  }
  
  .hero-bg-img {
    position: absolute;
    top: 0; right: 0;
    width: 60%; height: 100%;
    background-size: cover;
    background-position: center left;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
    transition: transform var(--transition-slow);
  }
  
  .event-hero-box:hover .hero-bg-img {
    transform: scale(1.05);
  }
  
  .hero-glass {
    position: relative;
    z-index: 2;
    width: 60%;
    padding: 4rem 3rem;
    background: linear-gradient(90deg, var(--bg-primary) 70%, transparent 100%);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  body.dark-theme .hero-glass {
    background: linear-gradient(90deg, var(--bg-secondary) 70%, transparent 100%);
  }
  
  .hero-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
  }
  
  .hero-main-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    margin-top: 2rem;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
  }
  
  .btn-primary {
    background: var(--accent-primary);
    color: #fff;
    border: 2px solid var(--accent-primary);
  }
  
  .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
  }
  
  .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
  }
  
  .btn-secondary:hover {
    border-color: var(--text-primary);
  }
  
  .btn-glow {
    box-shadow: 0 4px 15px rgba(11, 60, 93, 0.4);
  }
  
  .btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
  
  /* History Section */
  .section-header {
    margin: 5rem 0 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    margin: 1rem auto;
    border-radius: 2px;
  }
  
  .align-left { margin-left: 0; }
  
  .grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .content-align-center {
    align-items: center;
  }
  
  .history-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
  }
  
  .quote-block {
    margin: 4rem auto;
    max-width: 800px;
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    position: relative;
    border: 1px solid var(--border-color);
  }
  
  .quote-icon {
    font-size: 3rem;
    color: var(--accent-secondary);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem; left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    padding: 0 1rem;
  }
  
  .quote-text {
    font-size: 1.4rem;
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
  }
  
  .quote-author {
    font-weight: 700;
    color: var(--accent-primary);
  }
  
  /* Pillars Grid */
  .grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
  }
  
  .pillar-card {
    background: var(--bg-secondary);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  }
  
  .pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-secondary);
  }
  
  .pillar-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(217, 179, 16, 0.1);
    color: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
  
  /* ==========================================================================
     Event View Elements
     ========================================================================== */
  .event-hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    background: url('assets/tg_mures_banner.png') center/cover no-repeat;
    color: #fff;
    margin-top: -80px; /* pull up behind header */
    padding-top: 140px;
  }
  
  .event-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 60, 93, 0.8), var(--bg-primary));
    z-index: 1;
  }
  
  .event-hero-content {
    position: relative;
    z-index: 2;
  }
  
  .event-hero-content .badge {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: var(--accent-secondary);
  }
  
  .event-title {
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: #fff;
  }
  
  .event-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: #f8fafc;
  }
  
  .countdown-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-primary);
  }
  
  .countdown-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
  }
  
  .countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  
  .time-block {
    display: flex;
    flex-direction: column;
  }
  
  .time-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    color: var(--accent-primary);
  }
  
  .time-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.5rem;
  }
  
  /* Dracula Block */
  .dracula-block {
    margin: 4rem auto;
  }
  
  .dracula-card {
    display: flex;
    background: #0f172a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid #1e293b;
  }
  
  .dracula-img {
    width: 50%;
    background-size: cover;
    background-position: center;
  }
  
  .dracula-content {
    width: 50%;
    padding: 4rem;
    color: #cbd5e1;
  }
  
  .dracula-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', serif; /* slight gothic hint */
  }
  
  .dracula-content p {
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  /* Event Details & Video */
  .event-details {
    margin: 6rem auto;
  }
  
  .event-bullets {
    margin-top: 2rem;
  }
  
  .event-bullets li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }
  
  .event-bullets i {
    color: var(--accent-secondary);
    width: 24px;
    margin-right: 10px;
  }
  
  .video-container-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
    cursor: pointer;
  }
  
  .video-placeholder-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 60, 93, 0.9), rgba(15, 23, 42, 0.8)), url('assets/tg_mures_banner.png') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity var(--transition-medium);
  }
  
  .video-placeholder-overlay:hover .play-btn-circle {
    transform: scale(1.1);
    background: var(--accent-secondary);
    color: #000;
  }
  
  .play-btn-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
  }
  
  .video-play-text {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
  }
  
  .video-iframe-holder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
  }
  
  .video-iframe-holder iframe {
    width: 100%; height: 100%;
    border: none;
  }
  
  /* ==========================================================================
     Registration Form
     ========================================================================== */
  .registration-section {
    margin-bottom: 6rem;
  }
  
  .form-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .input-group {
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  .input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }
  
  .input-icon-wrapper {
    position: relative;
  }
  
  .input-icon {
    position: absolute;
    top: 50%; left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color var(--transition-fast);
  }
  
  .text-area-wrapper .input-icon {
    top: 1.2rem;
    transform: none;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  input:focus, select:focus, textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.1);
  }
  
  input:focus + .input-icon, select:focus + .input-icon, textarea:focus + .input-icon {
    color: var(--accent-primary);
  }
  
  /* Custom Checkboxes */
  .checkbox-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-primary);
    transition: all var(--transition-fast);
  }
  
  .custom-checkbox-container:hover {
    border-color: var(--accent-primary);
  }
  
  .custom-checkbox-container:has(input:checked) {
    border: 1px solid #33ff00;
  }
  
  .custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
  }
  
  .checkbox-checkmark {
    height: 24px; width: 24px;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    margin-right: 1rem;
    position: relative;
    flex-shrink: 0;
    transition: background-color var(--transition-fast);
  }
  
  .custom-checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: #00CF25; /* User requested green */
  }
  
  .checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px; top: 4px;
    width: 6px; height: 12px;
    border: solid #4bff00;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  .custom-checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
  }
  
  .custom-checkbox-container input:disabled ~ .checkbox-checkmark {
    opacity: 0.5;
  }
  
  .checkbox-details {
    display: flex;
    flex-direction: column;
  }
  
  .checkbox-title {
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .checkbox-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  .individual-days-grid {
    display: grid;
    gap: 0.5rem;
    margin-left: 2rem;
    transition: opacity var(--transition-fast);
  }
  
  .individual-days-grid.disabled {
    opacity: 0.5;
    pointer-events: none;
  }
  
  .full-event-opt {
    border-color: var(--accent-primary);
    background: rgba(11, 60, 93, 0.05);
  }
  
  /* Currency Selector Premium Styling */
  .currency-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 2rem 0;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
  
  .currency-label-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .currency-options-wrapper {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
  }
  
  .currency-option {
    position: relative;
    cursor: pointer;
  }
  
  .currency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .currency-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: transparent;
    transition: all var(--transition-medium);
    border: 1px solid transparent;
  }
  
  .currency-option:hover span {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
  }
  
  .currency-option input[type="radio"]:checked + span {
    color: #fff;
    background: var(--accent-primary);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(11, 60, 93, 0.4);
  }

  .form-actions {
    text-align: right;
    margin-top: 2rem;
  }

  
  /* Validation Styles */
  .error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
  
  .input-group.invalid input, .input-group.invalid select {
    border-color: #ef4444;
  }
  
  .input-group.invalid .error-msg {
    display: block;
  }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .app-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
  }
  
  .footer-left {
    max-width: 400px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
  }
  
  .footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  .footer-right {
    text-align: right;
  }
  
  .footer-socials {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
  }
  
  .footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
  }
  
  .footer-socials a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
  }
  
  .footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  /* ==========================================================================
     Modal / Digital Ticket
     ========================================================================== */
  .modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }
  
  .modal-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-wrapper {
    background: var(--bg-primary);
    width: 90%;
    max-width: 700px;
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-medium);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }
  
  .modal-overlay.open .modal-wrapper {
    transform: translateY(0) scale(1);
  }
  
  .modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-header h2 {
    margin: 0;
    color: var(--accent-primary);
  }
  
  .modal-close-btn {
    font-size: 1.5rem;
    color: var(--text-muted);
  }
  
  .modal-close-btn:hover { color: var(--text-primary); }
  
  .modal-body {
    padding: 2rem;
  }
  
  .modal-intro-text {
    margin-bottom: 2rem;
    color: var(--text-secondary);
  }
  
  /* Ticket Design */
  .digital-ticket {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-sm);
  }
  
  .ticket-main {
    flex: 1;
    padding: 2rem;
  }
  
  .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }
  
  .ticket-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-primary);
  }
  
  .ticket-slogan {
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 1px;
  }
  
  .ticket-event-name {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .ticket-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  
  .detail-val {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
  }
  
  .ticket-days-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .day-chip {
    background: rgba(11, 60, 93, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  body.dark-theme .day-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .ticket-divider {
    width: 30px;
    position: relative;
    display: flex;
    justify-content: center;
  }
  
  .dotted-line {
    width: 2px;
    height: 100%;
    background-image: linear-gradient(var(--border-color) 40%, rgba(255,255,255,0) 0%);
    background-position: right;
    background-size: 2px 10px;
    background-repeat: repeat-y;
  }
  
  .notch {
    position: absolute;
    width: 30px; height: 30px;
    background: var(--bg-primary);
    border-radius: 50%;
    left: 0;
  }
  
  .notch-top { top: -15px; border-bottom: 1px solid var(--border-color); }
  .notch-bottom { bottom: -15px; border-top: 1px solid var(--border-color); }
  
  .ticket-stub {
    width: 150px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: none;
  }
  
  .stub-qr-container {
    width: 100px; height: 100px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #000;
  }
  
  .stub-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
  }
  
  .modal-notice {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(217, 179, 16, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-secondary);
  }
  
  .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    background: var(--bg-secondary);
  }
  
  /* ==========================================================================
     Animations
     ========================================================================== */
  .reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .reveal-up { transform: translateY(40px); }
  .reveal-left { transform: translateX(-40px); }
  .reveal-right { transform: translateX(40px); }
  .zoom-in { transform: scale(0.95); }
  
  .reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
  }
  
  /* ==========================================================================
     Responsive
     ========================================================================== */
  @media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
    .event-title { font-size: 3.5rem; }
    .grid-2-cols { grid-template-columns: 1fr; gap: 2rem; }
    .grid-4-cols { grid-template-columns: 1fr 1fr; }
    .dracula-card { flex-direction: column; }
    .dracula-img { width: 100%; height: 250px; }
    .dracula-content { width: 100%; padding: 2rem; }
    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    .form-wrapper { padding: 2rem 1.5rem; }
    .event-hero-box { flex-direction: column; }
    .hero-glass { width: 100%; background: var(--bg-secondary); padding: 2rem; }
    .hero-bg-img { position: relative; width: 100%; height: 200px; clip-path: none; }
    .digital-ticket { flex-direction: column; }
    .ticket-divider { width: 100%; height: 30px; }
    .dotted-line { width: 100%; height: 2px; background-image: linear-gradient(90deg, var(--border-color) 40%, rgba(255,255,255,0) 0%); background-size: 10px 2px; background-repeat: repeat-x; }
    .notch { left: auto; }
    .notch-top { top: 0; left: -15px; border-right: 1px solid var(--border-color); border-bottom: none; }
    .notch-bottom { bottom: 0; right: -15px; border-left: 1px solid var(--border-color); border-top: none; }
    .ticket-stub { width: 100%; padding: 1rem; flex-direction: row; justify-content: space-around; }
  }
  
  @media (max-width: 600px) {
    .grid-4-cols { grid-template-columns: 1fr; }
    .ticket-details-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .countdown-timer { gap: 1rem; }
    .time-number { font-size: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-right, .footer-left { text-align: center; width: 100%; }
    .footer-socials { justify-content: center; }
  }

  @media (max-width: 900px) {
    .event-hero-box { flex-direction: column-reverse; min-height: auto; }
    .hero-glass { width: 100%; padding: 2rem; background: var(--bg-secondary) !important; }
    body.dark-theme .hero-glass { background: var(--bg-secondary) !important; }
    .hero-bg-img { position: relative; width: 100%; height: 250px; clip-path: none; }
  }

/* ==========================================================================
   Dracula Joke Popup
   ========================================================================== */
#dracula-joke-popup {
  position: fixed;
  bottom: -1500px;
  left: 0;
  width: 700px;
  max-width: 45vw;
  z-index: 9999;
  transition: bottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
#dracula-joke-popup.show {
  bottom: -5px; /* Sits exactly on the bottom edge */
  pointer-events: auto;
}
#dracula-joke-popup img {
  width: 100%;
  height: auto;
  display: block;
}
.dracula-joke-close {
  position: absolute;
  top: 50px;
  right: 50px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
}
.dracula-joke-close:hover {
  background: rgba(220, 53, 69, 0.9);
  transform: scale(1.1);
}
@media (max-width: 768px) {
  #dracula-joke-popup {
    max-width: 90vw;
    width: 90vw;
  }
  .dracula-joke-close {
    top: 20px;
    right: 20px;
  }
}

/* ==========================================================================
   Members (Membri) Section
   ========================================================================== */
.members-section {
  padding: 6rem 0;
}
@media (max-width: 768px) {
  .members-section {
    padding: 4rem 0;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.5;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.member-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.member-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
}

.member-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--glass-border);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.member-card:hover .member-photo {
  transform: scale(1.05);
}

.member-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
  padding: 1.25rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.member-languages {
  display: flex;
  gap: 6px;
}

.rounded-flag {
  width: 22px;
  height: 22px;
  border-radius: 50% !important;
  background-position: center;
  background-size: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  display: inline-block;
  overflow: hidden;
}

.member-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.member-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.member-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-contact-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-member-contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.btn-telegram {
  background: #24A1DE; /* Telegram blue */
  color: #ffffff !important;
}

.btn-telegram:hover {
  background: #1e87bb;
  transform: translateY(-2px);
}

.btn-phone {
  background: var(--accent-primary);
  color: #ffffff !important;
}

.btn-phone:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Event Schedule & Timeline
   ========================================================================== */
.schedule-section {
  padding: 6rem 0;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  padding: 1rem 0;
}

/* The vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
  box-sizing: border-box;
}

/* Left & Right layout */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  top: 2.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-secondary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-secondary);
  z-index: 2;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

/* Timeline card with glassmorphism */
.timeline-card {
  padding: 1.5rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
  position: relative;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(217, 179, 16, 0.15);
  border-color: var(--accent-secondary);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--text-primary);
}

.timeline-day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.timeline-activities {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-activities li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.5;
}

.timeline-activities li:last-child {
  margin-bottom: 0;
}

.timeline-item.left .timeline-activities li {
  padding-right: 1.25rem;
}

.timeline-item.left .timeline-activities li::after {
  content: '✦';
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--accent-secondary);
  font-size: 0.8rem;
}

.timeline-item.right .timeline-activities li {
  padding-left: 1.25rem;
}

.timeline-item.right .timeline-activities li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-secondary);
  font-size: 0.8rem;
}

/* Custom styles for checkbox layout in index */
.custom-checkbox-container {
  display: block;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.custom-checkbox-container:hover {
  border-color: var(--accent-secondary);
  background: rgba(217, 179, 16, 0.05);
}

.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  height: 24px;
  width: 24px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.custom-checkbox-container:hover input ~ .checkbox-checkmark {
  background-color: var(--border-color);
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark:after {
  display: block;
}

.custom-checkbox-container .checkbox-checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--bg-primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox-details {
  display: flex;
  flex-direction: column;
}

.checkbox-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.checkbox-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.checkbox-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-top: 0.5rem;
}

.custom-checkbox-container.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.custom-checkbox-container.disabled:hover {
  border-color: var(--glass-border);
  background: var(--glass-bg);
}

.custom-checkbox-container.disabled input ~ .checkbox-checkmark {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 1rem;
  }

  .timeline-item.left {
    left: 0;
    text-align: left;
  }

  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 11px;
    right: auto;
  }

  .timeline-item.left .timeline-activities li {
    padding-right: 0;
    padding-left: 1.25rem;
  }

  .timeline-item.left .timeline-activities li::after {
    display: none;
  }

  .timeline-item.left .timeline-activities li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-secondary);
    font-size: 0.8rem;
  }
}



