/* V40 Team page reference-aligned refresh */
.team-dashboard{background:linear-gradient(145deg,#f3f8ff 0%,#eaf2ff 52%,#f8fbff 100%);color:#082d70}
.team-content{max-width:1420px;padding-top:22px;padding-bottom:120px}
.team-page-title{margin-bottom:16px}
.team-page-title h1{color:#082e75;font-weight:1000}
.team-page-title p{color:#7185a7}
.team-hero-banner{position:relative;isolation:isolate;overflow:hidden;min-height:210px;display:flex;align-items:center;padding:28px 34px;margin:0 0 18px;border-radius:26px;border:2px solid #45c7ff;background:linear-gradient(100deg,rgba(3,20,67,.97) 0%,rgba(3,42,125,.88) 48%,rgba(0,91,210,.48) 100%),url('images/team-banner-bg.jpg') center 46%/cover no-repeat;box-shadow:0 12px 28px rgba(0,77,191,.22)}
.team-hero-banner:after{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 83% 35%,rgba(0,174,255,.25),transparent 32%),linear-gradient(0deg,rgba(0,17,58,.28),transparent 60%)}
.team-hero-copy{max-width:680px;position:relative;z-index:2}
.team-hero-kicker{display:inline-flex;align-items:center;border:1px solid rgba(93,198,255,.65);border-radius:99px;padding:7px 14px;background:linear-gradient(100deg,#087cff,#1239b8);color:#fff;font-size:11px;font-weight:950;letter-spacing:1.3px}
.team-hero-copy h2{font-size:clamp(25px,4vw,40px);line-height:1.12;color:#fff;margin:13px 0 7px;font-weight:1000;letter-spacing:-.6px}
.team-hero-copy p{font-size:13px;line-height:1.65;color:#e1efff;margin:0;max-width:560px}
.team-hero-copy>button{margin-top:15px;border:0;border-radius:13px;background:linear-gradient(100deg,#fff,#e8f4ff);color:#0646b4;font-weight:950;font-size:12px;padding:11px 17px;box-shadow:0 7px 18px #001e5b45}
.team-hero-mark{position:absolute;right:35px;top:50%;transform:translateY(-50%);width:150px;height:150px;display:grid;place-items:center;border-radius:50%;border:2px solid #56cfff;background:radial-gradient(circle at 35% 30%,#1d91ff,#061d80 72%);box-shadow:0 0 0 10px #4dbdff20,0 0 35px #00aaff8c;color:#fff;font-size:74px;font-weight:1000}
.team-hero-mark span{position:absolute;bottom:22px;font-size:11px;letter-spacing:3px}
.team-stats-grid{gap:12px;margin-bottom:17px}
.team-stat-card{border:1px solid #bcd7ff;border-radius:20px;background:linear-gradient(145deg,#fff 0%,#eaf3ff 100%);box-shadow:0 7px 17px rgba(17,76,164,.12);padding:15px 9px 13px}
.team-stat-icon{width:44px;height:44px;font-size:22px;box-shadow:inset 0 1px 0 #fff}
.team-stat-card small{font-size:12px;color:#173e86}
.team-stat-card strong{font-size:25px;color:#063da5}
.team-invite-card{display:block;padding:16px 18px;margin-bottom:17px;border:1px solid #c7dcfa;border-radius:20px;background:linear-gradient(135deg,#fff,#f0f6ff);box-shadow:0 7px 20px rgba(19,66,137,.09);color:#143a7a}
.team-invite-card:before{background:#287bff12}
.team-invite-label{color:#31527e;font-size:13px}
.team-invite-input{background:#edf4ff;border-color:#d4e2f5}
.team-invite-input>span{color:#627999}
.team-invite-input button{background:linear-gradient(120deg,#0759d9,#087de9);color:#fff}
.team-qr-btn{background:#082d69;color:#fff;border-color:#2f75c8;padding:10px 15px;font-size:12px}
.team-panel{border:1px solid #bcd7f5;border-radius:22px;background:linear-gradient(145deg,#fff 0%,#f2f7ff 100%);box-shadow:0 8px 22px rgba(15,69,147,.1);padding:20px 21px}
.team-panel-head h2{font-size:22px;color:#082e75}
.team-section-icon{width:42px;height:42px;font-size:22px;background:linear-gradient(135deg,#14b9ff,#0754e9);color:#fff;box-shadow:0 4px 12px #0877df55}
.team-admin-hint{color:#124cbd;background:#eef6ff;border-color:#a9ceff;font-size:11px}
.team-rates-grid{grid-template-columns:1fr;gap:9px}
.team-rate{position:relative;display:grid;grid-template-columns:78px minmax(0,1fr) 36px;align-items:center;gap:12px;padding:11px 13px;border:1px solid #d5e4ff;border-radius:19px;background:linear-gradient(100deg,#e9f4ff,#fff 55%,#eef5ff);box-shadow:0 5px 12px #1a5bb414}
.team-rate.level-2{background:linear-gradient(100deg,#e7fff4,#fff 55%,#effff7);border-color:#c8efdd}
.team-rate.level-3{background:linear-gradient(100deg,#f4eaff,#fff 55%,#f8f1ff);border-color:#e0d0ff}
.team-rate-icon{width:64px;height:64px;border-radius:15px;font-size:24px;background:linear-gradient(145deg,#0b7dff,#082b9b);color:#fff;box-shadow:inset 0 0 0 3px #ffffff70,0 4px 10px #124db044}
.team-rate.level-2 .team-rate-icon{background:linear-gradient(145deg,#20ce86,#087743);color:#fff}
.team-rate.level-3 .team-rate-icon{background:linear-gradient(145deg,#a34bff,#4b13a5);color:#fff}
.team-rate>div:nth-child(2){min-width:0}
.team-rate small{font-size:12px;color:#254e92}
.team-rate strong{font-size:27px;line-height:1.1;margin:2px 0;color:#064bc9}
.team-rate.level-2 strong{color:#087e4a}.team-rate.level-3 strong{color:#7132c7}
.team-rate em{font-size:11px;color:#657b9f;margin:3px 0}
.team-rate small:last-child{font-size:11px;color:#173c80;font-weight:850}
.team-rate:after{content:"›";display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d7ebff;color:#0645bd;font-size:29px;font-weight:700}
.team-members-panel{padding-bottom:20px}
.team-member-total{border:1px solid #b5d2ff;background:#eef6ff;color:#0844ae;border-radius:99px;padding:7px 13px;font-size:12px}
.team-level-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:6px;border:1px solid #d2e2f8;border-radius:17px;background:#eaf2ff}
.team-level-tabs button{border-radius:13px;padding:13px 8px;font-size:13px;color:#16468e;background:linear-gradient(145deg,#e0ebfc,#f6f9ff)}
.team-level-tabs button.on{color:#fff;background:linear-gradient(110deg,#087dff,#0638c7);box-shadow:0 6px 15px #0758d955}
.team-empty{min-height:190px;border:1px solid #d5e4fa;border-radius:22px;background:radial-gradient(circle at 50% 20%,#dceaff,#fff 70%);padding:28px 15px}
.team-empty-icon{font-size:48px;color:#4b8be9}
.team-empty b{font-size:17px;color:#092f79}
.team-empty p{font-size:13px;color:#6e83a7}
.team-table th{background:#eaf2ff;color:#315a98}
.team-table td{font-size:12px}
.team-dashboard>.bottom{z-index:80}
@media(max-width:620px){
 .team-content{padding:13px 12px calc(125px + env(safe-area-inset-bottom))}
 .team-page-title{margin-bottom:13px}
 .team-page-title h1{font-size:22px}
 .team-page-title p{font-size:10px}
 .team-hero-banner{min-height:190px;padding:20px 18px;border-radius:22px;margin-bottom:13px;background-position:58% center}
 .team-hero-copy{max-width:78%}
 .team-hero-kicker{font-size:8px;letter-spacing:.8px;padding:6px 9px}
 .team-hero-copy h2{font-size:27px;margin:10px 0 5px}
 .team-hero-copy p{font-size:10px;line-height:1.5}
 .team-hero-copy>button{font-size:10px;padding:9px 12px;margin-top:11px}
 .team-hero-mark{right:12px;width:76px;height:76px;font-size:38px;border-width:1px;box-shadow:0 0 0 6px #4dbdff20,0 0 20px #00aaff8c}
 .team-hero-mark span{bottom:10px;font-size:7px;letter-spacing:1px}
 .team-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}
 .team-stat-card{min-height:118px;padding:12px 6px 10px;border-radius:18px}
 .team-stat-icon{width:39px;height:39px;font-size:20px;margin-bottom:7px}
 .team-stat-card small{font-size:10px;line-height:1.35}
 .team-stat-card strong{font-size:22px}
 .team-invite-card{padding:14px;border-radius:17px;margin-bottom:13px}
 .team-invite-label{font-size:11px;margin-bottom:8px}
 .team-invite-input>span{font-size:9px}
 .team-invite-input button{font-size:10px;padding:9px 10px}
 .team-qr-btn{font-size:10px;padding:9px 12px}
 .team-panel{padding:14px 11px;border-radius:18px;margin-bottom:13px}
 .team-panel-head{align-items:center;gap:7px;margin-bottom:12px}
 .team-panel-head h2{font-size:17px}
 .team-section-icon{width:34px;height:34px;font-size:18px}
 .team-admin-hint{font-size:8px;padding:5px 7px;max-width:105px}
 .team-rates-grid{gap:8px}
 .team-rate{grid-template-columns:58px minmax(0,1fr) 26px;gap:9px;padding:9px;border-radius:16px}
 .team-rate-icon{width:52px;height:52px;font-size:20px;border-radius:13px}
 .team-rate small{font-size:10px}
 .team-rate strong{font-size:23px}
 .team-rate em{font-size:9px}
 .team-rate small:last-child{font-size:9px}
 .team-rate:after{width:26px;height:26px;font-size:23px}
 .team-member-total{font-size:10px;padding:6px 9px}
 .team-level-tabs{gap:5px;padding:5px}
 .team-level-tabs button{font-size:10px;padding:11px 4px;border-radius:11px}
 .team-empty{min-height:165px;border-radius:17px;padding:22px 10px}
 .team-empty-icon{font-size:40px}
 .team-empty b{font-size:14px}
 .team-empty p{font-size:10px}
 .team-dashboard>.bottom{position:fixed;left:0;right:0;bottom:0;z-index:100}
}
