/* ==========================================================================
   GOLD BOARD & ADMIN PANEL - MASTER STYLESHEET
   ========================================================================== */

:root {
  /* Common Colors */
  --header-yellow: #f5b041;
  --text-yellow: #f1c40f;
  --price-green: #2ecc71;
  --price-red: #e74c3c;
  
  /* TV Screen Colors */
  --tv-bg: #000000;
  --ticker-label-bg: #1f3a60;
  --ticker-value-bg: #ffffff;
  --cat-yatirim: #1b4f72;
  --cat-cumhuriyet: #d35400;
  --cat-resat: #196f3d;
  --table-border: #333333;
  --blue-panel-bg: #07153b;

  /* Kiziltepe Custom Theme Colors */
  --kiziltepe-teal: #557a59;
  --kiziltepe-peach: #f8c091;
  --kiziltepe-dark-teal: #11363f;
  --kiziltepe-border: #091b1f;
  
  /* Admin Panel Theme (Modern Light Gray Dashboard as per screenshot) */
  --admin-sidebar-bg: #1a2232;
  --admin-topbar-bg: #202b3c;
  --admin-body-bg: #f3f6f9;
  --admin-card-bg: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text-dark: #1e293b;
  --admin-text-light: #64748b;
  --admin-primary: #3b82f6;
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  
  /* Stats Card Gradient (Purple/Indigo in screenshot) */
  --stat-card-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  
  /* Font Family */
  --font-display: var(--tv-custom-font, 'Outfit', 'Inter', sans-serif);
  --font-body: var(--tv-custom-font, 'Inter', sans-serif);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  overflow: hidden !important;
  touch-action: none;
  user-select: none;
}

.app-body {
  overflow: hidden !important;
  touch-action: none;
  user-select: none;
}

/* Screen Views Toggle */
.screen-view {
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.screen-view.active {
  display: block;
}

/* ==========================================================================
   1. TV MONITOR SCREEN
   ========================================================================== */
#tv-screen {
  background: var(--tv-custom-app-bg, #0b1a1e);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.tv-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--tv-custom-app-bg, #0b1a1e);
  border: none;
  padding: 1.5vh 2.5vw !important; /* TV kenar kırpmalarını önlemek için güvenli alan boşluğu */
  box-sizing: border-box;
  overflow: hidden;
  justify-content: space-between;
}

.tv-header {
  height: 8vh;
  min-height: 3.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tv-custom-header-bg, var(--kiziltepe-teal));
  border: none;
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.tv-header:hover {
  filter: brightness(1.1);
}

.association-title {
  color: var(--tv-custom-header-text, #ffffff);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.125rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Connection Status Indicator Dot */
.status-dot {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  margin-left: 0.9375rem;
  background-color: #ff073a;
  box-shadow: 0 0 0.5rem #ff073a;
  animation: pulse-dot 1.5s infinite ease-in-out;
}
.status-ws {
  background-color: #39ff14 !important;
  box-shadow: 0 0 0.625rem #39ff14 !important;
}
.status-rest {
  background-color: #ff9f43 !important;
  box-shadow: 0 0 0.625rem #ff9f43 !important;
}
.status-offline {
  background-color: #ff073a !important;
  box-shadow: 0 0 0.625rem #ff073a !important;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.subheader-bar {
  height: 4.5vh;
  min-height: 1.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--tv-custom-subheader-bg, var(--kiziltepe-dark-teal));
  color: var(--tv-custom-subheader-text, #ffffff);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0 1.25rem;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
  flex-shrink: 0;
}

.subheader-bar *, 
.subheader-bar *::before, 
.subheader-bar *::after {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: none !important;
  animation: none !important;
}

.date-time-container {
  width: 26.25rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem;
  align-items: center;
}

.subheader-right-prices {
  width: 26.25rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 1.25rem;
  align-items: center;
  margin-right: 3.75rem; /* Shifted left from the edge as requested */
}

.subheader-price-item {
  color: var(--tv-custom-subheader-text, #ffffff);
  font-weight: 800;
  white-space: nowrap;
  font-size: 1.85rem; /* Increased font-size for better visibility */
}

.subheader-price-item span {
  color: var(--tv-custom-subheader-text, var(--kiziltepe-peach));
  font-weight: 900;
  display: inline-block;
  padding: 0 0.375rem;
  border-radius: 0.25rem;
  transition: none !important;
}

.current-date {
  width: auto;
  text-align: left;
  white-space: nowrap;
  font-size: 1.85rem;
  font-weight: 800;
}

.advice-text {
  flex-grow: 1;
  text-align: center;
  letter-spacing: 0.0625rem;
  white-space: nowrap;
}

.current-time {
  width: auto;
  text-align: left;
  color: var(--tv-custom-subheader-text, var(--kiziltepe-peach));
  white-space: nowrap;
  font-size: 1.85rem;
  font-weight: 800;
}

.tv-main-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0.625rem 0;
  box-sizing: border-box;
  justify-content: space-between;
}

.top-grids-container {
  display: flex;
  gap: 0.9375rem;
  flex: 5.2;
  min-height: 0;
  box-sizing: border-box;
  margin-bottom: 0.625rem;
}

.grid-column {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
}

.kiziltepe-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  border: none;
  background: var(--tv-custom-app-bg, #0b1a1e);
  table-layout: fixed;
}

.kiziltepe-table td {
  border: 0.0625rem solid rgba(255,255,255,0.08);
  padding: 0.25rem 0.375rem;
  box-sizing: border-box;
  height: 20%;
  vertical-align: middle;
}

.mid-label {
  width: 30%;
  background-color: var(--tv-custom-table-header-bg, var(--kiziltepe-teal));
  color: var(--tv-custom-table-header-text, #ffffff);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mid-sub-label {
  width: 10%;
  background-color: var(--tv-custom-table-header-bg, var(--kiziltepe-teal));
  color: var(--tv-custom-table-header-text, #ffffff);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  text-align: center;
}

.mid-price {
  width: 25%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--tv-custom-table-price-size, 2.5rem);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

tr:nth-child(odd) .mid-price {
  background-color: var(--tv-custom-row-odd-bg, var(--kiziltepe-peach));
  color: var(--tv-custom-row-text, var(--kiziltepe-dark-teal));
}

tr:nth-child(even) .mid-price {
  background-color: var(--tv-custom-row-even-bg, var(--kiziltepe-peach));
  color: var(--tv-custom-row-text, var(--kiziltepe-dark-teal));
}


.middle-grid-container {
  flex: 3;
  min-height: 0;
  box-sizing: border-box;
  margin-bottom: 0.625rem;
  display: flex;
}

.kiziltepe-middle-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  border: none;
  background: var(--tv-custom-app-bg, #0b1a1e);
  table-layout: fixed;
}

.kiziltepe-middle-table td {
  border: 0.0625rem solid rgba(255,255,255,0.08);
  padding: 0.25rem 0.375rem;
  box-sizing: border-box;
  height: 25%;
  vertical-align: middle;
}

.kiziltepe-middle-table .mid-label {
  width: 22%;
}
.kiziltepe-middle-table .mid-sub-label {
  width: 14%;
}
.kiziltepe-middle-table .mid-price {
  width: 25%;
}

.bottom-ticker-container {
  flex: 0.9;
  min-height: 0;
  max-height: 9vh;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.625rem;
  box-sizing: border-box;
}

.ticker-box {
  background: var(--tv-custom-ticker-card-bg, var(--kiziltepe-peach));
  border: none;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
  gap: 0.625rem;
  padding: 0 0.625rem;
}

.ticker-title {
  background-color: var(--tv-custom-ticker-label-bg, transparent);
  color: var(--tv-custom-ticker-label-text, var(--kiziltepe-dark-teal));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0;
}

.ticker-data {
  color: var(--tv-custom-ticker-value-text, var(--kiziltepe-teal));
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.85rem;
}

/* Footer Announcement Ticker */
.tv-footer-ticker {
  height: 5.5vh;
  min-height: 2.5rem;
  background: var(--tv-custom-footer-bg, var(--kiziltepe-teal));
  border-top: none;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.footer-ticker-label {
  background-color: var(--tv-custom-footer-label-bg, var(--kiziltepe-dark-teal));
  color: var(--tv-custom-footer-label-text, #ffffff);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.0625rem;
  z-index: 5;
  box-shadow: 0.25rem 0 0.625rem rgba(0,0,0,0.3);
}

.footer-ticker-content {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.footer-ticker-text {
  display: inline-block;
  white-space: nowrap;
  color: var(--tv-custom-footer-text, #ffffff);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.03125rem;
  position: absolute;
  will-change: transform;
  animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(100vw, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Glow Flashing Animations for Kızıltepe Peach/Teal theme */
.col-price.flash-up, .mid-price.flash-up, .ticker-data.flash-up {
  animation: bg-flash-up 1.2s ease-out;
}

.col-price.flash-down, .mid-price.flash-down, .ticker-data.flash-down {
  animation: bg-flash-down 1.2s ease-out;
}

@keyframes bg-flash-up {
  0% { color: #2ecc71; }
}

@keyframes bg-flash-down {
  0% { color: #e74c3c; }
}

.deco-dots {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

/* Column toggle visibility overrides */
.hide-buy .buy-label,
.hide-buy .buy-price {
  display: none !important;
}

.hide-sell .sell-label,
.hide-sell .sell-price {
  display: none !important;
}

/* Adjust cell widths when Alış is hidden */
.hide-buy .mid-label {
  width: 50% !important;
}
.hide-buy .sell-label {
  width: 15% !important;
}
.hide-buy .sell-price {
  width: 35% !important;
}

/* Adjust cell widths when Satış is hidden */
.hide-sell .mid-label {
  width: 50% !important;
}
.hide-sell .buy-label {
  width: 15% !important;
}
.hide-sell .buy-price {
  width: 35% !important;
}

/* Adjust cell widths when both are hidden */
.hide-buy.hide-sell .mid-label {
  width: 100% !important;
}

/* ==========================================================================
   2. ADMIN PANEL DEDICATED LAYOUT
   ========================================================================== */
#admin-screen {
  background-color: var(--admin-body-bg);
}

.admin-layout-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Menu */
.admin-sidebar {
  width: 250px;
  background-color: var(--admin-sidebar-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 4px 0 10px rgba(0,0,0,0.1);
  z-index: 10;
}

.sidebar-header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  overflow-y: auto;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  gap: 15px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
}

.nav-item i {
  width: 20px;
  font-size: 1.05rem;
}

.nav-item:hover {
  background-color: rgba(255,255,255,0.03);
  color: #ffffff;
}

.nav-item.active {
  background-color: rgba(255,255,255,0.05);
  color: #ffffff;
  border-left-color: var(--admin-primary);
  font-weight: 600;
}

/* Content Area */
.admin-content-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Topbar */
.admin-topbar {
  height: 60px;
  background-color: var(--admin-topbar-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 9;
}

.user-profile {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-profile i {
  font-size: 1.15rem;
  color: var(--text-yellow);
}

/* Main Pane and Tab Handling */
.admin-main-pane {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  background-color: var(--admin-body-bg);
  color: var(--admin-text-dark);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--admin-text-dark);
}

/* ==========================================================================
   3. ADMIN COMPONENTS & ELEMENTS
   ========================================================================== */

/* Statistics Cards (Purple/Indigo in screenshot) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.stat-card {
  background: var(--stat-card-gradient);
  border-radius: 12px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Cards */
.form-card, .table-card, .info-card-box {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.table-card.long-card {
  max-height: 70vh;
  overflow-y: auto;
}

.info-card-box {
  border-left: 4px solid var(--text-yellow);
}

.info-card-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.info-card-box p {
  font-size: 0.9rem;
  color: var(--admin-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Standard Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.admin-table th {
  background-color: #f8fafc;
  color: var(--admin-text-light);
  font-weight: 600;
  padding: 12px 18px;
  border-bottom: 2px solid var(--admin-border);
}

.admin-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text-dark);
}

.admin-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Inputs & Form layout inside Admin */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--admin-text-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background-color: #ffffff;
  color: var(--admin-text-dark);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input[type="color"] {
  width: 44px !important;
  height: 32px !important;
  padding: 0 !important;
  background: none !important;
  background-color: transparent !important;
  cursor: pointer;
}

.form-group input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.form-group input:focus, 
.form-group select:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.settings-help {
  font-size: 0.8rem;
  color: var(--admin-text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Table Input Styling */
.admin-table input[type="number"] {
  width: 90px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  text-align: center;
  font-weight: 600;
}

.admin-table input[type="number"]:focus {
  border-color: var(--admin-primary);
}

/* Badges */
.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--admin-success);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.badge-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--admin-primary);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--admin-danger);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--admin-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--admin-success);
  color: #ffffff;
}
.btn-success:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--admin-danger);
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ==========================================================================
   4. MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 2000;
  opacity: 0;
  overflow-y: auto;
  padding: 20px 10px;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

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

.modal-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  margin: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  max-height: 90vh;
  overflow-y: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--admin-text-dark);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--admin-text-light);
  cursor: pointer;
}

.error-msg {
  color: var(--admin-danger);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes value-up {
  0% { color: #2ecc71; }
}

@keyframes value-down {
  0% { color: #e74c3c; }
}

.flash-up {
  animation: value-up 1s ease-out;
}

.flash-down {
  animation: value-down 1s ease-out;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SITE SETTINGS SPECIFIC STYLES (MATCHING MOCKUPS)
   ========================================================================== */
.site-info-box {
  background-color: #eaf2f8;
  border-left: 4px solid #2980b9;
  color: #1b4f72;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.site-info-box .text-blue {
  color: #2980b9;
}
.site-info-box p strong {
  color: #1b4f72;
}

.source-panel-card {
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.source-panel-header {
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blue-hdr {
  background-color: #eaf2f8;
  color: #1f618d;
  border-bottom: 1px solid #d4e6f1;
}

.green-hdr {
  background-color: #e8f8f5;
  color: #117864;
  border-bottom: 1px solid #d1f2eb;
}

.source-panel-body {
  padding: 20px;
}

.source-info-list {
  background-color: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.source-info-list p {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--admin-text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-info-list p:last-child {
  margin-bottom: 0;
}

.source-info-list code {
  background-color: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.source-warn-box {
  background-color: #fef9e7;
  border-left: 4px solid #f39c12;
  color: #7f8c8d;
  padding: 15px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.source-warn-box strong {
  color: #d35400;
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.panel-section-title {
  padding: 10px 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yellow-sect {
  background-color: #fef9e7;
  color: #b9770e;
  border: 1px solid #f9ebae;
  border-bottom: none;
}

.blue-sect {
  background-color: #eaf2f8;
  color: #1f618d;
  border: 1px solid #d4e6f1;
  border-bottom: none;
}

.indicator-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ind-card {
  flex-grow: 1;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  border: 1px solid var(--admin-border);
  min-width: 180px;
}

.ind-card span {
  font-weight: 600;
  color: var(--admin-text-light);
}

.ind-card strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.ind-green {
  background-color: #e8f8f5;
  border-color: #a3e4d7;
}
.ind-green strong {
  color: #117864;
}

.ind-red {
  background-color: #fdf2f2;
  border-color: #f8b4b4;
}
.ind-red strong {
  color: #c81e1e;
}

.ind-blue {
  background-color: #eaf2f8;
  border-color: #a9cce3;
}
.ind-blue strong {
  color: #1f618d;
}

/* ==========================================================================
   4. REGISTRATION & PENDING SCREEN OVERLAYS
   ========================================================================== */
.tv-overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0b132b;
  background-image: radial-gradient(circle at center, #1c2541 0%, #0b132b 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-family: var(--font-body);
}

.registration-card, .pending-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  width: 550px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  animation: fadeInUp 0.5s ease-out;
}

.registration-title, .pending-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--header-yellow);
}

.registration-subtitle, .pending-subtitle {
  font-size: 0.95rem;
  color: #a0aec0;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.4;
}

.reg-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.reg-form-group label {
  font-size: 0.85rem;
  color: #cbd5e0;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
}

.reg-form-group input, .reg-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.reg-form-group input:focus, .reg-form-group textarea:focus {
  border-color: var(--header-yellow);
  box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-reg-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--header-yellow);
  color: #000000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-top: 10px;
}

.btn-reg-submit:hover {
  filter: brightness(0.9);
}

.admin-access-link {
  margin-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 600;
}

.admin-access-link:hover {
  color: var(--header-yellow);
}

/* Pending Screen elements */
.pending-icon {
  font-size: 4rem;
  color: var(--header-yellow);
  text-align: center;
  margin-bottom: 15px;
}

.pending-details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.details-table td {
  padding: 8px 4px;
  color: #e2e8f0;
  text-align: left;
}

.details-table tr:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* --- Toggle Switch Slider --- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--admin-success, #10b981);
  border-color: var(--admin-success, #10b981);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--admin-success, #10b981);
}

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

/* --- Media Management Item Card Layout --- */
.media-item-card {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  gap: 15px;
  align-items: center;
  transition: all 0.3s ease;
}

.media-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.media-thumb {
  width: 90px;
  height: 60px;
  border-radius: 6px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.media-thumb i {
  font-size: 1.8rem;
  color: #a0aec0;
}

.media-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.media-url-text {
  font-family: monospace;
  font-size: 0.8rem;
  color: #cbd5e0;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-visibility-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 220px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  max-height: 120px;
  overflow-y: auto;
  flex-shrink: 0;
}

.media-visibility-box::-webkit-scrollbar {
  width: 4px;
}
.media-visibility-box::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.media-visibility-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.media-visibility-box label input[type="checkbox"] {
  accent-color: #3b82f6;
  cursor: pointer;
}

.media-visibility-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--header-yellow, #fbbf24);
  margin-bottom: 2px;
}

/* Price fluctuation arrows */
.arrow-up {
  font-size: 0.525rem;
  margin-left: 3px;
  vertical-align: middle;
  display: inline-block;
  animation: arrow-bounce-up 0.4s ease-out;
}

.arrow-down {
  font-size: 0.525rem;
  margin-left: 3px;
  vertical-align: middle;
  display: inline-block;
  animation: arrow-bounce-down 0.4s ease-out;
}

@keyframes arrow-bounce-up {
  0% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes arrow-bounce-down {
  0% { transform: translateY(-6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   20. RESPONSIVE DESIGN (MOBILE & TABLET SUPPORT)
   ========================================================================== */
@media (max-width: 600px) {
  /* Body Overflow */
  body.app-body {
    overflow-y: auto !important;
  }
  
  /* TV Screen Layout */
  #tv-screen.screen-view,
  .tv-container {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    padding: 8px;
    border-width: 4px; /* Simpler border on tablets */
  }

  /* Header Title */
  .association-title {
    font-size: 1.45rem;
    padding: 6px 0;
    letter-spacing: 1px;
  }

  .tv-header {
    height: auto !important;
    padding: 8px 0;
  }

  /* Subheader bar sizing and alignment */
  .subheader-bar {
    height: auto !important;
    min-height: 35px;
    padding: 10px 15px;
    font-size: 1rem;
    gap: 8px;
  }
  .current-date, .current-time {
    width: auto;
  }
  .date-time-container {
    width: auto;
    display: flex;
    gap: 15px;
    align-items: center;
  }
  .subheader-right-prices {
    width: auto;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    margin-right: 20px;
  }

  /* Main Layout Stacking */
  .tv-main-layout {
    flex-direction: column;
    height: auto !important;
    overflow: visible !important;
    flex: none !important;
    padding: 10px 0 0 0;
  }
  
  /* Top Grids (Sol/Sağ Pano) Stacking */
  .top-grids-container {
    flex-direction: column;
    height: auto !important;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .grid-column {
    width: 100%;
    height: auto !important;
  }
  
  /* Tables scaling */
  .kiziltepe-table td,
  .kiziltepe-middle-table td {
    padding: 6px 4px;
  }
  .mid-label {
    font-size: 1.4rem;
  }
  .mid-sub-label {
    font-size: 1.15rem;
  }
  .mid-price {
    font-size: 2.0rem;
  }
  
  /* Middle Grid scaling */
  .middle-grid-container {
    height: auto !important;
    margin-bottom: 15px;
  }

  /* Bottom Ticker grid scaling */
  .bottom-ticker-container {
    grid-template-columns: repeat(3, 1fr) !important;
    height: auto !important;
    gap: 8px;
    margin-bottom: 15px;
  }
  .ticker-box {
    padding: 10px 6px;
  }
  .ticker-title {
    font-size: 1.1rem;
  }
  .ticker-data {
    font-size: 1.5rem;
  }

  .tv-footer-ticker {
    height: 40px !important;
  }
  .footer-ticker-label {
    font-size: 0.9rem;
    padding: 0 12px;
  }
  .footer-ticker-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 500px) {
  .subheader-bar {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-right: none;
  }
  .current-date, .current-time {
    width: 100% !important;
    text-align: center !important;
  }
  .advice-text {
    width: 100%;
    margin: 4px 0;
  }
  
  .bottom-ticker-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .association-title {
    font-size: 1.15rem;
  }
  
  /* Micro scaling for narrow screens */
  .kiziltepe-table td,
  .kiziltepe-middle-table td {
    padding: 5px 3px;
  }
  .mid-label {
    font-size: 1.1rem;
  }
  .mid-sub-label {
    font-size: 0.9rem;
  }
  .mid-price {
    font-size: 1.45rem;
  }
  
  .ticker-title {
    font-size: 1rem;
  }
  .ticker-data {
    font-size: 1.35rem;
  }

  /* Overlay Forms on mobile */
  .registration-card, .pending-card {
    width: 95% !important;
    max-width: none !important;
    padding: 15px !important;
  }
  .reg-form-group input, 
  .reg-form-group textarea {
    padding: 8px;
  }
}

/* ==========================================================================
   21. ADMIN RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Prevent layout stretching */
  .admin-layout-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .admin-content-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .admin-main-pane {
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important; /* Lock horizontal scroll of main container */
  }

  .form-card, .table-card {
    padding: 15px !important;
    max-width: 100% !important;
  }
  
  .admin-table {
    min-width: 650px; /* Ensure tables don't get squashed, instead they scroll horizontally */
  }

  /* Admin Sidebar Overlay/Drawer */
  .admin-sidebar {
    position: fixed !important;
    left: -250px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 250px !important;
    z-index: 1000 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .admin-sidebar.show {
    left: 0 !important;
  }
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  .sidebar-overlay.active {
    display: block !important;
  }
  
  /* Toggle Sidebar Button */
  .btn-toggle-sidebar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    margin-right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: background-color 0.2s;
  }
  .btn-toggle-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .admin-topbar {
    padding: 0 15px !important;
  }

  /* Grid Layouts */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  /* Header of panels */
  .pane-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding-bottom: 15px !important;
  }
  
  /* Modals on mobile */
  .modal-card {
    width: 92% !important;
    max-width: 450px !important;
    padding: 20px !important;
    margin: 10px !important;
  }
}

@media (max-width: 600px) {
  /* Smaller screens / mobile phones */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .user-profile {
    display: none !important;
  }
  
  /* Add custom wrapping to panels if buttons wrapping fails */
  .pane-header div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* --- Media Management Responsiveness --- */
@media (max-width: 768px) {
  .media-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .media-thumb {
    width: 100% !important;
    height: 120px !important;
  }
  .media-details {
    width: 100% !important;
  }
  .media-item-card > div:last-child {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-top: 5px !important;
  }
  .media-item-card > div:last-child button {
    flex-grow: 1 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .media-upload-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .media-upload-actions button {
    flex-grow: 1 !important;
    width: 100% !important;
  }
}

/* Admin Panel table column hiding overrides */
.hide-buy-admin .buy-header-admin,
.hide-buy-admin .buy-cell-admin {
  display: none !important;
}

.hide-sell-admin .sell-header-admin,
.hide-sell-admin .sell-cell-admin {
  display: none !important;
}

/* Hidden cell placeholders for per-product visibility */
.hidden-cell {
  visibility: hidden !important;
}

/* TV Offline Overlay Styling (Option 3) */
.tv-offline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tv-offline-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.offline-card {
  background: rgba(20, 20, 25, 0.92);
  border: 1.5px solid rgba(231, 76, 60, 0.5);
  border-radius: 20px;
  padding: 55px 45px;
  text-align: center;
  max-width: 780px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(231, 76, 60, 0.2);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tv-offline-overlay.active .offline-card {
  transform: translateY(0);
}

.offline-icon-container {
  font-size: 6.5rem;
  color: #e74c3c;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse-warning {
  animation: pulseWarning 2s infinite ease-in-out;
}

@keyframes pulseWarning {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(231, 76, 60, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 25px rgba(231, 76, 60, 0.85));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(231, 76, 60, 0.4));
  }
}

.offline-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

.offline-card p {
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  color: #d1d1e0;
  line-height: 1.75;
  margin-bottom: 40px;
}

.offline-status-hint {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  color: #f1c40f;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(241, 196, 15, 0.12);
  border: 1px solid rgba(241, 196, 15, 0.2);
  border-radius: 30px;
}

/* TV Media Center Overlay */
.tv-media-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65vw;
  height: 65vh;
  background-color: rgba(0, 0, 0, 0.95);
  border: 5px solid var(--tv-custom-table-border-color, var(--kiziltepe-teal));
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  z-index: 5000;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  animation: scaleInMedia 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInMedia {
  from {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.tv-media-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
}

.tv-media-content img,
.tv-media-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* TV Media Close Button */
.tv-media-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5010;
  transition: all 0.2s ease;
  line-height: 1;
  padding-bottom: 4px;
}

.tv-media-close:hover {
  background-color: #e74c3c;
  border-color: #e74c3c;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

/* Tablet ve küçük ekranlar */
@media screen and (max-width: 600px) {
  .tv-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }

  #tv-screen {
    overflow: hidden !important;
    height: 100vh !important;
  }

  .tv-header {
    height: auto !important;
    min-height: 36px !important;
    padding: 6px 10px !important;
  }

  .association-title {
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
  }

  .subheader-bar {
    height: auto !important;
    min-height: 20px !important;
    padding: 3px 8px !important;
    font-size: 0.65rem !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .date-time-container {
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .subheader-right-prices {
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .subheader-price-item {
    font-size: 0.6rem !important;
    white-space: nowrap !important;
  }

  .current-date,
  .current-time {
    width: auto !important;
    font-size: 0.6rem !important;
    white-space: nowrap !important;
  }

  .advice-text {
    display: none !important;
  }

  .tv-main-layout {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }

  .top-grids-container {
    display: flex !important;
    flex-direction: column !important;
    flex: 2 !important;
    min-height: 250px !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
    height: auto !important;
  }

  .grid-column {
    flex: 1 !important;
    display: flex !important;
    height: auto !important;
    min-height: 120px !important;
  }

  .kiziltepe-table,
  .kiziltepe-middle-table {
    height: 100% !important;
    table-layout: fixed !important;
  }

  .kiziltepe-table td {
    height: 20% !important;
    padding: 4px 5px !important;
  }

  .kiziltepe-middle-table td {
    height: 25% !important;
    padding: 4px 5px !important;
  }

  .mid-label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
  }

  .mid-sub-label {
    font-size: 0.6rem !important;
  }

  .mid-price {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
  }

  .middle-grid-container {
    flex: 1.2 !important;
    min-height: 110px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    height: auto !important;
  }

  .bottom-ticker-container {
    flex: 0.8 !important;
    min-height: 56px !important;
    max-height: none !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3px !important;
    padding: 3px 0 !important;
    margin: 0 !important;
    height: auto !important;
  }

  .ticker-title {
    font-size: 0.65rem !important;
    margin-bottom: 0 !important;
  }

  .ticker-data {
    font-size: 0.75rem !important;
  }

  .ticker-box {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 6px !important;
  }

  .tv-footer-ticker {
    height: auto !important;
    min-height: 30px !important;
    flex-shrink: 0 !important;
  }

  .footer-ticker-label {
    font-size: 0.75rem;
    padding: 0 8px;
  }

  .footer-ticker-text {
    font-size: 0.85rem;
  }
}

/* Çok küçük ekranlar (telefon dikey) */
@media screen and (max-width: 480px) {
  .association-title {
    font-size: 0.8rem !important;
  }

  .subheader-bar {
    font-size: 0.55rem !important;
    padding: 2px 5px !important;
  }

  .current-date,
  .current-time {
    font-size: 0.5rem !important;
  }

  .advice-text {
    font-size: 0.5rem !important;
  }

  .mid-label {
    font-size: 0.7rem !important;
  }

  .mid-sub-label {
    font-size: 0.5rem !important;
  }

  .mid-price {
    font-size: 0.9rem !important;
  }

  .ticker-title {
    font-size: 0.52rem !important;
  }

  .ticker-data {
    font-size: 0.62rem !important;
  }

  .footer-ticker-label {
    font-size: 0.65rem !important;
    padding: 0 5px !important;
  }

  .footer-ticker-text {
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   22. TV SLEEP OVERLAY STYLE
   ========================================================================== */
.tv-sleep-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #050b14;
  background-image: radial-gradient(circle at center, #0e1e35 0%, #050b14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  font-family: var(--font-body);
  padding: 20px;
}

.sleep-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sleep-icon-container {
  font-size: 5rem;
  color: #f1c40f;
  margin-bottom: 20px;
}

.pulse-sleep {
  animation: pulseSleep 3s infinite ease-in-out;
}

@keyframes pulseSleep {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(241, 196, 15, 0.2));
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(241, 196, 15, 0.6));
    opacity: 1;
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(241, 196, 15, 0.2));
    opacity: 0.8;
  }
}

.sleep-clock {
  font-family: 'Outfit', sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: -2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.sleep-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--header-yellow);
  margin-bottom: 12px;
}

.sleep-desc {
  font-size: 1.15rem;
  color: #a0aec0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sleep-hours-info {
  font-size: 1.1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 35px;
  letter-spacing: 0.5px;
}

.btn-wakeup {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  background-color: var(--header-yellow);
  color: #000000;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(245, 176, 65, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wakeup:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(245, 176, 65, 0.3);
  filter: brightness(1.05);
}

.btn-wakeup:active {
  transform: translateY(0);
}
