/* smmgreata — design system */
:root {
  --ink: #14112e;
  --ink-2: #1c1840;
  --ink-3: #26215a;
  --violet: #5b3df5;
  --violet-2: #7a62ff;
  --violet-soft: #ece8ff;
  --lime: #c6f432;
  --lime-deep: #9ccc0a;
  --bg: #f5f4fb;
  --surface: #ffffff;
  --surface-2: #f8f7fd;
  --text: #17142f;
  --muted: #6c6889;
  --line: #e6e3f2;
  --green: #12a150; --green-soft: #e3f7ec;
  --red: #e23d5b; --red-soft: #fde8ec;
  --amber: #c98100; --amber-soft: #fff3d9;
  --blue: #3567f0; --blue-soft: #e6edff;
  --gray-soft: #efeef5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,17,46,.04), 0 6px 24px rgba(20,17,46,.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f0c24;
  --surface: #17133a;
  --surface-2: #1d1845;
  --text: #ecebff;
  --muted: #a19dc6;
  --line: #2c2660;
  --violet-soft: #2a2366;
  --green-soft: #10342a; --red-soft: #3d1426; --amber-soft: #3a2a0c; --blue-soft: #18265a; --gray-soft: #26214f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; }
a { color: var(--violet); text-decoration: none; }
:root[data-theme="dark"] a { color: var(--violet-2); }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
img { max-width: 100%; }

/* Wordmark */
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 22px; color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.wordmark b { color: var(--lime); font-weight: 800; }
.wordmark img { width: 34px; height: 34px; }
.wordmark:hover { text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font: 600 14px/1.2 var(--font); cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff !important; box-shadow: 0 6px 18px rgba(91,61,245,.28); }
.btn-primary:hover { background: #4e30ec; }
.btn-lime { background: var(--lime); color: var(--ink) !important; }
.btn-lime:hover { background: #d4ff4a; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text) !important; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red-soft); color: var(--red) !important; }
.btn-success { background: var(--green-soft); color: var(--green) !important; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Forms */
label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.input, select.input, textarea.input { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; font: 14px/1.4 var(--font); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(91,61,245,.14); }
textarea.input { min-height: 110px; resize: vertical; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--violet); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-info { background: var(--violet-soft); color: var(--violet); }
:root[data-theme="dark"] .alert-info { color: #cfc6ff; }
.alert-warn { background: var(--amber-soft); color: var(--amber); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: var(--gray-soft); color: var(--muted); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--violet-soft); color: var(--violet); margin-right: 4px; text-transform: uppercase; letter-spacing: .03em; }
.tag-lime { background: #effbcc; color: #4b6400; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-family: var(--display); font-size: 22px; font-weight: 700; margin-top: 6px; }
.stat.hero { background: linear-gradient(135deg, var(--violet), #3d22c9); color: #fff; border: 0; }
.stat.hero .k { color: rgba(255,255,255,.75); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.cat-row td { background: var(--surface-2); font-weight: 700; font-size: 13px; }
.link-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }

/* Tabs / filters */
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.pill.active, .pill:hover { background: var(--violet); color: #fff; border-color: var(--violet); text-decoration: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; color: var(--text); background: var(--surface); }
.pager .cur { background: var(--violet); color: #fff; border-color: var(--violet); }

/* App shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--ink) 260px, var(--bg) 260px); }
.side { background: var(--ink); color: #c9c5ea; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .wordmark { padding: 4px 10px 18px; }
.side-bal { margin: 0 6px 18px; padding: 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--ink-3); }
.side-bal .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8e89bd; font-weight: 700; }
.side-bal .v { font-family: var(--display); color: #fff; font-size: 20px; font-weight: 700; margin: 4px 0 10px; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f6a9e; font-weight: 700; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #c9c5ea; font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--violet); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav .count { margin-left: auto; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.side-foot { margin-top: auto; padding-top: 16px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.topbar .sp { flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }
.content { padding: 26px 28px 60px; max-width: 1240px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.announce { background: linear-gradient(90deg, var(--violet), #3d22c9); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.announce a { color: var(--lime); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10,8,30,.55); }
  .burger { display: inline-flex; }
  .content { padding: 18px 16px 50px; }
  .topbar { padding: 12px 16px; }
  .user-chip span { display: none; }
}

/* New order */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .order-grid { grid-template-columns: 1fr; } }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.plat { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; }
.plat .pi { width: 15px; height: 15px; }
.plat.active { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .plat.active { background: var(--violet); border-color: var(--violet); }
.pi { width: 18px; height: 18px; vertical-align: -3px; }
.svc-desc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: 13.5px; white-space: pre-line; max-height: 260px; overflow-y: auto; }
.svc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.svc-meta > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.svc-meta .k { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.svc-meta .v { font-weight: 700; font-size: 14px; margin-top: 2px; }
.charge-box { display: flex; align-items: center; justify-content: space-between; background: var(--violet-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.charge-box .v { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--violet); }
:root[data-theme="dark"] .charge-box .v { color: #cfc6ff; }
.search-svc { position: relative; margin-bottom: 14px; }
.search-svc svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-svc .input { padding-left: 38px; }
.fav { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; font-size: 18px; line-height: 1; }
.fav.on { color: #f5b301; }

/* Tickets chat */
.thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.msg { max-width: 78%; padding: 12px 15px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--violet); color: #fff; border-color: var(--violet); }
.msg .meta { font-size: 11px; opacity: .7; margin-top: 6px; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(1200px 600px at 10% -10%, rgba(91,61,245,.35), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(198,244,50,.12), transparent 60%), var(--ink); }
.auth-card { width: 100%; max-width: 430px; background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.auth-card .wordmark { color: var(--text); font-size: 24px; margin-bottom: 18px; }
.auth-card h1 { font-size: 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Landing */
.lp { background: var(--ink); color: #e9e7ff; }
.lp-nav { display: flex; align-items: center; gap: 22px; max-width: 1200px; margin: 0 auto; padding: 22px 20px; }
.lp-nav .links { display: flex; gap: 22px; margin-left: 20px; }
.lp-nav .links a { color: #c9c5ea; font-weight: 600; font-size: 14px; }
.lp-nav .sp { flex: 1; }
.lp-hero { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.lp-hero h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.035em; color: #fff; margin-bottom: 20px; }
.lp-hero h1 em { font-style: normal; color: var(--lime); }
.lp-hero p.lead { font-size: 18px; color: #b9b4e0; max-width: 560px; margin-bottom: 28px; }
.lp-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero .btn { padding: 14px 26px; font-size: 15px; }
.lp-hero .btn-ghost { color: #fff !important; border-color: #3a3478; }
.lp-hero .btn-ghost:hover { background: var(--ink-2); }
.lp-login { background: #fff; color: var(--text); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.lp-login h2 { font-size: 20px; }
.lp-trust { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.lp-trust div { font-size: 13px; color: #9f9acb; }
.lp-trust b { display: block; font-family: var(--display); font-size: 24px; color: #fff; }
.lp-strip { border-top: 1px solid #241f52; border-bottom: 1px solid #241f52; padding: 22px 20px; }
.lp-strip .in { max-width: 1200px; margin: 0 auto; display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; color: #8e89bd; font-weight: 700; }
.lp-strip .pi { width: 20px; height: 20px; margin-right: 6px; }
.lp-sec { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.lp-sec h2 { font-family: var(--display); color: #fff; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; margin-bottom: 12px; }
.lp-sec .sub { color: #a9a4d4; max-width: 640px; margin-bottom: 40px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat > div { background: var(--ink-2); border: 1px solid #2a2462; border-radius: 18px; padding: 24px; }
.feat h3 { color: #fff; font-size: 17px; margin: 14px 0 8px; }
.feat p { margin: 0; color: #a9a4d4; font-size: 14px; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(198,244,50,.12); color: var(--lime); display: grid; place-items: center; }
.feat .ic svg { width: 22px; height: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps > div { border-top: 2px solid var(--violet); padding-top: 18px; }
.steps > div::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); color: var(--lime); font-weight: 700; font-size: 14px; }
.steps h3 { color: #fff; font-size: 17px; margin: 10px 0 6px; }
.steps p { color: #a9a4d4; font-size: 14px; margin: 0; }
.faq details { background: var(--ink-2); border: 1px solid #2a2462; border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--lime); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: #b9b4e0; margin: 12px 0 0; }
.lp-cta { background: linear-gradient(120deg, var(--violet), #3d22c9); border-radius: 26px; padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.lp-cta h2 { margin: 0; }
.lp-foot { border-top: 1px solid #241f52; padding: 30px 20px; }
.lp-foot .in { max-width: 1200px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: #8e89bd; font-size: 14px; }
.lp-foot a { color: #c9c5ea; margin-left: 18px; }
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; padding-bottom: 50px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .lp-nav .links { display: none; }
}
@media (max-width: 600px) { .lp-nav { gap: 12px; } .lp-nav .signin { display: none; } .feat, .steps { grid-template-columns: 1fr; } .lp-cta { padding: 30px; } .lp-sec { padding: 56px 20px; } }

/* Public services page (light) */
.pub-head { background: var(--ink); }
.pub-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 20px 60px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 99; box-shadow: var(--shadow); font-size: 14px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
code.k { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; }
pre.code { background: var(--ink); color: #e3e0ff; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 13px; }
