/* ==========================================================================
   Prompt & Play AI Studio - Creative Production Dashboard Design System
   ========================================================================== */

:root {
  --bg-base: #0a0d14;
  --bg-surface: #0d121a;
  --bg-card: #121824;
  --bg-card-hover: #161e2e;
  --border-subtle: #1c2637;
  --border-muted: #27344a;
  --border-active: #3b4d6a;

  /* Prompt & Play brand spectrum */
  --brand-orange: #ff8a1d;
  --brand-pink: #ff4f8b;
  --brand-purple: #8758ff;
  --brand-cyan: #22cfff;
  --brand-gradient: linear-gradient(105deg, var(--brand-orange) 0%, var(--brand-pink) 34%, var(--brand-purple) 68%, var(--brand-cyan) 100%);
  --brand-gradient-soft: linear-gradient(105deg, rgba(255, 138, 29, 0.16), rgba(255, 79, 139, 0.18), rgba(135, 88, 255, 0.16), rgba(34, 207, 255, 0.13));

  /* Studio Theme Accents */
  --movie-coral: #ff3366;
  --movie-coral-hover: #ff4d7a;
  --movie-glow: rgba(255, 51, 102, 0.28);

  --sales-cyan: #00bcd4;
  --sales-cyan-hover: #26c6da;
  --sales-glow: rgba(0, 188, 212, 0.25);

  --voice-green: #00e676;
  --voice-green-hover: #69f0ae;
  --voice-glow: rgba(0, 230, 118, 0.25);

  --publish-amber: #f59e0b;
  --publish-amber-hover: #fbbf24;
  --publish-glow: rgba(245, 158, 11, 0.25);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 9999px;
  --topbar-height: 64px;
  --sidebar-width: 244px;
}

/* Box Sizing & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.hub-page {
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ==========================================================================
   1. Topbar Navigation
   ========================================================================== */

.hub-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 16, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.mobile-menu-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-muted);
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  position: relative;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-pink) 38%, var(--brand-purple) 70%, var(--brand-cyan) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  letter-spacing: 0;
  box-shadow: 0 0 18px rgba(255, 79, 139, 0.22), 0 0 22px rgba(34, 207, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-badge::after {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  content: "";
}

.brand-play {
  margin-left: 2px;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(30, 12, 74, 0.38);
}

.brand-badge.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.brand-badge.small .brand-play {
  font-size: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: 0;
}

.brand-subtitle {
  width: fit-content;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-purple), var(--brand-pink));
  background-clip: text;
  -webkit-background-clip: text;
  margin-top: 2px;
}

/* Center Tabs */
.topbar-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 24, 35, 0.7);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.tab-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-item.active {
  color: #ffffff;
  background: var(--brand-gradient);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 16px rgba(135, 88, 255, 0.24), 0 0 12px rgba(34, 207, 255, 0.14);
}

.tab-item.active svg {
  color: #ffffff;
}

/* Topbar Right Utilities */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.credit-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #141b24;
  border: 1px solid #233142;
  font-size: 12px;
}

.coin-symbol {
  font-size: 13px;
}

.credit-label {
  color: var(--text-secondary);
}

.credit-amount {
  color: #fbbf24;
  font-weight: 600;
}

.topup-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(135, 88, 255, 0.24), 0 0 14px rgba(34, 207, 255, 0.12);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.topup-btn:hover {
  background: var(--brand-gradient);
  box-shadow: 0 10px 28px rgba(255, 79, 139, 0.28), 0 0 18px rgba(34, 207, 255, 0.2);
  transform: translateY(-1px);
}

.topup-btn:active {
  transform: translateY(0);
}

.icon-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.notification-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--movie-coral);
  box-shadow: 0 0 6px var(--movie-coral);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.2s;
}

.user-pill:hover {
  border-color: var(--border-muted);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-muted);
}

.user-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   2. Main Layout (Sidebar + Content)
   ========================================================================== */

.hub-layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
}

/* Sidebar */
.hub-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  background: linear-gradient(180deg, #090e18 0%, #060911 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.hub-sidebar::-webkit-scrollbar {
  width: 4px;
}

.hub-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.hub-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.sidebar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-mobile-title {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.sidebar-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-family: var(--font-family);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Icon slot: uniform 20px, light cyan / ice blue tone */
.sidebar-item svg,
.sidebar-item .sidebar-item-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #38bdf8;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.3));
  transition: all 0.22s ease;
}

.sidebar-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inactive Hover: Soft highlight with smooth animation */
.sidebar-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.sidebar-item:hover svg,
.sidebar-item:hover .sidebar-item-icon {
  color: #7dd3fc;
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.6));
}

/* Active State: Cinematic Gold-Amber Glowing Border & Warm Radiant Background */
.sidebar-item.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.13) 60%, rgba(180, 83, 9, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.78);
  box-shadow: 
    0 0 16px rgba(245, 158, 11, 0.32),
    inset 0 0 12px rgba(245, 158, 11, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.sidebar-item.active svg,
.sidebar-item.active .sidebar-item-icon {
  color: #fbbf24;
  filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.75));
}

.sidebar-item.active:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.17) 60%, rgba(180, 83, 9, 0.09) 100%);
  border-color: rgba(251, 191, 36, 0.95);
  box-shadow: 
    0 0 22px rgba(245, 158, 11, 0.45),
    inset 0 0 14px rgba(245, 158, 11, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.45);
  transform: none;
}

/* Sidebar Promo Box */
.sidebar-promo-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(20, 27, 40, 0.9) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(245, 158, 11, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
}

.sidebar-promo-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.12);
}

.sidebar-promo-card h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.sidebar-promo-card p {
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.promo-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(245, 158, 11, 0.25) 0%, rgba(255, 79, 139, 0.25) 50%, rgba(135, 88, 255, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.promo-btn:hover {
  background: linear-gradient(105deg, #f59e0b 0%, #ff4f8b 50%, #8758ff 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35), 0 0 14px rgba(255, 79, 139, 0.25);
}

.sidebar-footer-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  color: #64748b;
  font-size: 10px;
}

/* ==========================================================================
   3. Main Workspace Area
   ========================================================================== */

.hub-main-content {
  flex: 1;
  min-width: 0;
  padding: 32px 36px 60px;
  max-width: 1440px;
}

/* Section Header */
.programs-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.intro-text h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.intro-text p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.intro-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.stats-counter {
  font-size: 13px;
  color: var(--text-secondary);
}

.stats-counter strong {
  font-size: 18px;
  color: var(--text-primary);
}

.stats-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ready-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.soon-dot {
  background: #00bcd4;
  box-shadow: 0 0 6px #00bcd4;
}

.future-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

/* ==========================================================================
   4. 4 Studios Grid (Fixed Proportions & Uniform Height)
   ========================================================================== */

.studios-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.studio-card {
  display: flex;
  flex-direction: column;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.studio-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  text-decoration: none;
  color: inherit;
}

/* Featured: Movie Studio Card */
.studio-card.movie-card {
  border: 1.5px solid var(--brand-pink);
  box-shadow: 0 4px 20px rgba(255, 79, 139, 0.22), 0 0 14px rgba(34, 207, 255, 0.08), inset 0 0 15px rgba(135, 88, 255, 0.08);
}

.studio-card.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: 0 8px 30px rgba(135, 88, 255, 0.28), 0 0 18px rgba(34, 207, 255, 0.2), inset 0 0 20px rgba(255, 79, 139, 0.1);
}

/* Other Studios */
.studio-card.sales-card {
  border-color: #1a3242;
}

.studio-card.sales-card:hover {
  transform: translateY(-4px);
  border-color: var(--sales-cyan);
  box-shadow: 0 8px 24px var(--sales-glow);
}

.studio-card.voice-card {
  border-color: #17382d;
}

.studio-card.voice-card:hover {
  transform: translateY(-4px);
  border-color: var(--voice-green);
  box-shadow: 0 8px 24px var(--voice-glow);
}

.studio-card.publish-card {
  border-color: #3b2c1c;
}

.studio-card.publish-card:hover {
  transform: translateY(-4px);
  border-color: var(--publish-amber);
  box-shadow: 0 8px 24px var(--publish-glow);
}

.studio-artwork-wrap {
  flex: none;
  aspect-ratio: 1672 / 941;
  position: relative;
  overflow: hidden;
  background: #090c12;
}

.studio-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.studio-card:hover .studio-artwork {
  transform: scale(1.03);
}

.studio-card[role="button"]:focus-visible {
  outline: 2px solid var(--movie-coral);
  outline-offset: 3px;
}

/* Card Bottom Footer */
.studio-card-footer {
  position: relative;
  z-index: 2;
  height: 84px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d121c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.studio-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.studio-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.studio-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.movie-badge {
  background: rgba(255, 51, 102, 0.16);
  color: var(--movie-coral);
  border: 1px solid rgba(255, 51, 102, 0.35);
}

.sales-badge {
  background: rgba(0, 188, 212, 0.16);
  color: var(--sales-cyan);
  border: 1px solid rgba(0, 188, 212, 0.35);
}

.voice-badge {
  background: rgba(0, 230, 118, 0.16);
  color: var(--voice-green);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.publish-badge {
  background: rgba(245, 158, 11, 0.16);
  color: var(--publish-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.studio-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
}

.studio-description {
  display: -webkit-box;
  overflow: hidden;
  color: #b7c2d2;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.studio-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.movie-btn {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(135, 88, 255, 0.28), 0 0 10px rgba(34, 207, 255, 0.14);
}

.sales-btn {
  background: var(--sales-cyan);
  color: #0b141a;
}

.voice-btn {
  background: var(--voice-green);
  color: #091a13;
}

.publish-btn {
  background: var(--publish-amber);
  color: #1a1205;
}

.studio-card:hover .studio-action-btn {
  transform: scale(1.08);
}

/* ==========================================================================
   5. Recent Work Section ("งานล่าสุด")
   ========================================================================== */

.recent-section {
  margin-top: 36px;
}

.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.recent-title-group h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-chevron {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
}

.recent-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.recent-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.15s;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.view-all-link:hover {
  color: var(--brand-cyan);
}

.hub-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: #151d2b;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hub-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.homepage-hidden {
  display: none;
}

/* My Projects workspace */
.projects-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.35fr));
  gap: 10px;
  margin: 22px 0 18px;
}

.projects-search,
.projects-filter,
.projects-sort {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.projects-search::placeholder {
  color: var(--text-muted);
}

.projects-search:focus,
.projects-filter:focus,
.projects-sort:focus {
  border-color: var(--movie-coral);
  box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.12);
}

.projects-filter option,
.projects-sort option {
  background: #111824;
  color: var(--text-primary);
}

.projects-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.projects-summary strong {
  color: var(--text-primary);
}

.projects-empty {
  display: none;
  padding: 44px 20px;
  border: 1px dashed var(--border-muted);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-align: center;
}

.projects-empty.visible {
  display: block;
}

.projects-card-hidden {
  display: none !important;
}

.projects-table-wrapper {
  display: none;
}

.projects-view-table .projects-cards {
  display: none;
}

.projects-view-table .projects-table-wrapper {
  display: block;
}

.projects-table-wrapper .recent-table {
  min-width: 760px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.project-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sales-cyan);
  content: "";
}

.project-status.done::before { background: var(--voice-green); }
.project-status.draft::before { background: var(--publish-amber); }
.project-status.error::before { background: var(--movie-coral); }

@media (max-width: 900px) {
  .projects-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .projects-toolbar {
    grid-template-columns: 1fr;
  }

  .projects-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ========================================================================== 
   Dashboard Home Compatibility Layer
   The current dashboard markup uses the dash-* component set. Keep these
   rules inside the dashboard shell so older Studio pages remain unaffected.
   ========================================================================== */
.studio-dashboard-shell {
  --dash-bg: #070b13;
  --dash-surface: #0e1522;
  --dash-card: #101929;
  --dash-border: rgba(148, 163, 184, 0.17);
  --dash-text: #f8fafc;
  --dash-muted: #94a3b8;
  --dash-cyan: #22d3ee;
  --dash-pink: #fb4a8a;
  --dash-purple: #9b6bff;
  --dash-gold: #fbbf24;
  background: var(--dash-bg);
}

.studio-dashboard-shell .studio-sidebar {
  padding: 18px 12px;
  background: linear-gradient(180deg, #0c1320 0%, #070b13 100%);
  border-right: 1px solid var(--dash-border);
}

.studio-dashboard-shell .sidebar-brand-box {
  gap: 10px;
  padding: 9px 10px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--dash-border);
}

.studio-dashboard-shell .sidebar-brand-logo {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ff8a1d 0%, #ff4f8b 42%, #8758ff 72%, #22cfff 100%);
}

.studio-dashboard-shell .sidebar-brand-text {
  min-width: 0;
}

.studio-dashboard-shell .sidebar-brand-name {
  color: var(--dash-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.studio-dashboard-shell .sidebar-brand-sub {
  color: var(--dash-cyan);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.studio-dashboard-shell .sidebar-nav-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.studio-dashboard-shell .sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #aebcd0;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.studio-dashboard-shell .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.studio-dashboard-shell .sidebar-link.active {
  border-color: rgba(251, 74, 138, 0.7);
  background: linear-gradient(90deg, rgba(251, 74, 138, 0.2), rgba(155, 107, 255, 0.08));
  box-shadow: inset 3px 0 0 #fb4a8a;
  color: #ffffff;
}

.studio-dashboard-shell .sidebar-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: var(--dash-cyan);
}

.studio-dashboard-shell .sidebar-section-divider {
  height: 1px;
  margin: 8px 4px;
  background: var(--dash-border);
}

.studio-dashboard-shell .sidebar-credit-summary {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 10px;
  background: rgba(16, 25, 41, 0.8);
}

.studio-dashboard-shell .sidebar-credit-header,
.studio-dashboard-shell .sidebar-credit-sub {
  color: var(--dash-muted);
  font-size: 11px;
}

.studio-dashboard-shell .sidebar-credit-val {
  color: var(--dash-gold);
  font-size: 20px;
  font-weight: 800;
}

.studio-dashboard-shell .sidebar-topup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  background: linear-gradient(105deg, #ff4f8b, #8758ff);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.studio-dashboard-shell .studio-main-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.studio-dashboard-shell .dash-top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--dash-border);
  background: rgba(7, 11, 19, 0.92);
  backdrop-filter: blur(16px);
}

.studio-dashboard-shell .dash-header-left,
.studio-dashboard-shell .dash-header-right,
.studio-dashboard-shell .header-breadcrumbs,
.studio-dashboard-shell .user-pill-container,
.studio-dashboard-shell .package-pill-badge,
.studio-dashboard-shell .credit-pill-badge,
.studio-dashboard-shell .dash-topup-btn {
  display: flex;
  align-items: center;
}

.studio-dashboard-shell .dash-header-left {
  min-width: 0;
  gap: 14px;
}

.studio-dashboard-shell .dash-header-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.studio-dashboard-shell .header-breadcrumbs {
  gap: 8px;
  color: var(--dash-muted);
  font-size: 13px;
}

.studio-dashboard-shell .crumb-root,
.studio-dashboard-shell .crumb-current {
  color: var(--dash-text);
  font-weight: 700;
}

.studio-dashboard-shell .crumb-sep {
  color: #526174;
}

.studio-dashboard-shell .mobile-toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  color: var(--dash-text);
}

.studio-dashboard-shell .dash-icon-badge,
.studio-dashboard-shell .package-pill-badge,
.studio-dashboard-shell .credit-pill-badge,
.studio-dashboard-shell .user-pill-container {
  min-height: 34px;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--dash-border);
  border-radius: 999px;
  background: rgba(16, 25, 41, 0.82);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 600;
}

.studio-dashboard-shell .dash-icon-badge {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 34px;
  padding: 0;
}

.studio-dashboard-shell .badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dash-cyan);
  box-shadow: 0 0 8px var(--dash-cyan);
}

.studio-dashboard-shell .credit-num { color: var(--dash-gold); }
.studio-dashboard-shell .credit-unit { color: var(--dash-muted); }
.studio-dashboard-shell .user-avatar-round { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.studio-dashboard-shell .dash-topup-btn { gap: 6px; padding: 8px 12px; border-radius: 7px; background: linear-gradient(105deg, #ff4f8b, #8758ff); color: #ffffff; font-size: 12px; font-weight: 700; }

.studio-dashboard-shell .dashboard-scrollable-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.studio-dashboard-shell .dash-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 48px 44px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(7, 11, 19, 0.96) 0%, rgba(7, 11, 19, 0.72) 52%, rgba(7, 11, 19, 0.24) 100%), url('assets/art-movie-studio.png') center / cover;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.studio-dashboard-shell .dash-hero-content { position: relative; z-index: 1; max-width: 680px; }
.studio-dashboard-shell .hero-brand-tag,
.studio-dashboard-shell .hero-actions-row,
.studio-dashboard-shell .quick-cats-row,
.studio-dashboard-shell .section-title-wrap,
.studio-dashboard-shell .job-header-row,
.studio-dashboard-shell .job-footer-meta,
.studio-dashboard-shell .credit-summary-box { display: flex; align-items: center; }
.studio-dashboard-shell .hero-brand-tag { gap: 8px; margin-bottom: 16px; color: var(--dash-cyan); font-size: 11px; font-weight: 800; }
.studio-dashboard-shell .brand-tag-badge { padding: 3px 8px; border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 999px; background: rgba(34, 211, 238, 0.1); }
.studio-dashboard-shell .hero-title { margin: 0; color: var(--dash-text); font-size: 36px; line-height: 1.25; font-weight: 800; }
.studio-dashboard-shell .gradient-text-gold { color: #fde68a; }
.studio-dashboard-shell .hero-subtitle { max-width: 620px; margin: 12px 0 22px; color: #cbd5e1; font-size: 15px; line-height: 1.65; }
.studio-dashboard-shell .hero-actions-row { flex-wrap: wrap; gap: 10px; }
.studio-dashboard-shell .hero-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; color: #ffffff; font-size: 13px; font-weight: 700; }
.studio-dashboard-shell .primary-hero-btn { background: linear-gradient(105deg, #ff4f8b, #8758ff); box-shadow: 0 7px 22px rgba(251, 74, 138, 0.25); }
.studio-dashboard-shell .secondary-hero-btn { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); }

.studio-dashboard-shell .dash-search-container { margin: 22px 0 34px; }
.studio-dashboard-shell .cmd-bar-wrapper { display: flex; align-items: center; gap: 12px; padding: 8px 9px 8px 16px; border: 1px solid rgba(34, 211, 238, 0.26); border-radius: 10px; background: var(--dash-surface); }
.studio-dashboard-shell .cmd-bar-search-icon { display: inline-flex; color: var(--dash-cyan); }
.studio-dashboard-shell .cmd-bar-input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--dash-text); font: inherit; font-size: 13px; }
.studio-dashboard-shell .cmd-bar-input::placeholder { color: #718096; }
.studio-dashboard-shell .cmd-bar-submit-btn { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 14px; border-radius: 7px; background: linear-gradient(105deg, #22cfff, #8758ff); color: #ffffff; font-size: 12px; font-weight: 700; }
.studio-dashboard-shell .quick-cats-row { gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.studio-dashboard-shell .quick-cats-row::-webkit-scrollbar { display: none; }
.studio-dashboard-shell .quick-cat-pill { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--dash-border); border-radius: 999px; background: rgba(16, 25, 41, 0.76); color: var(--dash-muted); font: inherit; font-size: 12px; font-weight: 600; }
.studio-dashboard-shell .quick-cat-pill.active { border-color: rgba(34, 211, 238, 0.48); background: rgba(34, 211, 238, 0.13); color: #e0f2fe; }

.studio-dashboard-shell .dash-section { margin-top: 38px; }
.studio-dashboard-shell .section-title-wrap { justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.studio-dashboard-shell .section-heading { margin: 0; color: var(--dash-text); font-size: 21px; font-weight: 800; line-height: 1.35; }
.studio-dashboard-shell .section-subheading { margin: 4px 0 0; color: var(--dash-muted); font-size: 12.5px; }
.studio-dashboard-shell .section-more-link { color: var(--dash-cyan); font-size: 12px; font-weight: 700; }

.studio-dashboard-shell .creation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.studio-dashboard-shell .creation-card { position: relative; display: flex; min-height: 255px; overflow: hidden; align-items: flex-end; border: 1px solid var(--dash-border); border-radius: 12px; background: var(--dash-card); }
.studio-dashboard-shell .creation-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.56); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
.studio-dashboard-shell .card-visual-bg { position: absolute; inset: 0; background-position: center; background-size: cover; transition: transform 0.3s ease; }
.studio-dashboard-shell .creation-card:hover .card-visual-bg { transform: scale(1.035); }
.studio-dashboard-shell .card-chip-tag { position: absolute; top: 14px; left: 14px; padding: 4px 7px; border-radius: 5px; background: rgba(7, 11, 19, 0.76); color: #ffffff; font-size: 10px; font-weight: 800; }
.studio-dashboard-shell .card-inner-info { position: relative; z-index: 1; width: 100%; padding: 20px; color: var(--dash-text); }
.studio-dashboard-shell .card-icon-pill { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, 0.27); border-radius: 9px; background: rgba(7, 11, 19, 0.68); }
.studio-dashboard-shell .card-title { margin: 0 0 5px; color: #ffffff; font-size: 18px; font-weight: 800; }
.studio-dashboard-shell .card-desc { min-height: 38px; margin: 0; color: #d6deeb; font-size: 12px; line-height: 1.55; }
.studio-dashboard-shell .card-cta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--dash-cyan); font-size: 12px; font-weight: 800; }

.studio-dashboard-shell .dash-two-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.9fr); gap: 22px; margin-top: 38px; }
.studio-dashboard-shell .dash-projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.studio-dashboard-shell .project-card,
.studio-dashboard-shell .job-card,
.studio-dashboard-shell .news-card { overflow: hidden; border: 1px solid var(--dash-border); border-radius: 10px; background: var(--dash-card); }
.studio-dashboard-shell .project-thumb-box { position: relative; height: 112px; background-position: center; background-size: cover; }
.studio-dashboard-shell .project-badge-type { position: absolute; top: 9px; left: 9px; padding: 3px 7px; border-radius: 999px; background: rgba(7, 11, 19, 0.74); color: #ffffff; font-size: 10px; font-weight: 700; }
.studio-dashboard-shell .project-info-body { padding: 12px; }
.studio-dashboard-shell .project-title { margin: 0 0 6px; color: var(--dash-text); font-size: 13px; font-weight: 800; }
.studio-dashboard-shell .project-meta-row { display: flex; flex-wrap: wrap; gap: 5px 8px; color: var(--dash-muted); font-size: 10.5px; }
.studio-dashboard-shell .project-status-dot { color: #34d399; font-weight: 700; }
.studio-dashboard-shell .project-status-dot.processing { color: var(--dash-cyan); }
.studio-dashboard-shell .live-indicator-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--dash-cyan); font-size: 11px; font-weight: 700; }
.studio-dashboard-shell .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 9px #34d399; }
.studio-dashboard-shell .jobs-grid { display: grid; gap: 10px; }
.studio-dashboard-shell .job-card { padding: 13px; }
.studio-dashboard-shell .job-header-row,
.studio-dashboard-shell .job-footer-meta { justify-content: space-between; gap: 10px; }
.studio-dashboard-shell .job-title-group { display: flex; min-width: 0; align-items: center; gap: 7px; }
.studio-dashboard-shell .job-model-badge { flex: 0 0 auto; padding: 3px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.studio-dashboard-shell .badge-veo { background: rgba(34, 211, 238, 0.16); color: var(--dash-cyan); }
.studio-dashboard-shell .badge-banana { background: rgba(251, 191, 36, 0.16); color: var(--dash-gold); }
.studio-dashboard-shell .job-name { overflow: hidden; margin: 0; color: var(--dash-text); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.studio-dashboard-shell .job-percent-text { color: var(--dash-cyan); font-size: 12px; font-weight: 800; }
.studio-dashboard-shell .job-progress-track { height: 6px; overflow: hidden; margin: 11px 0 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.17); }
.studio-dashboard-shell .job-progress-fill { height: 100%; border-radius: inherit; }
.studio-dashboard-shell .fill-cyan { background: linear-gradient(90deg, #22d3ee, #9b6bff); }
.studio-dashboard-shell .fill-amber { background: linear-gradient(90deg, #fbbf24, #fb7185); }
.studio-dashboard-shell .job-footer-meta { color: var(--dash-muted); font-size: 10.5px; }
.studio-dashboard-shell .standby-card { color: var(--dash-muted); }
.studio-dashboard-shell .standby-content { display: flex; align-items: center; gap: 8px; font-size: 11px; }

.studio-dashboard-shell .news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.studio-dashboard-shell .news-grid.news-grid-in-column { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.studio-dashboard-shell .news-grid-in-column .news-card {
  display: grid;
  grid-template-columns: minmax(92px, max-content) minmax(0, 1fr) max-content;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  min-height: 0;
  padding: 11px 13px;
}
.studio-dashboard-shell .news-grid-in-column .news-tag {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}
.studio-dashboard-shell .news-grid-in-column .news-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.studio-dashboard-shell .news-grid-in-column .news-excerpt {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}
.studio-dashboard-shell .news-grid-in-column .news-date {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .studio-dashboard-shell .news-grid-in-column .news-card {
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 8px;
  }
  .studio-dashboard-shell .news-grid-in-column .news-tag { grid-column: 1; grid-row: 1; }
  .studio-dashboard-shell .news-grid-in-column .news-title { grid-column: 1; grid-row: 2; }
  .studio-dashboard-shell .news-grid-in-column .news-excerpt { grid-column: 1; grid-row: 3; }
  .studio-dashboard-shell .news-grid-in-column .news-date { grid-column: 2; grid-row: 1; }
}
.studio-dashboard-shell .news-card { display: flex; min-height: 176px; flex-direction: column; padding: 15px; }
.studio-dashboard-shell .news-tag { width: fit-content; margin-bottom: 10px; padding: 3px 7px; border-radius: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.studio-dashboard-shell .tag-model { background: rgba(34, 211, 238, 0.14); color: var(--dash-cyan); }
.studio-dashboard-shell .tag-feature { background: rgba(155, 107, 255, 0.15); color: #c4b5fd; }
.studio-dashboard-shell .tag-promo { background: rgba(251, 191, 36, 0.14); color: var(--dash-gold); }
.studio-dashboard-shell .tag-maint { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.studio-dashboard-shell .news-title { margin: 0 0 7px; color: var(--dash-text); font-size: 13px; line-height: 1.45; }
.studio-dashboard-shell .news-excerpt { margin: 0 0 13px; color: var(--dash-muted); font-size: 11.5px; line-height: 1.55; }
.studio-dashboard-shell .news-date { margin-top: auto; color: #718096; font-size: 10.5px; }

.studio-dashboard-shell .inspire-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.studio-dashboard-shell .inspire-card { position: relative; min-height: 185px; overflow: hidden; border: 1px solid var(--dash-border); border-radius: 10px; background-position: center; background-size: cover; }
.studio-dashboard-shell .inspire-meta { position: absolute; right: 0; bottom: 0; left: 0; padding: 14px; }
.studio-dashboard-shell .inspire-cat { display: block; margin-bottom: 3px; color: var(--dash-cyan); font-size: 10px; font-weight: 800; }
.studio-dashboard-shell .inspire-name { margin: 0; color: #ffffff; font-size: 13px; font-weight: 800; }

.studio-dashboard-shell .account-panel-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 12px; background: linear-gradient(105deg, rgba(30, 24, 14, 0.88), rgba(16, 25, 41, 0.93)); }
.studio-dashboard-shell .account-panel-info { max-width: 570px; }
.studio-dashboard-shell .account-panel-tag { color: var(--dash-gold); font-size: 10px; font-weight: 800; }
.studio-dashboard-shell .account-panel-title { margin: 6px 0; color: var(--dash-text); font-size: 20px; }
.studio-dashboard-shell .account-panel-sub { margin: 0; color: var(--dash-muted); font-size: 12px; line-height: 1.55; }
.studio-dashboard-shell .credit-summary-box { flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.studio-dashboard-shell .credit-metric { min-width: 90px; }
.studio-dashboard-shell .metric-label { display: block; color: var(--dash-muted); font-size: 10.5px; }
.studio-dashboard-shell .metric-val { display: block; margin-top: 3px; color: var(--dash-text); font-size: 17px; }
.studio-dashboard-shell .text-gold { color: var(--dash-gold); }
.studio-dashboard-shell .text-cyan { color: var(--dash-cyan); }
.studio-dashboard-shell .credit-buy-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 7px; background: linear-gradient(105deg, #f59e0b, #ff4f8b); color: #ffffff; font-size: 12px; font-weight: 800; }

@media (max-width: 1200px) {
  .studio-dashboard-shell .creation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-dashboard-shell .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-dashboard-shell .inspire-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-dashboard-shell .dash-two-cols { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .studio-dashboard-shell .studio-sidebar { position: fixed; top: 0; bottom: 0; left: -270px; width: 260px; z-index: 70; transition: left 0.25s ease; }
  .studio-dashboard-shell .studio-sidebar.open { left: 0; }
  .studio-dashboard-shell .mobile-toggle-btn { display: inline-flex; align-items: center; justify-content: center; }
  .studio-dashboard-shell .dash-top-header { padding: 0 16px; }
  .studio-dashboard-shell .package-pill-badge,
  .studio-dashboard-shell .user-name-text { display: none; }
  .studio-dashboard-shell .dashboard-scrollable-content { padding: 18px 16px 48px; }
  .studio-dashboard-shell .dash-hero { padding: 34px 24px; }
  .studio-dashboard-shell .dash-projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .studio-dashboard-shell .dash-header-right { gap: 6px; }
  .studio-dashboard-shell .dash-icon-badge,
  .studio-dashboard-shell .credit-pill-badge { display: none; }
  .studio-dashboard-shell .dash-topup-btn { padding: 7px 9px; }
  .studio-dashboard-shell .hero-title { font-size: 27px; }
  .studio-dashboard-shell .hero-actions-row { align-items: stretch; flex-direction: column; }
  .studio-dashboard-shell .hero-btn { justify-content: center; }
  .studio-dashboard-shell .cmd-bar-submit-btn span { display: none; }
  .studio-dashboard-shell .creation-grid,
  .studio-dashboard-shell .news-grid,
  .studio-dashboard-shell .inspire-grid,
  .studio-dashboard-shell .dash-projects-grid { grid-template-columns: 1fr; }
  .studio-dashboard-shell .account-panel-card { align-items: flex-start; flex-direction: column; }
  .studio-dashboard-shell .credit-summary-box { justify-content: flex-start; }
}

/* 5 Cards Container */
.recent-cards-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.recent-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.recent-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-muted);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.recent-thumb-link,
.recent-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.recent-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.recent-card:hover .recent-thumb-img {
  transform: scale(1.04);
}

.recent-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 10px;
}

.recent-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item-title a:hover {
  color: var(--brand-cyan);
}

.recent-item-meta {
  margin-bottom: 10px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
}

.tag-movie {
  background: rgba(255, 51, 102, 0.12);
  color: #ff6b8e;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.tag-sales {
  background: rgba(0, 188, 212, 0.12);
  color: #38d3e6;
  border: 1px solid rgba(0, 188, 212, 0.3);
}

.tag-voice {
  background: rgba(0, 230, 118, 0.12);
  color: #46e896;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.tag-publish {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Status / Progress Area */
.recent-progress-wrap {
  margin-bottom: 10px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.progress-value {
  color: #00bcd4;
  font-weight: 600;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: #1e2837;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00bcd4, #26c6da);
  border-radius: var(--radius-pill);
}

.recent-step-status {
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.recent-step-status .status-done {
  color: #10b981;
  font-weight: 500;
}

/* Card Footer */
.recent-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-timestamp {
  font-size: 10px;
  color: var(--text-muted);
}

.recent-circle-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a2232;
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.recent-circle-action:hover {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ==========================================================================
   6. Table View (Detailed Alternative View)
   ========================================================================== */

.recent-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.recent-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.recent-table th {
  padding: 12px 18px;
  background: #0e131d;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 11.5px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.02em;
}

.recent-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.recent-table tbody tr {
  transition: background 0.15s ease;
}

.recent-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.table-row-clickable {
  cursor: pointer;
}

.table-project-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-thumb {
  width: 54px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.table-project-cell strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.table-project-cell small {
  font-size: 11px;
  color: var(--text-muted);
}

.table-program-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.table-program-tag.movie { color: #ff6b8e; }
.table-program-tag.sales { color: #38d3e6; }
.table-program-tag.voice { color: #46e896; }
.table-program-tag.publish { color: #fbbf24; }

.dot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: #1b2434;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: #141b26;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
}

.step-badge.active {
  border-color: rgba(255, 51, 102, 0.3);
  color: #ff6b8e;
}

.step-badge.done {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--movie-coral);
}

.status-dot.cyan { background: var(--sales-cyan); }
.status-dot.green { background: var(--voice-green); }
.status-dot.amber { background: var(--publish-amber); }

.table-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

.table-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a2232;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.2s;
}

.table-action-arrow:hover {
  background: var(--brand-gradient);
  color: #ffffff;
}

.text-right {
  text-align: right;
}

/* ==========================================================================
   7. Responsive Design (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Large screens */
@media (min-width: 1400px) {
  .studios-grid {
    gap: 20px;
  }
}

/* Medium-Large screens (1100px to 1320px) */
@media (max-width: 1320px) {
  .recent-cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet (768px to 1100px) */
@media (max-width: 1100px) {
  .hub-topbar {
    padding: 0 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .topbar-tabs .tab-item span {
    font-size: 12px;
  }

  .hub-main-content {
    padding: 24px 20px 48px;
  }

  .studios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .studio-card {
    height: auto;
  }

  .recent-cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile & Small Tablet (< 860px) */
@media (max-width: 860px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .topbar-tabs {
    display: none;
  }

  .user-name {
    display: none;
  }

  .credit-pill {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Off-canvas mobile sidebar */
  .hub-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hub-sidebar.open {
    left: 0;
  }

  .sidebar-mobile-header {
    display: flex;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
  }

  .sidebar-backdrop.visible {
    display: block;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .programs-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .intro-stats {
    align-items: flex-start;
  }

  .studios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile (< 640px) */
@media (max-width: 640px) {
  .hub-topbar {
    padding: 0 12px;
    gap: 8px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }

  .topbar-left {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .brand-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .credit-pill {
    padding: 4px 8px;
    font-size: 11.5px;
  }

  .credit-label {
    display: none;
  }

  .topup-btn {
    display: none;
  }

  .notification-btn {
    width: 32px;
    height: 32px;
  }

  .user-pill {
    display: none;
  }

  .hub-layout {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hub-main-content {
    padding: 16px 12px 36px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .intro-text h1 {
    font-size: 18px;
  }

  .intro-text p {
    font-size: 12px;
  }

  .stats-badges {
    flex-wrap: wrap;
    gap: 8px;
  }

  .studios-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .studio-card {
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .studio-card-footer {
    height: 76px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .studio-name {
    font-size: 15px;
  }

  .studio-description {
    font-size: 10.5px;
  }

  .studio-action-btn {
    width: 32px;
    height: 28px;
  }

  .recent-cards-container {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .recent-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .recent-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .recent-actions {
    width: 100%;
    justify-content: space-between;
  }
}
/* ==========================================================================
   Prompt & Play AI Studio - Dark Cinematic Dashboard Hub CSS
   ========================================================================== */

:root {
  --bg-base: #060911;
  --bg-surface: #0a0e1a;
  --bg-card: #0e1424;
  --bg-card-hover: #141c30;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-muted: rgba(255, 255, 255, 0.12);
  --border-active: rgba(245, 158, 11, 0.75);

  --brand-gold: #fbbf24;
  --brand-amber: #f59e0b;
  --brand-cyan: #38bdf8;
  --brand-purple: #a855f7;
  --brand-pink: #ec4899;
  --brand-orange: #ff8a1d;
  --brand-emerald: #10b981;

  --sidebar-width: 244px;
  --topbar-height: 64px;

  --font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* Base resets for dashboard */
.studio-body-override {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-base) !important;
  color: #f1f5f9 !important;
  font-family: var(--font-family) !important;
  overflow-x: hidden;
}

.studio-body-override * {
  box-sizing: border-box;
}

/* Main Layout Shell */
.studio-dashboard-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg-base);
  color: #f1f5f9;
}

/* ==========================================================================
   1. Left Sidebar
   ========================================================================== */
.studio-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  background: linear-gradient(180deg, #090e18 0%, #060911 100%);
  border-right: 1px solid var(--border-subtle);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.studio-sidebar::-webkit-scrollbar {
  width: 4px;
}
.studio-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* Sidebar Brand Header */
.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
}

.sidebar-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-pink), var(--brand-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.sidebar-brand-titles {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-main {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--brand-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile Header inside Sidebar */
.sidebar-drawer-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

/* Sidebar Navigation Items */
.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9.5px 12px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
}

.sidebar-menu-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.35));
  transition: all 0.22s ease;
}

.sidebar-menu-link span.menu-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inactive Hover */
.sidebar-menu-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.sidebar-menu-link:hover .sidebar-menu-icon {
  color: #7dd3fc;
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.6));
}

/* Active State: Signature Gold-Amber Glowing Border & Warm Radiant Background */
.sidebar-menu-link.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.13) 60%, rgba(180, 83, 9, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.78);
  box-shadow: 
    0 0 16px rgba(245, 158, 11, 0.32),
    inset 0 0 12px rgba(245, 158, 11, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.sidebar-menu-link.active .sidebar-menu-icon {
  color: var(--brand-gold);
  filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.75));
}

.sidebar-menu-link.active:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.17) 60%, rgba(180, 83, 9, 0.09) 100%);
  border-color: rgba(251, 191, 36, 0.95);
  box-shadow: 
    0 0 22px rgba(245, 158, 11, 0.45),
    inset 0 0 14px rgba(245, 158, 11, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.45);
  transform: none;
}

/* Badge for NEW item */
.menu-badge-new {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  letter-spacing: 0.04em;
}

/* Sidebar Promo Card */
.sidebar-promo-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(20, 27, 40, 0.9) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 0 16px rgba(245, 158, 11, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
}

.sidebar-promo-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.15);
}

.sidebar-promo-card h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.sidebar-promo-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.sidebar-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(245, 158, 11, 0.25) 0%, rgba(255, 79, 139, 0.25) 50%, rgba(135, 88, 255, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.sidebar-promo-btn:hover {
  background: linear-gradient(105deg, #f59e0b 0%, #ff4f8b 50%, #8758ff 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* Sidebar Social Links */
.sidebar-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 4px 4px;
}

.sidebar-social-icon {
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-social-icon:hover {
  color: var(--brand-cyan);
}

/* ==========================================================================
   2. Main Content & Top Header
   ========================================================================== */
.studio-main-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Topbar Header */
.studio-top-header {
  height: var(--topbar-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 13, 23, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.top-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #94a3b8;
}

.top-breadcrumb .current {
  color: #ffffff;
  font-weight: 600;
}

/* Top Header Right Controls */
.top-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.membership-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
}

.membership-pill i {
  color: var(--brand-gold);
}

.header-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef3c7;
  font-size: 12.5px;
  font-weight: 600;
}

.header-credit-pill i {
  color: var(--brand-gold);
}

.topup-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 8px;
  background: linear-gradient(105deg, var(--brand-amber), var(--brand-pink));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.topup-btn:hover {
  filter: brightness(1.1);
  color: #ffffff;
}

.user-profile-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   3. Hero Banner Area
   ========================================================================== */
.studio-dashboard-content {
  padding: 24px 32px 64px;
  max-width: 1440px;
  width: 100%;
}

.dashboard-hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 44px 40px;
  min-height: 260px;
  display: flex;
  align-items: center;
  background: 
    radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(56, 189, 248, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, #0b1122 0%, #060911 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(56, 189, 248, 0.06);
  margin-bottom: 28px;
}

.hero-art-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: url('../assets/hero-ai-studio.png') right center / cover no-repeat;
  opacity: 0.42;
  mask-image: linear-gradient(to right, transparent 0%, black 70%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 70%);
  pointer-events: none;
}

.hero-content-box {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--brand-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content-box h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(105deg, var(--brand-amber), var(--brand-pink));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  color: #ffffff;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==========================================================================
   4. Global AI Command Bar & Category Filter
   ========================================================================== */
.command-bar-wrapper {
  margin-bottom: 32px;
}

.command-bar-box {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(14, 20, 36, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 0 16px rgba(56, 189, 248, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.command-bar-box:focus-within {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25), inset 0 0 20px rgba(56, 189, 248, 0.08);
}

.command-icon {
  color: var(--brand-cyan);
  font-size: 18px;
  margin-right: 12px;
}

.command-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
}

.command-input::placeholder {
  color: #64748b;
}

.command-shortcut {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.quick-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.quick-category-row::-webkit-scrollbar { display: none; }

.category-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.category-chip.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.15));
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   5. Main Creation Cards (6 Core Tools)
   ========================================================================== */
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-title i {
  color: var(--brand-amber);
}

.section-more-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.section-more-link:hover {
  color: #7dd3fc;
  gap: 7px;
}

.creation-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}

.creation-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(145deg, #0e1526 0%, #090d18 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.creation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.creation-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tool-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tool-icon-image { background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.1)); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.tool-icon-video { background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(139, 92, 246, 0.1)); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.tool-icon-audio { background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.1)); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.tool-icon-studio { background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.1)); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.tool-icon-content { background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(219, 39, 119, 0.1)); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.4); }
.tool-icon-sales { background: linear-gradient(135deg, rgba(255, 138, 29, 0.25), rgba(234, 88, 12, 0.1)); color: #fb923c; border: 1px solid rgba(255, 138, 29, 0.4); }

.card-action-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  transition: all 0.2s ease;
}

.creation-card:hover .card-action-arrow {
  background: #38bdf8;
  color: #060911;
  transform: translateX(3px);
}

.creation-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.creation-card-body p {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
}

/* ==========================================================================
   6. Two-Column Row: Recent Projects + Job Status
   ========================================================================== */
.two-col-dashboard-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin-bottom: 38px;
}

/* Recent Projects Cards */
.projects-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.project-summary-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(14, 20, 36, 0.65);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.2s ease;
}

.project-summary-card:hover {
  background: rgba(14, 20, 36, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.project-thumb-frame {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #111827;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.project-thumb-frame img, .project-thumb-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 20px;
}

.project-summary-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.project-category-tag {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  width: fit-content;
}
.status-badge.success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-badge.failed { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Empty Project Card */
.empty-projects-box {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: 12px;
  background: rgba(14, 20, 36, 0.4);
  border: 1px dashed var(--border-muted);
  text-align: center;
  color: #94a3b8;
}

/* Job Status Panel (Active Creations) */
.job-status-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid var(--border-subtle);
}

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.job-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.job-model {
  font-size: 11px;
  color: var(--brand-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.job-progress-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.job-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-purple));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  transition: width 0.3s ease;
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   7. News & Updates Section
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}

.news-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(14, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.news-card:hover {
  background: rgba(14, 20, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.news-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 10px;
}
.news-tag.model { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.news-tag.feature { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.news-tag.promo { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.news-tag.system { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.news-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
}

.news-date {
  font-size: 10.5px;
  color: #64748b;
}

/* ==========================================================================
   8. Inspiration / Discovery Gallery
   ========================================================================== */
.inspiration-scroll-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}

.inspiration-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  background: #111827;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
}

.inspiration-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.inspiration-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.inspiration-card:hover .inspiration-img {
  transform: scale(1.05);
}

.inspiration-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 9, 17, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.inspiration-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.inspiration-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* ==========================================================================
   9. Credit Panel (Summary Card)
   ========================================================================== */
.credit-summary-banner {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 27, 44, 0.9) 0%, rgba(10, 14, 24, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.04);
}

.credit-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.credit-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.credit-numbers-box h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.credit-amount-big {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.credit-reserved-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.credit-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Backdrop for Mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 45;
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .creation-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .inspiration-scroll-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .two-col-dashboard-row { grid-template-columns: 1fr; }
  .dashboard-hero-banner { padding: 32px 24px; }
  .hero-content-box h1 { font-size: 26px; }
}

@media (max-width: 860px) {
  .mobile-menu-trigger { display: inline-flex; }
  
  .studio-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .studio-sidebar.open {
    left: 0;
  }

  .sidebar-drawer-header {
    display: flex;
  }

  .sidebar-backdrop.visible {
    display: block;
  }

  .studio-dashboard-content {
    padding: 16px 16px 48px;
  }

  .studio-top-header {
    padding: 0 16px;
  }

  .membership-pill {
    display: none;
  }

  .credit-summary-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .creation-tools-grid { grid-template-columns: 1fr; }
  .projects-mini-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .inspiration-scroll-row { grid-template-columns: 1fr; }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta-primary, .hero-cta-secondary {
    justify-content: center;
  }
}

/* Home art direction: Home1 is the page canvas and Home2 is the hero banner. */
.studio-dashboard-shell .studio-main-body {
  background-color: #050b15;
  background-image:
    linear-gradient(180deg, rgba(5, 11, 21, 0.08) 0%, rgba(5, 11, 21, 0.28) 40%, rgba(5, 11, 21, 0.9) 100%),
    url('assets/Home1.png');
  background-position: center top;
  background-size: 100% auto, 100% auto;
  background-repeat: no-repeat;
}

.studio-dashboard-shell .dashboard-scrollable-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px 48px;
}

.studio-dashboard-shell .dash-hero {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.studio-dashboard-shell .home-hero-picture {
  display: block;
}

.studio-dashboard-shell .home-hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.studio-dashboard-shell .dash-hero-content {
  max-width: 980px;
  padding: 8px 18px 12px;
}

.studio-dashboard-shell .hero-subtitle {
  margin: 0 0 16px;
}

@media (max-width: 860px) {
  .studio-dashboard-shell .dashboard-scrollable-content {
    padding: 12px 12px 34px;
  }

  .studio-dashboard-shell .studio-main-body {
    background-position: center top;
    background-size: auto 560px, auto 560px;
  }
}

@media (max-width: 480px) {
  .studio-dashboard-shell .dashboard-scrollable-content {
    padding: 10px 10px 30px;
  }

  .studio-dashboard-shell .dash-hero {
    min-height: 290px;
    padding: 22px 12px;
  }

  .studio-dashboard-shell .studio-main-body {
    background-position: center top;
    background-size: auto 500px, auto 500px;
  }
}

/* Homepage header overlays the artwork; the brand lives in the left menu. */
body.studio-body-override.studio-home-page {
  padding-top: 0 !important;
}

body.studio-home-page .studio-dashboard-shell {
  min-height: 100vh;
}

body.studio-home-page .studio-main-body {
  min-height: 100vh;
}

body.studio-home-page .studio-site-header {
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.74) 0%, rgba(4, 8, 20, 0.38) 66%, rgba(4, 8, 20, 0) 100%) !important;
  border-bottom: 0 !important;
  backdrop-filter: none;
}

body.studio-home-page .studio-header-actions {
  gap: 9px;
}

body.studio-home-page .studio-header-notifications,
body.studio-home-page .studio-header-membership,
body.studio-home-page .studio-header-credit,
body.studio-home-page .studio-header-profile {
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.studio-home-page .studio-header-notifications {
  border-color: rgba(226, 232, 240, 0.28);
  background: rgba(8, 13, 25, 0.56);
  color: #e6f4ff;
}

body.studio-home-page .studio-header-membership {
  padding: 8px 13px;
  border-color: rgba(250, 204, 21, 0.55);
  border-radius: 999px;
  background: rgba(94, 66, 9, 0.76);
  color: #ffe08a;
}

body.studio-home-page .studio-header-membership::before {
  content: "♛";
  margin-right: 6px;
  color: #ffdb67;
}

body.studio-home-page .studio-header-credit {
  padding: 8px 13px;
  border-color: rgba(99, 179, 237, 0.48);
  border-radius: 999px;
  background: rgba(8, 22, 42, 0.74);
  color: #c9d8eb;
}

body.studio-home-page .studio-header-credit strong {
  color: #fff;
  font-size: 12px;
}

body.studio-home-page .studio-header-topup {
  padding: 9px 16px;
  border: 1px solid rgba(255, 226, 143, 0.5);
  border-radius: 11px;
  background: linear-gradient(115deg, #ff9a35, #ffc94f);
  box-shadow: 0 5px 18px rgba(255, 159, 48, 0.28);
  color: #251300;
  font-size: 11px;
}

body.studio-home-page .studio-header-profile {
  max-width: 230px;
  padding: 5px 11px 5px 6px;
  border-color: rgba(226, 232, 240, 0.28);
  border-radius: 999px;
  background: rgba(8, 13, 25, 0.68);
}

body.studio-home-page .dashboard-scrollable-content {
  padding-top: 0;
}

body.studio-home-page .dash-hero {
  margin-inline: -18px;
  min-height: 0;
  padding: 0;
}

body.studio-home-page .dash-hero-content {
  padding-top: 20px;
}

@media (max-width: 860px) {
  body.studio-home-page .dash-hero {
    margin-inline: -12px;
  }

  body.studio-home-page .studio-site-header {
    padding-inline: 10px;
  }
}

@media (max-width: 600px) {
  body.studio-home-page .studio-site-header {
    background: linear-gradient(180deg, rgba(4, 8, 20, 0.66), rgba(4, 8, 20, 0.12)) !important;
  }

  body.studio-home-page .studio-header-actions {
    gap: 5px;
  }

  body.studio-home-page .studio-header-profile {
    max-width: 138px;
  }

  body.studio-home-page .dashboard-scrollable-content {
    padding-inline: 10px;
  }

  body.studio-home-page .dash-hero {
    margin-inline: -10px;
  }
}
