/* Global dark esports theme */
:root {
  --bg: #000;
  --surface: #0b0b0b;
  --text: #e8e8e8;
  --muted: #9aa0a6;
  --primary: #7c4dff;
  /* accent purple */
  --primary-2: #00e5ff;
  /* cyan detail */
  --danger: #ff3366;
  --radius: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity .28s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .85));
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.brand .logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  letter-spacing: .3px;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .1px;
  white-space: nowrap;
  transition: all .15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
}

.nav-link.active {
  color: #fff;
  background: rgba(124, 77, 255, .15);
  border: 1px solid rgba(124, 77, 255, .35);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-item.active {
  color: var(--primary);
}

/* Accent nav link (Battle Pass) */
.nav-link.nav-accent {
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.15), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: #fff;
}

.nav-link.nav-accent:hover {
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.25), rgba(0, 229, 255, 0.15));
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn.small {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.btn.steam {
  background: #1b2838;
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, .12);
  position: relative;
}

.btn.steam:hover {
  background: #223347;
}

.soon {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #000;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  width: 18px;
  height: 2px;
  background: #e8e8e8;
  display: block;
  transition: all .2s ease;
}

/* Hero */
.hero {
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(124, 77, 255, .15), transparent 60%),
    radial-gradient(600px 300px at 90% 0%, rgba(0, 229, 255, .18), transparent 60%),
    linear-gradient(180deg, var(--surface), transparent 60%);
  padding: 56px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.lead {
  color: #cfd3d8;
  margin: 0 0 20px;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 16px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

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

.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .06);
}

.btn.link {
  background: transparent;
  color: var(--primary-2);
  border-color: rgba(0, 229, 255, .35);
}

/* Forms (auth/profile) */
form.grid input[type="email"],
form.grid input[type="password"],
form.grid input[type="text"],
form.grid input[type="number"],
form.grid select,
form.grid button {
  width: 100%;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
  background: #111;
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  height: 40px;
  padding: 0 10px;
}

.social-list {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list a {
  color: #cfd3d8;
  font-size: 14px;
}

.social-list a:hover {
  color: #fff;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  border: 1px solid rgba(255, 255, 255, .06);
}

/* Aspect ratios */
.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ratio-16x9>iframe,
.ratio-16x9>img,
.ratio-16x9>video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Stats */
.stats {
  padding: 24px 0 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-grid li {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

/* Games logos */
.games {
  padding: 32px 0;
}

.games h2 {
  margin: 0 0 16px;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.logo-tile {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.logo-tile img {
  width: 100%;
  max-width: 90px;
  height: 72px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6));
}

.logo-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* Case section */
.case {
  padding: 24px 0 56px;
}

.case-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.case-copy p {
  color: #cfd3d8;
  margin-bottom: 24px;
}

.case-art img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .06);
}

/* Videos page */
.page {
  padding: 32px 0 56px;
}

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

.video-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .04);
}

/* Timeline & cards */
.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.timeline li {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 16px;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .8);
  margin-top: auto;
}

.page-enter {
  opacity: 1;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 20px;
}

.footer-links,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-nav a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-copyright {
  margin: 0;
  color: #555;
  font-size: 12px;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {

  .hero-inner,
  .case-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .case-copy {
    order: 2;
  }

  .case-art {
    order: 1;
    max-width: 600px;
    margin: 0 auto;
  }

  .cta-row,
  .social-list {
    justify-content: center;
  }

  .header-wrap {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    padding: 8px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 800px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .logo-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-nav {
    gap: 12px;
  }

  .site-header {
    padding-left: 10px;
  }
}

@media (max-width: 560px) {
  .header-wrap {
    height: auto;
    padding: 10px 0;
    gap: 12px;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 30px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .logo-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand .logo {
    height: 32px;
  }

  .footer-links,
  .footer-nav {
    justify-content: center;
    text-align: center;
    gap: 12px 16px;
  }

  .footer-wrap {
    align-items: center;
    padding: 32px 20px;
  }

  h2 {
    font-size: 24px;
  }

  .btn {
    padding: 0 12px;
    font-size: 14px;
  }
}

/* Nav collapse behavior */
@media (max-width: 768px) {
  .burger {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    text-align: left;
  }

  .header-wrap {
    position: relative;
    padding: 0 16px;
  }

  .main-nav .nav-link,
  .dropdown-item,
  .header-cta .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    text-align: left;
    height: auto;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--muted);
    justify-content: flex-start;
  }

  .main-nav .nav-link.active,
  .dropdown-item.active {
    background: rgba(124, 77, 255, 0.1);
    color: #fff;
  }

  /* Remove BP accent on mobile */
  .main-nav .nav-link.nav-accent {
    background: transparent;
    border: none;
    color: var(--muted);
  }

  .main-nav .nav-link.nav-accent.active {
    background: rgba(124, 77, 255, 0.1);
    color: #fff;
  }

  .header-cta {
    margin-left: 0;
    width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Flatten dropdown in burger menu */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: block;
    width: 100%;
  }
}

/* Pills / Filters */
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #cfd3d8;
  background: rgba(255, 255, 255, .03);
  font-size: 14px;
  cursor: pointer;
}

.pill:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.pill.active {
  color: #fff;
  border-color: rgba(124, 77, 255, .45);
  background: rgba(124, 77, 255, .18);
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {

  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card-lite {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card-lite:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.card-lite .thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0f0f10;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.card-lite .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0b0b;
}

.card-lite .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.card-lite h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.card-lite .card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding-top: 12px;
}

.card-lite .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.card-lite .submit-row {
  background: rgba(124, 77, 255, 0.08);
  /* slightly deeper accent */
  margin: 10px 0 0;
  /* Clear vertical separation */
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(124, 77, 255, 0.2);
  display: flex;
  flex-direction: column;
  /* Robust vertical layout to avoid overlap */
  gap: 10px;
  align-items: stretch;
  text-align: center;
}

.card-lite .submit-row span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.toast {
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  transition: all .2s ease;
}

.toast.success {
  border-color: #fff;
  background: #000;
}

.toast.error {
  border-color: #fff;
  background: #000;
}

.toast.info {
  border-color: #fff;
  background: #000;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.news-item:hover {
  border-color: rgba(255, 255, 255, .12);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #cfd3d8;
}

.badge.success {
  color: #9cffb3;
  border-color: rgba(156, 255, 179, .25);
  background: rgba(50, 205, 50, .08);
}

.badge.warn {
  color: #ffd166;
  border-color: rgba(255, 209, 102, .25);
  background: rgba(255, 209, 102, .08);
}

.badge.info {
  color: #80e9ff;
  border-color: rgba(128, 233, 255, .25);
  background: rgba(128, 233, 255, .08);
}

/* Shared components */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 700;
}

.btn.buy {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #000;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn.buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, .25);
  filter: brightness(1.05);
}

/* Skeletons */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-card {
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  overflow: hidden;
}

.skeleton-thumb {
  height: 0;
  padding-top: 56.25%;
  background: linear-gradient(90deg, #141414 0%, #1c1c1c 50%, #141414 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.skeleton-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #141414 0%, #1c1c1c 50%, #141414 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

/* Fix variables scope if ::root was not applied by some browsers */
:root {
  --bg: #000;
  --surface: #0b0b0b;
  --text: #e8e8e8;
  --muted: #9aa0a6;
  --primary: #7c4dff;
  --primary-2: #00e5ff;
  --danger: #ff3366;
  --radius: 12px;
  --container: 1200px;
}

/* Modal (confirm purchase / submit task) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 9998;
  padding: 20px;
}

.modal {
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.98), rgba(10, 10, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  width: min(92vw, 420px);
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.modal h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.modal p,
.modal p.muted {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal form {
  display: grid;
  gap: 14px;
}

.modal .captcha {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.modal .captcha label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.modal input[type="number"],
.modal input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal input[type="number"]:focus,
.modal input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
}

.modal input[type="file"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  color: var(--muted);
  padding: 20px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.modal input[type="file"]:hover {
  border-color: var(--primary);
  background: rgba(124, 77, 255, 0.05);
}

.modal input[type="file"]::file-selector-button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-right: 12px;
}

.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.modal .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
}

.modal .btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.modal .btn.primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Desktop: slightly larger modals */
@media (min-width: 768px) {
  .modal {
    width: min(92vw, 480px);
    padding: 32px;
  }

  .modal h3 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .modal p {
    font-size: 15px;
  }

  .modal input[type="number"],
  .modal input[type="text"] {
    padding: 14px 16px;
    font-size: 16px;
  }

  .modal input[type="file"] {
    padding: 24px 16px;
  }

  .modal .btn {
    height: 44px;
    padding: 0 22px;
  }
}