.telegram-login-dialog {
  width: min(390px, calc(100% - 32px));
  border: 1px solid #e1e4dc;
  border-radius: 24px;
  padding: 38px 30px 25px;
  background: #fff;
  color: #151613;
  box-shadow: 0 25px 80px #15161330;
  text-align: center;
}

.plan.featured .buy-trigger { color: #fff; }
.telegram-trial-copy a { display: block; width: max-content; margin-top: 17px; color: #151613; font-size: 13px; font-weight: 800; text-decoration: none; border-bottom: 1px solid #151613; padding-bottom: 3px; }
.telegram-trial-copy a:hover { color: #648224; border-color: #648224; }

.telegram-login-dialog::backdrop { background: #15161366; backdrop-filter: blur(3px); }
.telegram-login-dialog h2 { margin: 0 0 10px; font: 700 27px/1.05 Montserrat, Arial, sans-serif; letter-spacing: -.07em; }
.telegram-login-dialog > p { margin: 0; color: #62675e; font-size: 14px; line-height: 1.5; }
.login-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border: 1px solid #e3e6de; border-radius: 50%; background: #fff; color: #565a53; font-size: 23px; line-height: 1; cursor: pointer; }
.email-auth-form { display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.email-auth-form label { display: grid; gap: 7px; color: #464941; font-size: 12px; font-weight: 700; }
.email-auth-form input { width: 100%; box-sizing: border-box; min-height: 46px; border: 1px solid #dfe2da; border-radius: 12px; padding: 0 14px; background: #fafbf8; color: #151613; outline: none; font: 400 15px Manrope, Arial, sans-serif; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
#password-toggle { position: absolute; right: 6px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 9px; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23555a52' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M2.5 12s3.5-5 9.5-5 9.5 5 9.5 5-3.5 5-9.5 5-9.5-5-9.5-5Z'/%3E%3Ccircle cx='12' cy='12' r='2.3' fill='%23555a52'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 20px; color: transparent; cursor: pointer; font-size: 0; }
#password-toggle:hover { background: #eff1ea; color: #151613; }
.email-auth-form input:focus { border-color: #8eaf3c; box-shadow: 0 0 0 3px #bcf53a36; background: #fff; }
.email-auth-submit { min-height: 46px; margin-top: 4px; border: 0; border-radius: 12px; background: #bcf53a; color: #151613; cursor: pointer; font: 700 15px Manrope, Arial, sans-serif; }
.email-auth-submit:hover { background: #b3ed30; }
.email-auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-error { min-height: 18px; margin-top: 10px !important; color: #ae3b2e !important; font-size: 12px !important; }
.auth-switch { border: 0; padding: 0; background: transparent; color: #48671a; cursor: pointer; font: 700 12px Manrope, Arial, sans-serif; }
.telegram-login-dialog small { display: block; margin-top: 14px; color: #858a80; font: 500 10px Manrope, Arial, sans-serif; }

.profile-dialog { width: min(390px, calc(100% - 32px)); border: 1px solid #e1e4dc; border-radius: 24px; padding: 30px; background: #fff; color: #151613; box-shadow: 0 25px 80px #15161330; text-align: center; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s ease, transform .42s cubic-bezier(.22,1,.36,1), overlay .3s allow-discrete, display .3s allow-discrete; }
.profile-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.profile-dialog::backdrop { background: #15161366; backdrop-filter: blur(3px); transition: background-color .3s ease, backdrop-filter .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
@starting-style { .profile-dialog[open] { opacity: 0; transform: translateY(18px) scale(.97); } .profile-dialog[open]::backdrop { background: transparent; backdrop-filter: blur(0); } }
.profile-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border: 1px solid #e3e6de; border-radius: 50%; background: #fff; color: #565a53; font-size: 23px; line-height: 1; cursor: pointer; }
.profile-dialog h2 { margin: 4px 0 22px; font: 700 27px/1.05 Montserrat, Arial, sans-serif; letter-spacing: -.07em; }
.profile-card { overflow: hidden; border: 1px solid #e1e4dc; border-radius: 16px; background: #fafbf8; text-align: left; }
.profile-card > div { display: grid; gap: 5px; padding: 14px 16px; }
.profile-card > div + div { border-top: 1px solid #e6e8e1; }
.profile-card span { color: #7b8077; font-size: 11px; font-weight: 600; }
.profile-card strong { overflow: hidden; color: #1b1d19; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.profile-subscription { margin-top: 12px; padding: 15px 16px; border: 1px solid #e1e4dc; border-radius: 16px; background: #f4f5f0; text-align: left; }
.profile-subscription-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.profile-subscription-head span { color: #777c73; font-size: 11px; font-weight: 700; }
.profile-subscription-head i { width: 8px; height: 8px; border-radius: 50%; background: #c7cbc2; }
.profile-subscription strong { display: block; color: #1b1d19; font-size: 15px; }
.profile-subscription small { display: block; margin-top: 5px; color: #858a80; font-size: 11px; line-height: 1.35; }
#profile-subscription-action { width: 100%; min-height: 38px; margin-top: 13px; border: 0; border-radius: 10px; background: #151613; color: #fff; cursor: pointer; font: 700 12px Manrope, Arial, sans-serif; }
#profile-subscription-action:hover { background: #292b27; }
#profile-subscription-action[hidden] { display: none; }
#profile-subscription-delete { width: 100%; min-height: 38px; margin-top: 7px; border: 1px solid #e2c8c3; border-radius: 10px; background: #fff; color: #a44335; cursor: pointer; font: 700 12px Manrope, Arial, sans-serif; }
#profile-subscription-delete:hover { border-color: #d7a89f; background: #fff7f5; }
#profile-subscription-delete[hidden] { display: none; }
.profile-subscription.is-active { border-color: #b5d765; background: #f3f9e8; }
.profile-subscription.is-active .profile-subscription-head i { background: #6fd653; box-shadow: 0 0 0 4px #6fd65320; }
.profile-subscription.is-pending { border-color: #e2cc81; background: #fffaf0; }
.profile-subscription.is-pending .profile-subscription-head i { background: #e8b93f; box-shadow: 0 0 0 4px #e8b93f20; }
.profile-admin { width: 100%; min-height: 44px; margin-top: 12px; border: 0; border-radius: 12px; background: #151613; color: #fff; cursor: pointer; font: 800 13px Manrope, Arial, sans-serif; }
.profile-admin:hover { background: #292b27; }
.profile-admin[hidden] { display: none; }
.profile-admin:disabled { cursor: wait; opacity: .65; }
.profile-status { display: flex; align-items: center; gap: 8px; margin: 14px 2px 20px; color: #5d6258; font-size: 12px; font-weight: 700; }
.profile-status i { width: 8px; height: 8px; border-radius: 50%; background: #6fd653; box-shadow: 0 0 0 4px #6fd65320; }
.profile-logout { width: 100%; min-height: 44px; border: 1px solid #e1e4dc; border-radius: 12px; background: #fff; color: #4f544b; cursor: pointer; font: 700 13px Manrope, Arial, sans-serif; }
.profile-logout:hover { border-color: #cdd1c7; background: #f7f8f4; color: #151613; }
.profile-logout:disabled { cursor: wait; opacity: .6; }

.checkout-dialog { width: min(390px, calc(100% - 32px)); border: 1px solid #e1e4dc; border-radius: 24px; padding: 32px 30px 26px; background: #fff; color: #151613; box-shadow: 0 25px 80px #15161330; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .34s ease, transform .42s cubic-bezier(.22,1,.36,1), overlay .34s allow-discrete, display .34s allow-discrete; }
.checkout-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.checkout-dialog::backdrop { background: #15161366; backdrop-filter: blur(3px); transition: background-color .34s ease, backdrop-filter .34s ease, overlay .34s allow-discrete, display .34s allow-discrete; }
@starting-style {
  .checkout-dialog[open] { opacity: 0; transform: translateY(18px) scale(.97); }
  .checkout-dialog[open]::backdrop { background: transparent; backdrop-filter: blur(0); }
}
.checkout-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border: 1px solid #e3e6de; border-radius: 50%; background: #fff; color: #565a53; font-size: 23px; line-height: 1; cursor: pointer; }
.checkout-eyebrow { color: #6c8b2e; font: 700 10px 'DM Mono', monospace; letter-spacing: .16em; }
.checkout-dialog h2 { margin: 7px 0 22px; font: 700 27px/1.05 Montserrat, Arial, sans-serif; letter-spacing: -.06em; }
.checkout-plan { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 16px; border: 1px solid #dfe2da; border-radius: 14px; background: #fafbf8; }
.checkout-plan span { font-size: 14px; font-weight: 800; }
.checkout-plan strong { font-size: 19px; letter-spacing: -.04em; }
.promo-field { display: grid; gap: 8px; margin-top: 18px; color: #464941; font-size: 12px; font-weight: 700; }
.promo-field > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-field input { min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid #dfe2da; border-radius: 12px; padding: 0 13px; background: #fafbf8; color: #151613; outline: none; font: 600 14px Manrope, Arial, sans-serif; text-transform: uppercase; }
.promo-field input:focus { border-color: #8eaf3c; box-shadow: 0 0 0 3px #bcf53a36; background: #fff; }
.promo-field button { min-height: 44px; border: 1px solid #dfe2da; border-radius: 12px; padding: 0 14px; background: #fff; color: #30342d; cursor: pointer; font: 700 12px Manrope, Arial, sans-serif; }
.promo-field button:hover { border-color: #bdc2b7; }
.promo-field button:disabled { cursor: wait; opacity: .6; }
.checkout-message { min-height: 18px; margin: 10px 2px 4px; color: #638421; font-size: 12px; font-weight: 700; }
.checkout-pay { width: 100%; min-height: 48px; border: 0; border-radius: 13px; background: #bcf53a; color: #151613; cursor: pointer; font: 800 15px Manrope, Arial, sans-serif; }
.checkout-pay:hover { background: #b3ed30; }
.checkout-pay:disabled { cursor: wait; opacity: .65; }
.checkout-dialog > small { display: block; margin-top: 12px; color: #858a80; text-align: center; font: 500 10px Manrope, Arial, sans-serif; }

.admin-dialog { width: min(680px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 32px)); box-sizing: border-box; overflow: auto; border: 1px solid #e1e4dc; border-radius: 26px; padding: 34px 32px 30px; background: #f7f8f4; color: #151613; box-shadow: 0 25px 80px #15161330; }
.admin-dialog::backdrop { background: #15161370; backdrop-filter: blur(4px); }
.admin-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid #dfe2da; border-radius: 50%; background: #fff; color: #565a53; cursor: pointer; font-size: 23px; line-height: 1; }
.admin-eyebrow { color: #6c8b2e; font: 700 10px 'DM Mono', monospace; letter-spacing: .16em; }
.admin-dialog h2 { margin: 7px 0 22px; font: 700 30px/1.05 Montserrat, Arial, sans-serif; letter-spacing: -.06em; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.admin-stats article { display: grid; gap: 7px; min-width: 0; padding: 14px; border: 1px solid #e1e4dc; border-radius: 14px; background: #fff; }
.admin-stats span { color: #7b8077; font-size: 10px; font-weight: 700; }
.admin-stats strong { overflow: hidden; color: #181a16; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.admin-section { margin-top: 14px; padding: 17px; border: 1px solid #e1e4dc; border-radius: 17px; background: #fff; }
.admin-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.admin-section-title h3 { margin: 0; font: 800 14px Manrope, Arial, sans-serif; }
.admin-section-title span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: #eef0e9; color: #676c63; font-size: 11px; font-weight: 800; }
.admin-promo-form { display: grid; grid-template-columns: 1.25fr repeat(3, .7fr); gap: 8px; }
.admin-promo-form label { display: grid; gap: 6px; color: #6f746b; font-size: 10px; font-weight: 700; }
.admin-promo-form input { min-width: 0; width: 100%; min-height: 40px; box-sizing: border-box; border: 1px solid #dfe2da; border-radius: 10px; padding: 0 11px; background: #fafbf8; color: #151613; outline: none; font: 700 12px Manrope, Arial, sans-serif; }
.admin-promo-form input:focus { border-color: #8eaf3c; box-shadow: 0 0 0 3px #bcf53a36; background: #fff; }
.admin-promo-form button { grid-column: 1 / -1; min-height: 42px; border: 0; border-radius: 11px; background: #bcf53a; color: #151613; cursor: pointer; font: 800 13px Manrope, Arial, sans-serif; }
.admin-promo-form button:hover { background: #b3ed30; }
.admin-promo-form button:disabled { cursor: wait; opacity: .65; }
.admin-message { min-height: 16px; margin: 10px 0 0; color: #638421; font-size: 11px; font-weight: 700; }
.admin-list { display: grid; gap: 7px; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid #e6e8e1; border-radius: 12px; background: #fafbf8; }
.admin-list-row > div { display: grid; gap: 4px; min-width: 0; }
.admin-list-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-row span { overflow: hidden; color: #7b8077; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-row button { flex: 0 0 auto; min-height: 32px; border: 1px solid #dfe2da; border-radius: 9px; padding: 0 10px; background: #fff; color: #3f443c; cursor: pointer; font: 700 10px Manrope, Arial, sans-serif; }
.admin-list-row button:disabled { cursor: wait; opacity: .55; }
.admin-list-row.is-disabled { opacity: .55; }
.admin-order-row b { flex: 0 0 auto; padding: 5px 8px; border-radius: 8px; background: #eef0e9; color: #555b50; font-size: 9px; }
.admin-empty { margin: 4px 0; color: #8a8f86; font-size: 11px; }

.delete-subscription-dialog { width: min(410px, calc(100% - 32px)); box-sizing: border-box; border: 1px solid #e1e4dc; border-radius: 24px; padding: 31px 28px 26px; background: #fff; color: #151613; box-shadow: 0 25px 80px #15161330; text-align: left; }
.delete-subscription-dialog::backdrop { background: #15161370; backdrop-filter: blur(4px); }
.delete-eyebrow { color: #a44335; font: 700 10px 'DM Mono', monospace; letter-spacing: .16em; }
.delete-subscription-dialog h2 { margin: 8px 0 12px; font: 700 27px/1.05 Montserrat, Arial, sans-serif; letter-spacing: -.06em; }
.delete-subscription-dialog > p:not(.delete-subscription-error) { margin: 0; color: #656a61; font-size: 13px; line-height: 1.55; }
.delete-subscription-error { min-height: 17px; margin: 11px 0 2px; color: #a44335; font-size: 11px; font-weight: 700; }
.delete-subscription-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.delete-subscription-actions button { min-height: 44px; border-radius: 11px; cursor: pointer; font: 800 12px Manrope, Arial, sans-serif; }
#delete-subscription-cancel { border: 1px solid #dfe2da; background: #fff; color: #4d5249; }
#delete-subscription-confirm { border: 0; background: #ad493b; color: #fff; }
#delete-subscription-confirm:hover { background: #983d31; }
#delete-subscription-confirm:disabled { cursor: wait; opacity: .65; }

@media (max-width: 720px) { .hero h1 { font-size: clamp(44px, 13vw, 52px); } .telegram-login-dialog { padding: 36px 22px 22px; } .profile-dialog { padding: 27px 22px 22px; } .checkout-dialog { padding: 29px 22px 22px; } .admin-dialog { padding: 30px 18px 22px; } .admin-stats { grid-template-columns: repeat(2, 1fr); } .admin-promo-form { grid-template-columns: repeat(3, 1fr); } .admin-promo-form label:first-child { grid-column: 1 / -1; } }
@media (max-width: 340px) { .hero h1 { font-size: 42px; } }
