/* style.css - Premium Cinematic Agency Aesthetic for DeepFathom */

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

:root {
  /* Design System Tokens */
  --bg-main: #050507;
  --bg-surface: #0c0c0e;
  --bg-card: #121215;
  --bg-card-hover: #16161b;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Accent Colors */
  --color-primary: #f97316; /* Premium orange accent */
  --color-primary-rgb: 249, 115, 22;
  --color-accent-blue: #3b82f6;
  --color-accent-pink: #ec4899;
  --color-accent-purple: #8b5cf6;
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Status Colors */
  --status-approved-text: #10b981;
  --status-approved-bg: rgba(16, 185, 129, 0.1);
  --status-approved-border: rgba(16, 185, 129, 0.25);
  
  --status-pending-text: #f59e0b;
  --status-pending-bg: rgba(245, 158, 11, 0.1);
  --status-pending-border: rgba(245, 158, 11, 0.25);
  
  --status-rejected-text: #ef4444;
  --status-rejected-bg: rgba(239, 68, 68, 0.1);
  --status-rejected-border: rgba(239, 68, 68, 0.25);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 24px rgba(249, 115, 22, 0.15);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Background Gradients & Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-glow-1 {
  position: absolute;
  top: -10%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}
.bg-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
}
.bg-glow-3 {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

/* Authentication Page Styles */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  z-index: 10;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(12, 12, 14, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.login-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-pink) 100%);
  color: var(--text-main);
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

/* Logo image styles - used to replace brand-mark DF text */
.brand-logo-img {
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.brand-logo-login {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.brand-logo-md {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  margin-bottom: 0;
}
.brand-logo-sm {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  margin-bottom: 0;
}



.login-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff 60%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px 12px 42px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ea580c 100%);
  border: none;
  border-radius: 10px;
  padding: 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, #ff8c37 0%, #f97316 100%);
}
.btn-primary:active {
  transform: translateY(1px);
}

.helper-text {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 24px;
  letter-spacing: 0.02em;
}

.error-message {
  color: var(--status-rejected-text);
  background: var(--status-rejected-bg);
  border: 1px solid var(--status-rejected-border);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

/* Layout Wrapper for App Dashboard */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar Navigation */
.sidebar {
  width: 260px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 60%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-tag {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--color-primary);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.sidebar-profile {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
}

.profile-info {
  overflow: hidden;
}
.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.profile-role {
  font-size: 11px;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.sidebar-menu {
  list-style: none;
  padding: 24px 16px;
  flex: 1;
  overflow-y: auto;
}

.menu-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 8px 8px;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}
.menu-item a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}
.menu-item.active a {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
}
.menu-item.admin-only-item {
  display: none; /* Controlled by JS based on role */
}

.menu-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  position: relative;
  min-height: 100vh;
  z-index: 10;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  gap: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 6px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* View Containers (Single Page Application switching) */
.view-section {
  display: none; /* Controlled by JS */
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.view-section.active {
  display: block;
}

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

/* Cards & Widgets */
.grid-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}
.kpi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kpi-icon {
  font-size: 18px;
  color: var(--color-primary);
  width: 32px;
  height: 32px;
  background: rgba(249, 115, 22, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.kpi-subtext {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }

/* Dashboard Widgets & Custom Charts Section */
.grid-dashboard-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.campaign-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-campaign-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.mini-campaign-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.mini-campaign-rpm {
  font-size: 12px;
  color: var(--text-muted);
}

/* Generic Pill Design */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.status-pill.approved {
  background-color: var(--status-approved-bg);
  color: var(--status-approved-text);
  border-color: var(--status-approved-border);
}
.status-pill.pending {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}
.status-pill.rejected {
  background-color: var(--status-rejected-bg);
  color: var(--status-rejected-text);
  border-color: var(--status-rejected-border);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
.platform-pill i.fa-youtube { color: #ff0000; }
.platform-pill i.fa-tiktok { color: #00f2fe; }
.platform-pill i.fa-instagram { color: #fccc63; }

/* Forms UI */
.form-card {
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.select-custom {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.select-custom:focus {
  outline: none;
  border-color: var(--color-primary);
}

select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.textarea-custom {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  min-height: 100px;
  resize: vertical;
  transition: all 0.2s ease;
}
.textarea-custom:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Tables Layout & Styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-custom th {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.table-custom td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.table-custom tbody tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

.table-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.table-action-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Filter Controls bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.filter-left, .filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: var(--text-main);
}
.tab-btn.active {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.2);
  color: var(--color-primary);
}

.search-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  width: 200px;
}
.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Campaign Library Grid */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.campaign-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.campaign-badge {
  position: absolute;
  top: 24px;
  right: 24px;
}

.campaign-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  padding-right: 70px;
}

.campaign-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 12px;
}

.campaign-rules-section {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.campaign-payout-progress {
  margin-top: auto;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent-pink));
  border-radius: 3px;
}

.campaign-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* Submission Card Grid */
.submissions-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.clip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.clip-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.clip-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 240px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #111 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.clip-thumbnail-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 80%);
  opacity: 0.8;
  z-index: 1;
}

.clip-thumbnail-platform {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.clip-play-btn {
  z-index: 5;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  transition: transform 0.2s ease;
  text-decoration: none;
}
.clip-play-btn:hover {
  transform: scale(1.1);
}

.clip-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.clip-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.clip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.clip-clipper-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.clip-clipper-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: white;
}

.clip-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 12px;
}

.clip-stat {
  display: flex;
  flex-direction: column;
}

.clip-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.clip-stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

.clip-action-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.btn-clip-action {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-clip-action.primary {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
  color: var(--color-primary);
}
.btn-clip-action.primary:hover {
  background: var(--color-primary);
  color: white;
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 7, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close-btn:hover {
  color: white;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Modal Tabs Navigation */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.modal-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-tab:hover {
  color: white;
}
.modal-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content-pane {
  display: none;
}
.tab-content-pane.active {
  display: block;
}

/* Modal specific content styles */
.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.modal-meta-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
}

.modal-meta-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.modal-meta-value {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #27272a;
  border: 2px solid var(--bg-surface);
}
.timeline-dot.approved { background-color: var(--status-approved-text); }
.timeline-dot.pending { background-color: var(--status-pending-text); }
.timeline-dot.rejected { background-color: var(--status-rejected-text); }

.timeline-content {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.timeline-user {
  font-size: 12px;
  font-weight: 600;
}

.timeline-date {
  font-size: 11px;
  color: var(--text-dim);
}

.timeline-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Review Action Buttons in Modal */
.admin-review-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 24px;
  padding-top: 20px;
}
.review-actions-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.btn-review-approve {
  flex: 1;
  background: var(--status-approved-bg);
  border: 1px solid var(--status-approved-border);
  color: var(--status-approved-text);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-review-approve:hover {
  background: var(--status-approved-text);
  color: white;
}
.btn-review-reject {
  flex: 1;
  background: var(--status-rejected-bg);
  border: 1px solid var(--status-rejected-border);
  color: var(--status-rejected-text);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-review-reject:hover {
  background: var(--status-rejected-text);
  color: white;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 16px;
  width: 320px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-icon {
  font-size: 16px;
  color: var(--color-primary);
  margin-top: 2px;
}
.toast.success { border-left-color: var(--status-approved-text); }
.toast.success .toast-icon { color: var(--status-approved-text); }
.toast.error { border-left-color: var(--status-rejected-text); }
.toast.error .toast-icon { color: var(--status-rejected-text); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.toast-message {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}
.toast-close:hover {
  color: white;
}

/* Telegram Configuration / Log Console Page Styles */
.telegram-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.log-console {
  background: #060608;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: monospace;
  font-size: 12px;
  padding: 16px;
  height: 300px;
  overflow-y: auto;
  color: #10b981;
}

.log-entry {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  padding-bottom: 8px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  margin-bottom: 4px;
}

.log-payload {
  color: #a7f3d0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Header Bell Icon with Notification Pulse */
.notification-bell-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.notification-bell-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
.bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  border: 1px solid var(--bg-main);
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulse 1.5s infinite;
  display: none; /* JS controlled */
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Mobile Responsiveness styling */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .grid-dashboard-layout {
    grid-template-columns: 1fr;
  }
  .telegram-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 24px;
  }
  .mobile-nav-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-right {
    justify-content: space-between;
  }
  .search-input {
    width: 100%;
  }
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.mobile-nav-header {
  display: none;
}

/* DeepFathom Utility Classes to eliminate inline styles */
.hidden { display: none !important; }
.flex-center-gap { display: flex; align-items: center; gap: 10px; }
.brand-mark-sm { width: 32px !important; height: 32px !important; font-size: 16px !important; margin-bottom: 0 !important; border-radius: 8px !important; box-shadow: none !important; }
.brand-mark-md { width: 36px !important; height: 36px !important; font-size: 18px !important; margin-bottom: 0 !important; border-radius: 9px !important; box-shadow: none !important; }
.font-16 { font-size: 16px !important; }
.font-600 { font-weight: 600 !important; }
.date-pill-style { font-size: 13px; padding: 6px 12px; }
.kpi-blue { color: var(--color-accent-blue) !important; background: rgba(59, 130, 246, 0.07) !important; }
.kpi-pink { color: var(--color-accent-pink) !important; background: rgba(236, 72, 153, 0.07) !important; }
.kpi-purple { color: var(--color-accent-purple) !important; background: rgba(139, 92, 246, 0.07) !important; }
.kpi-pending { color: var(--status-pending-text) !important; background: var(--status-pending-bg) !important; }
.kpi-approved { color: var(--status-approved-text) !important; background: var(--status-approved-bg) !important; }
.flex-col-gap-24 { display: flex; flex-direction: column; gap: 24px; }
.mt-10 { margin-top: 10px !important; }
.mt-16 { margin-top: 16px !important; }
.border-l-blue { border-left: 3px solid var(--color-accent-blue) !important; }
.border-l-pending { border-left: 3px solid var(--status-pending-text) !important; }
.border-l-approved { border-left: 3px solid var(--status-approved-text) !important; }
.border-l-rejected { border-left: 3px solid var(--status-rejected-text) !important; }
.font-bold-white { font-weight: 700 !important; color: white !important; }
.font-bold-pending { font-weight: 700 !important; color: var(--status-pending-text) !important; }
.font-bold-approved { font-weight: 700 !important; color: var(--status-approved-text) !important; }
.font-bold-rejected { font-weight: 700 !important; color: var(--status-rejected-text) !important; }
.cycle-info-row { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; padding: 16px !important; }
.flex-between-center { width: 100% !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
.flex-between-baseline { width: 100% !important; display: flex !important; justify-content: space-between !important; align-items: baseline !important; }
.text-13 { font-size: 13px !important; }
.text-12-dim { font-size: 12px !important; color: var(--text-dim) !important; }
.text-20-bold-white { font-size: 20px !important; font-weight: 700 !important; color: white !important; }
.widget-header-border { margin-bottom: 24px !important; border-bottom: 1px solid rgba(255,255,255,0.03) !important; padding-bottom: 12px !important; }
.grid-span-2 { grid-column: span 2 !important; }
.mb-16 { margin-bottom: 16px !important; }
.platform-filter-select { padding: 8px 32px 8px 12px !important; width: 140px !important; font-size: 13px !important; }
.my-36-16 { margin: 36px 0 16px 0 !important; }
.grid-cols-1 { grid-template-columns: 1fr !important; }
.badge-pending { background: rgba(245, 158, 11, 0.1) !important; border-color: rgba(245,158,11,0.25) !important; color: var(--status-pending-text) !important; }
.text-muted-500 { font-size: 13px !important; color: var(--text-muted) !important; font-weight: 500 !important; }
.cycle-select-style { padding: 8px 32px 8px 12px !important; width: 260px !important; font-size: 13px !important; }
.grid-1-2 { grid-template-columns: 1fr 2fr !important; }
.h-fit { height: fit-content !important; }
.pl-12 { padding-left: 12px !important; }
.text-primary-11 { color: var(--color-primary) !important; font-size: 11px !important; }
.flex-gap-16-mt-8 { display: flex !important; gap: 16px !important; margin-top: 8px !important; }
.form-checkbox-label { display: flex !important; align-items: center !important; gap: 6px !important; font-size: 13px !important; cursor: pointer !important; }
.flex-gap-10 { display: flex !important; gap: 10px !important; }
.flex-2 { flex: 2 !important; }
.btn-cancel-style { flex: 1 !important; border-color: var(--border-color) !important; color: var(--text-muted) !important; display: none !important; }
.flex-gap-8-text-11 { font-size: 11px !important; display: flex !important; gap: 8px !important; }
.text-yt { color:#ef4444 !important; }
.text-tt { color:#06b6d4 !important; }
.text-ig { color:#e11d48 !important; }
.text-muted-11 { font-size: 11px !important; color: var(--text-muted) !important; }
.flex-gap-12-mt-24 { display: flex !important; gap: 12px !important; margin-top: 24px !important; }
.btn-tg-test-style { flex: 1 !important; background: rgba(59, 130, 246, 0.08) !important; border: 1px solid rgba(59, 130, 246, 0.15) !important; color: var(--color-accent-blue) !important; box-shadow: none !important; }
.flex-col { display: flex !important; flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.btn-clear-style { margin-top: 12px !important; width: fit-content !important; align-self: flex-end !important; }
.platform-icon-style { font-size: 20px !important; color: var(--color-primary) !important; }
.link-modal-style { color: var(--color-accent-blue) !important; text-decoration: none !important; font-size: 14px !important; word-break: break-all !important; }
.text-11 { font-size: 11px !important; }
.clipper-notes-box { font-size: 14px !important; color: var(--text-main) !important; line-height: 1.5 !important; background: rgba(255,255,255,0.01) !important; border: 1px solid var(--border-color) !important; padding: 12px !important; border-radius: 8px !important; min-height: 50px !important; }
.mt-4 { margin-top: 4px !important; }
.text-approved { color: var(--status-approved-text) !important; }
.modal-footer-info { background: rgba(255, 255, 255, 0.01) !important; border: 1px solid var(--border-color) !important; padding: 12px !important; border-radius: 8px !important; font-size: 12px !important; color: var(--text-muted) !important; display: flex !important; gap: 10px !important; align-items: center !important; }
.text-14 { font-size: 14px !important; }
.text-italic-dim { font-style: italic !important; color: var(--text-dim) !important; }
.text-uppercase-11 { text-transform: uppercase !important; font-size: 11px !important; }
.textarea-review { min-height: 60px !important; }
.border-approved { border-color: var(--status-approved-border) !important; color: var(--status-approved-text) !important; }
.border-rejected { border-color: var(--status-rejected-border) !important; color: var(--status-rejected-text) !important; }
.border-pending { border-color: var(--status-pending-border) !important; color: var(--status-pending-text) !important; }

/* Additional Utility Classes */
.info-paragraph { margin-bottom: 16px !important; font-size: 13px !important; color: var(--text-muted) !important; line-height: 1.5 !important; }
.text-primary-color { color: var(--color-primary) !important; }
.form-checkbox-label-lg { display: flex !important; align-items: center !important; gap: 8px !important; font-size: 14px !important; cursor: pointer !important; margin-top: 10px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-20 { margin-bottom: 20px !important; }
.text-details-label { font-size: 12px !important; color: var(--text-dim) !important; text-transform: uppercase !important; margin-bottom: 6px !important; }
.text-primary-14 { color: var(--color-primary) !important; font-size: 14px !important; }
.admin-section-title { font-family: var(--font-heading) !important; font-size: 14px !important; font-weight: 600 !important; color: white !important; }
.my-14-12 { margin-top: 14px !important; margin-bottom: 12px !important; }

/* ==================== LANDING PAGE STYLING ==================== */

.landing-section {
  display: block;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  z-index: 10;
  overflow-x: hidden;
}

.landing-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: rgba(12, 12, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.landing-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.landing-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-links a:hover {
  color: white;
}

.landing-hero {
  min-height: 100vh;
  padding: 180px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-tag {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 850px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Teaser Feature Cards Section */
.features-section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.features-header-desc {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.teaser-card {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 36px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.teaser-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-2px);
}

.teaser-visual {
  width: 100%;
  height: 220px;
  background: #0f0f12;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.teaser-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.teaser-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Card Visual 1: Views Dropoff Bar Chart */
.visual-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
  margin-top: auto;
  position: relative;
}

.visual-bar {
  width: 12%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.3) 0%, rgba(249, 115, 22, 0.05) 100%);
  border-top: 1px solid rgba(249, 115, 22, 0.4);
}

.visual-bar-label {
  font-size: 8px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
  font-family: monospace;
}

.chart-badge {
  position: absolute;
  top: -15px;
  left: 55%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

/* Card Visual 2: Concentric Rings Pulse */
.visual-rings-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.06);
}

.visual-ring.r1 { width: 180px; height: 180px; }
.visual-ring.r2 { width: 140px; height: 140px; border-color: rgba(249,115,22,0.1); }
.visual-ring.r3 { width: 100px; height: 100px; border-color: rgba(249,115,22,0.2); }

.ring-center-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 14px;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.ring-badge {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  color: white;
}

/* Card Visual 3: Activity tracker */
.visual-activity-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.activity-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.activity-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-dot.active {
  background: radial-gradient(circle, var(--color-primary) 0%, #ea580c 100%);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

/* Horizon Perspective Scroll Gallery */
.perspective-container {
  padding: 100px 0;
  background: linear-gradient(180deg, #050507 0%, #0d0d10 50%, #050507 100%);
  overflow: hidden;
  position: relative;
}

.perspective-title-row {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.perspective-gallery-viewport {
  width: 100%;
  overflow-x: auto;
  padding: 40px 24px;
  display: flex;
  gap: 24px;
  scroll-behavior: smooth;
}

.perspective-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.perspective-card {
  flex: 0 0 260px;
  aspect-ratio: 9/16;
  border-radius: 20px;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  transform: perspective(800px) rotateY(-10deg);
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.perspective-card:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.03);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.perspective-thumbnail {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sub-labels underneath cards in perspective scroll */
.gallery-sub-row {
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 10px 20px;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  justify-content: center;
}

.gallery-sub-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: white;
  font-weight: 500;
}

/* Layout Alignment Fixes to prevent cut-offs */
.main-content {
  min-width: 0; /* Prevents flex children from overflowing */
}

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

.table-custom th, .table-custom td {
  white-space: nowrap; /* Avoids text wraps cutting content */
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-main-title {
    font-size: 48px;
  }
}

.flex-between-mt-6 { display: flex !important; justify-content: space-between !important; margin-top: 6px !important; }
.badge-top-right { top: 20px !important; right: 20px !important; }
.badge-bottom-left { bottom: 20px !important; left: 20px !important; }
.text-24 { font-size: 24px !important; }
.text-14-bold { font-size: 14px !important; font-weight: 600 !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-icon-white-8 { font-size: 8px !important; color: white !important; }
.my-4-0 { margin-top: 4px !important; margin-bottom: 0 !important; }
.w-32-pct { width: 32% !important; }
.text-42-mb-0 { font-size: 42px !important; margin-bottom: 0 !important; }
.grad-1 { background: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 100%) !important; }
.grad-2 { background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(16,185,129,0.15) 100%) !important; }
.grad-3 { background: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, rgba(236,72,153,0.15) 100%) !important; }
.grad-4 { background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(59,130,246,0.15) 100%) !important; }

.d-none { display: none !important; }
.h-80-pct { height: 80% !important; }
.h-75-pct { height: 75% !important; }
.h-60-pct { height: 60% !important; }
.h-45-pct { height: 45% !important; }
.h-35-pct { height: 35% !important; }
.h-20-pct { height: 20% !important; }

/* ==================== CAMPAIGN CARDS & BANNER STYLES ==================== */
.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.campaign-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 115, 22, 0.1);
}

/* ==================== COMPREHENSIVE MOBILE OPTIMIZATION ==================== */
@media (max-width: 1024px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.active {
    left: 0;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100%;
    padding: 16px !important;
  }
  .top-navbar {
    padding: 12px 16px !important;
  }
  #mobile-nav-toggle {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .form-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .modal-content, .modal-container {
    width: 95% !important;
    max-height: 92vh !important;
    padding: 16px !important;
  }
  .hero-main-title {
    font-size: 36px !important;
  }
  .widget-card {
    padding: 16px !important;
  }
  .table-custom {
    font-size: 13px !important;
  }
  .table-custom th, .table-custom td {
    padding: 10px 8px !important;
  }
  .campaigns-grid-container {
    grid-template-columns: 1fr !important;
  }
  .btn-primary, .btn-logout {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .top-navbar h1 {
    font-size: 18px !important;
  }
  .status-pill {
    padding: 2px 6px !important;
    font-size: 10px !important;
  }
  .timeline-item {
    padding-left: 16px !important;
  }
}

/* ==================== UTILITY CLASSES REPLACING INLINE STYLES ==================== */
.forgot-pwd-link-wrapper {
  text-align: right;
  margin-top: 6px;
}
.forgot-pwd-link {
  font-size: 12px;
  color: var(--color-primary);
  text-decoration: none;
}
.forgot-success-box {
  display: none;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.file-input-custom {
  padding: 8px 12px;
}
.banner-preview-box {
  display: none;
  max-height: 120px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.banner-preview-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.profile-settings-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}
.form-group-flex-1-mr {
  flex: 1;
  margin-right: 12px;
}
.form-group-flex-1 {
  flex: 1;
}
.w-100-pct {
  width: 100%;
}
.grid-col-span-2 {
  grid-column: span 2;
}
.mb-4 {
  margin-bottom: 4px;
}
.btn-refresh-stats-custom {
  padding: 8px 16px;
  font-size: 13px;
}
.table-scroll-max-220 {
  max-height: 220px;
  overflow-y: auto;
}

/* Campaign Setup & Detail Modals External CSS */
.modal-card-campaign-setup {
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
}
.campaign-bullhorn-icon {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-primary);
}
.modal-card-campaign-detail {
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0 !important;
}
.modal-card-withdrawal {
  max-width: 500px;
}
.modal-camp-banner-area {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(15, 23, 42, 0.95));
  overflow: hidden;
}
.modal-camp-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-camp-pills-container {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.modal-camp-duration-pill {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
  color: var(--color-primary) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 12px;
}
.modal-camp-category-pill {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 12px;
}
.modal-camp-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.modal-camp-content-area {
  padding: 24px;
}
.modal-camp-title {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 6px;
}
.modal-camp-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal-camp-stats-grid {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.modal-camp-rpm-range {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.modal-camp-max-clip {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
}
.modal-camp-platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.modal-camp-rules-header {
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
.modal-camp-rules-box {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.6);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
}
.mb-24 {
  margin-bottom: 24px !important;
}
.progress-track-10 {
  height: 10px;
}
.modal-camp-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}
