/* האי הקטן — אתר */
:root {
  --night: #0b1820;      /* lagoon at night: the page */
  --deep: #102a35;       /* deep water: raised surfaces */
  --reef: #1b4250;       /* edges */
  --sand: #f3ead6;       /* text */
  --sand-dim: #b9b3a3;
  --lagoon: #39c2b6;     /* links, focus */
  --mango: #ffb627;      /* VIP, buy */
  --palm: #6f9a4d;
  --danger: #ff6b5b;
  --r-lg: 28px; --r-md: 16px; --r-sm: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--night); color: var(--sand); font: 400 17px/1.65 'Rubik', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--lagoon); }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,24,32,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--reef); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--sand); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { color: var(--sand-dim); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sand); background: var(--deep); }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--reef); }
.who .vip-dot { color: var(--night); background: var(--mango); font-weight: 900; font-size: 12px; padding: 2px 8px; border-radius: 999px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 800 17px/1 'Rubik', system-ui, sans-serif; padding: 16px 26px; border-radius: 999px; color: var(--sand); background: var(--deep); box-shadow: inset 0 0 0 2px var(--reef); transition: transform .12s, background .12s; }
.btn:hover { background: var(--reef); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.discord { background: #5865f2; box-shadow: none; color: #fff; }
.btn.discord:hover { background: #4752c4; }
.btn.mango { background: var(--mango); color: #1d1404; box-shadow: none; }
.btn.mango:hover { background: #ffc54d; }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero: the island ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.wordmark { font-weight: 900; font-size: clamp(64px, 11vw, 150px); line-height: .88; letter-spacing: -0.045em; margin: 0 0 22px; }
.wordmark span { display: block; }
.wordmark span + span { color: transparent; -webkit-text-stroke: 3px var(--sand); }
.hero p.lead { font-size: 21px; color: var(--sand-dim); max-width: 34ch; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.island-art { width: 100%; max-width: 560px; justify-self: center; }
.island-art .ring { transform-origin: 50% 50%; animation: tide 7s ease-in-out infinite; }
.island-art .ring.r2 { animation-delay: -2.3s; } .island-art .ring.r3 { animation-delay: -4.6s; }
@keyframes tide { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.04); opacity: .15; } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
h2 { font-weight: 900; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; margin: 0 0 14px; }
.sub { color: var(--sand-dim); font-size: 19px; max-width: 52ch; margin: 0 0 40px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--reef); }
.feature { padding: 28px 0 28px 28px; border-bottom: 2px solid var(--reef); }
.feature:not(:nth-child(3n)) { border-inline-end: 2px solid var(--reef); }
.feature:not(:nth-child(3n+1)) { padding-inline-start: 28px; }
.feature h3 { font-weight: 800; font-size: 22px; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--sand-dim); }
.feature svg { width: 34px; height: 34px; color: var(--lagoon); }

/* ---------- the VIP ticket ---------- */
.ticket { display: grid; grid-template-columns: 1fr 300px; background: var(--mango); color: #1d1404; border-radius: var(--r-lg); position: relative; overflow: hidden; }
.ticket::before, .ticket::after { content: ''; position: absolute; left: 300px; width: 36px; height: 36px; border-radius: 50%; background: var(--night); transform: translateX(-50%); }
.ticket::before { top: -18px; } .ticket::after { bottom: -18px; }
.ticket .perks { padding: 40px 44px; }
.ticket h2 { color: #1d1404; }
.ticket ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ticket li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 18px; line-height: 1.45; }
.ticket li b { font-weight: 800; display: block; }
.ticket li svg { width: 24px; height: 24px; margin-top: 2px; }
.ticket .stub { border-inline-start: 3px dashed rgba(29,20,4,.35); padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.price { font-weight: 900; font-size: 96px; line-height: .9; letter-spacing: -0.05em; }
.price small { font-size: 36px; font-weight: 800; }
.stub .once { font-weight: 700; margin-bottom: 18px; }
.stub .btn { background: #1d1404; color: var(--mango); }
.stub .btn:hover { background: #3a2a0a; }

/* ---------- steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--deep); box-shadow: inset 0 0 0 2px var(--reef); font-weight: 900; font-size: 24px; margin-bottom: 16px; color: var(--lagoon); }
.steps h3 { font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--sand-dim); }

/* ---------- panels (account, shop, admin) ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-weight: 900; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 10px; }
.panel { background: var(--deep); border-radius: var(--r-lg); padding: 32px; box-shadow: inset 0 0 0 2px var(--reef); }
.grid2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.profile { display: flex; align-items: center; gap: 18px; }
.profile img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--reef); }
.profile h2 { font-size: 34px; margin: 0; }
.badge { display: inline-block; font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--reef); color: var(--sand); }
.badge.vip { background: var(--mango); color: #1d1404; }
.muted { color: var(--sand-dim); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { font: 500 17px 'Rubik', system-ui; color: var(--sand); background: var(--night); border: 2px solid var(--reef); border-radius: var(--r-sm); padding: 12px 14px; }
.pay { display: grid; gap: 10px; margin: 8px 0 18px; }
.pay label { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--night); border: 2px solid var(--reef); cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--mango); }
.pay input { grid-row: span 2; accent-color: var(--mango); width: 20px; height: 20px; }
.pay b { font-weight: 800; }
.pay span { color: var(--sand-dim); font-size: 15px; grid-column: 2; }
.note { padding: 14px 18px; border-radius: var(--r-md); background: rgba(57,194,182,.12); border: 2px solid rgba(57,194,182,.35); }
.note.err { background: rgba(255,107,91,.12); border-color: rgba(255,107,91,.4); }
.note.ok { background: rgba(111,154,77,.16); border-color: rgba(111,154,77,.5); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--deep); border-radius: var(--r-md); padding: 20px 24px; box-shadow: inset 0 0 0 2px var(--reef); }
.stat b { display: block; font-weight: 900; font-size: 44px; line-height: 1; }
.stat span { color: var(--sand-dim); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: start; font-weight: 700; color: var(--sand-dim); padding: 10px 12px; border-bottom: 2px solid var(--reef); font-size: 15px; }
.table td { padding: 12px; border-bottom: 1px solid var(--reef); vertical-align: middle; }
.table .p { display: flex; align-items: center; gap: 10px; }
.table .p img { width: 32px; height: 32px; border-radius: 50%; }
.table .id { font-size: 13px; color: var(--sand-dim); direction: ltr; unicode-bidi: plaintext; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar { display: flex; gap: 10px; margin-bottom: 16px; }
.searchbar input { flex: 1; }

footer { border-top: 1px solid var(--reef); padding: 32px 0 48px; color: var(--sand-dim); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .hero .wrap, .grid2 { grid-template-columns: 1fr; }
  .island-art { max-width: 360px; order: -1; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 22px 0 !important; border-inline-end: 0 !important; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket .stub { border-inline-start: 0; border-top: 3px dashed rgba(29,20,4,.35); }
  .steps, .stats { grid-template-columns: 1fr; }
  .nav { display: none; }
  .table .hide-s { display: none; }
}

/* server on / off pill in the top bar */
.srv-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: rgba(243, 234, 214, .07); white-space: nowrap; }
.srv-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.srv-pill[data-on="1"]::before { background: #39c2b6; box-shadow: 0 0 0 4px rgba(57, 194, 182, .22); }
.srv-pill[data-on="0"] { color: #fca5a5; }
.srv-pill[data-on="0"]::before { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .22); }
@media (max-width: 640px) { .srv-pill { font-size: 0; padding: 6px; gap: 0; } }
