/* MT Service – shared styles (KaiserOS-style) */
:root {
  --bg: #08080d;
  --bg2: #0c0c13;
  --card: #101019;
  --card2: #14141f;
  --border: #23232f;
  --border-soft: #191922;
  --text: #f4f4f8;
  --muted: #a2a2b0;
  --muted2: #6b6b7a;
  --accent: #2f6bff;
  --accent2: #1e5eff;
  --grad: linear-gradient(135deg, #4d84ff, #2f6bff);
  --glow: 0 10px 34px rgba(47, 107, 255, .4);
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}
h1, h2, h3, .font-d { font-family: 'Archivo', 'Inter', sans-serif; letter-spacing: -.02em; }
button { font-family: 'Inter', sans-serif; }
.ic { vertical-align: -3px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none;
  background: var(--grad); color: #fff; font-weight: 600;
  padding: 11px 22px; border-radius: 12px; font-size: 14.5px;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: var(--glow);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: rgba(255,255,255,.04); box-shadow: none; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); filter: none; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.35); color: var(--red); box-shadow: none; }
.btn.green { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: var(--green); box-shadow: none; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Inputs ---------- */
input, textarea, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); padding: 12px 15px; font-size: 14px;
  font-family: 'Inter', sans-serif; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); background: rgba(6,6,12,.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav { max-width: 1220px; margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: 'Archivo', sans-serif; font-size: 21px; font-weight: 800; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; color: #fff; box-shadow: var(--glow);
}
.logo .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 22px; align-items: center; margin-right: 8px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
/* Auth buttons – identisch skaliert */
#auth-area { display: inline-flex; align-items: center; gap: 8px; }
#auth-area .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* Language switch */
#lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted);
  padding: 9px 13px; border-radius: 11px; font-size: 13px; font-weight: 600;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 13px;
  padding: 6px; display: none; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 60;
}
#lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--muted); padding: 9px 12px; border-radius: 9px; font-size: 13.5px; cursor: pointer;
}
.lang-menu button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.lang-menu button.active { color: var(--accent); font-weight: 600; }

/* User chip */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: rgba(47,107,255,.1); border: 1px solid rgba(47,107,255,.35); color: var(--text);
  padding: 9px 15px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
}
.user-chip:hover { background: rgba(47,107,255,.18); }

/* ---------- Hero (KaiserOS-style) ---------- */
.hero { position: relative; max-width: 1120px; margin: 0 auto; padding: 90px 24px 70px; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: -120px 0 auto; height: 620px;
  background: radial-gradient(680px 380px at 50% 8%, rgba(47,107,255,.16), transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-tag {
  font-size: clamp(26px, 4vw, 42px); font-weight: 700; font-family: 'Archivo', sans-serif;
  color: var(--muted2); letter-spacing: -.01em; margin-bottom: 4px;
}
.hero-brand {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(64px, 13vw, 150px); line-height: .92; letter-spacing: -.045em;
  color: #fff; margin-bottom: 22px;
}
.hero-brand .accent { color: var(--accent); }
.hero p.sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin: 0 auto 26px; line-height: 1.6; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: rgba(47,107,255,.08); border: 1px solid rgba(47,107,255,.28); color: #9dc0ff;
  font-family: var(--mono); font-size: 12.5px; margin-bottom: 34px;
}
.status-pill .ic { color: var(--accent); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags {
  display: flex; justify-content: center; gap: 30px; margin-top: 34px; flex-wrap: wrap;
  color: var(--muted2); font-family: var(--mono); font-size: 12.5px;
}
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags .ic { color: var(--muted); }

/* Browser mockup */
.browser {
  margin: 66px auto 0; max-width: 1000px; text-align: left;
  background: linear-gradient(180deg, var(--card2), var(--bg2));
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(47,107,255,.06);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.015);
}
.browser-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-bar .dot.r { background: #ff5f57; } .browser-bar .dot.y { background: #febc2e; } .browser-bar .dot.g { background: #28c840; }
.browser-bar .url {
  flex: 1; margin-left: 6px; padding: 8px 16px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border-soft);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.browser-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px; }
.bcard {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: 13px;
  padding: 22px 20px; text-align: center; transition: border-color .2s, transform .2s;
}
.bcard:hover { border-color: rgba(47,107,255,.4); transform: translateY(-3px); }
.bcard .bico {
  width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 11px;
  background: rgba(47,107,255,.1); border: 1px solid rgba(47,107,255,.25);
  display: grid; place-items: center; color: var(--accent);
}
.bcard b { display: block; font-size: 15.5px; margin-bottom: 5px; color: var(--text); }
.bcard span { font-size: 12.5px; color: var(--muted2); line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
.section { max-width: 1220px; margin: 0 auto; padding: 40px 24px 90px; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 19px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--muted); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; box-shadow: var(--glow); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--border-soft); border-radius: 20px; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47,107,255,.5); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(47,107,255,.15); }
.card-img { height: 185px; background-size: cover; background-position: center; position: relative; }
.card-img.ph { display: grid; place-items: center; color: rgba(196,181,253,.75); }
.card-img .cat {
  position: absolute; top: 13px; left: 13px; padding: 6px 13px; border-radius: 9px;
  background: rgba(6,6,12,.78); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; color: #9dc0ff;
  border: 1px solid rgba(47,107,255,.25);
}
.card-img .flag {
  position: absolute; top: 13px; right: 13px; padding: 6px 10px; border-radius: 9px;
  background: rgba(6,6,12,.78); backdrop-filter: blur(8px); color: var(--green); display: flex;
  border: 1px solid rgba(52,211,153,.25);
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 19.5px; margin-bottom: 9px; }
.card-body .desc {
  color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 15px 0; }
.tag { font-size: 11.5px; padding: 5px 11px; border-radius: 7px; background: rgba(255,255,255,.04); border: 1px solid var(--border-soft); color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-family: 'Archivo', sans-serif; font-size: 21px; font-weight: 700; }
.price.free { color: var(--green); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--border-soft); border-radius: 18px; padding: 28px; }
.feature .fico {
  width: 46px; height: 46px; border-radius: 13px; background: rgba(47,107,255,.12);
  border: 1px solid rgba(47,107,255,.25); display: grid; place-items: center; color: #9dc0ff; margin-bottom: 18px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

footer.site { border-top: 1px solid var(--border-soft); padding: 38px 24px; text-align: center; color: var(--muted2); font-size: 13.5px; }
footer.site b { color: var(--muted); }

/* ---------- Modals ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(3,3,8,.75); backdrop-filter: blur(8px);
  display: none; place-items: center; z-index: 100; padding: 20px;
}
.overlay.open { display: grid; }
.modal {
  background: var(--card2); border: 1px solid var(--border); border-radius: 22px;
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 32px; position: relative;
  animation: pop .22s ease; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
@keyframes pop { from { transform: scale(.95) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .close {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); color: var(--muted); width: 34px; height: 34px;
  border-radius: 10px; cursor: pointer; display: grid; place-items: center;
}
.modal .close:hover { color: var(--text); border-color: var(--accent); }
.modal h3 { font-size: 23px; margin-bottom: 5px; }
.modal .modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.modal ul.feat-list { list-style: none; margin-bottom: 22px; }
.modal ul.feat-list li { padding: 7px 0; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.modal ul.feat-list li .ic { color: var(--green); }
.buy-price { font-family: 'Archivo', sans-serif; font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.notice {
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: var(--amber);
  padding: 13px 16px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.notice .ic { margin-top: 1px; }
.success-box { text-align: center; padding: 16px 0 4px; }
.success-box .sico {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4);
  display: grid; place-items: center; color: var(--green);
}
.success-box p { color: var(--muted); font-size: 14px; margin: 8px 0 22px; line-height: 1.6; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-switch a { color: #9dc0ff; cursor: pointer; font-weight: 600; text-decoration: none; }
.form-err { color: var(--red); font-size: 13px; margin-top: 12px; display: none; }
#paypal-buttons { min-height: 45px; }

/* ---------- Account page ---------- */
.page-head { max-width: 1220px; margin: 0 auto; padding: 54px 24px 10px; }
.page-head h1 { font-size: 36px; letter-spacing: -1px; }
.page-head p { color: var(--muted); margin-top: 8px; }
.lib-grid { display: grid; gap: 24px; }
.lib-card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--border-soft); border-radius: 20px; padding: 26px; }
.lib-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lib-top h3 { font-size: 21px; }
.lib-meta { color: var(--muted2); font-size: 13px; margin-top: 5px; }
.lic-block { margin-top: 22px; border-top: 1px solid var(--border-soft); padding-top: 20px; }
.lic-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.lic-head h4 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.lic-head .count { color: var(--muted2); font-size: 12.5px; font-weight: 400; }
.lic-hint { color: var(--muted2); font-size: 12.5px; line-height: 1.55; margin-bottom: 14px; }
.lic-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(255,255,255,.025); border: 1px solid var(--border-soft);
  border-radius: 13px; padding: 13px 16px; margin-bottom: 10px;
}
.lic-key { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 13.5px; color: #9dc0ff; letter-spacing: .5px; }
.lic-ip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-family: Consolas, monospace; }
.lic-last { color: var(--muted2); font-size: 12px; }
.lic-actions { margin-left: auto; display: flex; gap: 7px; }
.icon-btn {
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted);
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn.danger:hover { color: var(--red); border-color: var(--red); }
.new-key-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.new-key-row input { flex: 1; min-width: 220px; }
.empty-box {
  text-align: center; padding: 70px 20px; border: 1px dashed var(--border); border-radius: 20px; color: var(--muted);
}
.empty-box .ic { color: var(--muted2); margin-bottom: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--card2); border: 1px solid var(--border); padding: 13px 24px; border-radius: 13px;
  font-size: 14px; z-index: 300; transition: transform .3s; box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(251,113,133,.5); color: var(--red); }
.toast.ok { border-color: rgba(52,211,153,.5); color: var(--green); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 64px 20px 50px; }
  .lic-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}
