/* Matched existing Ruvi components to Need's public stylesheet (2026-09-06).
   Brand colors, supplied artwork, routes and omitted features remain Ruvi's. */
@font-face{font-family:RuviInter;src:url('/fonts/Inter-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:RuviInter;src:url('/fonts/Inter-Semibold.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:RuviInter;src:url('/fonts/Inter-Bold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:RuviInter;src:url('/fonts/Inter-Black.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
body{font-family:RuviInter,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
button,input,.product h1,.product p,.plans-intro h2,.plans-intro p,.tariff-name,.tariff-saving,.tariff-surface small,.referrals-screen,.account-screen,.bottom-nav,.bottom-nav button span{font-family:RuviInter,Arial,sans-serif}
.product h1{font-size:20px;line-height:24px;font-weight:500}
.product p{font-size:17px;line-height:22px;font-weight:400}
.plans-intro h2,.ref-intro h2{font-size:17px;line-height:22px;font-weight:500}
.plans-intro p,.ref-intro p{font-size:15px;line-height:20px;font-weight:400}
.feature-copy strong,.gift-option h3,.gift-empty h3,.subscription-profile-body h3,.account-row,.payment-copy strong{font-size:17px;line-height:22px;font-weight:500}
.feature-copy>span,.gift-option p,.gift-empty p,.payment-copy small,.ref-withdraw-note,.ref-stats span,.ref-balance p{font-size:15px;line-height:20px;font-weight:400}
.card,.plans-intro,.ref-intro,.gift-option,.gift-empty,.ref-level,.ref-stats>div,.ref-history,.ref-rewards,.subscription-profile,.account-card,.countries-card,.payment-methods{border-radius:26px}
.vpn-card{padding:16px}.product{gap:16px}
.tariff-grid{gap:8px;grid-auto-rows:1fr}.tariff-surface{height:100%;padding:14px 16px;border-radius:26px;min-height:124px;transition:.3s ease;transition-property:border-color,box-shadow,background-color}
.telegram-native-back .plans-back,.telegram-native-back .offer-back{display:none}
.account-identity .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.tariff-name{font-size:17px;line-height:22px;font-weight:500}
.tariff-saving{font-size:15px;line-height:20px;font-weight:400;margin:0 0 12px}
.tariff-surface strong{font-size:22px;line-height:28px;font-weight:600;letter-spacing:normal}
.tariff-surface small{font-size:14px;line-height:18px;font-weight:400}
.ribbon{width:68px;height:68px;top:-1.5px;right:-1.5px}
.plans-caption{padding:10px 16px;margin:22px 0 0}.plans-caption h3{font-size:17px;line-height:22px;font-weight:600}
button.profile,.ref-top button.profile{gap:8px;padding:2px 12px 2px 2px;border:0;border-radius:19px;font-size:15px;line-height:20px}
button.profile .avatar,.ref-top button.profile .avatar{width:34px;min-width:34px;height:34px}
button.profile .telegram-name{font-weight:500}
.primary,.offer-buy{min-height:52px;padding:14px;border-radius:30px;font-size:17px;line-height:22px;font-weight:600;transition:transform .3s ease,background-color .3s ease,box-shadow .3s ease}
.gift-action{min-height:28px;padding:4px 12px;border-radius:14px;font-size:17px;line-height:20px;font-weight:500}
.account-row,.ref-history button,.payment-method,.feature,.countries-toggle{transition:background-color .3s ease,box-shadow .3s ease}
.account-card>.account-row{min-height:56px;padding-top:0;padding-bottom:0}
.payment-method{min-height:66px}.countries-panel li{min-height:56px}
.bottom-nav{height:62px;min-height:62px;border-radius:31px;border:1px solid #ddd5ff38;background:linear-gradient(135deg,#b4a3ff1c,#ffffff05 48%,#7f6eea14),#202026b8;-webkit-backdrop-filter:blur(20px) saturate(150%);backdrop-filter:blur(20px) saturate(150%);box-shadow:0 8px 28px #00000030,inset 0 1px 0 #ffffff29,inset 0 -1px 0 #ffffff0a}
.bottom-nav button{height:60px;min-height:60px;gap:1px;padding:6px 8px}
.bottom-nav svg,.bottom-nav button:last-child svg{width:28px;height:28px}
.bottom-nav::before{border-radius:31px;background:linear-gradient(135deg,#ffffff26,#bbaaff18 50%,#7f6eea24);box-shadow:inset 0 1px 0 #ffffff52,inset 0 0 0 1px #e1d9ff26,0 2px 8px #00000018;transition:transform .3s ease,opacity .3s ease}
.bottom-nav button span{font-size:11px;line-height:12px;font-weight:500}
.account-theme-options{border:1px solid #ddd5ff38;background:linear-gradient(135deg,#b4a3ff1c,#ffffff05 48%,#7f6eea14),#202026b8;-webkit-backdrop-filter:blur(20px) saturate(150%);backdrop-filter:blur(20px) saturate(150%);box-shadow:0 3px 12px #00000018,inset 0 1px 0 #ffffff29}
.account-theme-options button{--theme-pill-shadow:none;box-shadow:var(--theme-pill-shadow);transition:background-color .3s ease,box-shadow .3s ease}
.account-theme-options button.selected{background:linear-gradient(135deg,#ffffff26,#bbaaff18 50%,#7f6eea24);--theme-pill-shadow:inset 0 1px 0 #ffffff52,inset 0 0 0 1px #e1d9ff26,0 2px 8px #00000018}
[data-theme="light"] .account-theme-options{background:linear-gradient(135deg,#ffffff80,#ddd5ff26),#f4f1faad;border-color:#ffffffb3;box-shadow:0 3px 12px #34285412,inset 0 1px 0 #ffffff}
[data-theme="light"] .account-theme-options button.selected{background:linear-gradient(135deg,#ffffffa6,#b9aaff40);--theme-pill-shadow:inset 0 1px 0 #ffffff,inset 0 0 0 1px #ffffff99,0 2px 8px #473b7314;box-shadow:var(--theme-pill-shadow)}
@media(hover:hover) and (pointer:fine){.account-theme-options button:not(:disabled):hover,[data-theme="light"] .account-theme-options button:not(:disabled):hover{filter:none;box-shadow:var(--theme-pill-shadow)}}
@media(prefers-reduced-motion:reduce){.account-theme-options button{transition:none}}
[data-theme="light"] .bottom-nav{background:linear-gradient(135deg,#ffffff80,#ddd5ff26),#f4f1faad;border-color:#ffffffb3;box-shadow:0 8px 28px #3428541a,inset 0 1px 0 #ffffff,inset 0 -1px 0 #7f6eea14}
[data-theme="light"] .bottom-nav::before{background:linear-gradient(135deg,#ffffffa6,#b9aaff40);box-shadow:inset 0 1px 0 #ffffff,inset 0 0 0 1px #ffffff99,0 2px 8px #473b7314}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.bottom-nav{background:#2c2937}[data-theme="light"] .bottom-nav{background:#ece8f7}}
@keyframes ruvi-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
.pulse-ring,.logo-orbit .round-icon{animation:ruvi-pulse 1s linear infinite}
.pulse-outer{animation-delay:.2s;background:rgb(127 110 234 / 15%)}
.pulse-middle{animation-delay:.1s;background:rgb(127 110 234 / 40%)}
.logo-orbit .round-icon{animation-delay:0s}
.countries-panel{transition:grid-template-rows .3s ease,opacity .3s ease}
.countries-arrow{transition:transform .3s ease}
#payment-sheet{border-radius:26px 26px 0 0;max-height:95dvh;transition:transform .3s ease,opacity .3s ease}
#payment-sheet::backdrop{transition:background .3s ease}
#payment-sheet.open::backdrop{background:#0006}
#currency-menu{width:80px}.payment-hero h2{font-size:22px;line-height:28px;font-weight:600}
.payment-hero p{font-size:17px;line-height:22px;font-weight:400}
.offer-content h2{font-size:28px;line-height:35px;font-weight:600;letter-spacing:normal}
.offer-content p{font-size:17px;line-height:22px;font-weight:400}
@media(hover:hover) and (pointer:fine){.primary:not(:disabled):hover,.offer-buy:not(:disabled):hover,.gift-action:not(:disabled):hover{transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){.pulse-ring,.logo-orbit .round-icon{animation:none}button,.tariff-surface,.countries-panel,.countries-arrow,#payment-sheet,#payment-sheet::backdrop,.bottom-nav::before{transition:none}}

@media(hover:hover) and (pointer:fine){
  button.profile:not(:disabled):hover,
  [data-theme="light"] button.profile:not(:disabled):hover{box-shadow:none;filter:none}
}

.plans-continue{position:relative;overflow:hidden;isolation:isolate}
.plans-continue::after{content:"";position:absolute;top:-50%;left:-45%;width:28%;height:200%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);transform:skewX(-20deg);filter:blur(3px);pointer-events:none;animation:continue-shine 2s ease-in-out infinite}
@keyframes continue-shine{0%{left:-45%;opacity:0}5%{opacity:1}80%{left:120%;opacity:1}81%,100%{left:120%;opacity:0}}
@media(prefers-reduced-motion:reduce){.plans-continue::after{animation:none;display:none}}

/* Compact home layout: reserve room for the fixed navigation. */
#main-screen{
  padding-top:max(12px,env(safe-area-inset-top));
  padding-left:16px;
  padding-right:16px;
  padding-bottom:calc(88px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
#main-screen>.profile{margin-bottom:16px}
#home .promo{min-height:86px;padding:12px 16px;margin-bottom:18px}
#home .promo-copy{width:calc(100% - 94px);font-size:14px;line-height:19px}
#home .promo-copy strong{font-size:16px;line-height:21px;font-weight:500}
#home .sale{width:112px;height:112px;right:5px}
#home .vpn-card{padding:14px;margin-bottom:18px}
#home .product{gap:12px;align-items:flex-start;margin-bottom:12px}
#home .product>div:last-child{min-width:0;flex:1}
#home .product .logo-orbit{width:76px;height:76px;margin-top:0}
#home .product h1{font-size:17px;line-height:21px;margin:0 0 3px;font-weight:500}
#home .product p{font-size:14px;line-height:19px;font-weight:400}
#home #open-plans{min-height:48px;padding:12px 14px;font-size:17px;line-height:22px}
#home .servers{margin-top:14px;padding-top:10px}
#home .servers p{font-size:12px;line-height:18px;font-weight:500;margin:4px 0 0}
#home .extras{margin-bottom:0}
#home .feature{gap:12px;padding:12px 14px}
#home .feature .round-icon{width:38px;height:38px}
#home .feature .round-icon svg{width:26px;height:26px}
#home .feature-copy strong{font-size:15px;line-height:20px;font-weight:500;margin-bottom:2px}
#home .feature-copy>span{font-size:14px;line-height:18px}
#home .feature+.feature:before{left:64px;right:14px}

/* Short phone viewports use tighter spacing, without cropping content. */
@media(max-height:700px){
  #main-screen{padding-top:max(8px,env(safe-area-inset-top))}
  #main-screen>.profile{margin-bottom:12px}
  #home .promo{min-height:78px;padding-top:9px;padding-bottom:9px;margin-bottom:14px}
  #home .sale{width:102px;height:102px}
  #home .vpn-card{padding:12px;margin-bottom:14px}
  #home .product{margin-bottom:10px}
  #home .product .logo-orbit{width:68px;height:68px}
  #home .product p{line-height:18px}
  #home .servers{margin-top:10px;padding-top:8px}
  #home .feature{padding-top:10px;padding-bottom:10px}
  #home .feature-copy>span{font-size:13px;line-height:17px}
}
@media(max-width:360px){
  #main-screen{padding-left:12px;padding-right:12px}
  #home .promo-copy strong{font-size:14px;line-height:19px}
  #home .promo-copy{width:calc(100% - 80px)}
  #home .sale{width:96px;height:96px;right:2px}
  #home .product .logo-orbit{width:64px;height:64px}
  #home .product{gap:10px}
  #home .feature{gap:10px}
  #home .feature-copy strong{font-size:14px;line-height:19px}
  #home .feature-copy>span{font-size:13px;line-height:17px}
}
