/* cabinet / auth / link pages (on top of style.css) */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; }

.page { min-height: calc(100vh - 140px); padding: 44px 0 70px; }
.page-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 30px; }

/* auth card */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 170px); padding: 30px 0; }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 30px; backdrop-filter: blur(10px); }
.auth-card h1 { font-size: 26px; letter-spacing: -.6px; margin: 0 0 4px; }
.auth-card .page-sub { margin-bottom: 20px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: rgba(255,255,255,.04); border-radius: 14px; margin-bottom: 22px; }
.tab { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; transition: .2s; }
.tab.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px -10px var(--accent-2); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input, textarea.input { width: 100%; height: 48px; padding: 0 14px 0 42px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font: 500 15px inherit; font-family: inherit; outline: none; transition: border-color .2s, background .2s; }
.input.plain { padding-left: 14px; }
textarea.input { height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, textarea.input:focus { border-color: var(--accent); background: rgba(255,255,255,.06); }
.hint { font-size: 12.5px; color: var(--muted); }
.form-msg { min-height: 20px; font-size: 14px; color: #ff7a7a; }
.form-msg.ok { color: #6eeb78; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn.btn-danger { background: rgba(255, 80, 80, .12); border: 1px solid rgba(255, 80, 80, .35); color: #ff9a9a; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.who h1 { font-size: 24px; letter-spacing: -.5px; line-height: 1.15; }
.badge-grp { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #ff8a1e22; color: var(--accent); }

.dash-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.2px; margin: 0 0 4px; }
.panel h2 .i { color: var(--accent); width: 1.3em; height: 1.3em; }
.panel .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row .k { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; min-width: 150px; }
.row .k .i { color: #6d6d78; }
.row .v { font-weight: 600; word-break: break-all; }
.row .v.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; font-weight: 500; }
.row .act { margin-left: auto; display: flex; gap: 8px; }
.yes { color: #ff7a7a; } .no { color: #6eeb78; }

.sub-card { position: relative; overflow: hidden; border-radius: 20px; padding: 24px; border: 1px solid var(--border); background: var(--card); }
.sub-card.active { border-color: #ff8a1e66; background: radial-gradient(circle at 100% 0, #ff8a1e2b, transparent 60%), var(--card); }
.sub-status { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.sub-status .dot { width: 10px; height: 10px; }
.sub-status.off .dot { background: #666; box-shadow: none; }
.sub-meta { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.sub-actions { display: grid; gap: 10px; }
.perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.perk { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--muted); }
.perk .i { color: var(--accent); }

.inline { display: flex; gap: 10px; }
.inline .input { flex: 1; }
.inline .btn { height: 48px; }

.rate-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.stars-in { display: flex; gap: 4px; }
.rating-label { font-size: 14px; font-weight: 600; color: var(--muted); min-width: 130px; }
.rating-label.set { color: var(--accent); }
.star-btn { border: 0; background: none; cursor: pointer; padding: 2px; color: #5a5a66; transition: transform .15s, color .15s; }
.star-btn .i { width: 28px; height: 28px; }
.star-btn.on { color: var(--accent); } .star-btn.on .i { fill: var(--accent); }
.star-btn:hover { transform: scale(1.15); }
.star { color: #4a4a54; display: inline-flex; } .star.on { color: var(--accent); } .star.on .i { fill: var(--accent); }

/* landing: reviews + trial */
.trial-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 22px 26px; border-radius: 22px; border: 1px solid #ff8a1e55; background: linear-gradient(135deg, #ff8a1e1c, transparent 70%), var(--bg-2); }
.trial-strip .t { display: flex; align-items: center; gap: 14px; }
.trial-strip .ic { margin: 0; }
.trial-strip b { display: block; font-size: 18px; }
.trial-strip span { color: var(--muted); font-size: 14px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; }
.review .stars { display: flex; gap: 2px; }
.review p { color: #d6d6dc; font-size: 15px; }
.review .who2 { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.review .av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #ff8a1e22; color: var(--accent); }
.rating-sum { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); }
.rating-sum b { color: var(--text); font-size: 20px; }
.empty-reviews { text-align: center; color: var(--muted); padding: 30px; border: 1px dashed var(--border); border-radius: var(--radius); }

/* toasts */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #17171c; border: 1px solid var(--border); box-shadow: 0 16px 40px -12px #000; transform: translateY(12px); opacity: 0; transition: .3s; max-width: 340px; font-size: 14.5px; }
.toast.show { transform: none; opacity: 1; }
.toast .i { color: #6eeb78; } .toast.err .i { color: #ff7a7a; }

/* link page */
.code-box { text-align: center; margin: 18px 0 22px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px dashed #ff8a1e66; }
.code-box b { font-size: 34px; letter-spacing: 6px; font-family: ui-monospace, Consolas, monospace; color: var(--accent); }
.code-box span { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.ok-ring { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #6eeb7822; color: #6eeb78; }
.ok-ring .i { width: 34px; height: 34px; }

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .reviews { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .row .k { min-width: 100%; }
  .row .act { margin-left: 0; }
  .inline { flex-direction: column; }
}

/* landing feature icons (svg) */
.ic .i { width: 22px; height: 22px; color: var(--accent); }

/* trial state */
.trial-done { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(110, 235, 120, .08); border: 1px solid rgba(110, 235, 120, .3); font-weight: 600; }
.trial-done .ring { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #6eeb7826; color: #6eeb78; flex: none; }
.trial-done .ring .i { width: 16px; height: 16px; stroke-width: 3; }
.trial-done small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }

/* download pop-up */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 8, .72); backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
.modal-box { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #121216; border: 1px solid var(--border); border-radius: 24px; padding: 30px; box-shadow: 0 30px 80px -20px #000; animation: popIn .25s cubic-bezier(.2, .9, .25, 1.1); }
.modal-box h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.6px; }
.modal-sub { color: var(--muted); margin-bottom: 22px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { color: var(--text); background: var(--card-hover); }
.steps { list-style: none; display: grid; gap: 20px; }
.steps > li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.steps .n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: #ff8a1e22; color: var(--accent); }
.steps b { display: block; font-size: 16px; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.steps code { font-size: 13px; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border); border-bottom-width: 2px; background: rgba(255,255,255,.06); font: 600 12.5px ui-monospace, Consolas, monospace; color: var(--text); }
.files { display: grid; gap: 10px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: .2s; }
.file:hover { background: var(--card-hover); border-color: #ff8a1e66; transform: translateY(-1px); }
.file.main { border-color: #ff8a1e55; background: linear-gradient(135deg, #ff8a1e18, transparent 70%), var(--card); }
.file .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #ff8a1e1f; color: var(--accent); }
.file .ft { flex: 1; min-width: 0; }
.file .ft b { margin: 0; font-size: 15.5px; }
.file .ft small { color: var(--muted); font-size: 12.5px; }
.file .fa { color: var(--accent); }
.pathbox { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px dashed var(--border); margin-bottom: 12px; }
.pathbox code { background: none; font-size: 13.5px; word-break: break-all; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 520px) { .modal-box { padding: 22px 18px; } .pathbox { flex-direction: column; align-items: stretch; } }

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn.locked { opacity: .6; }
.btn.locked:hover { transform: none; }
