:root {
  --bg: #05030b;
  --bg-soft: #0a0712;
  --surface: rgba(16, 11, 27, .82);
  --surface-strong: rgba(20, 13, 34, .96);
  --surface-glass: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --line-hot: rgba(234, 63, 255, .28);
  --text: #fffaff;
  --muted: #a79caf;
  --muted-2: #756b7d;
  --violet: #7c3cff;
  --purple: #a330ff;
  --pink: #f032a7;
  --coral: #ff694d;
  --gold: #ffb43b;
  --green: #48e6ad;
  --red: #ff6485;
  --gradient: linear-gradient(115deg, #7a35ff 0%, #ed2ea6 48%, #ff7845 100%);
  --gradient-soft: linear-gradient(135deg, rgba(122, 53, 255, .23), rgba(237, 46, 166, .18), rgba(255, 120, 69, .12));
  --radius-lg: 30px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .52);
  --glow: 0 0 36px rgba(226, 47, 183, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(125, 45, 255, .16), transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(242, 46, 166, .14), transparent 25%),
    linear-gradient(180deg, #05030b 0%, #08050f 52%, #040208 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: rgba(239, 45, 167, .35); }

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: ambientFloat 12s ease-in-out infinite alternate;
}
.ambient-one { width: 300px; height: 300px; left: -140px; top: 20vh; background: rgba(113, 44, 255, .16); }
.ambient-two { width: 360px; height: 360px; right: -170px; top: 8vh; background: rgba(242, 43, 166, .12); animation-delay: -4s; }
.ambient-three { width: 260px; height: 260px; left: 46%; bottom: -150px; background: rgba(255, 105, 77, .08); animation-delay: -8s; }

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(22px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(5, 3, 11, .74);
  backdrop-filter: blur(24px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-emblem {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.04em;
  background: #0c0812;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 28px rgba(226, 46, 172, .18);
}
.brand-emblem::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.brand-copy { display: grid; line-height: 1; min-width: 0; }
.brand-copy strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 19px;
  letter-spacing: .09em;
  font-weight: 500;
  white-space: nowrap;
}
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.aplus-signature { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.user-chip, .role-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ded3e4;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  font-size: 12px;
}
.install-button { display: none; }
.install-button.visible { display: inline-flex; }

.page-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 100px; }
.page-shell > * { animation: revealUp .55s ease both; }

.display-title, .hero-copy h1, .dashboard-head h1, .auth-panel h1 {
  margin: 12px 0 20px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 500;
  line-height: .95;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.hero-copy h1 { font-size: clamp(52px, 8vw, 102px); max-width: 800px; }
.dashboard-head h1 { font-size: clamp(40px, 6vw, 68px); }
.auth-panel h1 { font-size: clamp(44px, 6vw, 64px); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .19em;
  color: #ef6ec0;
  font-size: 10px;
  font-weight: 850;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gradient); box-shadow: 0 0 12px rgba(240, 50, 167, .7); }
.muted { color: var(--muted); }

.hero { min-height: 700px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero-copy p { max-width: 650px; margin: 0; color: #bcb0c2; font-size: 18px; line-height: 1.75; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badge { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: #d9ccdf; background: rgba(255, 255, 255, .035); font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 780;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary { color: #fff; background: var(--gradient); box-shadow: 0 14px 38px rgba(225, 42, 168, .25), inset 0 1px rgba(255, 255, 255, .28); }
.button.primary:hover { filter: brightness(1.08); box-shadow: 0 18px 48px rgba(225, 42, 168, .34); }
.button.secondary { color: var(--text); background: rgba(255, 255, 255, .05); border-color: var(--line); backdrop-filter: blur(14px); }
.button.secondary:hover { border-color: rgba(236, 65, 192, .35); background: rgba(255, 255, 255, .075); }
.button.small { min-height: 40px; padding: 0 14px; font-size: 12px; }
.button.full { width: 100%; }
.button svg { width: 17px; height: 17px; }

.phone-preview { display: grid; place-items: center; perspective: 1200px; }
.preview-phone {
  width: min(100%, 390px);
  min-height: 670px;
  padding: 11px;
  border-radius: 48px;
  position: relative;
  transform: rotateY(-7deg) rotateX(2deg);
  background: linear-gradient(145deg, #4a414d, #07070a 16%, #17121d 75%, #777079);
  box-shadow: 0 46px 120px rgba(0, 0, 0, .7), 0 0 80px rgba(169, 42, 255, .13);
  animation: phoneFloat 5s ease-in-out infinite;
}
.preview-phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 104px; height: 25px; transform: translateX(-50%); border-radius: 0 0 16px 16px; background: #050507; z-index: 4; }
.preview-screen {
  min-height: 648px;
  overflow: hidden;
  border-radius: 39px;
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 52px 22px 24px;
  position: relative;
  background:
    radial-gradient(circle at 70% 18%, rgba(202, 44, 255, .2), transparent 32%),
    linear-gradient(180deg, #0c0812, #07050c 70%);
}
.preview-screen::before { content: "SCL"; position: absolute; top: 70px; right: -9px; color: rgba(190, 66, 255, .12); font: 120px/1 Impact, sans-serif; letter-spacing: -.08em; transform: rotate(-5deg); }
.preview-kicker { color: #9a8ea1; font-size: 11px; }
.preview-club { position: relative; margin-top: 34px; font: 52px/.9 Impact, sans-serif; letter-spacing: .07em; }
.preview-powered { margin-top: 9px; color: var(--muted); font-size: 11px; }
.preview-wallet {
  margin-top: 46px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(238, 57, 190, .25);
  background: linear-gradient(135deg, rgba(137, 47, 255, .15), rgba(243, 43, 162, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 0 32px rgba(188, 48, 255, .1);
}
.preview-label { color: var(--muted); font-size: 12px; }
.preview-balance { margin-top: 5px; font-size: 45px; font-weight: 820; letter-spacing: -.05em; }
.preview-bonus { display: inline-flex; margin-top: 10px; color: #ff79c8; font-size: 12px; }
.preview-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.preview-action { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; color: #e8daee; background: rgba(255, 255, 255, .035); font-size: 11px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 54px 0; }
.feature-card, .panel, .stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(25, 16, 41, .92), rgba(12, 8, 20, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  backdrop-filter: blur(20px);
}
.feature-card::before, .panel::before, .stat-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(199, 46, 255, .16);
  filter: blur(30px);
  pointer-events: none;
}
.feature-card { min-height: 230px; padding: 26px; transition: transform .25s ease, border-color .25s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(240, 63, 184, .3); }
.feature-icon, .quick-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--gradient-soft);
  border: 1px solid rgba(231, 59, 189, .2);
  box-shadow: 0 0 28px rgba(198, 43, 255, .12);
}
.feature-icon svg, .quick-icon svg { width: 22px; height: 22px; }
.feature-card h2 { margin: 34px 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }

.auth-wrap { min-height: calc(100vh - 190px); display: grid; grid-template-columns: 1fr minmax(360px, 480px); gap: 55px; align-items: center; }
.auth-story { padding: 30px 0; }
.auth-story h2 { max-width: 680px; margin: 15px 0 18px; font: clamp(52px, 8vw, 92px)/.94 Impact, sans-serif; letter-spacing: .035em; text-transform: uppercase; }
.auth-story p { max-width: 570px; color: var(--muted); line-height: 1.75; font-size: 17px; }
.auth-panel { width: 100%; padding: 34px; box-shadow: var(--shadow), var(--glow); }
.auth-panel h1 { margin-bottom: 12px; }
.auth-brand { margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-emblem { width: 54px; height: 54px; }

.stack-form { display: grid; gap: 16px; margin-top: 26px; }
.stack-form label { display: grid; gap: 8px; color: #d6c9db; font-size: 12px; font-weight: 720; }
input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder { color: #6e6375; }
input:focus { border-color: rgba(238, 55, 184, .58); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(235, 47, 171, .1), 0 0 25px rgba(186, 46, 255, .08); }

.messages { display: grid; gap: 10px; margin-bottom: 20px; }
.message { padding: 13px 16px; border-radius: 13px; background: rgba(72, 230, 173, .1); border: 1px solid rgba(72, 230, 173, .24); color: #b8ffe5; }
.message.error { background: rgba(255, 100, 133, .11); border-color: rgba(255, 100, 133, .28); color: #ffc2d0; }

.dashboard-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.dashboard-head h1 { margin: 10px 0; }
.dashboard-head p { margin: 0; }
.dashboard-context { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vip-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: #ffd9f2; border: 1px solid rgba(239, 54, 182, .25); background: rgba(239, 54, 182, .08); font-size: 11px; }
.vip-chip::before { content: "✦"; color: #ffb850; }

.customer-grid, .staff-grid, .detail-grid { display: grid; grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr); gap: 22px; align-items: start; }
.wallet-card {
  width: min(100%, 430px);
  min-height: 610px;
  padding: 30px;
  position: sticky;
  top: 102px;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(239, 54, 181, .3);
  background:
    radial-gradient(circle at 75% 4%, rgba(168, 49, 255, .32), transparent 33%),
    linear-gradient(145deg, #171020 0%, #0b0711 58%, #150917 100%);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .12), 0 0 52px rgba(206, 49, 255, .11);
}
.wallet-card::before {
  content: "SCL";
  position: absolute;
  right: -18px;
  top: 46px;
  color: rgba(199, 64, 255, .07);
  font: 150px/.8 Impact, sans-serif;
  letter-spacing: -.08em;
  transform: rotate(-7deg);
}
.wallet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .05) 44%, transparent 58%);
  transform: translateX(-120%);
  animation: cardShimmer 7s ease-in-out infinite;
}
.wallet-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; color: #eee2f2; }
.wallet-brand { display: grid; font-family: Impact, "Arial Narrow", sans-serif; font-size: 22px; letter-spacing: .08em; line-height: .93; }
.wallet-brand small { margin-top: 8px; color: var(--muted); font: 8px/1.2 Inter, sans-serif; letter-spacing: .12em; text-transform: none; }
.wallet-label { position: relative; z-index: 2; margin-top: 55px; color: var(--muted); font-size: 12px; }
.wallet-balance { position: relative; z-index: 2; margin-top: 6px; font-size: 50px; font-weight: 850; letter-spacing: -.055em; }
.wallet-bonus { position: relative; z-index: 2; margin-top: 7px; color: #ff79c5; font-size: 12px; }
.qr-frame { position: relative; z-index: 2; width: 232px; margin: 34px auto 16px; padding: 3px; border-radius: 25px; background: var(--gradient); box-shadow: 0 0 34px rgba(223, 46, 181, .28); }
.qr-box { width: 100%; min-height: 226px; padding: 16px; margin: 0; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: #fff; }
.qr-box img, .qr-box canvas { max-width: 100%; height: auto; }
.wallet-code { position: relative; z-index: 2; color: #766b7e; text-align: center; font-size: 9px; overflow-wrap: anywhere; }
.member-line { position: relative; z-index: 2; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #d9ccdf; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.member-line span:last-child { color: #ffb649; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.quick-action { min-height: 125px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .035); transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.quick-action:hover { transform: translateY(-3px); border-color: rgba(238, 58, 188, .28); background: rgba(255, 255, 255, .052); }
.quick-action strong { font-size: 12px; }
.quick-action small { color: var(--muted); font-size: 10px; }
.quick-icon { width: 42px; height: 42px; border-radius: 14px; }

.panel { padding: 26px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 7px 0 0; font-size: 21px; }
.transaction-list { display: grid; }
.transaction-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.transaction-row:last-child { border-bottom: 0; }
.transaction-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: #ff8bd1; background: rgba(237, 47, 171, .1); border: 1px solid rgba(237, 47, 171, .15); font-weight: 900; }
.transaction-icon.topup, .transaction-icon.refund, .transaction-icon.bonus { color: var(--green); background: rgba(72, 230, 173, .09); border-color: rgba(72, 230, 173, .15); }
.transaction-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.transaction-main strong { font-size: 13px; }
.transaction-main span, .data-table td span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.transaction-amount { font-weight: 820; white-space: nowrap; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.empty-state { color: var(--muted); padding: 30px 4px; text-align: center; }

.scan-panel { min-height: 660px; }
.scanner-box { min-height: 280px; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(231, 53, 191, .25); border-radius: 22px; background: radial-gradient(circle, rgba(161, 44, 255, .1), transparent 58%), rgba(255, 255, 255, .025); }
.scanner-box::before { content: ""; width: 70%; height: 2px; position: absolute; left: 15%; top: 24%; background: var(--gradient); box-shadow: 0 0 18px rgba(239, 50, 178, .9); animation: scanLine 2.6s ease-in-out infinite alternate; }
.scanner-placeholder { color: #e0d2e6; text-align: center; line-height: 1.7; }
.scanner-placeholder strong { display: block; margin-bottom: 8px; font-size: 32px; }
.scanner-placeholder span { color: var(--muted); font-size: 11px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { min-height: 135px; padding: 22px; display: grid; align-content: space-between; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 28px; letter-spacing: -.03em; }
.stat-accent { width: 34px; height: 3px; border-radius: 99px; background: var(--gradient); box-shadow: 0 0 14px rgba(239, 50, 178, .45); }
.online-dot { color: var(--green); }
.online-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(72, 230, 173, .1), 0 0 16px rgba(72, 230, 173, .45); }
.manager-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 20px; align-items: start; }
.search-bar { display: flex; gap: 9px; margin-bottom: 15px; }
.wallet-table-wrap { width: 100%; overflow: auto; }
.data-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.data-table th { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 16px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.data-table tbody tr { transition: background .2s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.text-link { color: #fa75c9; font-weight: 760; }
.status-pill { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.status-pill.active { color: #a8f7dc; background: rgba(72, 230, 173, .08); border-color: rgba(72, 230, 173, .22); }
.status-pill.blocked, .status-pill.closed { color: #ffc2d0; background: rgba(255, 100, 133, .09); border-color: rgba(255, 100, 133, .22); }

.app-dialog { width: min(520px, calc(100% - 28px)); padding: 28px; border: 1px solid rgba(235, 55, 187, .25); border-radius: 24px; background: #100a19; color: var(--text); box-shadow: var(--shadow), var(--glow); }
.app-dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(9px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-head h2 { margin: 6px 0; }
.icon-button { border: 0; color: var(--muted); background: transparent; font-size: 30px; cursor: pointer; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: #f078c8; }
.compact-card { min-height: 520px; position: sticky; }
.small-qr { min-height: 168px; }
.small-frame { width: 176px; }
.action-panel { min-height: 500px; }
.tab-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .025); }
.tab-button { height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 720; }
.tab-button.active { color: #fff; background: var(--gradient-soft); box-shadow: inset 0 0 0 1px rgba(234, 53, 185, .16); }
.tab-content { display: none; }
.tab-content.active { display: grid; animation: revealUp .28s ease both; }
.danger-zone { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.link-button { border: 0; padding: 0; color: #ee75c5; background: transparent; cursor: pointer; font-weight: 720; }
.link-button.danger { color: var(--red); }

.mobile-nav { display: none; }
.footer-brand { margin-top: 55px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.footer-brand strong { color: #e8d9ed; }

@keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ambientFloat { from { transform: translate3d(0, -10px, 0) scale(.96); } to { transform: translate3d(20px, 24px, 0) scale(1.08); } }
@keyframes phoneFloat { 0%, 100% { transform: rotateY(-7deg) rotateX(2deg) translateY(0); } 50% { transform: rotateY(-5deg) rotateX(1deg) translateY(-10px); } }
@keyframes cardShimmer { 0%, 70% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }
@keyframes scanLine { from { top: 22%; } to { top: 77%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 72px 0 40px; }
  .phone-preview { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; min-height: auto; padding: 45px 0; }
  .auth-story { display: none; }
  .auth-panel { max-width: 500px; margin: 0 auto; }
  .customer-grid, .staff-grid, .detail-grid, .manager-grid { grid-template-columns: 1fr; }
  .wallet-card, .compact-card { position: relative; top: auto; margin: 0 auto; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, 1240px); padding: 25px 0 108px; }
  .topbar { min-height: 68px; padding: 0 13px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 7px; }
  .brand-emblem { width: 39px; height: 39px; }
  .user-chip, .install-button { display: none !important; }
  .topbar-actions { gap: 8px; }
  .hero-copy h1 { font-size: 56px; }
  .hero-copy p { font-size: 15px; }
  .feature-grid, .stats-grid { grid-template-columns: 1fr; }
  .dashboard-head { display: grid; }
  .dashboard-head h1 { font-size: 48px; }
  .panel { padding: 19px; border-radius: 20px; }
  .wallet-card { min-height: 575px; padding: 25px; border-radius: 30px; }
  .wallet-balance { font-size: 43px; }
  .wallet-label { margin-top: 45px; }
  .qr-frame { width: 215px; }
  .qr-box { min-height: 209px; }
  .two-col { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-end; }
  .search-bar { flex-direction: column; }
  .footer-brand { display: none; }
  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 21px;
    background: rgba(13, 8, 21, .9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 30px rgba(196, 39, 255, .09);
    backdrop-filter: blur(22px) saturate(140%);
  }
  .mobile-nav a { min-height: 48px; display: grid; place-items: center; gap: 3px; border-radius: 14px; color: #817687; font-size: 9px; }
  .mobile-nav a.active { color: #fff; background: var(--gradient-soft); }
  .mobile-nav svg { width: 19px; height: 19px; }
}
