/* RAN NEXTRION: three-column layout, original API logic untouched */
body.ran-three-column{background:#060d19!important;color:#f8e3a9}
.ran-three-column>header{padding:8px 2%!important;display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:none!important;min-height:76px;background:linear-gradient(180deg,#102540,#050b18)!important;border-color:#ad7b23!important}
.ran-three-column>header>.max-w-4xl{margin:0!important;max-width:none!important;flex:0 0 auto}
.ran-three-column>header h1{font-size:clamp(21px,2.5vw,42px)!important;text-align:left!important;line-height:1!important;color:#f3c16d!important}
.ran-three-column .ran-hero-subtitle{font-size:10px!important;text-align:left!important;margin:3px 0!important}
.ran-three-column .ran-hero-badges{display:none!important}
.ran-three-column>header nav{display:flex!important;gap:7px!important;flex:1;justify-content:flex-end;min-width:0}
.ran-three-column>header nav .tab-btn{flex:0 1 auto!important;min-width:125px;white-space:nowrap;padding:12px 14px!important;border:1px solid #28466b!important;background:linear-gradient(#173452,#071527)!important;color:#f9e5ba!important;border-radius:7px!important}
.ran-three-column>header nav .tab-btn.active{border-color:#f2c262!important;background:linear-gradient(#f8c85b,#9b5d0d)!important;color:#14100b!important;box-shadow:0 0 16px #e7a82980}
.ran-three-column>header nav .tab-btn span{color:inherit!important}
.ran-three-column .ran-factions{max-width:none!important;width:100%!important;margin:0!important;height:clamp(250px,24vw,395px)!important;overflow:hidden!important;border-radius:0!important;position:relative}
.ran-three-column .ran-factions-art{height:100%!important;min-height:0!important;background-size:cover!important;background-position:center 35%!important}
.ran-three-column .ran-factions-labels{bottom:75px!important}
.ran-three-column .ran-factions-caption{display:none!important}
.ran-hero-topup-title{position:absolute;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(650px,90%);padding:8px 25px;text-align:center;background:linear-gradient(90deg,#07101ff0,#402809f5,#07101ff0);border:2px solid #e7a934;box-shadow:0 0 18px #f9b73d,0 0 28px #113b86;clip-path:polygon(5% 0,95% 0,100% 50%,95% 100%,5% 100%,0 50%)}
.ran-hero-topup-title strong{display:block;font-size:clamp(22px,3vw,46px);line-height:1.05;font-weight:900;color:#ffd46c;text-shadow:0 2px #5b2d03,0 0 12px #ffad29}
.ran-hero-topup-title span{display:block;font-size:clamp(12px,1.3vw,19px);color:#fff2c8}
.ran-three-column>div.max-w-4xl.mx-auto.p-4{max-width:1680px!important;width:100%!important;margin:0 auto!important;padding:16px 18px!important}
.ran-portal-layout{display:grid;grid-template-columns:minmax(225px,0.95fr) minmax(500px,2.35fr) minmax(225px,0.95fr);gap:15px;align-items:stretch}
.ran-portal-panel{min-width:0;border:2px solid #b88638;border-radius:14px;background:linear-gradient(155deg,#102944,#071425 75%);padding:16px;box-shadow:inset 0 0 20px #0a294b,0 0 12px #0b1729}
.ran-package-panel{border-color:#2682df;box-shadow:inset 0 0 25px #0d4d92,0 0 14px #0a4c9a}
.ran-portal-title{font-size:clamp(16px,1.55vw,24px);font-weight:800;color:#f8c65b;text-align:center;border-bottom:1px solid #a47b38;padding:5px 0 15px;margin-bottom:15px;text-shadow:0 0 8px #9e6118}
.ran-player-id{padding:14px 12px;border-bottom:1px solid #29405b;color:#e5ebf5}.ran-player-id strong{color:#ffcf68}
.ran-player-panel .md\:grid-cols-3{display:flex!important;flex-direction:column!important;gap:10px!important;margin:0!important}
.ran-player-panel .md\:grid-cols-3>div{padding:12px!important;background:#0b1b30!important;border:1px solid #2c4966!important;box-shadow:none!important;animation:none!important}
.ran-player-panel .md\:grid-cols-3>div .info-value,.ran-player-panel #user-level{color:#ffce69!important;font-size:22px!important}
.ran-player-panel .md\:grid-cols-3>div p.text-gray-500{color:#b9c7d9!important}
.ran-package-panel>div{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;animation:none!important}
.ran-package-panel>div>h2{display:none!important}
.ran-package-panel label{color:#cbd6e9!important}
.ran-package-panel input{background:#0b1d33!important;border-color:#536785!important;color:#fff!important}
.ran-package-panel #topup-rate-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.ran-package-panel #topup-rate-group>*{min-width:0!important;background:linear-gradient(#142c46,#09182c)!important;border:1px solid #9c793f!important;border-radius:8px!important;color:#f9d582!important;min-height:105px!important;box-shadow:inset 0 -8px 15px #6c3b0a35!important}
.ran-package-panel #topup-rate-group>*:hover{border-color:#ffcb5b!important;box-shadow:0 0 14px #e5a93d70!important}
.ran-package-panel button[type=submit]{background:linear-gradient(#f6c552,#9b5a0c)!important;color:#140e06!important;border:2px solid #ffd57a!important;box-shadow:0 0 14px #d69b2e80!important;font-size:19px!important}
.ran-reward-banner{min-height:125px;position:relative;overflow:hidden;padding:22px 12px;border:2px solid #a16dc9;border-radius:10px;background:radial-gradient(circle at 90% 50%,#7e2894,#1d1644 45%,#10182c);box-shadow:0 0 12px #7c3fc080;margin-bottom:18px}
.ran-reward-banner strong{display:block;color:#ffe394;font-size:21px;font-style:italic;text-shadow:0 0 10px #ffb934}.ran-reward-banner span{display:block;color:#fff}.ran-reward-banner b{position:absolute;right:12px;bottom:0;font-size:75px;color:#d38cff;filter:drop-shadow(0 0 12px #ca73ff)}
.ran-reward-link{display:block;width:100%;padding:15px 10px;margin:11px 0;border:1px solid #6a7180;border-radius:8px;background:linear-gradient(#213b53,#0b1a2d);font-size:16px;font-weight:700;color:#ffda82;text-align:left;cursor:pointer}.ran-reward-link:hover{border-color:#ffc65a;background:#294866}
.ran-portal-footer{display:flex;flex-wrap:wrap;justify-content:space-around;align-items:center;gap:14px;margin-top:18px;padding:22px 14px;border:2px solid #a57633;background:linear-gradient(#152f49,#071321);color:#f5d38c}.ran-portal-footer strong{font-size:20px;color:#ffcc65}
.ran-three-column #login-modal{z-index:9999!important;background:#020712e8!important;opacity:1!important}.ran-three-column #login-modal>div{background:#0c2036!important;border:2px solid #cba05a!important;color:#fff!important;opacity:1!important}.ran-three-column #login-modal input{background:#07182c!important;color:#fff!important;border-color:#9b7844!important}.ran-three-column #login-modal label,.ran-three-column #login-modal p{color:#e9d4a5!important}
@media(max-width:1150px){.ran-portal-layout{grid-template-columns:minmax(180px,1fr) minmax(350px,2fr)}.ran-rewards-panel{grid-column:1/-1}.ran-three-column>header{flex-direction:column}.ran-three-column>header nav{width:100%;justify-content:center}}
@media(max-width:720px){.ran-portal-layout{grid-template-columns:1fr}.ran-rewards-panel{grid-column:auto}.ran-three-column>header nav{flex-wrap:wrap}.ran-three-column>header nav .tab-btn{min-width:42%;flex:1!important}.ran-three-column .ran-factions{height:240px!important}.ran-package-panel #topup-rate-group{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ran-portal-footer{font-size:13px}}
