:root {
  --bg: #101012;
  --text: #f4f4f5;
  --muted: #8f90a0;
  --line: rgba(255,255,255,.08);
  --primary: #ffbc9a;
  --peach: #ffbc9a;
  --peach-soft: rgba(255, 188, 154, 0.18);
  --peach-strong: #ff9f75;
}

* { box-sizing: border-box; font-family: "Inter", sans-serif;}
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); }
a { color: inherit; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 16px; }
.top-nav {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  border-radius: 999px; backdrop-filter: blur(24px);
  padding: 12px 28px;
  animation: navDrop .7s ease both;
}
.top-nav a { color: #71717a; text-decoration: none; font-size: 13px; padding: 6px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: .25s ease; }
.top-nav a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .9; }
.top-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.top-nav a.active-link { color: #d8dcff; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text) !important; margin-right: 10px; }
.brand span { font-weight: 800; letter-spacing: 0; }
.sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.login { background: rgba(255,255,255,.07); color: var(--text) !important; padding: 8px 16px !important; }
.login:hover { background: var(--peach-soft) !important; color: var(--peach) !important; }

.hero { min-height: 100vh; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("assets/images/landing/background.svg") center/cover no-repeat; opacity: .6; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(16,16,18,.3) 45%, #101012); }
.hero-glow { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); width: min(700px, 90vw); height: 500px; border-radius: 999px; background: rgba(255,188,154,.13); filter: blur(120px); animation: pulseGlow 7s ease-in-out infinite; }
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 190px; }
.hero h1 { margin: 0; font-size: 80px; font-weight: 800; line-height: 1.1; letter-spacing: 0; }
.hero h1 .grad { color: var(--peach); }
.hero p { max-width: 580px; margin: 22px auto 0; color: #71717a; font-size: clamp(14px,1.6vw,18px); line-height: 1.7; }

.actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; transition: .25s ease; }
.btn-primary { color: #17110e; background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 24px rgba(255,188,154,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255,188,154,.3); background: var(--peach-strong); }
.btn-ghost { color: #a1a1aa; background: transparent; }
.btn-ghost:hover { border-color: var(--peach-soft); color: var(--peach); }
.btn-dark { color: #fff; background: #18181b; border-color: #18181b; }
.btn-wide { width: 100%; }
.bright { background: rgba(255,255,255,.1); color: #f3f3ff; }

.hero-shot-wrap { position: relative; margin-top: 64px; height: 460px; max-width: 1800px; }
.shot { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 56px rgba(0,0,0,.45); transition: transform .5s ease; }
.shot img { display: block; width: 100%; }
.shot-left { top: 32px; left: 1%; width: 42%; transform: rotate(-1deg); }
.shot-center { top: 0; left: 22%; width: 56%; z-index: 2; }
.shot-right { top: 32px; right: 1%; width: 42%; transform: rotate(1deg); }
.hero-shot-wrap:hover .shot-left { transform: rotate(-2deg) translateY(-8px); }
.hero-shot-wrap:hover .shot-right { transform: rotate(2deg) translateY(-8px); }
.hero-fade { position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to bottom, transparent, rgba(16,16,18,.7), #101012); z-index: 4; }

.section { position: relative; padding: 92px 0; }
.kicker { text-align: center; color: var(--peach); font-size: 12px; letter-spacing: .2em; font-weight: 700; margin: 0; }
.title { margin: 12px 0 0; text-align: center; font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: 0; }
.sub { margin: 14px auto 0; max-width: 740px; text-align: center; color: #71717a; font-size: 16px; }
.why-grid { margin-top: 60px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.bigline { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: 0; }
.why-grid hr { border: 0; border-top: 1px solid rgba(255,255,255,.06); margin: 28px 0; }
blockquote { margin: 0; max-width: 580px; color: #a1a1aa; font-size: 15px; line-height: 1.7; }
.author { margin: 24px 0 0; font-size: 14px; font-weight: 500; }
.role { margin: 4px 0 0; color: #52525b; font-size: 14px; }
.panel { width: min(320px, 100%); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.02); }

.cards3 { margin-top: 34px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cards3 article { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 22px; background: rgba(255,255,255,.02); transition: .25s ease; }
.cards3 article:hover { border-color: var(--peach-soft); transform: translateY(-4px); }
.cards3 span { color: #ffbc9a; font-size: 22px; font-weight: 600; }
.cards3 h4 { margin: 12px 0 10px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.cards3 p { margin: 0; color: #71717a; font-size: 16px; line-height: 1.6; }

.section-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .55; }
.section-bg[data-bg="secta"]::before { background-image: url("https://expensiveclient.su/images/landing/secta.png"); }
.section-bg[data-bg="newbg"]::before { background-image: url("https://expensiveclient.su/images/landing/newbg.png"); }
.section-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, #101012 0%, rgba(16,16,18,.45) 18%, rgba(16,16,18,.45) 72%, #101012 100%); }

.features6 { margin-top: 46px; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px 34px; }
.features6 article { text-align: center; }
.features6 h4 { margin: 0 0 10px; font-size: 28px; font-weight: 800; }
.features6 p { margin: 0; color: #a1a1aa; font-size: 16px; line-height: 1.65; }

.plans { margin-top: 36px; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.plan { width: 100%; margin-top: 5px; border-radius: 15px; display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; text-align: left; background: transparent; color: #fff; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 20px 22px; cursor: pointer; transition: .2s; }
.plan span { font-size: 34px; font-weight: 600; }
.plan small { color: #71717a; font-size: 16px; }
.plan b { font-size: 34px; font-weight: 800; }
.plan.active { border-left: 2px solid var(--peach); background: rgba(255,188,154,.08); }
.plan:hover { background: rgba(255,255,255,.02); }

.price-bottom { margin-top: 38px; display: flex; justify-content: space-between; gap: 20px; }
.tiny { margin: 0; color: #71717a; font-size: 16px; }
.big { margin: 10px 0; font-size: 96px; line-height: 1; font-weight: 800; }
.price-list { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.price-list p { margin: 0; color: #a1a1aa; font-size: 16px; }

.cta { margin-top: 80px; border-radius: 24px; text-align: center; padding: 82px 24px; background: linear-gradient(180deg,#ffbc9a,#f09a72); color: #17110e; }
.cta h2 { margin: 0; font-size: 64px; font-weight: 800; line-height: 1.12; }
.cta p { max-width: 700px; margin: 18px auto 0; color: rgba(23,17,14,.7); font-size: 20px; line-height: 1.6; }

.footer { margin-top: 76px; padding-bottom: 34px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer h5 { margin: 0 0 12px; color: #52525b; font-size: 12px; letter-spacing: .15em; }
.footer a { display: block; color: #71717a; text-decoration: none; margin: 8px 0; font-size: 15px; }
.footer p { color: #52525b; font-size: 16px; }

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
}

.online-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--peach);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--peach);
}

/* AUTH */
.page-auth { min-height: 100vh; overflow: hidden; }
.auth-bg { position: fixed; inset: 0; background: linear-gradient(100deg, rgba(16,16,18,.88) 15%, rgba(16,16,18,.42) 52%, rgba(16,16,18,.72) 100%), url("assets/images/landing/background.svg") center/cover no-repeat; filter: saturate(1.15) blur(.2px); }
.auth-wrap { min-height: 100vh; position: relative; z-index: 2; display: grid; align-items: center; padding: 56px 64px; }
.auth-logo { color: var(--peach); font-weight: 800; text-decoration: none; letter-spacing: 0; }
.auth-card { max-width: 440px; }
.auth-card h1 { margin: 18px 0 8px; font-size: 52px; line-height: 1.12; font-weight: 800; }
.auth-card p { margin: 0 0 20px; color: #9a9db1; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.auth-tab { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #9fa1b3; border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: transform .22s ease, color .22s ease, background .22s ease, border-color .22s ease; }
.auth-tab:hover { transform: translateY(-2px); color: #fff; }
.auth-tab.active { color: #17110e; border-color: var(--peach); background: var(--peach); }
.auth-form { display: none; gap: 12px; }
.auth-form.active { display: grid; animation: authFormIn .38s cubic-bezier(.2,.7,.2,1) both; }
.auth-form input { height: 48px; border-radius: 999px; border: 1px solid rgba(255,188,154,.24); background: rgba(38,30,27,.68); color: #fff; padding: 0 18px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease; }
.auth-form input:focus { outline: none; border-color: var(--peach); background: rgba(52,38,33,.78); box-shadow: 0 0 0 4px rgba(255,188,154,.1), 0 12px 30px rgba(255,188,154,.08); transform: translateY(-1px); }
.auth-form input::placeholder { color: #7f8190; }
.password-row { position: relative; }
.password-row a { position: absolute; right: 14px; top: 14px; color: var(--peach); text-decoration: none; font-size: 13px; transition: opacity .2s ease; }
.password-row a:hover { opacity: .72; }
.auth-bottom { margin: 16px 0 6px !important; color: #818393; }
.link-btn { background: none; border: 0; color: var(--peach); cursor: pointer; font: inherit; padding: 0; }
.auth-card small { color: #676977; }
.error-message {background: rgba(220, 53, 69, 0.15); border: 1px solid rgba(220, 53, 69, 0.4);border-radius: 16px;padding: 10px 16px;margin-bottom: 20px;color: #ff8a92;font-size: 0.85rem;text-align: center;display: none;}
.error-message.show {display: block;}
.success-message {background: rgba(40, 167, 69, 0.15);border: 1px solid rgba(40, 167, 69, 0.4);border-radius: 16px;padding: 10px 16px;margin-bottom: 20px;color: #8aff9a;font-size: 0.85rem;text-align: center;display: none;  }
.success-message.show {display: block;}

/* PURCHASE */
.page-purchase .purchase-layout { padding-top: 150px; padding-bottom: 60px; }
.purchase-title { font-size: 52px; font-weight: 800; margin: 0 0 30px; }
.purchase-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 34px; }
.purchase-left .screen-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.02); }
.purchase-left img { width: 100%; display: block; }
.caption { color: #5f6478; margin: 12px 0 28px; }
.purchase-left h2 { margin: 0 0 10px; font-size: 34px; font-weight: 800; }
.purchase-left p { color: #a3a8c1; line-height: 1.6; max-width: 780px; }
.purchase-right { display: grid; gap: 14px; align-content: start; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.02); }
.pay-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.pay-head small { color: var(--peach); letter-spacing: .08em; }
.pay-head h3 { margin: 8px 0 0; font-size: 28px; }
.pay-head .price { color: var(--peach); font-size: 38px; font-weight: 800; }
.pay-days { margin: 14px 0 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.day { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: #8f93a8; background: transparent; cursor: pointer; }
.day.active { background: rgba(255,188,154,.18); color: var(--peach); border-color: rgba(255,188,154,.3); }
.specs-card p { margin: 10px 0; display: grid; gap: 4px; }
.specs-card b { color: #d7dcff; }
.specs-card span { color: #8f95ad; }
.mini-card { display: flex; justify-content: space-between; align-items: center; }
.mini-card h4 { margin: 0; font-size: 30px; }
.mini-card small { color: #8c92aa; }

/* CABINET */
.page-cabinet { background: #101012; }
.cabinet-layout { padding-top: 108px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; min-height: 100vh; }
.cab-sidebar { border-right: 1px solid rgba(255,255,255,.06); padding-right: 16px; font-size: 13px; }
.cab-brand { margin-bottom: 18px; }
.cab-sidebar nav { display: grid; gap: 6px; }
.cab-sidebar nav a { color: #9297ad; text-decoration: none; padding: 7px 9px; border-radius: 10px; display: flex; align-items: center; gap: 9px; transition: .2s ease; }
.cab-sidebar nav a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: 0 0 auto; }
.cab-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.cab-sidebar nav a.active { color: #fff; border-left: 2px solid var(--peach); background: rgba(255,188,154,.06); }
.cab-sidebar nav a.peach { color: var(--peach); }
.cab-user { margin-top: 18px; background: rgba(255,255,255,.06); border-radius: 999px; display: inline-block; padding: 7px 11px; }
.logout { margin-top: 10px; display: inline-block; color: #9fa3b8; text-decoration: none; }
.cab-main { max-width: 720px; }
.cab-main h1 { font-size: 36px; margin: 0; font-weight: 800; }
.cab-sub { color: #8f95ad; margin: 6px 0 18px; font-size: 13px; }
.cab-profile { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; text-transform: uppercase; font-size: 13px; }
.cab-profile h3 { margin: 0; }
.cab-profile p { margin: 4px 0 0; color: #8f95ad; }
.cab-block { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.cab-block h4 { margin: 0 0 12px; color: var(--peach); letter-spacing: .08em; font-size: 12px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.row span { color: #8b90a6; }
.row b { font-weight: 600; }
.row.split { align-items: center; }
.row.split p { margin: 4px 0 0; color: #8f95ad; }
.cab-actions { display: flex; gap: 9px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cab-actions .btn { height: 36px; padding: 0 16px; font-size: 12px; }
.cab-media { margin: 18px 0 60px; border: 1px solid rgba(255,188,154,.26); border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; background: linear-gradient(100deg, rgba(255,188,154,.12), rgba(255,188,154,.04)); }
.cab-media h3 { margin: 0; font-size: 22px; }
.cab-media p { margin: 6px 0 0; color: #a0a6be; font-size: 13px; }

/* Animations */
.reveal-up, .reveal-fade { opacity: 0; transform: translateY(24px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.reveal-fade { transform: none; }
.reveal-up.is-visible, .reveal-fade.is-visible { opacity: 1; transform: none; }

@keyframes navDrop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulseGlow { 0%,100% { opacity: .8; } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }

@media (max-width: 1100px) {
  .top-nav { width: calc(100% - 8px); overflow-x: auto; }
  .why-grid, .cards3, .features6, .footer, .price-bottom, .purchase-grid, .cabinet-layout { grid-template-columns: 1fr; }
  .price-list { align-items: flex-start; }
  .hero-shot-wrap { height: auto; display: grid; gap: 12px; }
  .shot { position: static; width: 100%; transform: none !important; }
  .plan { grid-template-columns: 1fr auto; }
  .plan small { display: none; }
  .auth-wrap { padding: 30px 20px; }
  .auth-card h1 { font-size: 46px; }
}

@media (max-width: 768px) {
    .online-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        gap: 6px;
    }
    .online-indicator {
        width: 8px;
        height: 8px;
    }
}

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,16,18,.8); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-content { background: #18181b; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 24px; width: 100%; max-width: 400px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.modal-close { position: absolute; right: 16px; top: 16px; background: none; border: none; color: #a1a1aa; font-size: 24px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #fff; }
.form-group { display: flex; flex-direction: column; gap: 12px; }
.form-control { height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #fff; padding: 0 16px; width: 100%; }
.form-control:focus { outline: none; border-color: var(--peach); background: rgba(255,255,255,.05); }
textarea.form-control { min-height: 100px; padding: 12px 16px; resize: vertical; }

/* -------------------- Config & ResourcePack cards -------------------- */
.config-grid,
.rp-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.config-card,
.rp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.config-card:hover,
.rp-card:hover {
  border-color: rgba(255, 188, 154, 0.3);
  transform: translateY(-2px);
}

.config-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 188, 154, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--peach);
}

.rp-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.config-info,
.rp-info {
  flex: 1;
  min-width: 0;
}

.config-info strong,
.rp-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.config-info span,
.rp-info p {
  font-size: 13px;
  color: #8f95ad;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.config-dl-btn,
.rp-dl-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .config-card,
  .rp-card {
    flex-wrap: wrap;
  }
  .config-dl-btn,
  .rp-dl-btn {
    width: 100%;
    justify-content: center;
  }
}