/* Handball Dynasty 10.3 – Phase 4: Polish */
:root{
  --v10-focus:0 0 0 4px rgba(199,240,0,.24);
  --v10-shadow-float:0 18px 50px rgba(12,23,19,.14);
  --v10-ease:cubic-bezier(.2,.8,.2,1);
}
html{scroll-behavior:smooth}body.hd-v10{overflow-x:hidden}body.hd-v10.is-loading{cursor:progress}
.v10-loadingbar{position:fixed;z-index:9999;top:0;left:0;width:100%;height:3px;pointer-events:none;opacity:0;transition:opacity .16s ease}.v10-loadingbar span{display:block;width:28%;height:100%;background:var(--v10-lime);box-shadow:0 0 18px rgba(199,240,0,.7);transform:translateX(-120%)}body.is-loading .v10-loadingbar{opacity:1}body.is-loading .v10-loadingbar span{animation:v10-load 1.1s infinite var(--v10-ease)}@keyframes v10-load{0%{transform:translateX(-120%)}70%{transform:translateX(320%)}100%{transform:translateX(420%)}}
.skip-link:focus{position:fixed!important;z-index:10000;left:16px;top:12px;width:auto;height:auto;padding:10px 14px;clip:auto;background:var(--v10-lime);color:var(--v10-forest);border-radius:9px;font-weight:900}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:0;box-shadow:var(--v10-focus)!important}
button,a,input,select,textarea{transition:border-color .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
button:not(:disabled):active,.primary-button:active,.secondary-button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.58}.is-loading{position:relative}.is-loading:after{display:inline-block;width:13px;height:13px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;content:"";animation:v10-spin .7s linear infinite}@keyframes v10-spin{to{transform:rotate(1turn)}}
.v10-workspace>section,.v10-workspace>nav,.v10-workspace>.card,.v10-workspace>.flash{animation:v10-enter .34s both var(--v10-ease)}.v10-workspace>*:nth-child(3){animation-delay:.025s}.v10-workspace>*:nth-child(4){animation-delay:.05s}@keyframes v10-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.card,.page-card{overflow:hidden}.card-head,.sectionhead{gap:16px}.card-head>a,.sectionhead>a{font-size:12px;font-weight:850;color:var(--v10-forest)}
.empty-state{position:relative;display:grid!important;place-items:center;min-height:150px;padding:30px!important;border:1px dashed #cfd7d0!important;border-radius:14px!important;background:linear-gradient(145deg,#fafbfa,#f3f6f2)!important;color:var(--v10-muted)!important;text-align:center}.empty-state:before{display:grid;place-items:center;width:44px;height:44px;margin-bottom:9px;border-radius:13px;background:#e9eee9;color:#748077;content:"—";font-size:20px;font-weight:900}.empty-state b{color:var(--v10-text);font-size:16px}.empty-state span{display:block;margin-top:5px}
.flash{position:fixed!important;z-index:500;right:24px;top:88px;width:min(420px,calc(100vw - 32px))!important;margin:0!important;padding:15px 18px 15px 46px!important;border:1px solid #dce8a5!important;border-radius:14px!important;background:#f8fcdc!important;color:#334000!important;box-shadow:var(--v10-shadow-float)!important}.flash:before{position:absolute;left:16px;top:15px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#728500;color:#fff;content:"✓";font-size:12px;font-weight:900}
.hd-toast-stack{position:fixed;z-index:600;right:22px;bottom:22px;display:grid;gap:10px;width:min(380px,calc(100vw - 28px))}.hd-toast{display:grid;grid-template-columns:10px 1fr;gap:12px;padding:14px 16px;border:1px solid var(--v10-line);border-radius:13px;background:#fff;box-shadow:var(--v10-shadow-float);animation:v10-toast-in .24s both}.hd-toast.is-leaving{animation:v10-toast-out .22s both}.hd-status-dot{width:9px;height:9px;margin-top:5px;border-radius:50%;background:#6c7881}.hd-toast--success .hd-status-dot{background:#58a664}.hd-toast--danger .hd-status-dot{background:#c75d5d}.hd-toast--warning .hd-status-dot{background:#d89c3f}@keyframes v10-toast-in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}@keyframes v10-toast-out{to{opacity:0;transform:translateX(18px)}}
.v10-tooltip{position:fixed;z-index:1000;max-width:260px;padding:7px 9px;border-radius:7px;background:#0c1713;color:#fff;font-size:11px;line-height:1.4;box-shadow:0 8px 22px rgba(0,0,0,.22);pointer-events:none;opacity:0;transform:translateY(4px);transition:.12s ease}.v10-tooltip.is-visible{opacity:1;transform:none}
.tablewrap,.modern-table-wrap,.league42-table-shell{scrollbar-width:thin;scrollbar-color:#bec8c0 transparent}.tablewrap:focus-within,.modern-table-wrap:focus-within{box-shadow:var(--v10-focus)}table tbody tr{transition:background-color .15s ease}table tbody tr:last-child td{border-bottom:0!important}.plus{color:#347b48!important;font-weight:850}.minus{color:#a74747!important;font-weight:850}

/* World & News */
.hd-v10.world .v10-pagehero{--v10-hero-image:url('../img/v10/online-world.webp')!important}.world-hero{position:relative;min-height:270px;overflow:hidden;padding:30px!important;border:0!important;border-radius:20px!important;background:#14251f url('../img/v10/online-world.webp') center/cover!important;color:#fff!important;isolation:isolate}.world-hero:before{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,18,14,.96),rgba(7,18,14,.5));content:"";z-index:-1}.world-hero h2{font-size:clamp(30px,4vw,44px)!important;color:#fff}.world-hero p{max-width:700px;color:#d0ddd6!important}.world-hero-stats span{border:1px solid rgba(255,255,255,.12)!important;background:rgba(7,18,14,.66)!important;backdrop-filter:blur(10px)}.world-layout{gap:16px!important}.world-event{border-radius:16px!important;transition:.2s var(--v10-ease)}.world-event:hover{transform:translateY(-2px);box-shadow:var(--v10-shadow)!important}.world-event.high,.world-event.critical{border-left:4px solid #d59639!important}.world-event.resolved{opacity:.72}.world-category{background:var(--v10-soft)!important;color:var(--v10-forest)!important}.world-options{display:flex!important;flex-wrap:wrap;gap:8px!important}.world-options button{min-height:40px;padding:9px 13px!important;border:1px solid var(--v10-line)!important;border-radius:9px!important;background:#fff!important;color:var(--v10-text)!important;font-weight:800!important}.world-options button:hover{border-color:var(--v10-lime)!important;background:#f8fcdc!important}.world-outcome{border-radius:11px!important;background:#f1f5ed!important}.world-meters i{background:#edf0ed!important}.world-meters i b{background:linear-gradient(90deg,#799000,var(--v10-lime))!important}

/* Online world */
.hd-v10.online .v10-pagehero{--v10-hero-image:url('../img/v10/online-world.webp')!important}.online-hero{position:relative;min-height:250px;overflow:hidden;padding:28px!important;border-radius:20px!important;background:#14251f url('../img/v10/online-world.webp') center/cover!important;color:#fff!important;isolation:isolate}.online-hero:before{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,18,14,.96),rgba(7,18,14,.43));content:"";z-index:-1}.online-hero h1,.online-hero p{color:#fff!important}.online-hero aside{border:1px solid rgba(255,255,255,.13)!important;background:rgba(7,18,14,.7)!important;backdrop-filter:blur(10px)}.online-hero aside b{color:var(--v10-lime)!important}.online-tabs{position:sticky;z-index:7;top:178px;border-color:var(--v10-line)!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px)}.online-tabs a.active{background:var(--v10-forest)!important}.online-feed>a,.manager-directory article,.online-live-list article,.rival-list>article{border-color:var(--v10-line)!important;background:#fff!important}.online-feed>a:hover,.manager-directory article:hover{border-color:#c3cec5!important;box-shadow:var(--v10-shadow)!important}.feed-dot.match{background:#5b9a62!important}.feed-dot.transfer{background:#819500!important}.status-pill.success{background:#e8f4dd!important;color:#3f6c37!important}.profile-avatar{background:var(--v10-forest)!important;color:var(--v10-lime)!important}

/* Friendly matches */
.hd-v10.friendly .v10-pagehero{--v10-hero-image:url('../img/v10/matchday-arena.webp')!important}.friendly-hero{position:relative;min-height:250px;overflow:hidden;padding:28px!important;border-radius:20px!important;background:#14251f url('../img/v10/matchday-arena.webp') center/cover!important;color:#fff!important;isolation:isolate}.friendly-hero:before{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,18,14,.95),rgba(7,18,14,.42));content:"";z-index:-1}.friendly-hero h1,.friendly-hero p{color:#fff!important}.friendly-hero aside{border:1px solid rgba(255,255,255,.13)!important;background:rgba(7,18,14,.68)!important;color:#fff!important;backdrop-filter:blur(10px)}.friendly-rules span{border:1px solid #e5eae5!important;background:#f7f9f6!important}.friendly-kpis span{background:#fff}.friendly-form select{min-height:46px}

/* Finances */
.hd-v10.finances .v10-pagehero{--v10-hero-image:url('../img/v10/business-suite.webp')!important}.hd-v10.finances .page-card{position:relative;border-radius:18px!important}.hd-v10.finances .sectionhead{padding:6px 4px 22px!important}.hd-v10.finances .section-total{min-width:220px;padding:15px 17px;border-radius:13px;background:var(--v10-forest);color:#fff}.hd-v10.finances .section-total small{color:#b8c7bf}.hd-v10.finances .section-total b{font-size:24px}.hd-v10.finances .tablewrap{border:1px solid var(--v10-line);border-radius:14px}.hd-v10.finances tbody td:nth-child(3),.hd-v10.finances tbody td:nth-child(4){font-variant-numeric:tabular-nums}

/* Admin */
.hd-v10.admin .v10-pagehero{--v10-hero-image:url('../img/v10/scouting-room.webp')!important}.admin-club-grid{gap:10px!important}.admin-club-card{border:1px solid var(--v10-line)!important;border-radius:13px!important;background:#fff!important}.admin-club-card:hover{border-color:#c4cec6!important;box-shadow:var(--v10-shadow)!important}.admin-club-card button{border-radius:9px!important;background:var(--v10-forest)!important;color:#fff!important}

/* Authentication and system pages */
body.login,body.register,body.chooseclub,body.error{min-height:100vh;background:#0c1713 url('../img/v10/login-arena.webp') center/cover fixed!important}.auth-shell:before,body.login:before,body.register:before,body.chooseclub:before,body.error:before{position:fixed;inset:0;background:linear-gradient(90deg,rgba(6,17,13,.97),rgba(6,17,13,.72) 50%,rgba(6,17,13,.28));content:"";pointer-events:none}.auth-panel,.auth-panel.standalone{position:relative;z-index:1;border:1px solid rgba(255,255,255,.13)!important;border-radius:22px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 28px 80px rgba(0,0,0,.35)!important;backdrop-filter:blur(18px)}.auth-panel.standalone{width:min(560px,calc(100vw - 32px));margin:10vh auto;padding:34px}.auth-panel.standalone img{width:64px}.auth-panel .alert{border-radius:11px!important;background:#fff0f0!important;color:#8d3737!important}.text-link{color:var(--v10-forest)!important;font-weight:850}

/* Mobile polish */
.v10-more{border:1px solid var(--v10-line)!important;border-radius:16px!important;background:rgba(255,255,255,.98)!important;box-shadow:var(--v10-shadow-float)!important;backdrop-filter:blur(18px)}.v10-more a{border-radius:11px}.v10-more a:hover{background:var(--v10-soft)}
@media(max-width:900px){.online-tabs{position:static}.flash{top:74px;right:14px}.v10-pagehero{min-height:190px}.world-hero,.online-hero,.friendly-hero{min-height:300px;align-items:flex-start!important;flex-direction:column!important}.world-hero-stats{width:100%;grid-template-columns:repeat(3,1fr)!important}.hd-v10.finances .sectionhead{align-items:flex-start;flex-direction:column}.hd-v10.finances .section-total{min-width:0;width:100%}}
@media(max-width:600px){.v10-workspace{padding-bottom:90px!important}.v10-pagehero{min-height:165px!important}.v10-pagehero-content h1{font-size:27px!important}.v10-pagehero-content p{display:none}.world-hero-stats{grid-template-columns:1fr 1fr!important}.world-hero-stats span:last-child{grid-column:1/-1}.online-live-list article{padding:12px!important}.flash{top:68px}.hd-toast-stack{right:14px;bottom:82px}.auth-panel.standalone{padding:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.v10-workspace>*{animation:none!important}}
