/* ==========================================================================
   CLIPPER CORE COUTURE DESIGN TOKENS
   ========================================================================== */
:root {
  --bg-deep: #06080c;
  --bg-gradient: linear-gradient(135deg, #06080c 0%, #0c1017 50%, #07090e 100%);
  
  /* Frosted Glass UI Specs */
  --glass-panel: rgba(20, 26, 38, 0.45);
  --glass-panel-hover: rgba(30, 39, 56, 0.6);
  --glass-surface: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-focus: rgba(255, 255, 255, 0.15);
  
  /* Neon Gradient Accents */
  --accent-pink: #ff3366;
  --accent-purple: #8a5cf6;
  --accent-cyan: #00f5d4;
  --brand-gradient: linear-gradient(135deg, #ff3366 0%, #a155ff 50%, #00f5d4 100%);
  --glow-shadow: 0 8px 32px 0 rgba(255, 51, 102, 0.25);
  
  /* Typography */
  --text-primary: #f1f5f9;
  --text-muted: #8292ab;
}

/* ==========================================================================
   GLOBAL LAYOUT AND RESETS
   ========================================================================== */
* {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Smooth custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR GLASS PANEL COMPONENT
   ========================================================================== */
.sidebar {
  width: 260px;
  background: rgba(8, 11, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px 28px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-gradient);
  box-shadow: var(--glow-shadow);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(120deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item span {
  font-size: 1.15rem;
  filter: grayscale(0.2);
  transition: transform 0.2s;
}

.nav-item:hover {
  background: var(--glass-panel);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.nav-item:hover span {
  transform: scale(1.1);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.1) 0%, rgba(138, 92, 246, 0.05) 100%);
  border-color: rgba(255, 51, 102, 0.2);
  color: var(--accent-pink);
  font-weight: 600;
  box-shadow: inset 0 0 12px rgba(255, 51, 102, 0.05);
}

.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 24px 0;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 16px 12px;
}

.subscription-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.sub-item:hover {
  background: var(--glass-surface);
  color: var(--text-primary);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.accent-purple { color: var(--accent-purple); background: currentColor; }
.accent-blue { color: #3b82f6; background: currentColor; }
.accent-pink { color: var(--accent-pink); background: currentColor; }
.accent-green { color: var(--accent-cyan); background: currentColor; }

/* ==========================================================================
   MAIN DASHBOARD WORKSPACE
   ========================================================================== */
.main-panel {
  flex: 1;
  padding: 32px 40px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.search-wrap {
  flex: 1;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass-panel);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.search-wrap:focus-within {
  border-color: var(--glass-border-focus);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.02);
}

.search-wrap input {
  flex: 1;
  height: 48px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-wrap input::placeholder {
  color: rgba(130, 146, 171, 0.6);
}

.search-icon {
  color: var(--text-muted);
  font-size: 1.3rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   PREMIUM BUTTON & PROFILE ASSETS
   ========================================================================== */
.upload-btn {
  background: var(--glass-panel);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-btn:hover {
  background: var(--glass-panel-hover);
  border-color: var(--glass-border-focus);
  transform: translateY(-1px);
}

.primary {
  background: var(--brand-gradient);
  box-shadow: var(--glow-shadow);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
}

.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 40px 0 rgba(255, 51, 102, 0.35);
}

.secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--glass-border-focus);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.2s;
}

.avatar:hover {
  transform: scale(1.05);
  border-color: var(--glass-border-focus);
}

.user-menu {
  position: absolute;
  right: 0;
  top: 56px;
  background: rgba(14, 20, 31, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 8px;
  min-width: 200px;
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.menu-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}

.menu-item:hover {
  background: var(--glass-panel);
  color: var(--text-primary);
}

.menu-item.logout {
  color: rgba(255, 51, 102, 0.7);
}
.menu-item.logout:hover {
  background: rgba(255, 51, 102, 0.1);
  color: var(--accent-pink);
}

/* ==========================================================================
   VIEW CONTROLS & ROUTING
   ========================================================================== */
.tab-view { display: none; }
.tab-view.active { display: block; animation: fadeIn 0.4s ease-out; }

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

/* ==========================================================================
   HERO DISPLAY BANNER
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  background: linear-gradient(135deg, rgba(255, 31, 102, 0.05) 0%, rgba(138, 92, 246, 0.03) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 40px;
  margin-bottom: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Ambient design elements behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-copy .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-pink);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(120deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

