@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&family=Great+Vibes&family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #091b2f;
  --secondary-navy: #0c233c;
  --dark-navy: #05101d;
  --accent-red: #e30613;
  --accent-crimson: #b8000b;
  --accent-pink: #d90429;
  --gold-bright: #ffd700;
  --gold-warm: #f59e0b;
  --gold-light: #fde68a;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --card-bg: #ffffff;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-monument: 'Cinzel', serif;
  --font-signature: 'Great Vibes', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #040d1a;
  font-family: var(--font-body);
  color: var(--text-dark);
  user-select: none;
}

/* ==========================================================================
   29 EKİM CUMHURİYET BAYRAMI CANLI KANVAS (ALTIN YILDIZ TOZU & HAVAİ FİŞEK)
   ========================================================================== */
.republic-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9000;
  display: none;
}

body.special-theme-active .republic-canvas,
body.theme-29ekim .republic-canvas {
  display: block;
}

/* Smart Board Main Container - 16:9 responsive display */
.screen-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #091b2f;
}

/* ==========================================================================
   1. ARCHITECTURAL SPLIT-DIAGONAL HEADER BAR
   ========================================================================== */
.header-bar {
  height: 12.2vh;
  min-height: 84px;
  background: linear-gradient(90deg, #091b2f 0%, #0d2540 60%, #08182b 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2vw;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  z-index: 30;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

/* Left White Wing with Diagonal Cut (Matches Reference & Upgrades It) */
.header-left {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.4vw;
  background: #ffffff;
  padding: 0 4.5vw 0 2vw;
  position: relative;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, calc(100% - 58px) 100%, 0 100%);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
}

/* Diagonal Crimson Accent Slash Behind White Wing */
.header-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 49vw;
  max-width: 920px;
  height: 100%;
  background: linear-gradient(180deg, #e30613 0%, #b8000b 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 62px) 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
  transition: all 0.5s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-ring {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-navy), var(--accent-red));
  box-shadow: 0 4px 14px rgba(9, 27, 47, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
}

.school-titles {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--primary-navy);
  line-height: 1.05;
}

.school-branch {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 4.5px;
  color: var(--secondary-navy);
  margin-top: 2px;
}

.header-divider {
  width: 2px;
  height: 46px;
  background: linear-gradient(180deg, transparent, #94a3b8, transparent);
  margin: 0 0.3vw;
}

.header-slogan {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #1e293b;
  text-transform: uppercase;
  max-width: 220px;
  line-height: 1.25;
}

/* 29 Ekim Ceremonial Center Banner in Header (Hidden in Standard Mode) */
.republic-header-banner {
  display: none;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(184, 0, 11, 0.95) 0%, rgba(122, 0, 7, 0.95) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.65);
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 0 25px rgba(227, 6, 19, 0.5), 0 0 0 3px rgba(255, 215, 0, 0.15);
  z-index: 5;
  animation: pulseGoldBorder 3s infinite ease-in-out;
}

@keyframes pulseGoldBorder {
  0%, 100% { box-shadow: 0 0 20px rgba(227, 6, 19, 0.45), 0 0 10px rgba(255, 215, 0, 0.25); }
  50% { box-shadow: 0 0 32px rgba(227, 6, 19, 0.75), 0 0 20px rgba(255, 215, 0, 0.55); }
}

.rep-header-flag-icon {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  background: #b8000b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.svg-ay-yildiz {
  width: 38px;
  height: 26px;
}

.rep-header-texts {
  display: flex;
  flex-direction: column;
}

.rep-header-top-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.rep-header-main-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Header Right Wing (Dark Navy / Imperial Crimson) */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.6vw;
  z-index: 4;
  color: #ffffff;
}

.header-right-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.16);
}

/* Live Date & Time */
.live-clock-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.live-date {
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.live-time-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.live-time {
  font-family: var(--font-heading);
  font-size: 2.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.live-seconds {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--accent-red);
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.1;
}

/* Live Weather */
.weather-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.weather-icon-box {
  font-size: 2.2rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
  animation: floatWeather 4s ease-in-out infinite;
}

@keyframes floatWeather {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

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

.weather-temp {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.weather-city {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 2px;
}

/* Top Corner Motto */
.header-motto-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.header-motto-text {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.header-motto-bar {
  width: 44px;
  height: 3.5px;
  background-color: var(--accent-red);
  margin-top: 5px;
  border-radius: 2px;
}

/* ==========================================================================
   2. MAIN CONTENT (72% STAGE + 28% SIDEBAR)
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Media / School Stage */
.stage-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #071322;
}

.media-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.media-background img,
.media-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
}

.media-background iframe {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: none;
  pointer-events: none;
  transform: scale(1.08);
}

.media-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(6, 18, 34, 0.82) 0%, rgba(6, 18, 34, 0.48) 38%, rgba(6, 18, 34, 0.1) 70%, transparent 100%),
    linear-gradient(0deg, rgba(5, 14, 26, 0.85) 0%, rgba(5, 14, 26, 0.2) 22%, transparent 45%);
  z-index: 2;
  transition: background 0.5s ease;
}

/* 29 Ekim Top-Right Waving Flag Seal on Stage (Hidden in Standard Mode) */
.republic-stage-corner-seal {
  position: absolute;
  top: 2.2vh;
  right: 2vw;
  z-index: 6;
  display: none;
}

.seal-flag-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 2, 4, 0.78);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  backdrop-filter: blur(12px);
  padding: 8px 16px 8px 10px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(227, 6, 19, 0.35);
}

.seal-flag-svg {
  width: 54px;
  height: 36px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  animation: waveFlagSubtle 3.5s ease-in-out infinite;
}

@keyframes waveFlagSubtle {
  0%, 100% { transform: perspective(200px) rotateY(0deg) skewY(0deg); }
  50% { transform: perspective(200px) rotateY(-8deg) skewY(1.5deg); }
}

.seal-flag-text {
  display: flex;
  flex-direction: column;
}

.seal-year {
  font-family: var(--font-monument);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.seal-sub {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
}

/* Left Content Overlay */
.stage-overlay-content {
  position: absolute;
  top: 3.5vh;
  left: 2.8vw;
  z-index: 5;
  max-width: 560px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.8vh;
}

/* 29 Ekim Hero Monument Card on Stage (Hidden in Standard Mode) */
.republic-hero-card {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(145deg, rgba(110, 0, 8, 0.86) 0%, rgba(45, 2, 6, 0.9) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  border-left: 5px solid var(--gold-bright);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(227, 6, 19, 0.3);
  position: relative;
  overflow: hidden;
}

.republic-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.14), transparent);
  transform: rotate(25deg);
  animation: shimmerSweep 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { left: -60%; }
  45%, 100% { left: 140%; }
}

.rep-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rep-portrait-medallion {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ffd700, #b45309, #fde047);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.45);
  position: relative;
}

.rep-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.rep-hero-headings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rep-anniversary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.55);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 11px;
  border-radius: 20px;
  text-transform: uppercase;
}

.rep-main-title {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, #ffffff 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.rep-subtitle-text {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 215, 0, 0.22);
  padding-top: 8px;
}

/* Standard Mode Stage Header */
.stage-main-title {
  font-family: var(--font-heading);
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  letter-spacing: -0.5px;
}

.stage-title-bar {
  width: 72px;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-red), #ff4d58);
  margin: 14px 0 8px 0;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(227, 6, 19, 0.6);
}

/* Highlights List (Frosted Glass Pills) */
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1.15vh;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(9, 27, 47, 0.55);
  backdrop-filter: blur(10px);
  padding: 7px 18px 7px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  animation: pulseHighlight 6s infinite ease-in-out;
}

@keyframes pulseHighlight {
  0%, 85%, 100% { transform: translateX(0); border-color: rgba(255, 255, 255, 0.18); }
  92% { transform: translateX(6px); border-color: rgba(255, 215, 0, 0.6); }
}

.highlight-icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-red), #b8000b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(227, 6, 19, 0.4);
}

/* Bottom-Left Stage Rotating Atatürk Quote Glass Bar */
.stage-bottom-quote-bar {
  position: absolute;
  bottom: 2.2vh;
  left: 2.8vw;
  right: 2.8vw;
  z-index: 6;
  background: rgba(9, 27, 47, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 5px solid var(--accent-red);
  border-radius: 18px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.stage-quote-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.2);
  border: 1px solid rgba(227, 6, 19, 0.45);
  color: #ff6b75;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stage-quote-content {
  flex: 1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.stage-quote-content.fading {
  opacity: 0;
  transform: translateY(6px);
}

.stage-quote-text {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  line-height: 1.35;
}

.stage-quote-meta {
  margin-top: 3px;
}

.stage-quote-author {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.stage-signature-box {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ataturk-signature-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(255, 215, 0, 0.45));
  user-select: none;
  pointer-events: none;
}

.spotlight-sig-img {
  height: 56px;
  margin: 8px auto 0 auto;
}

.qr-sig-img {
  height: 48px;
}

/* ==========================================================================
   PERIODIC FULL-STAGE 29 EKİM CUMHURİYET ANIT GÖSTERİMİ (SPOTLIGHT OVERLAY)
   ========================================================================== */
.republic-spotlight-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: radial-gradient(circle at 50% 42%, rgba(145, 0, 10, 0.94) 0%, rgba(65, 2, 7, 0.97) 65%, rgba(25, 1, 3, 0.99) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.republic-spotlight-overlay.active {
  opacity: 1;
  transform: scale(1);
}

.spotlight-rays {
  position: absolute;
  width: 140%;
  height: 140%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 215, 0, 0.045) 0deg 10deg,
    transparent 10deg 20deg
  );
  animation: rotateRays 50s linear infinite;
  pointer-events: none;
}

@keyframes rotateRays {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spotlight-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8vh;
}

.spotlight-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 215, 0, 0.16);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
  color: var(--gold-bright);
  font-family: var(--font-monument);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 6px 22px;
  border-radius: 30px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
}

.spotlight-medallion-wrap {
  position: relative;
  width: 21vh;
  height: 21vh;
  min-width: 150px;
  min-height: 150px;
  max-width: 210px;
  max-height: 210px;
  margin: 0.5vh 0;
}

.spotlight-medallion-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(227, 6, 19, 0.4) 60%, transparent 75%);
  filter: blur(12px);
  animation: pulseSpotlightGlow 2.5s infinite ease-in-out;
}

@keyframes pulseSpotlightGlow {
  0%, 100% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.spotlight-medallion-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold-bright);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

.spotlight-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  max-width: 680px;
  line-height: 1.45;
}

.spotlight-quote-card {
  margin-top: 1vh;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 16px 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.spotlight-quote-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold-light);
}

.spotlight-signature {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.spotlight-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.spotlight-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-warm), var(--gold-bright), #ffffff);
}

/* ==========================================================================
   3. RIGHT SIDEBAR (ARCHITECTURAL FRAMED CARDS)
   ========================================================================== */
.sidebar-area {
  width: 28vw;
  min-width: 360px;
  max-width: 450px;
  background: linear-gradient(180deg, #091b2f 0%, #071526 100%);
  padding: 1.4vh 1.1vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2vh;
  z-index: 10;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.5s ease;
}

/* Architectural Panel Frame (Matches reference.jpg) */
.sidebar-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 10px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
  color: #ffffff;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
}

.section-title i {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.section-bullhorn-icon {
  color: var(--accent-red) !important;
}

.section-counter {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 9px;
  border-radius: 12px;
}

.section-link {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Auto-Timer Bar inside Cards */
.card-timer-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  overflow: hidden;
}

.card-timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-red));
}

/* 1. TEACHER ROTATION CARD */
.teacher-section {
  flex: 1.25;
}

.teacher-card-wrapper {
  position: relative;
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px 16px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.teacher-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.teacher-card.changing {
  opacity: 0;
  transform: translateY(10px);
}

.teacher-photo-box {
  width: 112px;
  height: 138px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #e2e8f0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border: 2px solid #f1f5f9;
}

.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teacher-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher-name {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.18;
}

.teacher-branch {
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  margin-top: 3px;
}

.teacher-red-bar {
  width: 34px;
  height: 3.5px;
  background-color: var(--accent-red);
  margin: 7px 0;
  border-radius: 2px;
}

.teacher-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: #334155;
  line-height: 1.32;
  font-weight: 500;
}

/* 2. DUTY TEACHERS CARD */
.duty-section {
  display: flex;
  flex-direction: column;
}

.duty-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 9px;
  border-radius: 12px;
}

.duty-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blinkDot 1.5s infinite;
}

.duty-card-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px 14px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.duty-card {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.duty-card.changing {
  opacity: 0;
  transform: scale(0.98);
}

.duty-avatars-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.duty-teacher-thumb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  background: #e2e8f0;
}

.duty-teacher-thumb.second-thumb {
  margin-left: -16px;
}

.duty-details-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.duty-location-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  background: rgba(227, 6, 19, 0.1);
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
}

.duty-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.duty-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. ANNOUNCEMENTS CARD */
.announcements-section {
  flex: 1.25;
}

.announcements-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  transition: opacity 0.35s ease;
}

.announcements-card.changing {
  opacity: 0;
}

.announcement-row {
  display: flex;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

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

.announcement-date-badge {
  background: rgba(227, 6, 19, 0.08);
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 72px;
  text-align: center;
}

.announcement-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* ==========================================================================
   4. FOOTER BAR
   ========================================================================== */
.footer-bar {
  height: 8.2vh;
  min-height: 58px;
  background-color: var(--dark-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 2.2vw;
  position: relative;
  z-index: 30;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.5s ease;
}

.footer-levels {
  display: flex;
  align-items: center;
  gap: 2.2vw;
}

.level-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-right: 2.2vw;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.level-item:last-child {
  border-right: none;
  padding-right: 0;
}

.level-item i {
  font-size: 1.1rem;
  color: #94a3b8;
}

.footer-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.footer-republic-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-right: 1.8vw;
}

.footer-web {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 1.8vw;
  letter-spacing: 0.5px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 2.2vw;
}

.social-icon {
  color: #cbd5e1;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-badge {
  background: linear-gradient(135deg, #e30613 0%, #b8000b 100%);
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2.6vw 0 3.2vw;
  position: relative;
  clip-path: polygon(28px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.footer-badge-text {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-badge-line {
  width: 42px;
  height: 3px;
  background-color: #ffffff;
  margin-top: 4px;
  border-radius: 2px;
}

/* ==========================================================================
   5. SPECIAL HOLIDAY & COMMEMORATION THEMES (29 EKİM, 10 KASIM, 23 NİSAN, VB.)
   ========================================================================== */
body.special-theme-active .header-bar {
  background: linear-gradient(90deg, #5a0005 0%, #8a0008 55%, #3d0003 100%);
  border-bottom: 2px solid rgba(255, 215, 0, 0.55);
}

body.special-theme-active .header-bar::before {
  background: linear-gradient(180deg, #ffd700 0%, #d97706 100%);
  width: 44vw;
}

body.special-theme-active .header-left {
  padding-right: 3.6vw;
}

body.special-theme-active .logo-ring {
  background: linear-gradient(135deg, #ffd700, #e30613);
  box-shadow: 0 4px 16px rgba(227, 6, 19, 0.3);
}

body.special-theme-active .school-name {
  color: #7f0006;
}

body.special-theme-active .school-branch {
  color: #b8000b;
}

body.special-theme-active .republic-header-banner {
  display: flex;
}

body.special-theme-active .live-seconds {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #4a0206;
}

body.special-theme-active .header-motto-bar {
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Stage in Special Theme Mode */
body.special-theme-active .media-overlay {
  background: 
    linear-gradient(90deg, rgba(48, 2, 5, 0.85) 0%, rgba(48, 2, 5, 0.45) 42%, rgba(48, 2, 5, 0.1) 75%, transparent 100%),
    linear-gradient(0deg, rgba(35, 1, 4, 0.88) 0%, rgba(35, 1, 4, 0.2) 25%, transparent 50%);
}

body.special-theme-active .republic-stage-corner-seal {
  display: block;
}

body.special-theme-active .republic-hero-card {
  display: flex;
}

body.special-theme-active .standard-stage-header {
  display: none;
}

body.special-theme-active .highlight-item {
  background: rgba(55, 2, 6, 0.68);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

body.special-theme-active .highlight-icon-box {
  background: linear-gradient(135deg, #e30613, #990009);
  border: 1px solid rgba(255, 215, 0, 0.55);
  color: var(--gold-bright);
}

body.special-theme-active .stage-bottom-quote-bar {
  background: linear-gradient(90deg, rgba(58, 2, 6, 0.9) 0%, rgba(28, 1, 3, 0.88) 100%);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-left: 5px solid var(--gold-bright);
}

body.special-theme-active .stage-quote-icon {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.5);
  color: var(--gold-bright);
}

/* Sidebar in Special Theme Mode */
body.special-theme-active .sidebar-area {
  background: linear-gradient(165deg, #4d0308 0%, #2b0104 55%, #190002 100%);
  border-left: 2px solid rgba(255, 215, 0, 0.35);
}

body.special-theme-active .sidebar-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.28);
}

body.special-theme-active .section-title i {
  color: var(--gold-bright) !important;
}

body.special-theme-active .section-counter {
  background: rgba(255, 215, 0, 0.16);
  color: var(--gold-light);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

body.special-theme-active .teacher-name,
body.special-theme-active .duty-name,
body.special-theme-active .announcement-text {
  color: #5c0207;
}

body.special-theme-active .card-timer-fill {
  background: linear-gradient(90deg, #b8000b, #e30613, #f59e0b);
}

body.special-theme-active .announcement-date-badge {
  background: linear-gradient(135deg, #b8000b, #e30613);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.25);
}

/* Footer in Special Theme Mode */
body.special-theme-active .footer-bar {
  background: linear-gradient(90deg, #2b0104 0%, #4a0206 50%, #240103 100%);
  border-top: 2px solid rgba(255, 215, 0, 0.45);
}

body.special-theme-active .level-item i {
  color: var(--gold-bright);
}

body.special-theme-active .footer-republic-pill {
  display: inline-flex;
}

body.special-theme-active .footer-badge {
  background: linear-gradient(135deg, #ffd700 0%, #d97706 100%);
  color: #4a0206;
}

body.special-theme-active .footer-badge-line {
  background-color: #4a0206;
}

/* --------------------------------------------------------------------------
   THEME VARIANT: 10 KASIM ATATÜRK'Ü ANMA GÜNÜ (ASİL SİYAH & SONSUZLUK ALTINI)
   -------------------------------------------------------------------------- */
body.theme-10kasim .header-bar {
  background: linear-gradient(90deg, #090a0f 0%, #161821 55%, #07080c 100%);
  border-bottom: 2px solid rgba(212, 175, 55, 0.6);
}

body.theme-10kasim .school-name { color: #0f172a; }
body.theme-10kasim .school-branch { color: #475569; }

body.theme-10kasim .republic-header-banner {
  background: linear-gradient(135deg, #11131a 0%, #1f2330 100%);
  border-color: #d4af37;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

body.theme-10kasim .media-background {
  filter: saturate(0.65) contrast(1.08);
}

body.theme-10kasim .media-overlay {
  background: 
    linear-gradient(90deg, rgba(10, 11, 16, 0.9) 0%, rgba(10, 11, 16, 0.5) 45%, rgba(10, 11, 16, 0.15) 75%, transparent 100%),
    linear-gradient(0deg, rgba(8, 9, 13, 0.92) 0%, rgba(8, 9, 13, 0.25) 28%, transparent 55%);
}

body.theme-10kasim .republic-hero-card {
  background: linear-gradient(145deg, rgba(15, 17, 24, 0.92) 0%, rgba(28, 31, 42, 0.94) 100%);
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
}

body.theme-10kasim .highlight-item {
  background: rgba(15, 17, 24, 0.78);
  border-color: rgba(212, 175, 55, 0.4);
}

body.theme-10kasim .highlight-icon-box {
  background: linear-gradient(135deg, #1e222d, #0f1117);
  color: #ffd700;
}

body.theme-10kasim .stage-bottom-quote-bar {
  background: linear-gradient(90deg, rgba(14, 16, 22, 0.94) 0%, rgba(24, 27, 36, 0.92) 100%);
  border-color: rgba(212, 175, 55, 0.5);
}

body.theme-10kasim .republic-spotlight-overlay {
  background: radial-gradient(circle at 50% 42%, rgba(30, 33, 44, 0.96) 0%, rgba(14, 16, 22, 0.98) 65%, rgba(5, 6, 9, 0.99) 100%);
}

body.theme-10kasim .sidebar-area {
  background: linear-gradient(165deg, #151821 0%, #0d0f14 55%, #07080b 100%);
  border-left: 2px solid rgba(212, 175, 55, 0.4);
}

body.theme-10kasim .teacher-name,
body.theme-10kasim .duty-name,
body.theme-10kasim .announcement-text {
  color: #0f172a;
}

body.theme-10kasim .duty-location-badge,
body.theme-10kasim .announcement-date-badge {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fde68a;
}

body.theme-10kasim .card-timer-fill {
  background: linear-gradient(90deg, #1e293b, #d4af37, #fde047);
}

body.theme-10kasim .footer-bar {
  background: linear-gradient(90deg, #08090d 0%, #141720 50%, #08090d 100%);
  border-top: 2px solid rgba(212, 175, 55, 0.5);
}

/* --------------------------------------------------------------------------
   THEME VARIANT: 23 NİSAN ULUSAL EGEMENLİK VE ÇOCUK BAYRAMI
   -------------------------------------------------------------------------- */
body.theme-23nisan .header-bar {
  background: linear-gradient(90deg, #9f1239 0%, #0369a1 55%, #1e3a8a 100%);
}

body.theme-23nisan .sidebar-area {
  background: linear-gradient(165deg, #1e3a8a 0%, #0f172a 60%, #881337 100%);
}

body.theme-23nisan .republic-hero-card {
  background: linear-gradient(145deg, rgba(159, 18, 57, 0.88) 0%, rgba(30, 58, 138, 0.9) 100%);
}

body.theme-23nisan .republic-spotlight-overlay {
  background: radial-gradient(circle at 50% 42%, rgba(3, 105, 161, 0.94) 0%, rgba(136, 19, 55, 0.96) 68%, rgba(15, 23, 42, 0.99) 100%);
}

body.theme-23nisan .footer-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #be123c 50%, #0f172a 100%);
}

/* --------------------------------------------------------------------------
   THEME VARIANT: 24 KASIM ÖĞRETMENLER GÜNÜ
   -------------------------------------------------------------------------- */
body.theme-24kasim .header-bar {
  background: linear-gradient(90deg, #3b0764 0%, #701a75 55%, #1e1b4b 100%);
}

body.theme-24kasim .sidebar-area {
  background: linear-gradient(165deg, #3b0764 0%, #1e1b4b 60%, #0f172a 100%);
}

body.theme-24kasim .republic-hero-card {
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.88) 0%, rgba(30, 27, 75, 0.92) 100%);
}

body.theme-24kasim .republic-spotlight-overlay {
  background: radial-gradient(circle at 50% 42%, rgba(107, 17, 67, 0.95) 0%, rgba(30, 27, 75, 0.98) 70%, rgba(9, 13, 28, 0.99) 100%);
}

body.theme-24kasim .footer-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #4a044e 50%, #0f172a 100%);
}

/* --------------------------------------------------------------------------
   THEME VARIANT: 19 MAYIS, 18 MART & 30 AĞUSTOS
   -------------------------------------------------------------------------- */
body.theme-19mayis .header-bar,
body.theme-18mart .header-bar,
body.theme-30agustos .header-bar {
  background: linear-gradient(90deg, #7f1d1d 0%, #9a3412 55%, #431407 100%);
}

body.theme-19mayis .sidebar-area,
body.theme-18mart .sidebar-area,
body.theme-30agustos .sidebar-area {
  background: linear-gradient(165deg, #5c1206 0%, #3b0a04 55%, #1c0502 100%);
}

/* ==========================================================================
   6. SMART BOARD FLOATING CONTROLS
   ========================================================================== */
.floating-controls {
  position: fixed;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screen-wrapper:hover .floating-controls,
.floating-controls:hover {
  opacity: 1;
}

.control-btn {
  background: rgba(9, 27, 47, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}

.control-btn:hover {
  background: var(--accent-red);
  transform: scale(1.05);
}

.hide-cursor {
  cursor: none !important;
}

/* ==========================================================================
   7. QR ATTENDANCE SCREEN (06:00 - 09:00) + 29 EKİM SUPPORT
   ========================================================================== */
.qr-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #05101d;
  display: none;
  flex-direction: column;
  color: #ffffff;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.qr-screen-overlay.active {
  display: flex;
  opacity: 1;
}

.qr-bg-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  filter: blur(5px) brightness(0.6) saturate(1.2);
  transform: scale(1.04);
}

.qr-bg-video-container video,
.qr-bg-video-container img,
.qr-bg-video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border: none;
}

.qr-bg-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(circle at 50% 30%, rgba(9, 27, 47, 0.78) 0%, rgba(5, 16, 29, 0.92) 80%, rgba(3, 10, 19, 0.97) 100%);
  pointer-events: none;
}

body.special-theme-active .qr-bg-video-overlay {
  background: radial-gradient(circle at 50% 30%, rgba(115, 0, 8, 0.82) 0%, rgba(45, 2, 6, 0.94) 80%, rgba(20, 0, 3, 0.98) 100%);
}

body.theme-10kasim .qr-bg-video-overlay {
  background: radial-gradient(circle at 50% 30%, rgba(20, 22, 30, 0.88) 0%, rgba(10, 12, 16, 0.96) 80%, rgba(4, 5, 8, 0.99) 100%);
}

.qr-top-bar {
  height: 11.5vh;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 10;
}

body.special-theme-active .qr-top-bar {
  border-bottom: 2px solid rgba(255, 215, 0, 0.45);
}

.qr-top-left {
  display: flex;
  align-items: center;
  gap: 1.2vw;
}

.qr-school-logo {
  height: 6.8vh;
  max-height: 62px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.qr-top-titles .qr-top-school {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.1;
}

.qr-top-titles .qr-top-branch {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 2px;
}

body.special-theme-active .qr-top-titles .qr-top-branch {
  color: var(--gold-bright);
}

.qr-republic-top-pill {
  display: none;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #b8000b, #7a0007);
  border: 1.5px solid var(--gold-bright);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  box-shadow: 0 0 25px rgba(227, 6, 19, 0.5);
}

body.theme-10kasim .qr-republic-top-pill {
  background: linear-gradient(135deg, #161821, #090a0f);
  border-color: #d4af37;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.qr-republic-top-pill i {
  color: var(--gold-bright);
}

body.special-theme-active .qr-republic-top-pill {
  display: inline-flex;
}

.qr-live-clock-box {
  display: flex;
  align-items: center;
  gap: 1.8vw;
}

.qr-clock-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

.qr-clock-time {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.special-theme-active .qr-clock-time {
  background: linear-gradient(180deg, #ffffff, #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qr-main-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 1vh 3vw;
  position: relative;
  z-index: 10;
  gap: 1vh;
}

.qr-banner-container {
  text-align: center;
}

.qr-banner-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  line-height: 1.15;
}

.qr-banner-subtitle {
  font-size: 1.08rem;
  color: #ffffff;
  font-weight: 700;
  margin-top: 0.8vh;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 24px;
  background: rgba(227, 6, 19, 0.28);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 30px;
}

.qr-stage-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  width: 100%;
}

.qr-republic-side-emblem {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.special-theme-active .qr-republic-side-emblem {
  display: flex;
}

.qr-rep-crest-img {
  width: 22vh;
  height: 22vh;
  max-width: 190px;
  max-height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-bright);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.35);
}

.qr-rep-crest-label {
  font-family: var(--font-monument);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.qr-frame-wrapper {
  position: relative;
  padding: 20px;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(227, 6, 19, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.special-theme-active .qr-frame-wrapper {
  border: 3px solid var(--gold-bright);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 55px rgba(255, 215, 0, 0.4);
}

.qr-code-canvas {
  width: min(39vh, 360px);
  height: min(39vh, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-canvas img,
.qr-code-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 14px;
  display: block;
}

.qr-frame-badge {
  margin-top: 10px;
  background: var(--primary-navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.special-theme-active .qr-frame-badge {
  background: linear-gradient(135deg, #b8000b, #7a0007);
  color: var(--gold-light);
}

body.theme-10kasim .qr-frame-badge {
  background: linear-gradient(135deg, #161821, #090a0f);
  color: #fde68a;
}

.qr-live-feed {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #a7f3d0;
  font-weight: 600;
}

.qr-ataturk-section {
  width: 92%;
  max-width: 1200px;
  background: rgba(9, 27, 47, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 6px solid var(--accent-red);
  border-radius: 20px;
  padding: 12px 26px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

body.special-theme-active .qr-ataturk-section {
  background: rgba(58, 2, 6, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-left: 6px solid var(--gold-bright);
}

body.theme-10kasim .qr-ataturk-section {
  background: rgba(14, 16, 22, 0.92);
  border-color: rgba(212, 175, 55, 0.5);
  border-left: 6px solid #d4af37;
}

.qr-ataturk-avatar {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.qr-quote-crest-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-ataturk-quote-box {
  flex: 1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.qr-ataturk-quote-box.fading {
  opacity: 0;
  transform: translateY(6px);
}

.qr-ataturk-quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.qr-ataturk-author {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fcd34d;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.qr-signature-badge {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-bottom-bar {
  height: 5.5vh;
  min-height: 38px;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

.qr-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-weight: 600;
}

.qr-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: blinkDot 1.5s infinite;
}

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