/* ===================================================
   JUNTOS MEDYA — PANEL TASARIM SİSTEMİ
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens ─── */
:root {
  --bg-primary:     #0D0D0D;
  --bg-secondary:   #111117;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --bg-glass:       rgba(17,17,23,0.85);
  --border:         rgba(255,255,255,0.08);
  --border-hover:   rgba(255,255,255,0.16);

  --text-primary:   #FFFFFF;
  --text-secondary: #A0A0B0;
  --text-muted:     #565668;

  --gold:           #C8A96E;
  --gold-light:     #E2C98A;
  --gold-dim:       rgba(200,169,110,0.15);
  --gold-glow:      rgba(200,169,110,0.3);

  --success:        #2ECC71;
  --success-dim:    rgba(46,204,113,0.12);
  --danger:         #E74C3C;
  --danger-dim:     rgba(231,76,60,0.12);
  --warning:        #F39C12;
  --warning-dim:    rgba(243,156,18,0.12);
  --info:           #3498DB;
  --info-dim:       rgba(52,152,219,0.12);

  --sidebar-width:  260px;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:      0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.5);
  --shadow-gold:    0 4px 20px rgba(200,169,110,0.2);

  --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 99px; }

/* ─── Background Gradient ─── */
.bg-gradient {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(200,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 100%, rgba(200,169,110,0.05) 0%, transparent 60%),
    var(--bg-primary);
}

/* ─── Layout ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition-slow);
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo img {
  filter: invert(1);
  height: 32px;
  width: auto;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }

.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--gold-dim);
  color: var(--gold);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
  margin-left: -8px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.sidebar-bottom {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}

/* ─── Main Content ─── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Topbar ─── */
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* ─── Page Content ─── */
.page { padding: 28px; flex: 1; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 24px; font-weight: 800; }
.page-header p { color: var(--text-secondary); margin-top: 4px; font-size: 14px; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card-sm { padding: 16px; border-radius: var(--radius-md); }

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ─── Stat Cards ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stat-icon.gold { background: var(--gold-dim); color: var(--gold); }
.stat-icon.green { background: var(--success-dim); color: var(--success); }
.stat-icon.red { background: var(--danger-dim); color: var(--danger); }
.stat-icon.blue { background: var(--info-dim); color: var(--info); }
.stat-value { font-size: 32px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.stat-change { font-size: 12px; color: var(--success); margin-top: 4px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(231,76,60,0.2);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(46,204,113,0.2);
}
.btn-success:hover:not(:disabled) {
  background: var(--success);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-icon:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ─── Form Elements ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all var(--transition);
}
.form-control:focus {
  border-color: var(--gold);
  background: rgba(200,169,110,0.05);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
select.form-control option { background: #1A1A2E; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ─── Badge / Status ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-pending   { background: var(--warning-dim); color: var(--warning); }
.badge-revision  { background: var(--danger-dim);  color: var(--danger);  }
.badge-approved  { background: var(--success-dim); color: var(--success); }
.badge-published { background: var(--gold-dim);    color: var(--gold);    }

/* ─── Video Card ─── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.video-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #1A1A2E;
  overflow: hidden;
}
.video-thumbnail video,
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity var(--transition);
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn svg {
  width: 48px; height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.video-info { padding: 16px; }
.video-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}
.video-date { font-size: 12px; color: var(--text-muted); }
.video-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ─── Video Player ─── */
.video-player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-player-wrap video { width: 100%; height: 100%; display: block; }

/* ─── Chat ─── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message {
  display: flex;
  gap: 10px;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}
.chat-message.own { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.msg-bubble {
  max-width: 75%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.chat-message.own .msg-bubble {
  background: var(--gold-dim);
  border-color: rgba(200,169,110,0.2);
}
.msg-header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.msg-name { font-size: 12px; font-weight: 600; }
.msg-time { font-size: 11px; color: var(--text-muted); }
.msg-text { font-size: 14px; line-height: 1.5; }
.msg-timestamp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--gold-dim);
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid rgba(200,169,110,0.2);
}
.msg-timestamp-link:hover { background: rgba(200,169,110,0.25); }
.chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  resize: none;
}
.chat-input:focus {
  border-color: var(--gold);
  background: rgba(200,169,110,0.05);
}
.chat-input::placeholder { color: var(--text-muted); }

/* ─── Upload Zone ─── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.upload-subtitle { font-size: 13px; color: var(--text-muted); }

.progress-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ─── Notifications ─── */
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.notif-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.2); }
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 200;
}
.notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: rgba(200,169,110,0.05); }
.notif-item-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.notif-item-text { font-size: 12px; color: var(--text-secondary); }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ─── Alert Boxes ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-danger  { background: var(--danger-dim);  border: 1px solid rgba(231,76,60,0.2);  color: #ff7675; }
.alert-warning { background: var(--warning-dim); border: 1px solid rgba(243,156,18,0.2); color: #fdcb6e; }
.alert-success { background: var(--success-dim); border: 1px solid rgba(46,204,113,0.2); color: #55efc4; }
.alert-info    { background: var(--info-dim);    border: 1px solid rgba(52,152,219,0.2); color: #74b9ff; }

/* ─── Table ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Calendar / Payment ─── */
.payment-overdue {
  background: var(--danger-dim);
  border: 1px solid rgba(231,76,60,0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  animation: fadeIn 0.4s ease;
}
.payment-overdue-icon { font-size: 28px; }
.payment-overdue-title { font-size: 15px; font-weight: 700; color: var(--danger); }
.payment-overdue-text { font-size: 13px; color: var(--text-secondary); }

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--gold);
  color: #000;
}
.tab-btn:hover:not(.active) { color: var(--text-primary); }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(30px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.modal-header {
  padding: 24px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-body { padding: 20px 28px; }
.modal-footer {
  padding: 0 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─── iOS Install Banner ─── */
.ios-install-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 999;
  animation: slideInUp 0.4s ease;
}
@keyframes slideInUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.ios-install-content {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}
.ios-install-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.ios-install-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.ios-install-text p { font-size: 12px; color: var(--text-secondary); }
.ios-install-steps {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.ios-step {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.ios-step-num {
  width: 18px; height: 18px;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideInRight {
  from { opacity:0; transform: translateX(100%); }
  to   { opacity:1; transform: translateX(0); }
}
.toast.toast-out { animation: slideOutRight 0.3s ease forwards; }
@keyframes slideOutRight {
  to { opacity:0; transform: translateX(120%); }
}
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-text { font-size: 14px; font-weight: 500; }

/* ─── Login Page ─── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}
.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(200,169,110,0.06) 0%, transparent 50%),
    var(--bg-primary);
}
.login-card {
  position: relative; z-index: 1;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo img {
  filter: invert(1);
  height: 36px;
  width: auto;
  margin: 0 auto;
}
.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.login-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
}
.login-error {
  background: var(--danger-dim);
  border: 1px solid rgba(231,76,60,0.2);
  color: #ff7675;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}
.login-error.show { display: flex; gap: 8px; align-items: center; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .page { padding: 16px; }
  .topbar { padding: 0 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .modal { border-radius: var(--radius-lg); }
  .login-card { padding: 28px 24px; }
  :root { --sidebar-width: 260px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 24px; }
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in { animation: fadeIn 0.3s ease; }

/* ─── Mobile Nav Toggle ─── */
.mobile-nav-btn {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-nav-btn { display: flex; }
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
@media (max-width: 768px) {
  .sidebar-overlay.show { display: block; }
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ─── Loading Spinner ─── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Floating Label ─── */
.input-group {
  position: relative;
}
.input-prefix {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-group .form-control { padding-left: 36px; }

/* ─── Company Card ─── */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}
.company-card:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.company-avatar {
  width: 48px; height: 48px;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.company-name { font-size: 15px; font-weight: 700; }
.company-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.company-arrow { margin-left: auto; color: var(--text-muted); }

/* ─── Report Chart Placeholder ─── */
.chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}
.chart-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text-secondary); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar {
  width: 100%;
  background: var(--gold-dim);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
  position: relative;
  min-height: 4px;
}
.bar:hover { background: var(--gold); }
.bar-label { font-size: 10px; color: var(--text-muted); }
