:root {
    --bg: #101c34;
    --footer: #080f1b;
    --card: #283348;
    --surface: rgba(255, 255, 255, .12);
    --text: rgba(255, 255, 255, .9);
    --muted: rgba(255, 255, 255, .45);
    --faint: rgba(255, 255, 255, .3);
    --line: rgba(255, 255, 255, .1);
    --blue: #85e4ff;
    --purple: #d2b8ff;
    --vip-gradient: linear-gradient(90deg, #29bbff 0%, #99e8ff 51%, #29bbff 100%);
    --pro-gradient: linear-gradient(90deg, #a588ec 1%, #e3d0fc 49%, #a588ec 100%);
    --content: 1100px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a[aria-disabled="true"] { opacity: .48; pointer-events: none; cursor: not-allowed; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.page-shell { flex: 1 0 auto; }

/* Header */
.site-header { position: relative; z-index: 50; height: 70px; background: var(--bg); }
.header-inner { width: min(var(--content), calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 160px; flex: 0 0 160px; }
.brand img { width: 160px; height: 36px; object-fit: contain; }
.site-nav { position: absolute; left: 50%; top: 0; height: 70px; transform: translateX(-50%); display: flex; align-items: center; gap: 56px; color: var(--muted); font-size: 16px; white-space: nowrap; }
.site-nav > a, .download-nav > a { height: 70px; display: flex; align-items: center; gap: 5px; transition: color .18s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.download-nav { position: relative; height: 70px; }
.download-nav > a i, .language-trigger i { width: 16px; height: 16px; background: url("/static/img/rivervpn/chevron.png") center/contain no-repeat; transition: transform .18s ease; }
.download-nav:hover > a i, .download-nav:focus-within > a i, .language-menu:hover .language-trigger i, .language-menu:focus-within .language-trigger i { background-image: url("/static/img/rivervpn/chevron-hover.png"); transform: rotate(180deg); }
.download-menu, .language-list { position: absolute; top: 70px; right: 0; width: 141px; height: 180px; padding: 10px 0; border-radius: 15px; background: rgba(230,231,234,.97); box-shadow: 0 2px 20px rgba(16,28,52,.2); color: #101c34; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: .18s ease; }
.download-menu::before, .language-list::before, .user-card::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.download-nav:hover .download-menu, .download-nav:focus-within .download-menu, .language-menu:hover .language-list, .language-menu:focus-within .language-list { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.download-menu a, .language-list a { height: 40px; padding: 0 14px 0 20px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.download-menu a:hover, .language-list a:hover { color: rgba(16,28,52,.8); }
.download-menu-icon { position: relative; width: 20px; height: 20px; flex: 0 0 20px; }
.download-menu-icon img { position: absolute; inset: 0; width: 20px; height: 20px; object-fit: contain; transition: opacity .15s ease; }
.download-menu-icon img.hover { opacity: 0; }
.download-menu a:hover .download-menu-icon img:first-child { opacity: 0; }
.download-menu a:hover .download-menu-icon img.hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-menu { position: relative; height: 42px; }
.language-trigger { width: 42px; height: 42px; padding: 0; border: 0; display: flex; align-items: center; gap: 3px; background: transparent; }
.language-trigger > img { width: 20px; height: 20px; }
.language-list { top: 56px; width: 169px; }
.language-list a { padding-left: 40px; }
.language-list a.active { padding-left: 14px; gap: 6px; }
.language-list a > img { width: 20px; height: 20px; }
.outline-pill { min-width: 70px; height: 40px; padding: 0 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 24px; color: var(--text); background: transparent; transition: background .18s ease, border-color .18s ease; }
.outline-pill:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }

/* Account menu */
.user-menu { position: relative; height: 40px; }
.avatar { position: relative; display: block; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.avatar .avatar-image { width: 40px; height: 40px; }
.user-menu:hover .avatar-image, .user-menu:focus-within .avatar-image { opacity: .8; }
.avatar .avatar-badge { position: absolute; right: -6px; top: -5px; width: 25px; height: 12px; object-fit: contain; }
.user-card { position: absolute; right: 0; top: 68px; width: 223px; border-radius: 15px; background: rgba(230,231,234,.97); color: #101c34; font-family: "PingFang SC", var(--font); font-size: 14px; line-height: 20px; box-shadow: 0 2px 20px rgba(16,28,52,.2); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: .18s ease; }
/* Keep the full gap below the avatar inside the hover target. */
.user-card::before { top: -28px; height: 28px; }
.user-menu:hover .user-card, .user-menu:focus-within .user-card { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.user-card-head { min-width: 0; height: 76px; padding: 15px 20px; display: flex; align-items: center; gap: 11px; border-radius: 15px; background: rgba(255,255,255,.3); }
.user-card-head img { width: 36px; height: 36px; flex: 0 0 36px; }
.user-card-head span { min-width: 0; overflow: hidden; white-space: nowrap; }
.user-card-head strong, .user-card-head small { display: block; overflow: hidden; text-overflow: ellipsis; }
.user-card-head strong { font-size: 18px; line-height: 25px; font-weight: 600; }
.user-card-head small { margin-top: 1px; color: rgba(16,28,52,.6); font-size: 14px; line-height: 20px; font-weight: 400; }
.member-tier { min-height: 59px; margin: 0 20px; padding: 20px 0 18px; border-bottom: 1px solid rgba(16,28,52,.07); display: flex; align-items: center; gap: 8px; color: #101c34; font-weight: 400; }
.member-tier.is-vip { min-height: 80px; padding-top: 19px; align-items: flex-start; }
.member-tier > img:first-child { width: 20px; height: 20px; flex: 0 0 20px; }
.member-tier-copy { min-width: 0; flex: 1; }
.member-tier-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.member-tier.is-vip .member-tier-label { justify-content: flex-start; }
.member-tier small { display: block; margin-top: 5px; color: rgba(16,28,52,.5); font-size: 12px; line-height: 17px; font-weight: 400; }
.member-tier .member-tier-badge { width: 33px; height: 16px; flex: 0 0 33px; object-fit: contain; }
.user-card-logout { width: calc(100% - 40px); height: 60px; margin: 0 20px; padding: 0; border: 0; display: flex; align-items: center; gap: 8px; background: transparent; color: #101c34; }
.user-card-logout:hover { background: rgba(16,28,52,.08); }
.user-card-logout img { width: 20px; height: 20px; flex: 0 0 20px; }

/* Home */
.home-hero { position: relative; height: 730px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 730px; object-fit: cover; object-position: center top; }
.hero-copy { position: relative; z-index: 2; width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding-top: 84px; pointer-events: none; }
.hero-copy h1 { width: 440px; margin: 0; white-space: pre-line; font-size: 56px; line-height: 1.4; letter-spacing: 1px; }
.hero-copy p { width: 450px; margin: 20px 0 44px; white-space: pre-line; color: var(--muted); font-size: 20px; line-height: 1.8; }
.download-cta { width: max-content; min-width: 256px; height: 64px; padding: 0 28px; border-radius: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #101c34; background: var(--vip-gradient); font-size: 18px; font-weight: 600; pointer-events: auto; transition: filter .18s ease, transform .18s ease; }
.download-cta:hover { filter: brightness(1.08); transform: translateY(-2px); }
.download-cta img { width: 40px; height: 40px; object-fit: contain; }
.mobile-cta { display: none; }
.experience-section, .platform-section { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 82px 0 84px; }
.section-title { text-align: center; }
.section-title h1, .section-title h2 { margin: 0; color: var(--text); font-size: 40px; line-height: 1.3; }
.section-title p { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.experience-grid { margin-top: 62px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.experience-grid article { min-height: 250px; padding: 30px 34px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; background: rgba(255,255,255,.06); }
.experience-grid img { width: 70px; height: 70px; object-fit: contain; }
.experience-grid h3 { margin: 20px 0 10px; font-size: 18px; font-weight: 400; }
.experience-grid p { max-width: 280px; margin: 0; color: var(--muted); font-size: 14px; white-space: pre-line; }
.platform-section { padding-top: 38px; padding-bottom: 90px; }
.platform-grid { margin-top: 62px; display: grid; grid-template-columns: repeat(4, 1fr); }
.platform-grid a { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--text); font-size: 16px; transition: color .18s ease; }
.platform-grid a:hover { color: var(--blue); }
.platform-grid img { width: 80px; height: 80px; object-fit: contain; }

/* Pricing */
.pricing-page { width: min(var(--content), calc(100% - 48px)); min-height: 1360px; margin: 0 auto; padding: 72px 0 90px; }
.pricing-heading { position: relative; width: max-content; margin: 0 auto; text-align: center; }
.pricing-heading h1 { margin: 0; font-size: 48px; line-height: 1.3; }
.pricing-heading::before, .pricing-heading::after { content: ""; position: absolute; top: 50%; background-position: center; background-repeat: no-repeat; background-size: contain; transform: translateY(-50%); pointer-events: none; }
.pricing-heading::before { right: calc(100% + 18px); width: 54px; height: 54px; background-image: url("/static/img/rivervpn/vip-star-left.png"); }
.pricing-heading::after { left: calc(100% + 18px); width: 80px; height: 50px; background-image: url("/static/img/rivervpn/vip-star-right.png"); }
.pricing-page[data-tier="2"] .pricing-heading::before { background-image: url("/static/img/rivervpn/pro-star-left.png"); }
.pricing-page[data-tier="2"] .pricing-heading::after { background-image: url("/static/img/rivervpn/pro-star-right.png"); }
.tier-switch { width: 329px; height: 44px; margin: 36px auto 58px; padding: 3px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; }
.pricing-notice, .download-notice { margin: 16px auto 28px; color: var(--muted); text-align: center; font-size: 14px; }
.pricing-notice + .tier-switch { margin-top: 22px; }
.tier-switch button { border: 0; border-radius: 20px; color: var(--muted); background: transparent; font-size: 22px; font-weight: 700; font-style: italic; }
.tier-switch button.active { color: #101c34; background: var(--vip-gradient); }
.pricing-page[data-tier="2"] .tier-switch button.active { background: var(--pro-gradient); }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan-card { position: relative; height: 160px; padding: 30px; border: 2px solid transparent; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); transition: border-color .18s ease, background .18s ease; }
.pricing-page[data-tier="1"] .plan-card[data-plan-level="2"], .pricing-page[data-tier="2"] .plan-card[data-plan-level="1"] { display: none; }
.plan-card.selected { border-color: var(--blue); background: transparent; }
.pricing-page[data-tier="2"] .plan-card.selected { border-color: var(--purple); }
.plan-card h2 { display: inline; margin: 0; color: var(--text); font-size: 18px; font-weight: 400; }
.plan-card em { margin-left: 8px; padding: 3px 7px; border-radius: 6px; color: #101c34; background: var(--vip-gradient); font-size: 11px; font-style: normal; }
.plan-card strong { display: flex; align-items: baseline; gap: 3px; margin-top: 22px; font-size: 36px; line-height: 1; white-space: nowrap; }
.plan-card strong small { font-size: 20px; font-weight: 400; }
.plan-card button { width: 154px; height: 52px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; color: var(--text); background: transparent; font-size: 18px; }
.plan-card button:disabled, .mobile-buy:disabled, .payment-submit:disabled { opacity: .42; cursor: not-allowed; }
.plan-card.selected button { border: 0; color: #101c34; background: var(--vip-gradient); }
.pricing-page[data-tier="2"] .plan-card.selected button { background: var(--pro-gradient); }
.plan-check { display: none; }
.mobile-buy { display: none; }
.benefit-section { margin-top: 88px; }
.benefit-section > h2 { margin: 0 0 56px; text-align: center; font-size: 32px; }
.benefit-table { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.benefit-row { min-height: 60px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); border-top: 1px solid var(--line); text-align: center; }
.benefit-row:first-child { border-top: 0; }
.benefit-row > * { margin: 0; min-width: 0; padding: 16px 10px; border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-style: normal; font-weight: 400; }
.benefit-row > *:first-child { border-left: 0; color: var(--text); }
.benefit-head { min-height: 60px; }
.benefit-head strong { font-size: 22px; font-style: italic; font-weight: 700; }
.benefit-row .yes::after { content: ""; width: 24px; height: 24px; background: url("/static/img/rivervpn/check-gray.png") center/contain no-repeat; }
.benefit-row .no::after { content: "×"; color: var(--muted); font-size: 32px; font-style: normal; font-weight: 200; }
.pricing-page[data-tier="1"] .benefit-row > :nth-child(3) { color: var(--blue); background: rgba(87,188,235,.18); }
.pricing-page[data-tier="2"] .benefit-row > :nth-child(4) { color: var(--purple); background: rgba(165,136,236,.2); }
.pricing-page[data-tier="1"] .benefit-row > :nth-child(3).yes::after { background-image: url("/static/img/rivervpn/check-blue.png"); }
.pricing-page[data-tier="2"] .benefit-row > :nth-child(4).yes::after { background-image: url("/static/img/rivervpn/check-pro.png"); }

/* Download */
.download-page { width: min(var(--content), calc(100% - 48px)); min-height: 720px; margin: 0 auto; padding: 80px 0; }
.download-page .section-title h1 { font-size: 48px; }
.download-list { max-width: 760px; margin: 62px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.download-list a { min-height: 120px; padding: 24px 32px; border-radius: 20px; display: flex; align-items: center; gap: 28px; background: var(--surface); font-size: 20px; transition: background .18s ease, transform .18s ease; }
.download-list a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.download-list img { width: 64px; height: 64px; object-fit: contain; }
.download-notice { max-width: 620px; margin-top: 28px; }

/* Footer */
.site-footer { flex: 0 0 auto; min-height: 231px; background: var(--footer); color: var(--faint); }
.footer-main { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 48px 0 24px; }
.footer-main dl { margin: 0; display: grid; grid-template-columns: 1fr .75fr 2.7fr; gap: 36px; }
.footer-main dl div { min-width: 0; }
.footer-main dt { margin-bottom: 8px; font-size: 13px; }
.footer-main dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.footer-divider { height: 1px; margin: 30px 0 20px; background: rgba(255,255,255,.07); }
.footer-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.footer-meta nav { display: flex; align-items: center; gap: 20px; }
.footer-meta nav i { width: 1px; height: 14px; background: rgba(255,255,255,.1); }
.footer-meta a:hover { color: var(--text); }

/* Modals */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.72); }
.modal { position: fixed; z-index: 100; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 20px; background: var(--card); box-shadow: 0 22px 70px rgba(0,0,0,.34); }
.modal-close { position: absolute; right: 22px; top: 20px; z-index: 2; width: 20px; height: 20px; padding: 0; border: 0; background: url("/static/img/rivervpn/close.png") center/16px no-repeat; }
.modal-close:hover { background-image: url("/static/img/rivervpn/close-hover.png"); }
.login-modal { width: min(816px, calc(100vw - 32px)); height: 429px; display: grid; grid-template-columns: 370px 446px; }
.login-intro { padding: 52px 45px 35px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.login-intro > img { width: 132px; height: 30px; }
.login-intro h2 { margin: 52px 0 10px; font-size: 28px; }
.login-intro p { margin: 0; color: var(--muted); white-space: pre-line; }
.login-intro small { margin-top: auto; color: var(--muted); font-size: 12px; }
.login-intro small a { text-decoration: underline; }
.login-panel { position: relative; padding: 39px 44px 34px; }
.login-tabs { display: flex; gap: 32px; }
.login-tabs button { height: 27px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 18px; white-space: nowrap; transition: color .15s ease; }
.login-tabs button:hover { color: rgba(255,255,255,.65); }
.login-tabs button.active { color: var(--text); font-weight: 600; }
.auth-form { position: relative; margin-top: 24px; display: none; }
.auth-form.active { display: block; }
.auth-field { position: relative; height: 56px; display: flex; align-items: center; border-radius: 15px; background: rgba(255,255,255,.06); transition: background .15s ease; }
.auth-field:focus-within { background: rgba(255,255,255,.12); }
.auth-field input { width: 100%; height: 56px; padding: 0 16px; border: 0; outline: 0; color: var(--text); background: transparent; }
.auth-field input::placeholder { color: rgba(255,255,255,.15); }
.auth-code-field input { padding-right: 112px; }
.auth-field + .auth-field { margin-top: 12px; }
.auth-code-field > button { position: absolute; right: 16px; height: 36px; padding: 0; border: 0; color: var(--text); background: transparent; font-size: 14px; }
.auth-code-field > button:disabled { color: var(--faint); cursor: not-allowed; }
.auth-submit { width: 100%; height: 48px; margin-top: 24px; border: 0; border-radius: 24px; color: #101c34; background: var(--vip-gradient); }
.auth-submit:hover:not(:disabled) { filter: brightness(.92); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.auth-error { position: absolute; z-index: 2; left: 16px; right: 16px; top: 121px; margin: 0; color: #e72628; font-size: 12px; }
.phone-field { padding-left: 16px; }
.phone-field > label { flex: 1; min-width: 0; }
.phone-field > label input { padding-left: 10px; }
.country-trigger { height: 36px; padding: 0 6px 0 0; border: 0; display: flex; align-items: center; gap: 6px; color: var(--text); background: transparent; }
.country-flag { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; font-size: 23px; line-height: 28px; }
.country-flag img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.country-flag-emoji { display: block; line-height: 1; transform: scale(1.35); }
.country-trigger i { width: 12px; height: 12px; background: url("/static/img/rivervpn/chevron.png") center/contain no-repeat; }
.country-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.country-list { position: absolute; z-index: 5; left: 0; top: 68px; width: 357px; max-height: 237px; padding: 8px 10px; overflow-y: auto; border-radius: 15px; background: #101c34; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.country-list { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.country-list::-webkit-scrollbar { width: 4px; }
.country-list::-webkit-scrollbar-track { background: transparent; }
.country-list::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(255,255,255,.22); }
.country-list button { width: 100%; height: 44px; padding: 0 8px; border: 0; display: flex; align-items: center; gap: 10px; color: var(--text); background: transparent; text-align: left; }
.country-list button:hover { background: rgba(255,255,255,.06); }
.country-list button em { margin-left: -7px; color: var(--muted); font-style: normal; }
.country-list button i { width: 24px; height: 24px; }
.country-list button i { margin-left: auto; flex: 0 0 24px; }
.country-list button.active i { background: url("/static/img/rivervpn/check-blue.png") center/contain no-repeat; }
.qr-login { position: relative; display: none; margin-top: 24px; text-align: center; }
.qr-login.active { display: block; }
.qr-frame { position: relative; width: 357px; height: 197px; background: url("/static/img/rivervpn/qr-frame.png") center/357px 197px no-repeat; }
.qr-box { position: absolute; left: 95px; top: 14px; width: 167px; height: 167px; margin: 0; padding: 20px; border-radius: 15px; background: #ecebe8; overflow: hidden; }
.qr-box > img { width: 127px; height: 127px; object-fit: contain; }
.qr-placeholder, .qr-consent-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; color: #283348; background: rgba(255,255,255,.96); font-size: 13px; }
.qr-consent-cover { align-items: flex-start; padding-top: 43px; color: #1b1b19; background: rgba(133,228,255,.95); font-size: 12px; line-height: 20px; white-space: pre-line; }
.qr-login > p { display: none; }
.agree-line { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; cursor: pointer; }
.qr-login .agree-line { position: absolute; z-index: 2; left: 50%; top: 126px; transform: translateX(-50%); color: #1b1b19; white-space: nowrap; text-decoration: underline; }
.qr-login:has([data-login-consent]:checked) .agree-line { opacity: 0; pointer-events: none; }
.qr-login:has([data-login-consent]:checked) .qr-consent-cover { display: none; }
.agree-line input { position: absolute; opacity: 0; }
.agree-line i { width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; }
.agree-line input:checked + i { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px var(--card); }
.qr-login .agree-line i { display: none; }
.auth-divider { position: absolute; left: 44px; right: 45px; bottom: 112px; height: 1px; background: var(--line); text-align: center; }
.auth-divider span { position: relative; top: -10px; padding: 0 12px; color: var(--faint); background: var(--card); font-size: 12px; }
.auth-social { position: absolute; left: 44px; right: 45px; bottom: 35px; display: flex; justify-content: center; gap: 11px; }
.auth-social a { width: 112px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 100px; display: flex; align-items: center; justify-content: center; background: transparent; transition: border-color .15s ease; }
.auth-social a:hover { border-color: rgba(255,255,255,.4); }
.auth-social img { width: 24px; height: 24px; object-fit: contain; }
.mobile-login-modal, .logout-modal, .payment-hint-modal { width: 375px; padding: 34px 32px 28px; }
.mobile-login-modal h2, .logout-modal h2, .payment-hint-modal h2 { margin: 0 0 12px; font-size: 20px; }
.mobile-login-modal p, .logout-modal p, .payment-hint-modal p { margin: 0; color: var(--muted); }
.modal-actions { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions.single { grid-template-columns: 1fr; }
.light-button, .primary-button { height: 44px; border: 0; border-radius: 24px; }
.light-button { color: #101c34; background: #f6f8f8; }
.primary-button { color: #101c34; background: var(--vip-gradient); }
.payment-modal { width: 375px; padding: 34px 32px 28px; }
.payment-modal h2 { margin: 0 0 22px; font-size: 20px; }
.payment-summary { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.payment-summary div { display: flex; justify-content: space-between; padding: 7px 0; }
.payment-summary dt { color: var(--muted); }
.payment-summary dd { margin: 0; font-weight: 600; }
.payment-methods { display: flex; gap: 18px; padding: 18px 0 24px; }
.pay-choice { width: 48px; height: 48px; padding: 7px; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.06); }
.pay-choice.active { border-color: var(--purple); }
.pay-choice:disabled { opacity: .45; cursor: not-allowed; }
.pay-choice img { width: 32px; height: 32px; object-fit: contain; }
.pay-choice span { display: none; }
.pay-choice[data-pay-channel="midtrans"], .pay-choice[data-pay-channel="stripe"] { flex: 1; width: 100%; min-width: 0; height: 58px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; }
.pay-choice[data-pay-channel="midtrans"] img { width: 148px; height: 24px; max-width: 100%; object-fit: contain; }
.pay-choice[data-pay-channel="stripe"] img { width: 76px; height: 32px; max-width: 100%; object-fit: contain; }
.pay-choice[data-pay-channel="stripe"] span { display: inline; color: var(--text); font-weight: 600; }
.stripe-modal { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px 28px 28px; }
.stripe-modal h2 { margin: 0 32px 22px 0; font-size: 20px; }
.stripe-modal .payment-summary { margin-bottom: 22px; }
.stripe-modal .payment-summary dd { text-align: right; }
.stripe-modal .payment-submit { margin-top: 22px; }
.payment-error { color: #ffaaaa; font-size: 14px; margin: 0 0 16px; }
.stripe-modal .payment-error { margin-top: 16px; }
.payment-submit { width: 100%; }
.payment-submit.is-loading { position: relative; color: transparent; }
.payment-submit.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -10px 0 0 -10px; border: 2px solid rgba(16,28,52,.3); border-top-color: #101c34; border-radius: 50%; animation: river-spin .7s linear infinite; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 38px; transform: translateX(-50%); padding: 12px 22px; border-radius: 24px; color: #101c34; background: var(--vip-gradient); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
@keyframes river-spin { to { transform: rotate(360deg); } }

/* Legal and support pages inherited from the existing business layer */
.doc-page, .support-page, .sp-wrap { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 68px 0 90px; }
.doc-heading { margin-bottom: 42px; }
.doc-heading h1, .support-wrap > h1, .sp-title { margin: 0; font-size: 42px; }
.doc-heading p { color: var(--muted); }
.doc-body { color: rgba(255,255,255,.7); }
.doc-body h2 { margin: 38px 0 12px; color: var(--text); font-size: 20px; }
.doc-body p, .doc-body li { line-height: 1.9; }
.doc-body a { color: var(--blue); }
.doc-body .steps { display: flex; align-items: center; gap: 20px; }
.doc-body .phone-step { width: 28%; }
.doc-body .arrow { width: 36px; }
.support-section, .sp-section { margin-top: 40px; }
.support-faq-grid, .sp-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.support-faq-card, .sp-faq-card, .sp-contact-card { padding: 24px; border-radius: 20px; background: var(--surface); }
.support-form, .sp-form { display: grid; gap: 14px; }
.support-form-row, .sp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-form input, .support-form textarea, .sp-form input, .sp-form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.06); }
.support-form textarea, .sp-form textarea { min-height: 140px; resize: vertical; }
.support-form button, .sp-submit-btn { min-width: 160px; height: 48px; border: 0; border-radius: 24px; background: var(--vip-gradient); color: #101c34; }

/* Support follows the reference page's layout, using RiverVPN colors. */
.sp-wrap { padding-top: 36px; padding-bottom: 48px; }
.sp-title { margin: 0 0 24px; font-size: 36px; line-height: 1.1; }
.sp-section { margin-top: 30px; }
.sp-title + .sp-section { margin-top: 0; }
.sp-section-heading { margin: 0 0 14px; font-size: 18px; line-height: 1.35; }
.sp-faq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-faq-card { padding: 16px 20px 18px; border-radius: 15px; }
.sp-faq-q { margin: 0; font-size: 14px; line-height: 1.5; }
.sp-faq-divider { margin: 10px 0; border: 0; border-top: 1px solid var(--line); }
.sp-faq-a { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sp-contact-desc, .sp-contact-sub { margin: 0 0 6px; font-size: 15px; line-height: 1.7; }
.sp-contact-sub { margin-bottom: 32px; }
.sp-email-link { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.sp-form { gap: 20px; }
.sp-form-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-form-field { min-width: 0; display: grid; gap: 6px; }
.sp-form-field label { color: var(--muted); font-size: 14px; line-height: 30px; }
.sp-form input, .sp-form textarea { min-width: 0; padding: 8px 14px; border-radius: 10px; font-size: 15px; }
.sp-form input { height: 40px; }
.sp-form textarea { min-height: 90px; line-height: 24px; }
.sp-form input:focus-visible, .sp-form textarea:focus-visible, .sp-submit-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sp-form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.sp-form .sp-submit-btn { height: 44px; padding: 0 48px; border-radius: 100px; }
.sp-submit-btn:hover { filter: brightness(1.08); }
.sp-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.sp-success { padding: 48px 24px; text-align: center; border-radius: 15px; background: var(--surface); }
.sp-success-icon { width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--vip-gradient); color: var(--bg); font-size: 24px; }
.sp-success h3 { margin: 0 0 12px; font-size: 24px; }
.sp-success p { margin: 0; color: var(--muted); line-height: 1.7; }

@media (min-width: 768px) and (max-width: 1023px) {
    .sp-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .site-header { height: 124px; background: linear-gradient(180deg, var(--bg) 58%, rgba(40,51,72,.7) 100%); }
    .header-inner { width: 100%; height: 60px; padding: 0 18px; }
    .brand { width: 124px; flex-basis: 124px; }
    .brand img { width: 124px; height: 28px; }
    .header-actions { gap: 10px; }
    .language-trigger { width: 35px; }
    .outline-pill { min-width: 56px; height: 32px; padding: 0 12px; font-size: 13px; }
    .site-nav { top: 60px; left: 0; width: 100%; height: 64px; transform: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
    .site-nav > a, .download-nav > a { height: 64px; justify-content: center; font-size: 16px; }
    .download-nav > a i { display: none; }
    .download-menu { display: none; }
    .language-list { position: fixed; top: 52px; right: 50px; }
    .avatar, .avatar img { width: 40px; height: 40px; }
    .avatar .avatar-image { width: 40px; height: 40px; }
    .avatar .avatar-badge { width: 25px; height: 12px; }
    .user-card { position: fixed; top: 52px; right: 18px; }

    .home-hero { height: 730px; }
    .hero-art img { width: 100%; height: 730px; object-fit: cover; }
    .hero-copy { width: 100%; padding: 22px 24px 0; text-align: center; }
    .hero-copy h1 { width: 100%; font-size: clamp(32px, 10.7vw, 40px); line-height: 1.35; }
    .hero-copy p { width: 100%; margin: 12px 0 20px; font-size: 16px; line-height: 1.8; }
    .desktop-cta { display: none; }
    .mobile-cta { display: flex; width: 200px; min-width: 0; height: 56px; margin: 0 auto; font-size: 15px; }
    .mobile-cta img { width: 32px; height: 32px; }
    .experience-section { width: 100%; padding: 54px 24px 48px; }
    .section-title h1, .section-title h2 { font-size: 30px; }
    .section-title p { margin-top: 12px; font-size: 14px; white-space: pre-line; }
    .experience-grid { margin-top: 36px; grid-template-columns: 1fr; gap: 16px; }
    .experience-grid article { min-height: 221px; padding: 28px 24px; }
    .experience-grid h3 { margin-top: 18px; font-size: 16px; }
    .experience-grid p { font-size: 13px; line-height: 1.8; }
    .platform-section { display: none; }

    .pricing-page { width: 100%; min-height: 808px; padding: 30px 0 51px; overflow: hidden; }
    .pricing-heading, .tier-switch, .benefit-section { width: calc(100% - 48px); }
    .pricing-heading { margin: 0 auto; }
    .pricing-heading h1 { font-size: 32px; }
    .pricing-heading::before,
    .pricing-page[data-tier="2"] .pricing-heading::before { right: auto; left: 4px; width: 28px; height: 28px; background-image: url("/static/img/rivervpn/mobile-star-left.png"); }
    .pricing-heading::after,
    .pricing-page[data-tier="2"] .pricing-heading::after { left: auto; right: -5px; width: 40px; height: 25px; background-image: url("/static/img/rivervpn/mobile-star-right.png"); }
    .tier-switch { height: 38px; margin: 22px auto 20px; }
    .tier-switch button { font-size: 20px; }
    .plan-grid { width: 100%; padding: 0 24px 8px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 24px; scrollbar-width: none; }
    .plan-grid::-webkit-scrollbar { display: none; }
    .plan-card { flex: 0 0 180px; height: 104px; padding: 17px 18px; scroll-snap-align: start; }
    .plan-card h2 { font-size: 15px; }
    .plan-card em { display: none; }
    .plan-card strong { margin-top: 14px; font-size: 24px; }
    .plan-card strong small { font-size: 14px; }
    .plan-card button { display: none; }
    .plan-check { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--vip-gradient); }
    .plan-check::after { content: "✓"; display: block; color: #101c34; text-align: center; font-style: normal; line-height: 22px; }
    .plan-card:not(.selected) .plan-check { display: none; }
    .mobile-buy { width: calc(100% - 48px); height: 48px; margin: 22px auto 0; border: 0; border-radius: 26px; display: block; color: #101c34; background: var(--vip-gradient); font-size: 16px; }
    .pricing-page[data-tier="2"] .mobile-buy { background: var(--pro-gradient); }
    .benefit-section { margin: 49px auto 0; }
    .benefit-section > h2 { margin-bottom: 8px; font-size: 20px; line-height: 30px; }
    .benefit-table { overflow: visible; }
    .benefit-row { grid-template-columns: 1.55fr repeat(3, 1fr); height: 56px; min-height: 56px; }
    .benefit-row > * { padding: 0 4px; font-size: 13px; }
    .benefit-head strong { font-size: 18px; }
    .benefit-row .yes::after { width: 22px; height: 22px; }

    .download-page { min-height: 493px; width: 100%; padding: 30px 24px 38px; }
    .download-page .section-title h1 { font-size: 32px; }
    .download-page .section-title p { margin-top: 12px; font-size: 16px; line-height: 30px; white-space: pre-line; }
    .download-list { margin-top: 29px; grid-template-columns: 1fr; gap: 10px; }
    .download-list a { min-height: 60px; padding: 10px 18px; justify-content: space-between; flex-direction: row; font-size: 18px; }
    .download-list img { width: 40px; height: 40px; }
    .download-list span { order: 2; }

    .site-footer { min-height: 361px; }
    .footer-main { width: 100%; min-height: 361px; padding: 24px 12px 24px; text-align: center; }
    .footer-main dl { grid-template-columns: 1fr; gap: 18px; }
    .footer-main dt { margin-bottom: 6px; font-size: 13px; line-height: 20px; }
    .footer-main dd { font-size: 12px; line-height: 20px; }
    .footer-divider { margin: 22px 12px 14px; }
    .footer-meta { flex-direction: column; gap: 12px; }
    .footer-meta nav { max-width: 100%; padding: 0 12px; gap: 12px; text-align: center; }

    .login-modal { display: none !important; }
    .mobile-login-modal, .logout-modal, .payment-hint-modal, .payment-modal { width: calc(100vw - 64px); max-width: 375px; padding: 30px 24px 24px; }
    .modal-actions { margin-top: 28px; }
    .payment-modal { width: 100%; max-width: none; min-height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
    .payment-modal .modal-close { top: 24px; }
    .payment-modal h2 { text-align: center; font-size: 22px; }
    .payment-methods { flex-direction: column; gap: 10px; }
    .pay-choice { width: 100%; height: 58px; padding: 10px 14px; border: 1px solid var(--line); display: flex; }
    .pay-choice span { display: inline; margin-left: 14px; color: var(--text); }
    .payment-submit { margin-top: auto; }

    .doc-page, .support-page, .sp-wrap { width: 100%; padding: 44px 24px 70px; }
    .doc-heading h1, .support-wrap > h1, .sp-title { font-size: 30px; }
    .doc-body h2 { font-size: 18px; }
    .doc-body p, .doc-body li { font-size: 14px; }
    .doc-body .steps { flex-direction: column; }
    .doc-body .phone-step { width: 100%; max-width: 320px; }
    .doc-body .arrow { transform: rotate(90deg); }
    .support-faq-grid, .sp-faq-grid, .support-form-row, .sp-form-row { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1150px) {
    .site-nav { gap: 28px; }
    .experience-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-copy h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
