body.auth-page .auth-main { background: linear-gradient(180deg, #f7faf7 0, #fff 520px); }
body.auth-page .profile-shell { max-width: 1380px; }
body.auth-page .profile-layout {
    --bs-gutter-x: 2rem;
    margin-right: 0;
    margin-left: 0;
}
body.auth-page .profile-sidebar { top: 108px; max-height: none; overflow: visible; border: 0; border-radius: 24px; box-shadow: 0 18px 50px rgba(24,68,57,.11); }
body.auth-page .profile-sidebar-head { padding: 22px; background: linear-gradient(145deg, #0c5142, #25836c); }
.profile-sidebar-user { display: flex; align-items: center; gap: 12px; }
.profile-sidebar-user > span { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; color: #0f6653; background: #dff7ec; border-radius: 15px; font-size: 18px; }
.profile-sidebar-user div { display: flex; min-width: 0; flex-direction: column; }
.profile-sidebar-user small { color: rgba(255,255,255,.68); font-size: 13px; }
.profile-sidebar-user strong { overflow: hidden; color: #fff; font-size: 20px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
body.auth-page .profile-sidebar-balance { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 19px; }
.profile-sidebar-balance small { display: inline-flex; gap: 6px; align-items: center; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 400; }
body.auth-page .profile-nav { display: grid; gap: 4px; padding: 12px; }
body.auth-page .profile-nav-link { min-height: 50px; padding: 12px 13px; border-radius: 14px; color: #35574f; font-size: 16px; }
body.auth-page .profile-nav-link i { color: #609087; font-size: 17px; }
body.auth-page .profile-nav-link span { flex: 1; }
body.auth-page .profile-nav-link b { display: grid; min-width: 25px; height: 25px; padding: 0 7px; place-items: center; color: #b73c64; background: #ffe8f0; border-radius: 99px; font-size: 13px; }
body.auth-page .profile-nav-link.active { background: #e2f5ed; box-shadow: none; }
body.auth-page .profile-nav-link.active,
body.auth-page .profile-nav-link.active:hover,
body.auth-page .profile-nav-link.active:focus,
body.auth-page .profile-nav-link.active:visited,
body.auth-page .profile-nav-link.active i,
body.auth-page .profile-nav-link.active span { color: #0d654f !important; }
body.auth-page .profile-nav-link.active b { color: #fff !important; background: #e85d87; }
.profile-nav-divider { display: flex; gap: 10px; margin: 8px 5px 2px; align-items: center; color: #91a29d; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-nav-divider::after { height: 1px; flex: 1; background: #e4ece9; content: ''; }
.profile-sidebar-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px 17px; border-top: 1px solid #e8efec; }
.profile-sidebar-foot a { color: #688079; font-size: 14px; text-decoration: none; }
.profile-sidebar-foot a:hover { color: #136650; }
.profile-nav-gift { border: 1px solid #e7edb5; background: #fbfdea; }
body.auth-page .profile-nav-gift i { color: #d16636; }
.welcome-gift-card { overflow: hidden; margin-bottom: 24px; border: 1px solid #dbe8b1; border-radius: 26px; background: #fff; box-shadow: 0 18px 50px rgba(57,83,44,.12); }
.welcome-gift-hero { position: relative; display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 22px; padding: 32px 34px; align-items: center; overflow: hidden; background: linear-gradient(135deg,#f1facb 0%,#fbfdec 54%,#fff3de 100%); }
.welcome-gift-hero::after { position: absolute; top: -110px; right: -75px; width: 270px; height: 270px; border: 42px solid rgba(255,255,255,.46); border-radius: 50%; content: ''; }
.welcome-gift-icon { position: relative; z-index: 1; display: grid; width: 82px; height: 82px; place-items: center; color: #fff; background: linear-gradient(145deg,#f4774f,#df466f); border-radius: 24px; box-shadow: 0 13px 28px rgba(193,65,78,.24); font-size: 34px; }
.welcome-gift-icon b { position: absolute; top: -7px; right: -7px; display: grid; min-width: 29px; height: 29px; padding: 0 7px; place-items: center; color: #fff; background: #176a55; border: 3px solid #f7fbdc; border-radius: 99px; font-size: 13px; }
.welcome-gift-hero > div { position: relative; z-index: 1; min-width: 0; }
.welcome-gift-hero .cabinet-kicker { color: #b75538; }
.welcome-gift-hero h1 { margin: 3px 0 7px; color: #173f36; font-size: clamp(29px,4vw,42px); line-height: 1.05; }
.welcome-gift-hero p { max-width: 760px; margin: 0; color: #5e746d; font-size: 17px; line-height: 1.45; }
.welcome-gift-body { padding: 28px 34px 32px; }
.welcome-gift-status { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 18px; padding: 17px 19px; border: 1px solid #dce8e2; border-radius: 17px; background: #f5faf7; }
.welcome-gift-status > div:first-child { display: flex; min-width: 0; flex-direction: column; }
.welcome-gift-status small { color: #71867f; }
.welcome-gift-status strong { color: #17634f; font-size: 22px; }
.welcome-gift-status > span { align-self: center; color: #6c7d77; font-size: 13px; }
.welcome-gift-progress { grid-column: 1/-1; height: 8px; margin-top: 8px; overflow: hidden; background: #dfe9e5; border-radius: 99px; }
.welcome-gift-progress i { display: block; height: 100%; background: linear-gradient(90deg,#42a984,#d9ef74); border-radius: inherit; }
.welcome-gift-rules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 20px; }
.welcome-gift-rules > div { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 16px; align-items: start; border: 1px solid #e1ebe6; border-radius: 16px; background: #fff; }
.welcome-gift-rules > div > i { display: grid; width: 38px; height: 38px; place-items: center; color: #176a55; background: #e5f5ef; border-radius: 12px; }
.welcome-gift-rules span { display: flex; min-width: 0; flex-direction: column; }
.welcome-gift-rules strong { color: #234a40; font-size: 16px; line-height: 1.2; }
.welcome-gift-rules small { margin-top: 4px; color: #74857f; font-size: 13px; line-height: 1.35; }
.welcome-gift-actions { display: flex; gap: 16px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.welcome-gift-actions .btn { min-height: 48px; padding-right: 20px; padding-left: 20px; }
.welcome-gift-actions > span { color: #6e817a; font-size: 13px; }
.welcome-gift-actions > span i { margin-right: 5px; color: #438f77; }
.welcome-gift-auth-actions .btn-outline-primary { background: #fff; }
.welcome-gift-fineprint { margin: 18px 0 0; padding-top: 17px; color: #71817c; border-top: 1px solid #e5ede9; font-size: 14px; }
.welcome-gift-fineprint i { margin-right: 6px; color: #d1683f; }
.welcome-gift-guest { max-width: 980px; margin: 0 auto; }
.cabinet-kicker { display: block; margin-bottom: 4px; color: #6ab99f; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cabinet-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 30px 22px; }
.cabinet-panel-head.compact { align-items: center; padding: 0 0 25px; }
.cabinet-panel-head h1 { margin: 0 0 5px; color: #143f36; font-size: 30px; font-weight: 800; }
.cabinet-panel-head p { max-width: 620px; margin: 0; color: #71817c; font-size: 16px; }
.cabinet-folder { position: relative; margin-top: 17px; border: 1px solid #d8e8e1; border-radius: 0 24px 24px 24px; background: #fff; box-shadow: 0 18px 55px rgba(24,68,57,.09); }
.cabinet-folder::before { position: absolute; top: -18px; left: -1px; width: 180px; height: 19px; border: 1px solid #d8e8e1; border-bottom: 0; border-radius: 18px 28px 0 0; background: #fff; content: ''; }
.cabinet-folder-body { padding: 24px 30px 30px; border-top: 1px solid #e8efec; }
.treasure-filters { display: flex; gap: 9px; overflow-x: auto; padding: 0 30px 22px; scrollbar-width: thin; }
.treasure-filters button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid #d7e6df; border-radius: 999px; color: #4d6b63; background: #f9fbfa; font-size: 15px; font-weight: 700; white-space: nowrap; }
.treasure-filters button:hover { border-color: #9bcdbb; background: #eff9f5; }
.treasure-filters button.is-active { border-color: #176a55; color: #fff; background: #176a55; }
.treasure-filters button span { display: grid; min-width: 21px; height: 21px; padding: 0 5px; place-items: center; border-radius: 99px; background: rgba(255,255,255,.22); font-size: 12px; }
.treasure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.treasure-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid #dfeae5; border-radius: 19px; background: #fff; box-shadow: 0 9px 25px rgba(28,71,61,.07); transition: transform .18s ease, box-shadow .18s ease; }
.treasure-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28,71,61,.13); }
.treasure-cover { position: relative; display: flex; height: 170px; padding: 24px; flex-direction: column; justify-content: space-between; overflow: hidden; color: #123d34; background: linear-gradient(145deg, #ccefe2, #f1fbf7); text-decoration: none; }
.treasure-cover::before { position: absolute; top: -62px; right: -45px; width: 170px; height: 170px; border: 28px solid rgba(255,255,255,.32); border-radius: 50%; content: ''; }
.treasure-cover.subject-2 { color: #603410; background: linear-gradient(145deg, #ffe0ca, #fff5ed); }
.treasure-cover.subject-3 { color: #4c3265; background: linear-gradient(145deg, #e6dcf9, #f8f4ff); }
.treasure-cover.subject-4 { color: #294a6a; background: linear-gradient(145deg, #d9ebfa, #f3f9fe); }
.treasure-cover:hover { color: inherit; }
.treasure-lesson-label { position: relative; z-index: 1; padding-right: 58px; font-size: 28px; line-height: 1; }
.treasure-subject-line { position: relative; z-index: 1; display: flex; gap: 10px; min-width: 0; align-items: center; font-size: 16px; font-weight: 700; }
.treasure-subject-line > i { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(255,255,255,.62); font-size: 18px; }
.treasure-subject-line > span { display: -webkit-box; overflow: hidden; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.treasure-heart { position: absolute; top: 18px; right: 18px; z-index: 3; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #cf416f; background: #fff; box-shadow: 0 5px 15px rgba(70,38,50,.16); font-size: 19px; }
.treasure-heart:hover { color: #a92350; transform: scale(1.06); }
.treasure-card-body { padding: 18px; }
.treasure-card-body > small { color: #6c8b82; font-size: 13px; }
.treasure-card-status-row { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; }
.treasure-card-status-row > small { color: #6c8b82; font-size: 13px; }
.treasure-access-badge { display: inline-flex; gap: 5px; padding: 5px 9px; align-items: center; border-radius: 99px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.treasure-access-badge.is-purchased { color: #633044; background: #ffe1ea; }
.treasure-access-badge.is-downloaded { color: #315c87; background: #e4f0fb; }
.treasure-card-body h2 { display: -webkit-box; min-height: 48px; margin: 7px 0 16px; overflow: hidden; font-size: 19px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.treasure-card-body h2 a { color: #173f36; text-decoration: none; }
.treasure-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.treasure-actions > a, .treasure-actions button { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 1px solid #bad8cd; border-radius: 11px; color: #17654f; background: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
body.auth-page .treasure-actions > a { min-height: 50px; border-color: #0f765d; color: #fff !important; background: #0f765d; box-shadow: 0 7px 17px rgba(15,118,93,.26); font-size: 18px; }
body.auth-page .treasure-actions > a i { color: #fff !important; font-size: 17px; }
body.auth-page .treasure-actions > a:hover, body.auth-page .treasure-actions > a:focus { color: #fff !important; background: #095642; box-shadow: 0 9px 21px rgba(15,118,93,.34); transform: translateY(-1px); }
.treasure-actions button { border-color: #176a55; color: #fff; background: #176a55; }
.treasure-actions button:hover { background: #0e5644; }
.treasure-actions form { margin: 0; }
.treasure-no-results { display: flex; min-height: 270px; padding: 36px; align-items: center; justify-content: center; flex-direction: column; color: #71817c; text-align: center; }
.treasure-no-results[hidden] { display: none; }
.treasure-no-results > i { display: grid; width: 64px; height: 64px; margin-bottom: 15px; place-items: center; border-radius: 20px; color: #c34e75; background: #ffeaf1; font-size: 27px; }
.treasure-no-results strong { color: #254b42; font-size: 21px; }
.treasure-no-results span { margin: 5px 0 18px; }
.access-library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; }
.access-library-head h1 { margin: 0 0 5px; color: #143f36; font-size: 30px; font-weight: 800; }
.access-library-head p { max-width: 650px; margin: 0; color: #71817c; }
.access-library-counters { display: flex; flex: 0 0 auto; gap: 8px; }
.access-library-counters span { display: flex; min-width: 96px; padding: 8px 12px; align-items: center; justify-content: center; gap: 5px; border-radius: 13px; color: #5d746e; background: #f2f7f5; font-size: 13px; }
.access-library-counters strong { color: #17634f; font-size: 20px; }
.access-lesson-section, .access-tariff-section { padding: 24px 0; border-top: 1px solid #e5eee9; }
.access-tariff-section { padding-bottom: 0; }
.access-section-title { display: flex; gap: 12px; margin-bottom: 17px; align-items: center; }
.access-section-title > div { min-width: 0; }
.access-section-title h2 { margin: 0; color: #24483f; font-size: 22px; font-weight: 800; }
.access-section-title p { margin: 2px 0 0; color: #7b8b86; font-size: 14px; }
.access-section-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 13px; font-size: 18px; }
.access-section-icon.is-purchased { color: #803b54; background: #ffe1ea; }
.access-section-icon.is-subscription { color: #315f8c; background: #e4f0fb; }
.access-section-icon.is-tariff { color: #17634f; background: #e0f3eb; }
.lesson-package-refund { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; margin-top: 14px; padding-top: 13px; align-items: center; border-top: 1px solid #e4ece8; }
.lesson-package-refund small { color: #72847e; }
.lesson-package-refund strong { color: #17634f; }
.lesson-package-refund form { grid-column: 1 / -1; margin: 3px 0 0; }
.lesson-package-refund .btn { display: inline-flex; gap: 6px; align-items: center; }
.access-lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.access-lesson-card { overflow: hidden; border: 1px solid #e3ebe8; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(30,70,61,.07); }
.access-lesson-card.is-subscription { border-color: #dce9f5; }
.access-lesson-card-top { display: flex; padding: 13px 15px 0; align-items: center; justify-content: space-between; gap: 12px; }
.access-lesson-card-top time { color: #89958f; font-size: 12px; }
.access-status-badge { display: inline-flex; gap: 5px; padding: 5px 9px; align-items: center; border-radius: 99px; font-size: 13px; font-weight: 800; }
.access-status-badge.is-purchased { color: #633044; background: #ffe1ea; }
.access-status-badge.is-subscription { color: #315c87; background: #e4f0fb; }
.access-lesson-main { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 15px; align-items: start; }
.access-subject-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #17634f; background: #dff3eb; font-size: 20px; }
.access-subject-icon.subject-2 { color: #875125; background: #ffe8d7; }
.access-subject-icon.subject-3 { color: #664780; background: #eee5fb; }
.access-subject-icon.subject-4 { color: #3a6389; background: #e2f0fb; }
.access-lesson-main small { display: block; margin-bottom: 4px; color: #718780; font-size: 13px; }
.access-lesson-main h3 { display: -webkit-box; min-height: 43px; margin: 0; overflow: hidden; color: #21463d; font-size: 18px; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.access-lesson-card-foot { display: flex; min-height: 50px; padding: 10px 15px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #edf2f0; background: #fafcfb; }
.access-lesson-card-foot > span { overflow: hidden; color: #71817c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.access-lesson-card-foot > a { display: inline-flex; flex: 0 0 auto; gap: 6px; padding: 7px 11px; align-items: center; border-radius: 10px; color: #fff; background: #176a55; font-size: 14px; font-weight: 800; text-decoration: none; }
body.auth-page #accesses .access-lesson-card-foot > a,
body.auth-page #accesses .access-lesson-card-foot > a i { color: #fff !important; }
body.auth-page #accesses .access-lesson-card-foot > a:hover,
body.auth-page #accesses .access-lesson-card-foot > a:focus { color: #fff !important; background: #0f5745; }
.download-history-count { padding: 7px 12px; border-radius: 99px; color: #17634f; background: #e8f6f0; font-size: 14px; font-weight: 800; }
.download-history-list { display: grid; gap: 10px; }
.download-history-item { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 14px; min-height: 78px; padding: 14px 16px; align-items: center; border: 1px solid #e1ebe7; border-radius: 15px; background: #fbfdfc; }
.download-file-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #b54367; background: #ffe9ef; font-size: 20px; }
.download-history-item > div { display: flex; min-width: 0; flex-direction: column; }
.download-history-item small { color: #6e8c83; }
.download-history-item strong { overflow: hidden; color: #26483f; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.download-history-item span { color: #87958f; font-size: 13px; }
.download-history-item > a { color: #17654f; font-weight: 700; text-decoration: none; white-space: nowrap; }
.subscription-overview { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 30px; padding: 28px 30px; align-items: center; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #143e36, #1d705c); box-shadow: 0 16px 40px rgba(19,73,60,.18); }
.subscription-overview .cabinet-kicker { color: #86d7bb; }
.subscription-overview h1 { margin: 0 0 6px; color: #fff; }
.subscription-overview p { margin: 0; color: rgba(255,255,255,.76); }
.subscription-status { display: inline-flex; gap: 6px; margin-top: 13px; padding: 6px 10px; align-items: center; border-radius: 99px; color: #ffd8a5; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 800; }
.subscription-status.is-active { color: #bdf2df; }
.subscription-balance { display: flex; padding: 18px; flex-direction: column; border: 1px solid rgba(255,255,255,.2); border-radius: 17px; background: rgba(255,255,255,.1); }
.subscription-balance small, .subscription-balance span { color: rgba(255,255,255,.64); }
.subscription-balance strong { color: #fff; font-size: 27px; }
.subscription-balance small i { margin-right: 5px; color: #bdf2df; }
.wallet-heading { display: flex; gap: 13px; margin-bottom: 17px; align-items: center; }
.wallet-heading > span { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: #153f57; background: #d9ef74; border-radius: 15px; font-size: 20px; box-shadow: 0 8px 18px rgba(7,35,48,.18); }
.wallet-heading > div { display: flex; min-width: 0; flex-direction: column; }
.wallet-heading small { color: rgba(255,255,255,.66); font-size: 12px; }
.wallet-heading h1 { margin: 1px 0 0; color: #fff; font-size: 27px; line-height: 1.05; }
body.auth-page .wallet-form .wallet-form-title { display: block; margin-bottom: 9px; color: #fff !important; font-size: 18px; line-height: 1.2; }
.wallet-limit-note { display: flex; gap: 7px; margin-top: 10px; align-items: flex-start; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.3; }
.wallet-limit-note i { margin-top: 2px; color: #ffd78d; }
.wallet-card-refunds { margin-top: 26px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: #fff; background: rgba(7,35,48,.14); box-shadow: none; }
.wallet-card-refunds-head { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 14px; padding: 22px 54px 22px 22px; align-items: center; cursor: pointer; list-style: none; background: rgba(255,255,255,.035); transition: background .18s ease; }
.wallet-card-refunds-head:hover { background: rgba(255,255,255,.07); }
.wallet-card-refunds[open] .wallet-card-refunds-head { background: rgba(255,255,255,.035); }
.wallet-card-refunds-head::-webkit-details-marker { display: none; }
.wallet-card-refunds-head:focus-visible { outline: 3px solid rgba(217,239,116,.8); outline-offset: -3px; }
.wallet-card-refunds-head > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #d9ef74; background: rgba(255,255,255,.1); font-size: 20px; }
.wallet-card-refunds-head > div { min-width: 0; }
.wallet-card-refunds-head small { display: block; color: rgba(255,255,255,.62); font-size: 12px; }
.wallet-card-refunds-head h2 { margin: 1px 0 4px; color: rgba(255,255,255,.94); font-size: 22px; font-weight: 800; }
.wallet-card-refunds-head p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; }
.wallet-card-refunds-head > strong { color: #d9ef74; font-size: 24px; text-align: right; white-space: nowrap; }
.wallet-card-refunds-head > strong small { font-weight: 400; }
.wallet-card-refunds:not([open]) .wallet-card-refunds-head p { display: none; }
.wallet-card-refunds-body { padding: 0 22px 22px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(7,35,48,.1); }
.wallet-refund-chevron { position: absolute; top: 50%; right: 23px; color: rgba(255,255,255,.66); transform: translateY(-50%); transition: transform .18s ease; }
.wallet-card-refunds[open] .wallet-refund-chevron { transform: translateY(-50%) rotate(180deg); }
.wallet-refund-options { display: grid; gap: 10px; margin-top: 18px; }
.wallet-refund-option { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px, .8fr); gap: 18px; padding: 15px; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); }
.wallet-refund-option > div { display: flex; min-width: 0; flex-direction: column; }
.wallet-refund-option small, .wallet-refund-option span { color: rgba(255,255,255,.68); font-size: 12px; }
.wallet-refund-option strong { color: #d9ef74; font-size: 20px; }
.wallet-refund-option form { margin: 0; }
.wallet-refund-option .btn { color: #17634f; border-color: #17634f; }
.wallet-refund-option .btn:hover { color: #fff; background: #17634f; }
.wallet-refund-empty { display: flex; gap: 9px; margin-top: 18px; padding: 13px 15px; align-items: flex-start; border-radius: 12px; color: rgba(255,255,255,.74); background: rgba(255,255,255,.07); }
.wallet-refund-empty i { margin-top: 2px; color: #d9ef74; }
.wallet-refund-history { margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); }
.wallet-refund-history h3 { margin: 0 0 10px; color: rgba(255,255,255,.9); font-size: 16px; }
.wallet-refund-history-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; padding: 9px 0; align-items: center; }
.wallet-refund-history-item > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #8c6b28; background: #fff1cc; }
.wallet-refund-history-item.is-succeeded > span { color: #17634f; background: #dff3eb; }
.wallet-refund-history-item.is-canceled > span { color: #9b3e53; background: #ffe5eb; }
.wallet-refund-history-item > div { display: flex; flex-direction: column; }
.wallet-refund-history-item > div strong { color: #d9ef74; font-weight: 800; text-shadow: 0 1px 5px rgba(7,35,48,.28); }
.wallet-refund-history-item > div small { color: rgba(255,255,255,.62); }
.profile-identity { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 16px; padding: 16px; align-items: center; border-radius: 16px; background: #f2f8f5; }
.profile-identity > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #17634f; background: #dff3eb; }
.profile-identity > div { display: flex; min-width: 0; flex-direction: column; }
.profile-identity small { color: #75857f; }
.profile-identity strong { overflow: hidden; color: #294a42; text-overflow: ellipsis; white-space: nowrap; }
.profile-settings-form { height: 100%; padding: 20px; border: 1px solid #dfebe6; border-radius: 17px; }
.profile-settings-form h2 { margin-bottom: 17px; color: #23483f; font-size: 22px; }
.profile-settings-form label { margin: 10px 0 5px; color: #536d66; font-weight: 700; }
.profile-settings-form button { margin-top: 18px; }
.plans-panel-body { padding: 30px; }
.plan-access-status { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 16px; padding: 20px 22px; align-items: center; border: 1px solid #cce9dc; border-radius: 19px; background: linear-gradient(135deg, #e4f6ee, #f2fbf7); box-shadow: 0 9px 24px rgba(28,94,73,.09); }
.plan-access-status.is-empty { border-color: #e0e9e5; background: #f5f9f7; box-shadow: none; }
.plan-access-status-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: #17634f; background: rgba(255,255,255,.82); box-shadow: 0 7px 18px rgba(35,94,75,.1); font-size: 25px; }
.plan-access-status.is-empty .plan-access-status-icon { color: #769088; }
.plan-access-status > div { display: flex; min-width: 0; flex-direction: column; }
.plan-access-status-label { margin-bottom: 2px; color: #5d897b; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.plan-access-status strong { color: #164f40; font-size: 21px; line-height: 1.2; }
.plan-access-status small { margin-top: 4px; color: #658077; font-size: 14px; }
.plans-panel-head { padding: 27px 0 21px; }
.plans-panel-head h1 { margin: 0 0 5px; color: #143f36; font-size: 30px; font-weight: 800; }
.plans-panel-head p { max-width: 720px; margin: 0; color: #71817c; font-size: 15px; }
.plans-purchase-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding-top: 9px; align-items: stretch; }
body.auth-page #plans .plan-purchase-card { position: relative; display: flex; min-width: 0; height: 100%; padding: 22px; flex-direction: column; border: 1px solid #dbe9e3; border-radius: 21px; background: #fff; box-shadow: 0 10px 28px rgba(31,77,66,.08); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
body.auth-page #plans .plan-purchase-card:hover { border-color: #acd5c5; box-shadow: 0 16px 34px rgba(31,77,66,.13); transform: translateY(-3px); }
body.auth-page #plans .plan-purchase-card.is-featured { border: 2px solid #81cbb1; background: linear-gradient(180deg, #f2fbf7 0, #fff 145px); box-shadow: 0 14px 34px rgba(23,106,85,.14); }
.plan-featured-badge { position: absolute; top: -12px; right: 18px; display: inline-flex; gap: 6px; padding: 5px 10px; align-items: center; border-radius: 99px; color: #743448; background: #ffe1ea; box-shadow: 0 5px 13px rgba(97,49,65,.12); font-size: 12px; font-weight: 800; white-space: nowrap; }
.plan-featured-badge i { color: #ce4a74; }
.plan-purchase-card-head { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px; }
.plan-purchase-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; color: #17634f; background: #e1f3ec; font-size: 18px; }
.plan-purchase-card.is-featured .plan-purchase-icon { color: #a24261; background: #ffe5ed; }
.plan-purchase-type { padding: 5px 9px; border-radius: 99px; color: #55726a; background: #f0f6f3; font-size: 12px; font-weight: 800; white-space: nowrap; }
body.auth-page #plans .plan-purchase-card h2 { margin: 17px 0 7px; color: #183f36; font-size: 22px; font-weight: 800; line-height: 1.12; }
.plan-purchase-description { min-height: 57px; margin: 0 0 16px; color: #71817c; font-size: 14px; line-height: 1.35; }
.plan-purchase-price { display: flex; padding: 14px 0; align-items: baseline; gap: 9px; border-top: 1px solid #e8efec; border-bottom: 1px solid #e8efec; }
.plan-purchase-price strong { color: #125e49; font-size: 27px; line-height: 1; white-space: nowrap; }
.plan-purchase-price span { color: #8a9793; font-size: 12px; }
.plan-purchase-features { display: grid; gap: 9px; margin: 16px 0 20px; padding: 0; color: #4f6861; font-size: 13px; line-height: 1.3; list-style: none; }
.plan-purchase-features li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 6px; align-items: start; }
.plan-purchase-features i { margin-top: 1px; color: #51a78d; text-align: center; }
.plan-personal-labels { display: flex; gap: 6px; margin: -7px 0 15px; flex-wrap: wrap; }
.plan-personal-labels span { padding: 5px 8px; border-radius: 8px; color: #885025; background: #fff0df; font-size: 12px; font-weight: 800; }
.plan-purchase-form { margin-top: auto; }
.subscription-class-picker { min-width: 0; margin: 0 0 16px; padding: 15px; border: 1px solid #cfe2da; border-radius: 15px; background: #f7fbf9; }
.subscription-class-picker legend { float: none; width: auto; margin: 0 0 4px; color: #183f36; font-size: 15px; font-weight: 850; }
.subscription-class-picker > p { margin: 0 0 11px; color: #62766f; font-size: 12px; line-height: 1.4; }
.subscription-class-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.subscription-class-options label { margin: 0; cursor: pointer; }
.subscription-class-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.subscription-class-options span { display: grid; min-height: 42px; padding: 7px 4px; place-items: center; color: #276354; background: #fff; border: 1px solid #bfd9cf; border-radius: 10px; font-size: 13px; font-weight: 850; transition: .16s ease; }
.subscription-class-options label:hover span { border-color: #5da98e; }
.subscription-class-options input:focus-visible + span { outline: 3px solid rgba(23,106,85,.2); outline-offset: 2px; }
.subscription-class-options input:checked + span { color: #fff; background: #176a55; border-color: #176a55; box-shadow: 0 6px 14px rgba(23,106,85,.2); }
.subscription-class-confirmation { margin-top: 12px; padding: 12px; color: #694a18; background: #fff8e7; border: 1px solid #edcf8a; border-radius: 11px; }
.subscription-class-confirmation strong { display: block; font-size: 13px; line-height: 1.35; }
.subscription-class-confirmation strong i { margin-right: 4px; color: #cf7d12; }
.subscription-class-confirmation > p { margin: 5px 0 9px; font-size: 11px; line-height: 1.4; }
.subscription-class-confirm-check { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #493511; font-size: 12px; font-weight: 750; cursor: pointer; }
.subscription-class-confirm-check input { flex: 0 0 auto; margin-top: 2px; accent-color: #176a55; }
body.auth-page #plans .plan-purchase-form .btn { min-height: 48px; border: 0; border-radius: 13px; color: #fff; background: #176a55; box-shadow: 0 8px 18px rgba(23,106,85,.22); font-size: 16px; font-weight: 700; }
body.auth-page #plans .plan-purchase-form .btn:hover:not(:disabled) { color: #fff; background: #0f5745; transform: translateY(-1px); }
body.auth-page #plans .plan-purchase-form .btn:disabled { color: #75847f; background: #e6ece9; box-shadow: none; opacity: 1; }
.pricing-public-main { min-height: 70vh; padding: 54px 0 70px; background: linear-gradient(180deg, #f4faf7 0, #fff 420px); }
.pricing-public-shell { max-width: 1180px; }
.pricing-public-hero { max-width: 850px; margin: 0 auto 34px; text-align: center; }
.pricing-public-hero h1 { margin: 8px 0 12px; color: #143f36; font-size: clamp(32px, 5vw, 52px); font-weight: 850; line-height: 1.05; }
.pricing-public-hero > p { margin: 0 auto; color: #647a73; font-size: 18px; line-height: 1.55; }
.pricing-public-notes { display: flex; gap: 9px; margin-top: 24px; justify-content: center; flex-wrap: wrap; }
.pricing-public-notes span { display: inline-flex; gap: 7px; padding: 8px 12px; align-items: center; border: 1px solid #d7e9e1; border-radius: 999px; color: #315d51; background: rgba(255,255,255,.86); font-size: 13px; font-weight: 700; }
.pricing-public-notes i { color: #24906f; }
.pricing-public-plans { padding: 30px; border: 1px solid #dfebe6; border-radius: 28px; background: #fff; box-shadow: 0 18px 45px rgba(31,77,66,.09); }
.pricing-public-plans .plans-panel-head { padding-top: 0; text-align: center; }
.pricing-public-plans .plans-panel-head p { margin-right: auto; margin-left: auto; }
.pricing-public-plans .plan-purchase-price { flex-wrap: wrap; }
.pricing-public-plans .plan-purchase-price del { width: 100%; color: #8a9793; font-size: 14px; }
.pricing-public-help { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.pricing-public-help > div { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 18px; align-items: start; border: 1px solid #e0ebe7; border-radius: 18px; background: #fff; }
.pricing-public-help > div > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #17634f; background: #e1f3ec; }
.pricing-public-help span, .pricing-public-help strong { display: block; }
.pricing-public-help strong { margin-bottom: 3px; color: #234c41; }
.pricing-public-help span { color: #6e7f7a; font-size: 13px; line-height: 1.45; }
.pricing-public-help a, .pricing-public-legal a { color: #176a55; }
.pricing-public-legal { max-width: 850px; margin: 25px auto 0; color: #6d7d78; text-align: center; font-size: 13px; }
@media (max-width: 1199.98px) {
  .treasure-grid, .access-lesson-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
  body.auth-page .profile-sidebar { position: static; max-height: none; overflow: hidden; }
  body.auth-page .profile-nav { display: flex; gap: 7px; overflow-x: auto; }
  body.auth-page .profile-nav-link { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .profile-nav-divider { display: none; }
  .profile-sidebar-foot { display: none; }
  .cabinet-folder { margin-top: 0; border-radius: 24px; }
  .cabinet-folder::before { display: none; }
  .plans-purchase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-public-help { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .welcome-gift-hero { grid-template-columns: 60px minmax(0,1fr); gap: 15px; padding: 24px 20px; }
  .welcome-gift-icon { width: 60px; height: 60px; border-radius: 18px; font-size: 26px; }
  .welcome-gift-hero p { font-size: 15px; }
  .welcome-gift-body { padding: 20px; }
  .welcome-gift-status { grid-template-columns: 1fr; }
  .welcome-gift-status > span { align-self: auto; }
  .welcome-gift-rules { grid-template-columns: 1fr; }
  .welcome-gift-actions { align-items: stretch; flex-direction: column; }
  .welcome-gift-actions .btn { width: 100%; }
  .cabinet-panel-head { padding: 22px 20px 18px; align-items: flex-start; flex-direction: column; }
  .cabinet-panel-head.compact { padding: 0 0 20px; }
  .treasure-filters { padding: 0 20px 18px; }
  .cabinet-folder-body { padding: 20px; }
  .treasure-grid { grid-template-columns: 1fr; }
  .treasure-cover { height: 165px; }
  .access-library-head { align-items: flex-start; flex-direction: column; }
  .access-lesson-grid { grid-template-columns: 1fr; }
  .access-library-counters { width: 100%; }
  .access-library-counters span { flex: 1; }
  .download-history-item { grid-template-columns: 44px minmax(0,1fr); }
  .download-history-item > a { grid-column: 2; }
  .subscription-overview { grid-template-columns: 1fr; padding: 24px 22px; }
  .profile-identity { grid-template-columns: 48px 1fr; }
  .profile-identity > div:last-child { grid-column: 2; }
  .plans-panel-body { padding: 20px; }
  .plan-access-status { grid-template-columns: 44px minmax(0,1fr); padding: 17px; }
  .plan-access-status-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 21px; }
  .plan-access-status strong { font-size: 18px; }
  .plans-panel-head { padding: 23px 0 18px; }
  .plans-purchase-grid { grid-template-columns: 1fr; }
  .pricing-public-main { padding: 34px 0 50px; }
  .pricing-public-plans { padding: 20px; border-radius: 22px; }
  .plan-purchase-description { min-height: 0; }
  .wallet-card-refunds-head { grid-template-columns: 44px minmax(0,1fr); padding: 17px 45px 17px 17px; }
  .wallet-card-refunds-body { padding: 0 17px 17px; }
  .wallet-card-refunds-head > strong { grid-column: 2; text-align: left; }
  .wallet-refund-option { grid-template-columns: 1fr; }
  .wallet-refund-history-item { grid-template-columns: 34px minmax(0,1fr); }
  .wallet-refund-history-item form { grid-column: 2; }
}
