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

:root {
  --bg-obsidian: #070709;
  --bg-surface: #0e0e12;
  --bg-card: #14141a;
  --bg-card-hover: #1b1b23;
  --bg-elevated: #1e1e27;
  --bg-glass: rgba(14, 14, 18, 0.86);

  --toro-red: #e11d24;
  --toro-red-hover: #f52830;
  --toro-red-dark: #9f1116;
  --toro-red-soft: rgba(225, 29, 36, 0.14);
  --toro-red-border: rgba(225, 29, 36, 0.42);
  --toro-red-glow: 0 0 28px rgba(225, 29, 36, 0.28);

  --text-white: #ffffff;
  --text-secondary: #a8a8b3;
  --text-muted: #6c6c78;

  --status-approved: #10b981;
  --status-approved-bg: rgba(16, 185, 129, 0.14);
  --status-revision: #f59e0b;
  --status-revision-bg: rgba(245, 158, 11, 0.14);
  --status-pending: #a8a8b3;
  --status-pending-bg: rgba(168, 168, 179, 0.12);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  background-color: var(--bg-obsidian);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #292935;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--toro-red);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--bg-obsidian);
  overflow: hidden;
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-showcase {
    display: none !important;
  }
}

.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background-size: cover;
  background-position: center;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
}

.login-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,9,0.75) 0%, rgba(7,7,9,0.35) 45%, rgba(7,7,9,0.94) 100%),
    radial-gradient(circle at 20% 80%, rgba(225, 29, 36, 0.25), transparent 55%);
  z-index: 1;
}

.login-showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) brightness(0.82);
  transform: scale(1.03);
  transition: transform 12s ease;
}

.login-showcase-top,
.login-showcase-bottom {
  position: relative;
  z-index: 2;
}

.showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 14, 18, 0.78);
  border: 1px solid var(--toro-red-border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(10px);
}

.showcase-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--toro-red);
  box-shadow: 0 0 10px var(--toro-red);
}

.login-showcase-bottom h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  max-width: 580px;
}

.login-showcase-bottom h1 span {
  color: var(--toro-red);
}

.login-showcase-bottom p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 520px;
  margin-bottom: 28px;
}

.showcase-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.segment-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  background:
    radial-gradient(circle at 85% 12%, rgba(225, 29, 36, 0.10), transparent 42%),
    var(--bg-obsidian);
}

.login-card {
  width: 100%;
  max-width: 430px;
}

.brand-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.brand-logo-img {
  height: 108px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(225, 29, 36, 0.22));
  margin-bottom: 10px;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.login-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.login-form-box h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.login-form-box p.sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 22px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.input-field {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 14px;
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--toro-red);
  box-shadow: 0 0 0 3px rgba(225, 29, 36, 0.18);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--toro-red);
  color: var(--text-white);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(225, 29, 36, 0.32);
}

.btn-primary:hover {
  background: var(--toro-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(225, 29, 36, 0.46);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-white);
  font-weight: 500;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.btn-approve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-approve:hover,
.btn-approve.active {
  background: #10b981;
  color: #052e16;
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.btn-revision {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-revision:hover,
.btn-revision.active {
  background: #f59e0b;
  color: #1c1917;
  border-color: #f59e0b;
}

.quick-demo-box {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.quick-demo-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-acc-btn {
  text-align: left;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
}

.demo-acc-btn:hover {
  border-color: var(--toro-red);
  background: var(--bg-card-hover);
}

.demo-acc-btn .role-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
  background: var(--toro-red-soft);
  color: #ff6b70;
}

.demo-acc-btn.admin .role-tag {
  background: var(--toro-red);
  color: #fff;
}

.demo-acc-btn .acc-name {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-acc-btn .acc-seg {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   MAIN APP LAYOUT (TOPBAR + WORKSPACE)
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-obsidian);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  padding: 0 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.topbar-divider {
  width: 1px;
  height: 26px;
  background: var(--border-medium);
}

.topbar-title-group {
  display: flex;
  flex-direction: column;
}

.topbar-studio-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-studio-name span {
  color: var(--toro-red);
}

.topbar-portal-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--toro-red), #7f090d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-meta .u-name {
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.2;
}

.user-meta .u-segment {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CLIENT PORTAL VIEW
   ========================================================================== */
.portal-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

/* Project Selector Tabs when Client has multiple projects */
.client-projects-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.project-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.project-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--border-medium);
}

.project-tab-btn.active {
  background: var(--toro-red-soft);
  border-color: var(--toro-red);
  color: var(--text-white);
  box-shadow: var(--toro-red-glow);
}

/* Project Hero Banner */
.project-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
  margin-bottom: 28px;
  background-color: var(--bg-surface);
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.08);
  transition: transform 0.6s ease;
}

.project-hero:hover .project-hero-bg {
  transform: scale(1.015);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7,7,9,0.96) 0%, rgba(7,7,9,0.55) 55%, rgba(7,7,9,0.2) 100%),
    linear-gradient(90deg, rgba(7,7,9,0.88) 0%, transparent 70%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.project-hero-left {
  max-width: 760px;
}

.project-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-red {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--toro-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-outline {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.project-hero-desc {
  color: #d4d4d8;
  font-size: 14.5px;
  max-width: 680px;
}

.project-hero-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 14, 18, 0.82);
  border: 1px solid var(--border-medium);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.hero-stat-item {
  padding: 0 12px;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}

.hero-stat-item:last-child {
  border-right: none;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Toolbar: Filters + Actions */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.18s;
}

.filter-pill:hover {
  color: var(--text-white);
  border-color: var(--border-medium);
}

.filter-pill.active {
  background: var(--text-white);
  color: var(--bg-obsidian);
  border-color: var(--text-white);
  font-weight: 600;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.24s ease;
  position: relative;
}

.media-card:hover {
  border-color: var(--toro-red-border);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);
}

.media-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050507;
  overflow: hidden;
  cursor: pointer;
}

.media-thumb-img,
.media-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-card:hover .media-thumb-img,
.media-card:hover .media-thumb-video {
  transform: scale(1.04);
}

.media-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.version-pill {
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(7, 7, 9, 0.85);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}

.version-pill .v-count {
  color: var(--toro-red);
  margin-left: 4px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.status-badge.approved {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34d399;
}

.status-badge.revision {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
}

.status-badge.pending {
  background: rgba(14, 14, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e4e4e7;
}

.media-hover-cta {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 9, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.media-thumb-wrap:hover .media-hover-cta {
  opacity: 1;
}

.hover-open-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(22, 22, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-open-btn:hover {
  background: rgba(36, 36, 44, 0.82);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: scale(1.02);
}

.video-play-indicator {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(7, 7, 9, 0.78);
  border: 1px solid var(--border-medium);
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}

.media-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

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

.media-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-white);
}

.media-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.comment-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.comment-counter strong {
  color: var(--text-white);
}

.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s;
}

.icon-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
}

/* ==========================================================================
   INTERACTIVE REVIEW STUDIO MODAL (FRAME.IO / SYNCSKETCH FOR ARCHVIZ)
   ========================================================================== */
.review-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 6, 0.96);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.18s ease;
}

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

.review-topbar {
  height: 64px;
  padding: 0 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-asset-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

/* Version Switcher Pills */
.version-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-obsidian);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.ver-btn {
  padding: 5px 11px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.ver-btn:hover {
  color: var(--text-white);
}

.ver-btn.active {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.compare-toggle-btn {
  padding: 5px 11px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.compare-toggle-btn.active {
  background: #fff;
  color: #000;
}

.review-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Main Split Workspace: Canvas (Left) + Review Thread (Right) */
.review-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 410px;
  overflow: hidden;
}

@media (max-width: 1060px) {
  .review-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 360px;
  }
}

.review-stage-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at center, #121218 0%, #060608 100%);
  overflow: hidden;
}

/* Annotation Tool Strip */
.stage-toolbar {
  height: 50px;
  padding: 0 20px;
  background: rgba(14, 14, 18, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.tool-btn:hover {
  color: var(--text-white);
  border-color: var(--border-medium);
}

.tool-btn.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.color-swatch.active {
  border-color: #fff;
  transform: scale(1.15);
}

.stage-viewport {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  user-select: none;
}

/* Interactive Media Wrapper (holds Image/Video + Drawing Canvas + Pins Layer) */
.stage-media-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.stage-media-frame img.main-render-img,
.stage-media-frame video.main-render-video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.drawing-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.drawing-canvas.interactive {
  pointer-events: auto;
  cursor: crosshair;
}

.pins-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.pins-overlay.pin-mode {
  pointer-events: auto;
  cursor: crosshair;
}

.annotation-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--toro-red);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 0 4px rgba(225, 29, 36, 0.32);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.annotation-pin:hover,
.annotation-pin.highlighted {
  transform: translate(-50%, -50%) scale(1.28);
  z-index: 10;
}

.annotation-pin.resolved {
  background: var(--status-approved);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.annotation-pin.draft {
  background: #f59e0b;
  animation: pulsePin 1.2s infinite;
}

@keyframes pulsePin {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Before / After Version Comparison Slider */
.compare-overlay-clip {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}

.compare-overlay-clip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--toro-red);
  z-index: 8;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.compare-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--toro-red);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
}

.compare-label {
  position: absolute;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(7, 7, 9, 0.85);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  z-index: 9;
  pointer-events: none;
}

.compare-label.left { left: 14px; }
.compare-label.right { right: 14px; }

/* Release Notes Footer inside Stage */
.version-notes-bar {
  padding: 10px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Right Sidebar: Comments & Review Thread */
.review-sidebar {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  transition: all 0.18s;
  cursor: pointer;
}

.comment-item:hover,
.comment-item.active {
  border-color: var(--toro-red);
  background: var(--bg-card-hover);
}

.comment-item.resolved {
  opacity: 0.72;
  border-left: 3px solid var(--status-approved);
}

.comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 12.5px;
}

.pin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--toro-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(225, 29, 36, 0.16);
  color: #ff6b70;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.comment-text {
  color: #e4e4e7;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.comment-replies {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reply-bubble {
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.reply-bubble strong {
  color: var(--toro-red);
}

/* Composer Box at Bottom of Sidebar */
.comment-composer {
  padding: 16px 20px;
  background: var(--bg-obsidian);
  border-top: 1px solid var(--border-subtle);
}

.composer-attachment-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 11px;
}

.composer-textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  caret-color: #fbbf24;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 10px;
}

.composer-textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

/* Comment Attachment Preview & Thumbnails */
.composer-attach-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.composer-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.composer-attach-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.composer-draft-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.composer-draft-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.composer-draft-thumb:hover {
  transform: scale(1.05);
}

.comment-attachment-box {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  max-width: 100%;
}

.comment-thumb-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: zoom-in;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.comment-thumb-img:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transform: scale(1.04);
}

.comment-attach-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-attach-meta strong {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 2px;
}

/* Lightbox Modal for Attachment Zoom */
.attachment-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.attachment-lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   ADMIN PANEL (LE TORO STUDIO MANAGEMENT)
   ========================================================================== */
.admin-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s;
}

.admin-tab.active {
  background: var(--toro-red);
  color: #fff;
  border-color: var(--toro-red);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

.admin-grid-2col {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .admin-grid-2col {
    grid-template-columns: 1fr;
  }
}

.admin-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-panel-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.upload-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.upload-dropzone:hover {
  border-color: var(--toro-red);
  background: var(--toro-red-soft);
}

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

.toast-msg {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border-left: 4px solid var(--toro-red);
  box-shadow: 0 12px 32px rgba(0,0,0,0.65);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}
