:root {
  --royal: #2457ff;
  --violet: #8b42ff;
  --cyan: #14d9ff;
  --mint: #42f5b0;
  --gold: #ffd166;
  --ink: #12142b;
  --deep: #08091b;
  --muted: #67718b;
  --line: #d7e3f4;
  --paper: #ffffff;
  --soft: #eef6ff;
  --success: #16a34a;
  --danger: #ef4444;
  --shadow: 0 22px 60px rgba(20, 22, 58, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(20,217,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(36,87,255,.07) 1px, transparent 1px),
    linear-gradient(180deg, #e9f8ff 0%, #f8fbff 38%, #eef4ff 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.pixel-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), transparent 28%),
    linear-gradient(90deg, transparent 0 5%, rgba(8,9,27,.04) 5% 6%, transparent 6% 17%, rgba(8,9,27,.05) 17% 19%, transparent 19% 100%),
    radial-gradient(circle at 14% 18%, rgba(20,217,255,.28), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(139,66,255,.18), transparent 18%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(10, 12, 35, .86);
  border-bottom: 1px solid rgba(20,217,255,.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(8,9,27,.18);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 6px;
  color: #061026;
  background:
    linear-gradient(135deg, var(--gold), var(--cyan));
  box-shadow: 0 0 0 4px rgba(20,217,255,.16), 0 12px 28px rgba(20,217,255,.24);
  font-weight: 900;
}
.brand strong { display: block; color: #fff; font-size: 1.15rem; }
.brand small { color: rgba(255,255,255,.62); font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.main-nav a { padding: 10px 12px; border-radius: 7px; color: rgba(255,255,255,.78); }
.main-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.play-link, .btn.primary {
  color: #071229 !important;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 14px 30px rgba(20,217,255,.26);
}
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-size: 1.2rem; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 54px; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 430px;
  border: 1px solid rgba(20,217,255,.24);
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(8,9,27,.98) 0%, rgba(18,20,63,.94) 45%, rgba(36,87,255,.72) 100%),
    url("../img/topstory-hotel.svg") center/cover;
  box-shadow: 0 30px 80px rgba(8,9,27,.34);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 118px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 0 9%, transparent 9% 13%, rgba(20,217,255,.13) 13% 21%, transparent 21% 30%, rgba(255,209,102,.13) 30% 35%, transparent 35% 100%),
    linear-gradient(180deg, transparent, rgba(8,9,27,.86));
  clip-path: polygon(0 28%, 8% 28%, 8% 5%, 17% 5%, 17% 38%, 26% 38%, 26% 18%, 37% 18%, 37% 42%, 48% 42%, 48% 8%, 62% 8%, 62% 34%, 72% 34%, 72% 16%, 86% 16%, 86% 44%, 100% 44%, 100% 100%, 0 100%);
}
.hero-content { padding: clamp(34px, 6vw, 72px); align-self: center; }
.eyebrow { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(20,217,255,.38); border-radius: 6px; background: rgba(20,217,255,.12); color: #dffbff; font-weight: 900; font-size: .78rem; text-transform: uppercase; }
h1 { margin: 18px 0 14px; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: .92; letter-spacing: 0; }
.hero p { max-width: 580px; color: rgba(255,255,255,.88); font-size: 1.08rem; line-height: 1.7; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.light { color: var(--ink); background: #fff; }
.btn.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn.danger { color: #fff; background: var(--danger); }
.hero-scene { position: relative; min-height: 330px; }
.hotel-card {
  position: absolute;
  right: 44px;
  bottom: 38px;
  width: min(360px, calc(100% - 72px));
  padding: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(8,9,27,.54);
  backdrop-filter: blur(14px);
}
.hotel-card strong { display: block; font-size: 2.1rem; }
.avatar-stack { display: flex; margin-top: 14px; }
.avatar-stack img { width: 68px; height: 86px; object-fit: contain; margin-right: -18px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.25)); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.sidebar { grid-template-columns: 1.7fr .8fr; align-items: start; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 34px 0 16px; }
.section-title h2, .admin-top strong { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.card, .widget, .form-card, .news-card, .profile-panel {
  border: 1px solid rgba(217,227,240,.9);
  border-radius: 9px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.card, .widget, .form-card, .profile-panel { padding: 20px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 0; }
.stat { position: relative; overflow: hidden; padding: 18px; border: 1px solid rgba(20,217,255,.18); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 72px; height: 72px; background: linear-gradient(135deg, rgba(20,217,255,.2), rgba(139,66,255,.18)); transform: rotate(45deg); }
.stat span { color: var(--muted); font-weight: 800; font-size: .82rem; }
.stat strong { display: block; margin-top: 4px; color: var(--royal); font-size: 2rem; }
.news-card { overflow: hidden; }
.news-card img { width: 100%; height: 150px; object-fit: cover; }
.news-body { padding: 16px; }
.tag, .badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 5px; color: #071229; background: linear-gradient(135deg, var(--gold), var(--cyan)); font-size: .76rem; font-weight: 900; }
.news-body h3, .card h3 { margin: 10px 0 8px; }
.muted { color: var(--muted); }
.widget-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mini-user, .ranking-row, .staff-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 7px; background: linear-gradient(135deg, #f3f9ff, #eef2ff); }
.mini-user img, .ranking-row img, .staff-row img { width: 46px; height: 54px; object-fit: contain; }
.status { width: 10px; height: 10px; border-radius: 50%; background: #a3a3a3; }
.status.online { background: var(--success); box-shadow: 0 0 0 4px rgba(22,163,74,.13); }

.form-card { width: min(520px, 100%); margin: 40px auto; }
label { display: grid; gap: 7px; margin: 12px 0; color: #34314d; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.flash { margin: 16px 0; padding: 13px 15px; border-radius: 10px; background: #fff; border-left: 4px solid var(--royal); box-shadow: var(--shadow); font-weight: 800; }
.flash.error { border-color: var(--danger); }
.flash.success { border-color: var(--success); }

.profile-hero { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: stretch; }
.profile-avatar { display: grid; place-items: center; min-height: 260px; border-radius: 12px; background: linear-gradient(180deg, #dff7ff, #c8d7ff); }
.profile-avatar img { height: 220px; object-fit: contain; }
.currency { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.currency div { padding: 14px; border-radius: 10px; background: var(--soft); }
.client-frame { overflow: hidden; border-radius: 14px; background: #09051f; box-shadow: var(--shadow); }
.client-frame iframe { width: 100%; height: 720px; border: 0; }
.client-config { margin-top: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.staff-card { position: relative; min-height: 245px; overflow: hidden; }
.staff-card img { height: 128px; object-fit: contain; margin: 8px auto; }
.shop-tier { overflow: hidden; }
.shop-tier .banner { height: 82px; margin: -20px -20px 16px; background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.article { font-size: 1.05rem; line-height: 1.8; }
.article-hero { width: 100%; max-height: 330px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: #fff;
  background: #08091b;
}
.site-footer p { margin: 6px 0 0; color: rgba(255,255,255,.68); }
.footer-links { display: flex; gap: 14px; font-weight: 900; }

.admin-body { display: grid; grid-template-columns: 260px 1fr; background: #f5f8ff; }
.admin-sidebar { min-height: 100vh; padding: 20px; background: #171331; color: #fff; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; color: rgba(255,255,255,.82); font-weight: 850; }
.admin-sidebar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-brand { margin-bottom: 20px; }
.admin-main { padding: 26px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-top span { display: block; color: var(--muted); font-weight: 800; }
table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #514c72; background: #eef4ff; font-size: .82rem; text-transform: uppercase; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; min-width: 90px; }

@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .main-nav a { color: var(--ink); }
  .main-nav.is-open { display: flex; }
  .hero, .grid.sidebar, .profile-hero, .grid.two { grid-template-columns: 1fr; }
  .grid.three, .stat-strip, .currency { grid-template-columns: 1fr 1fr; }
  .hero-scene { min-height: 210px; }
  .hotel-card { left: 24px; right: 24px; bottom: 22px; width: auto; }
  .admin-body { display: block; }
  .admin-sidebar { min-height: auto; display: grid; grid-template-columns: repeat(2, 1fr); }
}

.empty-state, .empty-note {
  padding: 18px;
  border: 1px dashed rgba(20,217,255,.5);
  border-radius: 8px;
  color: #4d5872;
  background: rgba(255,255,255,.72);
  font-weight: 800;
}

.install-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(20,217,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(20,217,255,.28), transparent 25%),
    linear-gradient(135deg, #07081a, #15194b 52%, #112f5c);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: #fff;
}
.install-shell {
  width: min(1160px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: center;
  padding: 32px 0;
}
.install-panel, .install-side {
  border: 1px solid rgba(20,217,255,.24);
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.install-panel { padding: clamp(22px, 4vw, 38px); }
.install-side {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent, rgba(8,9,27,.92)),
    url("../img/topstory-hotel.svg") center/cover;
}
.install-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.install-brand strong { display: block; font-size: 1.35rem; }
.install-brand small { color: var(--muted); font-weight: 800; }
.install-form h2 { margin: 22px 0 6px; }
.install-form .btn { margin-top: 14px; }

@media (max-width: 880px) {
  .install-shell { grid-template-columns: 1fr; }
  .install-side { min-height: 260px; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 1180px); }
  .site-header { padding: 12px 10px; }
  .hero-content { padding: 28px 22px; }
  .grid.three, .stat-strip, .currency { grid-template-columns: 1fr; }
  .site-footer, .admin-top { flex-direction: column; align-items: flex-start; }
  .admin-main { padding: 14px; }
  table { display: block; overflow-x: auto; }
}
