@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #071423;
  --bg-2: #0d2236;
  --panel: rgba(13, 34, 54, 0.72);
  --panel-solid: #10263b;
  --line: rgba(114, 177, 255, 0.18);
  --line-strong: rgba(96, 165, 250, 0.35);
  --text: #ffffff;
  --muted: rgba(220, 235, 255, 0.72);
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --accent-deep: #163d75;
  --ok: #3dd68c;
  --warn: #f5c542;
  --err: #ff6b6b;
  --pending: #ff9f43;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(37, 99, 235, 0.24);
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(37, 99, 235, 0.42), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(96, 165, 250, 0.22), transparent 50%),
    radial-gradient(800px 500px at 50% 110%, rgba(22, 61, 117, 0.55), transparent 55%),
    linear-gradient(165deg, #0f2741 0%, #081320 45%, #071423 100%);
  background-attachment: fixed;
}

a { color: #b8d7ff; text-decoration: none; transition: color .15s ease; }
a:hover { color: #fff; }
code, .mono { font-family: ui-monospace, Consolas, monospace; color: #d8e9ff; }

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

.sidebar {
  width: 268px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(13, 34, 54, 0.96), rgba(7, 20, 35, 0.98));
  border-right: 1px solid var(--line);
  padding: 1.35rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.25);
}
.brand {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: .45rem .5rem .85rem;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: var(--glow);
}
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .02em; color: #fff; }
.brand small { color: var(--muted); font-size: .78rem; }

.sidebar nav { display: flex; flex-direction: column; gap: .28rem; flex: 1; overflow: auto; }
.sidebar nav a {
  color: var(--muted);
  padding: .72rem .9rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .94rem;
  border: 1px solid transparent;
}
.sidebar nav a:hover {
  background: rgba(96, 165, 250, 0.12);
  color: #fff;
  border-color: var(--line);
}
.sidebar nav a.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(22, 61, 117, 0.78));
  color: #fff;
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sidebar nav a.nav-exit { margin-top: auto; color: #c9ddff; }
.sidebar-foot {
  padding: .55rem .5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}

.main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(13, 34, 54, 0.88), rgba(7, 20, 35, 0.72));
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.menu-btn {
  display: none;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid var(--line-strong);
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.page { padding: 1.35rem 1.5rem 2.6rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.card {
  background: linear-gradient(160deg, rgba(19, 50, 80, 0.92), rgba(9, 23, 38, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, transparent 70%);
}
.card h3 {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card strong {
  display: block;
  margin-top: .5rem;
  font-size: 1.85rem;
  color: #fff;
  font-weight: 800;
}
.card .hint { color: var(--muted); font-size: .85rem; margin-top: .4rem; }

.panel {
  background: linear-gradient(165deg, rgba(17, 41, 66, 0.9), rgba(8, 22, 36, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}
.panel p.lead { color: var(--muted); margin: -.35rem 0 1rem; }

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1.05rem;
}
.grid-form .full { grid-column: 1 / -1; }
.grid-form .actions { display: flex; gap: .65rem; align-items: end; flex-wrap: wrap; }

label {
  display: grid;
  gap: .38rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}
input, select, textarea, button, .btn {
  font: inherit;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 22, 36, 0.88);
  color: var(--text);
  padding: .68rem .8rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: rgba(220, 235, 255, 0.35); }

button, .btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.35);
  transition: transform .12s ease, filter .12s ease;
}
button:hover, .btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
button.secondary, .btn.secondary, button.ghost, .btn.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: #fff;
  box-shadow: none;
}
button.ok, .btn.ok { background: linear-gradient(135deg, #2ecc71, #1e8449); box-shadow: none; }
button.danger, .btn.danger { background: linear-gradient(135deg, #c0392b, #6b1010); }

.inline-form { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.inline-form input { min-width: 0; }
button.link {
  background: none;
  border: none;
  color: #b8d7ff;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}
button.link.danger { color: #a8c9ff; }

.inline { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.inline input[type="search"] { flex: 1; min-width: 180px; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td {
  text-align: left;
  padding: .8rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #fff;
}
th {
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(59, 130, 246, 0.12);
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(96, 165, 250, 0.07); }
.row-actions { display: flex; gap: .65rem; align-items: center; white-space: nowrap; }
.row-actions form { margin: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.badge.active { background: rgba(61, 214, 140, 0.18); color: #7dffc0; }
.badge.pending { background: rgba(255, 159, 67, 0.2); color: #ffd08a; }
.badge.blocked, .badge.inactive { background: rgba(255, 107, 107, 0.18); color: #ffb0b0; }

.alert {
  padding: .85rem 1.05rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  color: #fff;
}
.alert.ok { background: rgba(61, 214, 140, 0.14); border-color: rgba(61, 214, 140, 0.35); }
.alert.error { background: rgba(255, 107, 107, 0.14); border-color: rgba(255, 107, 107, 0.4); }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(37, 99, 235, 0.42), transparent 55%),
    radial-gradient(600px 380px at 90% 80%, rgba(14, 116, 214, 0.38), transparent 50%),
    linear-gradient(160deg, #0f2b4a, #06111f);
}
.auth-card {
  width: min(420px, 100%);
  background: linear-gradient(165deg, rgba(17, 52, 86, 0.96), rgba(6, 20, 34, 0.98));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 1.85rem 1.7rem;
  box-shadow: var(--shadow), var(--glow);
}
.auth-card h1 { margin: 0 0 .3rem; color: #fff; font-size: 1.65rem; }
.auth-card .muted { color: var(--muted); margin: 0 0 1.25rem; }
.auth-card form { display: grid; gap: .95rem; }
.auth-card button { width: 100%; padding: .88rem; font-size: 1rem; }
.auth-badge {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}

.info-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(10, 38, 68, 0.36));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .95rem 1.1rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.info-box strong { color: #fff; }
.info-box code { display: none; }

label.check {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-direction: row;
  padding-top: 1.6rem;
}
label.check input { width: auto; }

.section-title {
  margin: 0 0 .85rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-logo, .preview-bg {
  max-width: 100%;
  max-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: rgba(0,0,0,.25);
}
.rebrand-preview { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;
    transform: translateX(-105%);
    transition: transform .22s ease;
    height: 100vh;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-grid; place-items: center; }
  .grid-form { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}


/* Enjoy Cinema Pro login branding */
.auth-card { text-align: center; }
.auth-card form { text-align: left; }
.auth-logo {
  width: 78px; height: 78px; margin: 0 auto 1rem; border-radius: 24px;
  display: grid; place-items: center; font-size: 1.55rem; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: linear-gradient(145deg, #60a5fa, #1d4ed8);
  border: 1px solid rgba(191, 219, 254, .4);
  box-shadow: 0 14px 36px rgba(37, 99, 235, .32), inset 0 1px 0 rgba(255,255,255,.22);
}
.auth-card h1 { font-size: 1.9rem; letter-spacing: -.02em; }
.auth-card input { min-height: 48px; }
.auth-card button { min-height: 50px; }


/* Enjoy Cinema Pro v1.12.1 — BLUE THEME FINAL OVERRIDE */
:root {
  --bg: #061321 !important;
  --bg-2: #0a2035 !important;
  --panel: rgba(12, 34, 56, .90) !important;
  --panel-solid: #0e2943 !important;
  --line: rgba(96, 165, 250, .22) !important;
  --line-strong: rgba(96, 165, 250, .46) !important;
  --text: #f7fbff !important;
  --muted: rgba(220, 235, 255, .72) !important;
  --accent: #2563eb !important;
  --accent-2: #60a5fa !important;
  --accent-deep: #123e75 !important;
  --glow: 0 0 42px rgba(37,99,235,.28) !important;
}
body {
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(37,99,235,.42), transparent 58%),
    radial-gradient(760px 450px at 100% 0%, rgba(56,189,248,.18), transparent 52%),
    radial-gradient(850px 540px at 50% 110%, rgba(30,64,175,.38), transparent 58%),
    linear-gradient(165deg,#0d2741 0%,#071624 48%,#061321 100%) !important;
  background-attachment: fixed !important;
}
.sidebar {
  background: linear-gradient(180deg,rgba(12,36,59,.98),rgba(5,18,31,.99)) !important;
  border-right-color: rgba(96,165,250,.20) !important;
}
.brand-mark {
  background: linear-gradient(145deg,#60a5fa,#2563eb) !important;
  box-shadow: 0 0 36px rgba(37,99,235,.35) !important;
}
.sidebar nav a:hover { background: rgba(59,130,246,.14) !important; }
.sidebar nav a.active {
  background: linear-gradient(135deg,rgba(37,99,235,.68),rgba(30,64,175,.86)) !important;
  border-color: rgba(96,165,250,.48) !important;
}
.topbar { background: linear-gradient(90deg,rgba(10,32,53,.94),rgba(5,18,31,.86)) !important; }
.card { background: linear-gradient(160deg,rgba(18,52,84,.94),rgba(8,25,42,.96)) !important; }
.card::before { background: linear-gradient(90deg,#60a5fa,transparent 70%) !important; }
.panel { background: linear-gradient(165deg,rgba(15,43,70,.94),rgba(7,23,39,.96)) !important; }
input,select,textarea { background: rgba(6,22,37,.92) !important; }
input:focus,select:focus,textarea:focus { border-color:#60a5fa !important; box-shadow:0 0 0 3px rgba(37,99,235,.22) !important; }
button,.btn { background:linear-gradient(135deg,#3b82f6,#1d4ed8) !important; box-shadow:0 8px 22px rgba(29,78,216,.30) !important; }
button.secondary,.btn.secondary,button.ghost,.btn.ghost { background:transparent !important; }
a, button.link { color:#b9d8ff !important; }
.auth-card { border-color:rgba(96,165,250,.24) !important; box-shadow:0 24px 70px rgba(0,0,0,.48),0 0 50px rgba(37,99,235,.12) !important; }
.auth-badge { background:linear-gradient(135deg,#3b82f6,#1d4ed8) !important; }
