/* ============================================================
   VEXA PLAY — Design System
   ============================================================ */
:root {
  --bg-app: #060417;
  --bg-app-2: #0b0824;
  --bg-sidebar: #0a0720;
  --bg-topbar: rgba(10, 7, 32, 0.7);
  --bg-card: #13102b;
  --bg-card-2: #171334;
  --bg-input: #14112c;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);

  --purple: #8b3ffd;
  --purple-2: #a855f7;
  --cyan: #22d3ee;
  --pink: #d946ef;
  --grad-brand: linear-gradient(135deg, var(--pink) 0%, var(--purple) 45%, var(--cyan) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(217, 70, 239, 0.18), rgba(139, 63, 253, 0.18), rgba(34, 211, 238, 0.18));
  --grad-purple-cyan: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);

  --text-primary: #f5f4fb;
  --text-secondary: #9b96b8;
  --text-tertiary: #6b6688;

  --danger: #ef4444;
  --success: #22c55e;
  --live-red: #ff3b5c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-glow-purple: 0 0 24px rgba(139, 63, 253, 0.35);
  --shadow-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.25);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(120% 100% at 15% 0%, #17103a 0%, var(--bg-app-2) 42%, var(--bg-app) 100%);
  color: var(--text-primary);
}

a {
  color: inherit;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 63, 253, 0.35);
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  width: 250px;
  min-width: 220px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
}

#brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}

#brand-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

#brand-logo .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

#brand-logo .brand-name {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}

#brand-logo .brand-name .v-letter {
  background: var(--grad-purple-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#brand-logo .brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--grad-purple-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 18px;
  overflow-y: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}

.nav-btn i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-purple);
  border-color: transparent;
}

#sidebar-promo {
  margin-top: 14px;
  padding: 16px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(139, 63, 253, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(139, 63, 253, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
}

#sidebar-promo .promo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-purple);
}

#sidebar-promo .promo-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

#sidebar-promo .promo-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================================================
   MAIN AREA / TOPBAR
   ============================================================ */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

#topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-topbar);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

#topbar-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

#topbar-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 13px;
}

#topbar-search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 13px;
}

#topbar-search input:focus {
  outline: none;
  border-color: var(--purple);
}

#topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  flex-shrink: 0;
}

.topbar-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--purple);
}

.topbar-icon-btn .dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-red);
  border: 1.5px solid var(--bg-topbar);
}

#topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: default;
  flex-shrink: 0;
}

#topbar-profile .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

#topbar-profile .profile-text {
  line-height: 1.2;
}

#topbar-profile .profile-greeting {
  font-size: 10.5px;
  color: var(--text-secondary);
}

#topbar-profile .profile-name {
  font-size: 12.5px;
  font-weight: 700;
}

#topbar-datetime {
  text-align: right;
  flex-shrink: 0;
  padding-left: 6px;
  border-left: 1px solid var(--border-soft);
}

#topbar-datetime .time {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

#topbar-datetime .date {
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
}

/* ---------- HERO CAROUSEL ---------- */
#hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 300px;
  margin-bottom: 28px;
  border: 1px solid var(--border-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 48px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 4, 23, 0.95) 0%, rgba(6, 4, 23, 0.65) 45%, rgba(6, 4, 23, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow-purple);
}

.hero-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  max-width: 380px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow-purple);
}

.hero-cta:hover {
  filter: brightness(1.1);
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.hero-nav-arrow:hover {
  background: var(--grad-brand);
}

.hero-nav-arrow.prev { left: 18px; }
.hero-nav-arrow.next { right: 18px; }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s;
}

.hero-dot.active {
  background: var(--purple-2);
  width: 22px;
  border-radius: 4px;
}

/* ---------- CATEGORY QUICK ROW ---------- */
#category-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.15s;
}

.category-chip:hover {
  border-color: rgba(139, 63, 253, 0.4);
  transform: translateY(-2px);
}

.category-chip.active {
  border-color: var(--purple);
  box-shadow: var(--shadow-glow-purple);
  background: var(--bg-card-2);
}

.category-chip .chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.category-chip .chip-icon i {
  background: var(--grad-purple-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.category-chip .chip-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.category-chip.active .chip-label {
  color: var(--text-primary);
}

/* ---------- SECTION HEADERS ---------- */
.content-section {
  margin-bottom: 34px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h2 i {
  color: var(--purple-2);
}

.section-head .see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-2);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-head .see-all:hover {
  color: var(--cyan);
}

/* ---------- FEATURED CHANNELS SCROLLER ---------- */
.h-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.featured-channel-card {
  flex: 0 0 150px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.15s;
}

.featured-channel-card:hover {
  border-color: rgba(139, 63, 253, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.featured-channel-card .live-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--live-red);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.featured-channel-card .fc-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-channel-card .fc-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-channel-card .fc-logo-fallback {
  font-size: 15px;
  font-weight: 800;
  color: #0a0720;
}

.featured-channel-card .fc-name {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---------- CONTINUE WATCHING / VOD-STYLE CARDS ---------- */
.watch-card {
  flex: 0 0 190px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.watch-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(139, 63, 253, 0.4);
}

.watch-card .wc-thumb {
  width: 100%;
  height: 106px;
  object-fit: cover;
  background: var(--bg-card-2);
  display: block;
}

.watch-card .wc-logo-fallback {
  width: 100%;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-tertiary);
  background: var(--bg-card-2);
}

.watch-card .wc-play-btn {
  position: absolute;
  bottom: 68px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: var(--shadow-glow-purple);
}

.watch-card .wc-info {
  padding: 10px 12px 12px;
}

.watch-card .wc-title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-card .wc-meta {
  font-size: 10.5px;
  color: var(--text-tertiary);
  margin-top: 3px;
}

/* ============================================================
   LIST VIEW (Ao Vivo / Canais / Kids / Filmes / Séries / Favoritos)
   ============================================================ */
.list-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.list-view-header h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-view-header h1 i {
  color: var(--purple-2);
}

.list-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.list-filters input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 13px;
}

.list-filters input[type="text"]:focus {
  outline: none;
  border-color: var(--purple);
}

.list-filters select {
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 12.5px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.channel-grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.channel-grid-card:hover {
  border-color: rgba(139, 63, 253, 0.4);
  transform: translateY(-2px);
}

.channel-grid-card.active {
  border-color: var(--purple);
  box-shadow: var(--shadow-glow-purple);
}

.channel-grid-card .cgc-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.channel-grid-card .cgc-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.channel-grid-card .cgc-logo-fallback {
  font-size: 13px;
  font-weight: 800;
  color: #0a0720;
}

.channel-grid-card .cgc-name {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.channel-grid-card .cgc-meta {
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: center;
}

.channel-grid-card .cgc-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-grid-card .cgc-fav-btn.active,
.channel-grid-card .cgc-fav-btn:hover {
  color: #fbbf24;
}

.channel-grid-card .cgc-live-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--live-red);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 34px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.4;
  color: var(--purple-2);
}

/* ============================================================
   PLAYER MODAL / OVERLAY
   ============================================================ */
#player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 2, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}

#player-overlay.visible {
  display: flex;
}

#player-box {
  width: min(1000px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

#player-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}

#player-box-header .now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#player-box-header .now-playing img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: contain;
  background: var(--bg-card-2);
}

#player-box-header .now-playing span {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#player-box-header .player-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#player-video-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

#player-status {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  display: none;
  align-items: center;
  gap: 8px;
}

#player-status.visible {
  display: flex;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   BUTTONS / GENERIC
   ============================================================ */
.btn {
  padding: 9px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  border-color: var(--purple);
}

.btn-primary {
  background: var(--grad-brand);
  border: none;
  box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  font-size: 13px;
}

.icon-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

.fav-btn-inline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.fav-btn-inline.active,
.fav-btn-inline:hover {
  color: #fbbf24;
  border-color: #fbbf24;
}

/* Legal / info notice */
.legal-notice {
  background: rgba(139, 63, 253, 0.08);
  border: 1px solid rgba(139, 63, 253, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

.legal-notice i {
  color: var(--purple-2);
  margin-right: 6px;
}

.legal-notice a {
  color: var(--cyan);
  text-decoration: none;
}

/* ============================================================
   SETTINGS VIEW
   ============================================================ */
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 520px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row .settings-label {
  font-size: 13px;
  font-weight: 600;
}

.settings-row .settings-value {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
#mobile-menu-btn {
  display: none;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  #category-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  #sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 260px;
  }
  #sidebar.mobile-open {
    transform: translateX(0);
  }
  #mobile-menu-btn {
    display: flex;
  }
  #topbar-search {
    max-width: none;
  }
  #topbar-datetime,
  #topbar-profile .profile-text {
    display: none;
  }
  .hero-title {
    font-size: 26px;
  }
  #hero-carousel {
    height: 240px;
  }
}

@media (max-width: 600px) {
  #category-row {
    grid-template-columns: repeat(3, 1fr);
  }
  #content-area {
    padding: 18px 14px 30px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-desc {
    display: none;
  }
}
