:root {
  --premium-bg: #07110d;
  --premium-panel: #0b1b12;
  --premium-text: #ecf4ee;
  --premium-muted: #91a397;
  --premium-mint: #a9e5bd;
  --premium-line: rgba(186, 224, 199, .16);
}

body.account-page {
  color: var(--premium-text);
  background:
    radial-gradient(ellipse at 72% 2%, rgba(45, 102, 67, .18), transparent 48%),
    linear-gradient(180deg, rgba(4, 18, 11, .56), rgba(7, 17, 13, .88) 68vh, #07110d 112vh),
    url('/desktop-client/assets/home-background.png') top center / cover fixed no-repeat,
    var(--premium-bg);
  font-family: Manrope, "Segoe UI", sans-serif;
}

body.account-page::before {
  content: none;
}

.page-header.account-header {
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 82px;
  min-height: 82px;
  padding: 0 56px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(3, 14, 9, .95), rgba(7, 31, 20, .78));
  box-shadow: none;
  backdrop-filter: blur(18px);
  transform: none;
}

.page-header.account-header .page-brand strong,
.page-header.account-header .page-brand small,
.account-home,
.account-header__status { font-family: Manrope, sans-serif; }

.page-header.account-header .page-brand { gap: 11px; }
.page-header.account-header .page-brand img { width: 38px; height: 42px; border: 0; border-radius: 0; object-fit: contain; }
.page-header.account-header .page-brand span { align-items: baseline; flex-direction: row; line-height: 1; }
.page-header.account-header .page-brand strong { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.page-header.account-header .page-brand small { margin: 0 0 0 7px; color: #a5b6aa; font-size: 12px; font-weight: 500; letter-spacing: 2px; }
.account-home { padding: 12px 16px; border: 1px solid var(--premium-line); border-radius: 8px; color: #bac6be; background: rgba(11, 29, 19, .5); font-size: 14px; transition: color .2s, background .2s, border-color .2s; }
.account-home span { margin-left: 20px; }
.account-header__status { position: absolute; left: 50%; font-size: 11px; transform: translateX(-50%); }

@media (hover:hover) and (pointer:fine) {
  .account-home:hover { color: #ecf4ee; border-color: rgba(186, 224, 199, .28); background: rgba(255, 255, 255, .055); }
}

.account-main {
  width: min(calc(100% - 64px), 1370px);
  padding: 112px 0 60px;
}

/* Premium login surface */
.auth-view {
  min-height: min(720px, calc(100svh - 150px));
  border-color: rgba(174, 222, 190, .25);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(17, 44, 29, .92), rgba(5, 18, 11, .97));
  box-shadow: inset 0 1px rgba(230, 255, 238, .08), 0 36px 100px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.auth-visual {
  min-height: 630px;
  border-right-color: var(--premium-line);
  background:
    radial-gradient(circle at 55% 51%, rgba(102, 215, 139, .17), transparent 34%),
    linear-gradient(rgba(5, 23, 14, .58), rgba(6, 20, 13, .9)),
    url('/desktop-client/assets/home-background.png') center / cover;
}

.auth-visual h1 { font-family: Manrope, sans-serif; font-weight: 500; letter-spacing: -.065em; }
.auth-visual h1 span { color: var(--premium-mint); }
.auth-visual > p { color: #9caf9f; font-size: 15px; }
.auth-shield img { border-radius: 0; object-fit: contain; }
.auth-visual__stats strong { font-family: Manrope, sans-serif; font-weight: 600; }
.auth-panel { background: radial-gradient(circle at 100% 0, rgba(126, 215, 155, .1), transparent 38%); }
.auth-panel__head > span { color: var(--premium-mint); font-size: 10px; }
.auth-panel__head h2 { font-family: Manrope, sans-serif; font-size: clamp(32px, 3vw, 44px); font-weight: 500; letter-spacing: -.055em; }
.auth-panel__head p { color: #91a397; font-size: 14px; line-height: 1.7; }
.login-form label > span { color: #9caf9f; font-size: 10px; }
.account-input { height: 55px; border-color: var(--premium-line); border-radius: 10px; background: rgba(3, 17, 10, .7); }
.account-input input { font-family: Manrope, sans-serif; font-size: 14px; }
.account-primary { min-height: 55px; border: 0; border-radius: 10px; color: #0a2818; background: #acebc3; box-shadow: inset 0 1px rgba(255,255,255,.3), 0 12px 35px rgba(91, 211, 132, .09); font-family: Manrope, sans-serif; font-size: 13px; }
.auth-help, .auth-note, .login-message { font-size: 11px; }

/* New connected dashboard */
.premium-dashboard { padding: 27px 0 45px; animation: premium-rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.premium-dashboard [hidden] { display: none !important; }
.premium-account-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.premium-account-head h1 { margin: 19px 0 8px; font: 500 clamp(31px, 4vw, 48px)/1.14 Manrope, sans-serif; letter-spacing: -.055em; }
.premium-account-head h1 em { color: var(--premium-mint); font-style: normal; overflow-wrap: anywhere; }
.premium-account-head p { margin: 0; color: var(--premium-muted); font-size: 14px; }
.premium-eyebrow { display: flex; align-items: center; gap: 9px; color: #a0b4a7; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.premium-eyebrow > i,
.premium-bot-state > i,
.premium-status > i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #77e99e; box-shadow: 0 0 12px rgba(119, 233, 158, .65); }
.premium-account-identity { display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 12px 14px; border: 1px solid var(--premium-line); border-radius: 14px; background: rgba(9, 31, 19, .76); backdrop-filter: blur(12px); }
.premium-avatar { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border: 1px solid rgba(172, 227, 190, .32); border-radius: 14px; color: #c3eed1; background: linear-gradient(135deg, rgba(172, 227, 190, .17), rgba(17, 53, 30, .3)); font-weight: 700; text-transform: uppercase; }
.premium-account-identity strong, .premium-account-identity small { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premium-account-identity strong { font-size: 14px; font-weight: 600; }
.premium-account-identity small { margin-top: 4px; color: #82988a; font-size: 12px; }

.premium-account-tabs { display: flex; align-items: center; gap: 25px; margin: 21px 0 27px; overflow-x: auto; border-bottom: 1px solid var(--premium-line); color: #8da295; scrollbar-width: none; }
.premium-account-tabs::-webkit-scrollbar { display: none; }
.premium-account-tabs a { flex: 0 0 auto; padding: 15px 0; border-bottom: 2px solid transparent; font-size: 13px; }
.premium-account-tabs a.active { color: #d1edda; border-bottom-color: #a0ddb4; }
.premium-account-tabs button { flex: 0 0 auto; margin-left: auto; padding: 10px 0 10px 18px; border: 0; color: #b4cbbd; background: none; font: 600 13px Manrope, sans-serif; cursor: pointer; }

.premium-account-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 22px; align-items: stretch; }
.premium-card { position: relative; padding: 29px; overflow: hidden; isolation: isolate; border: 1px solid rgba(172, 217, 188, .22); border-radius: 21px; background: radial-gradient(ellipse at 5% 0, rgba(37, 77, 52, .16), transparent 80%), linear-gradient(130deg, rgba(17, 43, 28, .86), rgba(6, 19, 13, .94)); box-shadow: inset 0 1px rgba(213, 247, 222, .07), 0 15px 50px rgba(0, 0, 0, .13); }
.premium-card::before { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(169, 242, 192, .1), transparent 70%); content: ""; }
.premium-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.premium-status, .premium-bonus { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(166, 223, 180, .17); border-radius: 20px; color: #b2d9be; background: rgba(166, 223, 180, .06); font-size: 11px; font-weight: 500; white-space: nowrap; }
.premium-status.is-unlinked { color: #829288; }
.premium-status.is-unlinked i { background: #64746a; box-shadow: none; }
.premium-bonus { color: #ded09b; border-color: rgba(216, 196, 107, .2); background: rgba(185, 166, 88, .05); }
.premium-card em { color: var(--premium-mint); font-style: normal; }

.subscription-card-new { border-color: rgba(179, 230, 195, .29); background: radial-gradient(ellipse at 80% 25%, rgba(75, 141, 91, .19), transparent 60%), linear-gradient(130deg, rgba(33, 68, 44, .74), rgba(8, 27, 16, .93)); }
.premium-subscription-hero { display: flex; align-items: center; justify-content: space-between; gap: 17px; }
.premium-caption { color: #9abda5; font-size: 10px; letter-spacing: .14em; }
.premium-subscription-hero h2 { margin: 10px 0; font: 500 clamp(62px, 7vw, 82px)/1 Manrope, sans-serif; letter-spacing: -.07em; }
.premium-subscription-hero h2 em { font-size: 25px; font-weight: 400; letter-spacing: -.04em; }
.premium-subscription-hero p { max-width: 270px; margin: 0; color: #92a99a; font-size: 13px; }
.premium-days-ring { display: grid; width: 142px; height: 142px; flex: 0 0 142px; place-items: center; border: 1px solid rgba(168, 239, 188, .27); border-radius: 50%; background: conic-gradient(from 25deg, rgba(182, 244, 201, .27), rgba(66, 109, 73, .27) 75%, rgba(201, 255, 219, .47)); box-shadow: 0 0 0 10px rgba(183, 232, 194, .025), 0 0 35px rgba(141, 235, 171, .06); }
.premium-days-ring > div { display: flex; width: 130px; height: 130px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(200, 237, 205, .19); border-radius: 50%; background: radial-gradient(ellipse at 30% 15%, rgba(82, 119, 91, .25), #092513 70%); }
.premium-days-ring img { width: 48px; height: 62px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(146, 255, 168, .23)); animation: premium-float 6s ease-in-out infinite; }
.premium-days-ring small { margin-top: 7px; color: #a7c9b2; font-size: 8px; letter-spacing: .14em; }
.premium-subscription-details { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 14px; margin: 18px 0; padding: 22px 0; border-block: 1px solid var(--premium-line); }
.premium-subscription-details small, .premium-referral-code small { display: block; color: #89a994; font-size: 11px; }
.premium-subscription-details strong { display: block; margin-top: 7px; overflow-wrap: anywhere; color: #d5e8da; font-size: 14px; font-weight: 500; line-height: 1.45; }
.premium-primary, .premium-secondary { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 13px 17px; border: 0; border-radius: 10px; font: 700 13px Manrope, sans-serif; text-decoration: none; cursor: pointer; }
.premium-primary { color: #0a2818; background: #acebc3; }
.premium-secondary { color: #c7ddce; border: 1px solid var(--premium-line); background: rgba(255, 255, 255, .025); }
.subscription-card-new > .premium-primary { width: 100%; }
.premium-footnote { display: block; margin-top: 12px; color: #829d8b; font-size: 11px; text-align: center; }

.premium-connection-intro { display: flex; align-items: center; gap: 17px; margin-top: 25px; }
.premium-icon-tile { display: grid; width: 51px; height: 53px; flex: 0 0 51px; place-items: center; border: 1px solid rgba(178, 223, 187, .22); border-radius: 16px; color: #b4dfc3; background: linear-gradient(140deg, rgba(124, 187, 141, .13), rgba(23, 72, 42, .08)); font-size: 24px; }
.premium-icon-tile svg { width: 25px; height: 25px; }
.premium-connection-intro h3 { margin: 0; font: 500 25px/1.3 Manrope, sans-serif; letter-spacing: -.035em; }
.connection-card-new > p { margin: 17px 0; color: var(--premium-muted); font-size: 14px; line-height: 1.7; }
.premium-copyfield { margin: 20px 0 14px; padding: 17px; border: 1px solid var(--premium-line); border-radius: 12px; background: rgba(4, 17, 11, .72); }
.premium-copyfield > small { display: block; margin-bottom: 11px; color: #789a85; font-size: 10px; letter-spacing: .15em; }
.premium-copyfield code { display: block; min-height: 20px; overflow: hidden; color: #c2e2cd; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.premium-copyfield > div { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--premium-line); }
.premium-copyfield button, .premium-copyfield a { display: inline-flex; align-items: center; gap: 7px; padding: 3px 0; border: 0; color: #b3d6bd; background: none; font: 600 12px Manrope, sans-serif; cursor: pointer; }
.premium-copyfield button svg { width: 13px; height: 13px; }
.premium-copyfield a { margin-left: auto; }
.premium-privacy-note { display: flex; align-items: center; gap: 9px; color: #789681; }
.premium-privacy-note > svg { width: 20px; height: 20px; flex: 0 0 20px; }
.premium-privacy-note p { margin: 0; color: inherit; font-size: 11px; line-height: 1.6; }
.premium-textlink { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 8px 0; border: 0; color: #b5d3c0; background: none; font: 600 13px Manrope, sans-serif; cursor: pointer; text-decoration: none; }

.premium-referral-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.premium-referral-heading h3 { margin: 0; font: 500 30px/1.25 Manrope, sans-serif; letter-spacing: -.04em; }
.premium-friends { display: flex; padding-right: 8px; }
.premium-friends i { display: grid; width: 36px; height: 36px; place-items: center; margin-right: -9px; border: 2px solid #0c2014; border-radius: 50%; color: #cfedd8; background: linear-gradient(150deg, #496e50, #173c24); font-size: 13px; font-style: normal; }
.premium-friends i:nth-child(2) { background: linear-gradient(150deg, #707054, #303c26); }
.premium-friends i:last-child { border: 1px dashed #abd2b3; background: #0b2514; }
.referral-card-new > p { max-width: 500px; margin: 18px 0; color: var(--premium-muted); font-size: 14px; line-height: 1.7; }
.premium-referral-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 23px 0 19px; padding: 18px 16px; border: 1px solid rgba(161, 203, 175, .13); border-radius: 12px; background: rgba(6, 19, 13, .4); }
.premium-referral-stats > span { min-width: 0; padding-right: 8px; border-right: 1px solid var(--premium-line); color: #91a99a; font-size: 10px; }
.premium-referral-stats > span:last-child { border: 0; }
.premium-referral-stats b { display: block; margin-top: 7px; color: #d3e5d8; font: 500 27px/1 Manrope, sans-serif; }
.premium-referral-stats b i { font-style: normal; }
.premium-referral-stats b small { color: #7f9d87; font-size: 12px; font-weight: 400; }
.premium-conversion { display: flex; justify-content: space-between; color: #89a992; font-size: 11px; }
.premium-conversion b { color: #c0dfc8; font-weight: 500; }
.premium-conversion-track { height: 4px; margin: 10px 0 23px; overflow: hidden; border-radius: 10px; background: rgba(179, 218, 188, .06); }
.premium-conversion-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #527e61, #bbeecb); transition: width .55s ease; }
.premium-referral-code { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--premium-line); }
.premium-referral-code code { display: block; margin-top: 7px; color: #d4eadb; font-size: 13px; }
.premium-referral-code > div:last-child { display: flex; gap: 7px; }
.premium-referral-code .premium-primary, .premium-referral-code .premium-secondary { min-height: 42px; padding: 10px 12px; font-size: 11px; }
.copy-state { height: 15px; margin: 8px 4px 0; color: #a5e5b9; font-size: 11px; }
.premium-referral-history { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--premium-line); }
.premium-referral-history-head { display: flex; justify-content: space-between; gap: 15px; color: #bdd3c4; font-size: 11px; }
.premium-referral-history-head small { color: #718c7a; font-size: 10px; }
.referral-history__list { display: grid; gap: 6px; margin-top: 10px; }
.referral-history__list > p { margin: 0; color: #71877a; font-size: 11px; }
.referral-history__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 10px 11px; border-radius: 10px; background: rgba(255, 255, 255, .02); }
.referral-history__item strong, .referral-history__item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.referral-history__item strong { color: #b7c9bd; font-size: 11px; }
.referral-history__item small { margin-top: 3px; color: #71877a; font-size: 9px; }
.referral-history__item b { align-self: center; color: #8ea294; font-size: 10px; }
.referral-history__item b.is-paid { color: #9fe2b3; }

.premium-account-side { display: grid; gap: 22px; }
.premium-telegram-person { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; }
.premium-telegram-person h3 { margin: 0; overflow: hidden; font-size: 18px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.premium-telegram-person p { margin: 5px 0 0; overflow: hidden; color: #82988a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.premium-bot-state { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 19px 0 12px; padding-block: 12px; border-block: 1px solid var(--premium-line); color: #9db2a5; font-size: 11px; }
.premium-bot-state b { color: #b8dbbf; font-weight: 500; }
.telegram-card-new > p { margin: 0; color: #82998a; font-size: 12px; line-height: 1.7; }
.premium-unlink-confirm { margin-top: 13px; padding: 14px; border: 1px solid rgba(208, 180, 134, .23); border-radius: 11px; background: rgba(200, 174, 113, .045); }
.premium-unlink-confirm p { margin: 0 0 12px; color: #b6aa8c; font-size: 11px; line-height: 1.6; }
.premium-unlink-confirm button { min-height: 38px; padding: 8px 12px; font-size: 11px; }
.premium-unlink-confirm .danger { color: #e1ada4; border-color: rgba(196, 116, 104, .25); }
.support-card-new h3 { margin: 17px 0 11px; font: 500 28px/1.25 Manrope, sans-serif; letter-spacing: -.04em; }
.support-card-new > p { color: #82998a; font-size: 12px; line-height: 1.7; }
.premium-support-order { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; padding-bottom: 14px; border-bottom: 1px solid var(--premium-line); }
.premium-support-order code { color: #b1d4bc; font-size: 13px; }
.premium-support-order button { padding: 0; border: 0; color: #abcab6; background: none; font-size: 19px; cursor: pointer; }
.premium-support-order button svg { width: 17px; height: 17px; }
.support-link { width: 100%; }
.premium-back { display: inline-block; margin-top: 25px; color: #8cae96; font-size: 13px; text-decoration: none; }

@keyframes premium-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes premium-float { 50% { transform: translateY(-5px); } }

@media (hover:hover) and (pointer:fine) {
  .premium-card { transition: border-color .25s, transform .25s; }
  .premium-card:hover { border-color: rgba(172, 227, 190, .37); transform: translateY(-2px); }
  .premium-primary:hover { background: #c0f9d4; }
}

@media (max-width: 980px) {
  .premium-account-head { align-items: flex-start; flex-direction: column; }
  .premium-account-identity { width: 100%; }
  .premium-account-grid { grid-template-columns: 1fr; }
  .premium-account-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .page-header.account-header { width: 100%; height: 72px; min-height: 72px; padding: 0 16px; }
  .page-header.account-header .page-brand { gap: 8px; }
  .page-header.account-header .page-brand img { width: 31px; height: 35px; }
  .page-header.account-header .page-brand strong { font-size: 18px; letter-spacing: -.6px; }
  .page-header.account-header .page-brand small { margin-left: 5px; font-size: 8px; letter-spacing: 1.4px; }
  .account-home { padding: 10px 11px; font-size: 11px; }
  .account-home span { margin-left: 9px; }
  .account-home::after { content: none; }
  .account-main { width: calc(100% - 28px); }
  .account-main { padding-top: 91px; }
  .auth-view { border-radius: 19px; }
  .auth-panel { padding: 34px 22px; }
  .auth-visual { min-height: 475px; padding: 35px 24px; }
  .premium-dashboard { padding-top: 18px; }
  .premium-account-head { gap: 15px; }
  .premium-account-head h1 { margin-top: 15px; font-size: 30px; line-height: 1.22; }
  .premium-account-identity { padding: 12px; }
  .premium-account-tabs { gap: 20px; margin-block: 18px 22px; }
  .premium-account-tabs a { font-size: 12px; }
  .premium-account-tabs button { margin-left: 0; font-size: 12px; }
  .premium-account-grid, .premium-account-side { grid-template-columns: 1fr; gap: 17px; }
  .premium-card { padding: 22px; border-radius: 17px; }
  .premium-card-top { align-items: flex-start; flex-wrap: wrap; margin-bottom: 19px; }
  .premium-eyebrow { font-size: 9px; letter-spacing: .11em; }
  .premium-status, .premium-bonus { padding: 5px 8px; font-size: 9px; }
  .premium-subscription-hero { align-items: center; gap: 8px; }
  .premium-subscription-hero h2 { font-size: 59px; }
  .premium-subscription-hero h2 em { font-size: 20px; }
  .premium-subscription-hero p { max-width: 155px; font-size: 11px; line-height: 1.6; }
  .premium-days-ring { width: 102px; height: 102px; flex-basis: 102px; }
  .premium-days-ring > div { width: 94px; height: 94px; }
  .premium-days-ring img { width: 36px; height: 47px; }
  .premium-days-ring small { font-size: 7px; letter-spacing: .08em; }
  .premium-subscription-details { grid-template-columns: 1fr 1fr; gap: 15px; padding: 17px 0; }
  .premium-subscription-details > div:last-child { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; }
  .premium-subscription-details > div:last-child strong { margin-top: 0; }
  .premium-connection-intro h3 { font-size: 23px; }
  .premium-copyfield code { font-size: 12px; }
  .premium-referral-heading h3 { font-size: 26px; }
  .premium-friends i { width: 29px; height: 29px; font-size: 11px; }
  .premium-referral-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 14px 12px; }
  .premium-referral-stats > span:nth-child(2) { border-right: 0; }
  .premium-referral-stats b { font-size: 23px; }
  .premium-referral-code { align-items: stretch; flex-direction: column; }
  .premium-referral-code > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .premium-referral-code button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-dashboard, .premium-days-ring img { animation: none; }
  .premium-card { transition: none; }
}
