/* Driblo — stili bazë (pa build, punon direkt) */
:root {
    /* Ngjyra kryesore e temës (emri --green mbetet për arsye historike;
       temat më poshtë e ndryshojnë). */
    --green: #146c2e;
    --green-dark: #0e4f21;
    --green-soft: #e7f3ea;
    --red: #c62828;
    --ink: #1d2a1f;
    --muted: #5b6b5e;
    --line: #dfe6e0;
    --bg: #f6f8f5;
    --white: #ffffff;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

a { color: var(--green); }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 32px; padding-bottom: 48px; min-height: 70vh; }

/* Shiriti i sipërm */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-ball { font-size: 22px; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { text-decoration: none; color: var(--ink); }
.inline { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.lang { display: flex; gap: 4px; border-left: 1px solid var(--line); padding-left: 12px; }
.lang a { font-size: 13px; padding: 2px 6px; border-radius: 6px; color: var(--muted); }
.lang a.active { background: var(--green-soft); color: var(--green); font-weight: 700; }

/* Butonat */
.btn {
    display: inline-block; background: var(--green); color: #fff !important;
    border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-deep, var(--green-dark)); }
.btn-small { padding: 6px 14px; }
.btn-full { width: 100%; margin-top: 16px; }
.btn-outline { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn-outline:hover { background: var(--bg); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #a11f1f; }

/* Faqja kryesore */
.hero { padding: 40px 0 32px; max-width: 720px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 16px; }
.eyebrow { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.safety { margin-top: 24px; color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.big { font-size: 22px; font-weight: 700; margin: 4px 0; }

/* Formularët */
.form-card {
    max-width: 480px; margin: 0 auto; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.form-card h1 { font-size: 26px; margin-top: 0; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
    font: inherit; background: var(--white);
}
input:focus, select:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0; }
.error { color: var(--red); font-size: 14px; margin: 4px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 8px; }

.parent-box { border: 1px dashed var(--green); background: var(--green-soft); border-radius: 10px; padding: 8px 16px 16px; margin: 16px 0 4px; }
.parent-box legend { font-weight: 700; color: var(--green); padding: 0 6px; }

.child-box { background: var(--bg); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.child-box p { margin: 2px 0; }
.perm-list { padding-left: 20px; }
.danger-zone { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 8px; }

/* Njoftimet */
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.alert-success { background: var(--green-soft); color: var(--green-dark); }
.alert-warning { background: #fff4e0; color: #7a4b00; }

/* Faqet ligjore */
.legal { max-width: 760px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin: 0 auto; }
.legal h2 { font-size: 19px; margin-top: 28px; }

/* Fundi i faqes */
.footer { border-top: 1px solid var(--line); background: var(--white); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 18px; }

@media (max-width: 600px) {
    .hero h1 { font-size: 30px; }
    .nav { gap: 10px; font-size: 14px; }
    .brand span:last-child { display: none; }
}

/* --- Hapi 2: profilet --- */
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
input[type=number] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input[type=color] { width: 100%; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.form-wide { max-width: 680px; }
.grid-2.tight { gap: 0 16px; margin-bottom: 0; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.head-row h1, .head-row h3 { margin: 0; }
.card { margin-bottom: 16px; }
.card-link { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--green); transform: translateY(-2px); }
.badge { display: inline-block; background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.btn-light { background: var(--white); color: var(--ink) !important; }
.btn-light:hover { background: var(--bg); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.filters select { width: auto; }
.pagination { display: flex; gap: 16px; justify-content: center; margin: 20px 0; }

/* Karta e lojtarit */
.player-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 720px; margin: 0 auto; }
.player-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.player-card-top h1 { margin: 0; }
.player-pos { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--green); color: #fff; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.player-pos.coach { background: var(--solid); font-size: 28px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.facts div { background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Klubi */
.crest { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; color: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 0 0 1px var(--line); }
.club-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, var(--c1) 0%, var(--c1) 70%, var(--c2) 70%); color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.club-hero h1 { margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.club-hero p { margin: 4px 0 0; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.club-hero > a { margin-left: auto; }
.crest-lg { width: 72px; height: 72px; font-size: 30px; background: var(--c1); border-color: var(--c2); }

/* Fusha */
.mini-pitch { height: 70px; border-radius: 8px; background: repeating-linear-gradient(90deg, #2e8b45 0 18px, #2a8040 18px 36px); display: grid; place-items: center; color: #fff; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.pitch-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 180px; border-radius: var(--radius); padding: 24px; margin-bottom: 16px; color: #fff;
    background: repeating-linear-gradient(90deg, #2e8b45 0 40px, #2a8040 40px 80px); }
.pitch-lines { position: absolute; inset: 14px; border: 2px solid rgba(255,255,255,.7); border-radius: 4px; }
.pitch-lines::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid rgba(255,255,255,.7); }
.center-circle { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.7); border-radius: 50%; }
.pitch-hero-text { position: relative; background: rgba(0,0,0,.35); border-radius: 10px; padding: 10px 16px; }
.pitch-hero-text h1 { margin: 0; }
.pitch-hero-text p { margin: 4px 0 0; }
.pitch-hero > a { position: relative; margin-left: auto; }
.amenities { list-style: none; padding: 0; }
.amenities li { padding: 4px 0; }

@media (max-width: 600px) {
    .nav a:not(.btn) { font-size: 13px; }
}

/* --- Hapi 3: admini dhe verifikimi --- */
.topbar-inner { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.nav-admin { background: var(--solid); color: #fff !important; border-radius: 6px; padding: 2px 10px; font-size: 14px; }
.badge-warn { background: #fff4e0; color: #7a4b00; }
.verified { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1d9bf0; color: #fff; font-size: 14px; vertical-align: middle; }
.club-hero form, .pitch-hero form { margin: 0; }
.hero-form { position: relative; }
.stats .card { margin-bottom: 0; text-align: center; }
.stats .big { font-size: 30px; margin: 0; }
.stats { margin-bottom: 16px; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-actions form { margin: 0; }
.search-input { width: auto !important; min-width: 240px; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--bg); font-weight: 600; }

/* --- Hapi 5: Fusha Virtuale --- */
.tb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.tb-side { position: sticky; top: 16px; }
.tb-side input[type=text][readonly] { font-size: 13px; background: var(--bg); }
.tb-view { max-width: 560px; margin: 0 auto; }
.tb-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.tb-inline { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 14px; }
.tb-inline select { width: auto; padding: 6px 8px; }
.tb-check { font-weight: 400; }
.tb-btn { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.tb-btn:hover { border-color: var(--green); }
.tb-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.tb-svg { display: block; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.tb-svg[data-mode="run"], .tb-svg[data-mode="pass"] { cursor: crosshair; }
.tb-svg[data-mode="erase"] .tb-arrow-hit { cursor: pointer; }
.tb-lines rect, .tb-lines line, .tb-lines circle { fill: none; stroke: rgba(255,255,255,.85); stroke-width: .3; }
.tb-lines .tb-spot { fill: rgba(255,255,255,.85); }
.tb-lines .tb-goal { fill: rgba(255,255,255,.35); }
.tb-player { cursor: grab; }
.tb-player:active { cursor: grabbing; }
.tb-dot { stroke: #fff; stroke-width: .35; }
.tb-home .tb-dot { fill: #1565c0; }
.tb-away .tb-dot { fill: #c62828; }
.tb-num { fill: #fff; font-size: 2.4px; font-weight: 700; text-anchor: middle; pointer-events: none; font-family: system-ui, sans-serif; }
.tb-name { fill: #fff; font-size: 1.9px; font-weight: 600; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: .35px; font-family: system-ui, sans-serif; }
.tb-ball { cursor: grab; }
.tb-ball-c { fill: #fff; stroke: #111; stroke-width: .3; }
.tb-arrow-line { stroke-width: .5; fill: none; }
.tb-run .tb-arrow-line, .tb-arrow-line.tb-run { stroke: #ffd54a; stroke-dasharray: 1.2 .8; }
.tb-pass .tb-arrow-line, .tb-arrow-line.tb-pass { stroke: #ffffff; }
.tb-arrow-hit { stroke: transparent; stroke-width: 2.5; }
.tb-promo { border-left: 4px solid var(--green); }

@media (max-width: 860px) {
    .tb-layout { grid-template-columns: 1fr; }
    .tb-side { position: static; }
}

/* Kutia e numrit dhe emrit */
.tb-selected { fill: none; stroke: #ffd54a; stroke-width: .6; }
.tb-owner-ring { fill: none; stroke: #fff; stroke-width: .45; stroke-dasharray: 1 .6; opacity: .9; }
.tb-mi { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.tb-edit-ball { display: flex; gap: 8px; margin: 10px 0 4px; }
.tb-edit-ball .btn { flex: 1; }
.tb-edit-ball[hidden], .tb-edit-ball .btn[hidden] { display: none; }
svg[data-mode="give"], svg[data-mode="shoot"] { cursor: crosshair; }
.tb-stage { position: relative; }
.tb-give-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0; max-width: 92%;
  padding: 5px 12px; border-radius: 999px; background: rgba(17, 24, 39, .85); color: #fff; font-size: 12px; white-space: nowrap; font-weight: 600; text-align: center; pointer-events: none; }
.tb-give-hint[hidden] { display: none; }
.tb-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 560px; margin: 10px auto 0; background: var(--white); border: 2px solid #ffd54a; border-radius: 10px; padding: 10px 12px; }
.tb-edit[hidden] { display: none; }
.tb-edit input { padding: 6px 8px; }
.tb-edit-num { width: 56px !important; text-align: center; font-weight: 700; }
.tb-grow { flex: 1; min-width: 160px; }
.tb-grow input { flex: 1; }
.tb-edit-team { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; color: #fff; }
.tb-edit-home { background: #1565c0; }
.tb-edit-away { background: #c62828; }

/* --- Fusha Virtuale v3: ngjyrat dhe ekrani i plotë --- */
.tb-topbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.tb-color input[type=color] { width: 32px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.tb-color { font-weight: 400; }

.tb.tb-is-full {
    background: #14361d; color: #fff; padding: 12px; overflow: auto;
    display: flex; flex-direction: column; align-items: center;
}
.tb.tb-is-full .tb-tools, .tb.tb-is-full .tb-topbar, .tb.tb-is-full .tb-edit { width: 100%; max-width: 1100px; justify-content: center; }
.tb.tb-is-full .hint { color: rgba(255,255,255,.75); text-align: center; }
.tb.tb-is-full .tb-inline { color: #fff; }
.tb.tb-is-full .tb-edit { color: var(--ink); }
.tb.tb-is-full .tb-svg { max-width: none; width: auto; height: calc(100vh - 150px); flex-shrink: 0; }
.tb.tb-is-full.tb-fallback-full { position: fixed; inset: 0; z-index: 1000; }
:fullscreen.tb { width: 100vw; height: 100vh; }
body.tb-noscroll { overflow: hidden; }

@media (max-width: 600px) {
    .tb.tb-is-full .tb-svg { width: 100%; height: auto; max-height: calc(100vh - 220px); }
}

/* --- Fusha Virtuale v4: shiriti i veglave në grupe + dritarja e lojtarit --- */
.tb-toolbar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px;
}
.tb-group { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px; border-radius: 10px; background: var(--bg); }
.tb-group-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tb-group-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tb-field { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); flex: 1; min-width: 90px; }
.tb-field select { padding: 6px 8px; font-size: 14px; color: var(--ink); }

.tb-swatch { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.tb-swatch input[type=color] { width: 28px; height: 28px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; overflow: hidden; }
.tb-swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.tb-swatch input[type=color]::-webkit-color-swatch { border: none; border-radius: 50%; }

.tb-switch { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.tb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-switch-track { width: 36px; height: 20px; border-radius: 999px; background: #c9d2cb; position: relative; transition: background .15s; flex-shrink: 0; }
.tb-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tb-switch input:checked + .tb-switch-track { background: var(--green); }
.tb-switch input:checked + .tb-switch-track::after { transform: translateX(16px); }
.tb-switch input:focus-visible + .tb-switch-track { outline: 2px solid var(--green); outline-offset: 2px; }

.tb-segment { display: flex; width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.tb-segment button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; border-right: 1px solid var(--line); background: transparent; padding: 6px 4px; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); }
.tb-segment button:last-child { border-right: 0; }
.tb-segment button span { font-size: 11px; font-weight: 600; }
.tb-segment button:hover { background: var(--green-soft); }
.tb-segment button.active { background: var(--green); color: #fff; }

.tb-btn-dark { background: var(--solid); color: #fff; border-color: var(--solid); }
.tb-btn-dark:hover { background: #000; border-color: #000; }
.tb-help { margin: 0 0 8px; }

/* Dritarja në mes */
.tb { position: relative; }
.tb-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(10, 20, 12, .55); padding: 16px; animation: tbFade .12s ease-out; }
.tb-modal[hidden] { display: none; }
.tb-modal-box { width: 100%; max-width: 360px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: tbPop .15s ease-out; }
.tb-modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.tb-modal-head h3 { margin: 0 0 4px; }
.tb-modal-shirt { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 22px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.tb-modal-num { font-size: 24px !important; font-weight: 800; text-align: center; width: 90px !important; }
.tb-modal-row { display: flex; gap: 6px; }
.tb-modal-row input { flex: 1; }
.tb-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.tb-modal-actions .btn { flex: 1; }
.tb-edit-team { color: #fff; }
@keyframes tbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tbPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Në ekran të plotë */
.tb.tb-is-full .tb-toolbar { width: 100%; max-width: 1100px; background: rgba(255,255,255,.96); }
.tb.tb-is-full .tb-svg { height: calc(100vh - 230px); }

@media (max-width: 600px) {
    .tb-toolbar { grid-template-columns: 1fr 1fr; }
    .tb-group:nth-child(3), .tb-group:nth-child(4) { grid-column: span 2; }
    .tb-segment button span { font-size: 10px; }
}

/* --- Bankina dhe rezervat --- */
.tb-bench-bg { fill: rgba(0, 0, 0, .28); stroke: rgba(255, 255, 255, .55); stroke-width: .25; stroke-dasharray: .8 .6; }
.tb-bench-label { fill: rgba(255, 255, 255, .85); font-size: 2px; font-weight: 700; text-anchor: middle; letter-spacing: .08px; pointer-events: none; font-family: system-ui, sans-serif; text-transform: uppercase; }
.tb-sub .tb-dot { stroke-dasharray: .6 .4; opacity: .92; }
.tb-ghost { opacity: .85; filter: drop-shadow(0 .6px .8px rgba(0,0,0,.5)); pointer-events: none; }
.tb-btn-sm { padding: 4px 10px; font-size: 13px; }
.tb-link-danger { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--red); font: inherit; font-size: 14px; cursor: pointer; }
.tb-link-danger:hover { text-decoration: underline; }
.tb-svg { max-width: 700px; }

/* --- Hapi 6: Rezervimet --- */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.day { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); }
.day:hover { border-color: var(--green); }
.day.active { background: var(--green); color: #fff; border-color: var(--green); }
.day-name { font-size: 12px; font-weight: 600; }
.day-num { font-size: 20px; font-weight: 800; line-height: 1.1; }
.day-month { font-size: 11px; opacity: .7; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 10px 6px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; background: var(--white); }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot-time { font-size: 17px; font-weight: 800; }
.slot-state { font-size: 12px; }
.slot.slot-free { border-color: #b9dcc3; }
.slot.slot-free:hover { border-color: var(--green); }
.slot.slot-free:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.slot.slot-pending { background: #fff4e0; border-color: #f3d39a; color: #7a4b00; cursor: not-allowed; }
.slot.slot-taken { background: #fde8e8; border-color: #f2b8b8; color: #8a1c1c; cursor: not-allowed; }
.slot.slot-past { background: var(--bg); color: #9aa69d; cursor: not-allowed; }
.legend { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.slot-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 2px solid; }
.slot-dot.slot-free { border-color: #b9dcc3; }
.slot-dot.slot-pending { background: #fff4e0; border-color: #f3d39a; }
.slot-dot.slot-taken { background: #fde8e8; border-color: #f2b8b8; }

.schedule { display: flex; flex-direction: column; gap: 6px; }
.schedule-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.schedule-row.slot-free { background: var(--white); }
.schedule-row.slot-pending { background: #fff4e0; }
.schedule-row.slot-taken { background: #e7f3ea; }
.schedule-row.is-block { background: #eceff1; }
.schedule-row.slot-past { opacity: .55; }
.schedule-time { font-weight: 800; }
.block-form { display: flex; gap: 6px; align-items: center; }
.block-form input { width: 170px; padding: 5px 8px; font-size: 13px; }
@media (max-width: 700px) {
    .schedule-row { grid-template-columns: 1fr; }
    .block-form input { width: 100%; }
}

/* =====================================================================
   Pamja profesionale: koka e faqes, panelet, orari i ditës, dritaret
   ===================================================================== */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 2px 0 0; font-size: 30px; }
.page-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-head-actions form { margin: 0; }
.select-pill { width: auto !important; border-radius: 999px !important; padding: 7px 14px !important; font-weight: 600; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16, 40, 24, .04); }
.panel-accent { border-color: #f3d39a; box-shadow: 0 0 0 3px #fff4e0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { font-size: 18px; margin: 0; }
.count-pill { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 13px; }
.count-warn { background: #ffe2b0; color: #7a4b00; }

.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.notice strong { display: block; }
.notice span { flex: 1; min-width: 200px; }
.notice-warn { background: #fff8eb; border: 1px solid #f3d39a; color: #6b4200; }

/* Kërkesat */
.request-list { display: flex; flex-direction: column; gap: 10px; }
.request { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: #fffaf0; border: 1px solid #f6e3bd; }
.request-when { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 58px; border-radius: 10px; background: #fff; border: 1px solid #f3d39a; }
.request-day { font-size: 12px; color: var(--muted); font-weight: 600; }
.request-time { font-size: 17px; font-weight: 800; }
.request-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.request-note { font-size: 13px; color: var(--muted); }
.request-actions { display: flex; gap: 6px; }
.request-actions form { margin: 0; }
.phone-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-ghost-danger { background: transparent; color: var(--red) !important; border: 1px solid #f2b8b8; }
.btn-ghost-danger:hover { background: #fde8e8; }

/* Shiriti i ditëve (rifreskim i stilit) */
.days { gap: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.day { min-width: 62px; padding: 10px 6px; border-radius: 12px; transition: border-color .15s, transform .15s; }
.day:hover { transform: translateY(-1px); }
.day.active { box-shadow: 0 4px 12px color-mix(in srgb, var(--green) 25%, transparent); }

/* Përmbledhja e ditës */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.stat-num { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-free { background: #43a047; }
.dot-pending { background: #f5a623; }
.dot-confirmed { background: #1565c0; }
.dot-blocked { background: #78909c; }

/* Orari si linjë kohore */
.timeline { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tl-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; background: var(--white); }
.tl-row:last-child { border-bottom: 0; }
.tl-row:hover { background: #fbfcfb; }
.tl-time { display: flex; flex-direction: column; line-height: 1.15; }
.tl-time strong { font-size: 16px; }
.tl-time span { font-size: 12px; color: var(--muted); }
.tl-body { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tl-name { font-weight: 700; }
.tl-note { font-size: 13px; color: var(--muted); }
.tl-actions { display: flex; gap: 6px; }
.tl-actions form { margin: 0; }
.tl-free { border-left-color: #43a047; }
.tl-pending { border-left-color: #f5a623; background: #fffaf0; }
.tl-confirmed { border-left-color: #1565c0; background: #f3f8fe; }
.tl-blocked { border-left-color: #78909c; background: #f5f7f8; }
.tl-past { opacity: .5; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip-free { background: #e6f4ea; color: #1e6b34; }
.chip-pending { background: #ffe9c2; color: #7a4b00; }
.chip-confirmed { background: #dbe9fb; color: #0d47a1; }
.chip-blocked { background: #e3e8eb; color: #455a64; }
.chip-past { background: #eef1ee; color: #7d8b80; }

.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 15px; cursor: pointer; transition: all .15s; }
.icon-btn:hover { border-color: var(--green); background: var(--green-soft); }
.icon-ok { background: var(--green); color: #fff; border-color: var(--green); }
.icon-ok:hover { background: var(--green-deep, var(--green-dark)); }
.icon-no { color: var(--red); }
.icon-no:hover { background: #fde8e8; border-color: #f2b8b8; }

/* Dritare e përgjithshme */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(10, 20, 12, .55); animation: tbFade .12s ease-out; }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 400px; background: var(--white); border-radius: 16px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: tbPop .15s ease-out; }
.modal-box h3 { margin: 0 0 4px; }
.modal-actions { display: flex; gap: 8px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

/* Faqja e rezervimit për lojtarin: pak më e pastër */
.slots { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.slot { border-radius: 12px; padding: 12px 6px; transition: transform .12s, box-shadow .12s; }
.slot.slot-free:hover { transform: translateY(-1px); box-shadow: 0 4px 10px color-mix(in srgb, var(--green) 15%, transparent); }

@media (max-width: 700px) {
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .tl-row { grid-template-columns: 58px 1fr auto; gap: 10px; padding: 10px; }
    .tl-actions { flex-direction: column; }
    .request { grid-template-columns: 56px 1fr; }
    .request-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* --- Kalendari mujor i rezervimeve --- */
.booking-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px; align-items: start; }
.booking-layout > .panel { margin-bottom: 0; }
.panel-title { margin: 0 0 14px; font-size: 16px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 17px; }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 22px; line-height: 1; }
.cal-nav:hover { border-color: var(--green); background: var(--green-soft); }
.cal-nav.disabled { opacity: .3; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-day { position: relative; aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid transparent; font-size: 14px; transition: transform .1s, box-shadow .1s; }
.cal-out { visibility: hidden; }
.cal-off { color: #b7c0b9; }
.cal-num { font-weight: 700; line-height: 1; }
.cal-free { font-size: 10px; font-weight: 600; opacity: .8; margin-top: 2px; }
a.cal-day:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.cal-many { background: #e6f4ea; color: #1e6b34; }
.cal-few { background: #fff1d6; color: #7a4b00; }
.cal-full { background: #fde8e8; color: #8a1c1c; }
.cal-day.is-today { border-color: var(--ink); }
.cal-day.is-selected { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 4px 12px color-mix(in srgb, var(--green) 30%, transparent); }
.cal-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #f5a623; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.cal-day.is-selected .cal-badge { background: #fff; color: #7a4b00; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); align-items: center; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.cal-key-badge { background: #f5a623; border-radius: 50%; }

@media (max-width: 860px) {
    .booking-layout { grid-template-columns: 1fr; }
}

/* Fusha të tjera teksti që mungonin */
input[type=tel], input[type=search], input[type=url] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); }
input[type=tel]:focus, input[type=search]:focus, input[type=url]:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }


/* =====================================================================
   TEMAT: Jeshile (e paracaktuar), Blu, Kuq e Zi
   Ndryshojnë vetëm ngjyrën kryesore. Fusha e lojës mbetet jeshile dhe
   ngjyrat e statusit (e lirë / në pritje / e zënë) mbeten të njëjta.
   ===================================================================== */
html[data-theme="blue"] {
    --green: #1d4ed8;
    --green-dark: #1e3a8a;
    --green-soft: #e3ebff;
    --ink: #172033;
    --muted: #5a6478;
    --line: #dde3ee;
    --bg: #f5f7fb;
}

html[data-theme="red"] {
    --green: #c8102e;
    --green-dark: #8e0b20;
    --green-soft: #fdecef;
    --ink: #141414;
    --muted: #5f5f5f;
    --line: #e4e0e0;
    --bg: #f7f5f5;
}
/* Kuq e Zi: shiriti i sipërm i zi, me shkrim të bardhë */
html[data-theme="red"] .topbar { background: #111; border-bottom-color: #000; }
html[data-theme="red"] .brand,
html[data-theme="red"] .nav a,
html[data-theme="red"] .link-button { color: #fff; }
html[data-theme="red"] .lang { border-left-color: #333; }
html[data-theme="red"] .lang a { color: #aaa; }
html[data-theme="red"] .lang a.active { background: #c8102e; color: #fff; }
html[data-theme="red"] .nav-admin { background: #c8102e; }
html[data-theme="red"] .footer { background: #111; color: #aaa; border-top-color: #000; }
html[data-theme="red"] .footer a { color: #fff; }

/* Zgjedhësi i temës (tre rrathë) */
.themes { display: flex; align-items: center; gap: 5px; border-left: 1px solid var(--line); padding-left: 12px; }
.theme-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); display: inline-block; }
.theme-dot.is-active { box-shadow: 0 0 0 2px var(--ink); }
.theme-green { background: #146c2e; }
.theme-blue { background: #1d4ed8; }
.theme-red { background: linear-gradient(135deg, #c8102e 50%, #111 50%); }
.theme-reset { font-size: 13px; text-decoration: none; color: var(--muted) !important; }
html[data-theme="red"] .themes { border-left-color: #333; }
html[data-theme="red"] .theme-dot { border-color: #111; box-shadow: 0 0 0 1px #444; }
html[data-theme="red"] .theme-dot.is-active { box-shadow: 0 0 0 2px #fff; }

/* Kartat e temave te cilësimet e adminit */
.theme-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.theme-card { position: relative; display: block; margin: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; font-weight: 400; background: var(--white); }
.theme-card input { position: absolute; opacity: 0; }
.theme-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--green-soft); }
.theme-preview { height: 86px; display: flex; flex-direction: column; }
.theme-preview .tp-bar { height: 22px; }
.theme-preview .tp-body { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #f6f6f6; }
.theme-preview .tp-btn { width: 70px; height: 22px; border-radius: 6px; }
.theme-preview .tp-chip { width: 44px; height: 14px; border-radius: 999px; }
.theme-card-name { display: block; padding: 10px 12px; font-weight: 700; }

/* Ngjyra e zgjedhjes (dita / orari i zgjedhur). Te Kuq e Zi është e zezë,
   që të mos ngatërrohet me të kuqen e orareve "të zëna". */
:root { --select: var(--green); }
html[data-theme="red"] { --select: #111111; }
.slot.slot-free:has(input:checked) { background: var(--select); border-color: var(--select); }
.cal-day.is-selected { background: var(--select); border-color: var(--select); box-shadow: 0 4px 12px color-mix(in srgb, var(--select) 30%, transparent); }
.day.active { background: var(--select); border-color: var(--select); }
.tb-segment button.active { background: var(--select); }

/* --- Cilësimet --- */
.nav-settings { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.nav-settings:hover, .nav-settings.active { border-color: var(--green); background: var(--green-soft); }
html[data-theme="red"] .nav-settings { border-color: #333; }
html[data-theme="red"] .nav-settings:hover, html[data-theme="red"] .nav-settings.active { background: #222; border-color: #c8102e; }

.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.settings-nav a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.settings-nav a:hover { background: var(--green-soft); }
.settings-h { font-size: 18px; margin: 0 0 6px; }
.settings-save { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; margin: 0; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 16px; cursor: pointer; font-weight: 600; background: var(--white); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
input:disabled { background: var(--bg); color: var(--muted); }
.settings-layout .panel { scroll-margin-top: 16px; }

@media (max-width: 760px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
    .settings-nav a { white-space: nowrap; }
    .nav-settings span { display: none; }
}
.settings-layout .theme-cards { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* --- Cilësimet: butonat kryesorë dhe faqet e seksioneve --- */
.settings-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.settings-tile { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.settings-tile:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.settings-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); font-size: 22px; flex-shrink: 0; }
.settings-tile-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.settings-tile-text strong { font-size: 16px; }
.settings-tile-text span { font-size: 13px; color: var(--muted); }
.settings-tile-arrow { font-size: 24px; color: var(--muted); }
.settings-tile-admin .settings-tile-icon { background: var(--solid); }

.back-link { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 600; }
.settings-nav a.active { background: var(--green); color: #fff; }
.settings-h { font-size: 22px; }
.section-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.narrow-form { max-width: 420px; }

/* --- Hapi 8a: fotot --- */
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--green-soft); color: var(--green-dark); font-weight: 800; vertical-align: middle; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-xl { box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,.08); }
.player-photo { position: relative; flex-shrink: 0; }
.shirt-badge { position: absolute; right: -6px; bottom: -4px; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 10px; background: var(--solid); color: #fff; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.shirt-inline { display: inline-block; min-width: 24px; text-align: center; font-weight: 800; }
.photo-setting { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.photo-setting-body { flex: 1; min-width: 240px; }
.photo-preview { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-top: 10px; border: 3px solid var(--green-soft); }
input[type=file] { width: 100%; padding: 10px; border: 2px dashed var(--line); border-radius: 10px; background: var(--bg); font: inherit; font-size: 14px; cursor: pointer; }
input[type=file]:hover { border-color: var(--green); }

.crest-img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; }
.crest-img-md { width: 72px; height: 72px; border: 1px solid var(--line); }
.crest-img-lg { width: 84px; height: 84px; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.crest-upload { display: flex; gap: 14px; align-items: flex-start; }
.crest-upload > div { flex: 1; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.photo-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile form { position: absolute; top: 6px; right: 6px; margin: 0; }
.photo-delete { width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(255,255,255,.92); cursor: pointer; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 140px; gap: 8px; margin-bottom: 16px; border-radius: 16px; overflow: hidden; }
.gallery-item { display: block; overflow: hidden; background: var(--bg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-main { grid-row: span 2; }
.cover { height: 110px; border-radius: 8px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 6px; }
.cover span { background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
@media (max-width: 600px) {
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 110px; }
    .gallery-main { grid-column: span 2; grid-row: span 2; }
}
.tb-import { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tb-import select { width: auto; padding: 4px 8px; font-size: 13px; }

/* --- Hapi 8c: Laboratori i Teknikave --- */
.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.cat-pill:hover { border-color: var(--green); }
.cat-pill.active { background: var(--select, var(--green)); border-color: var(--select, var(--green)); color: #fff; }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tech-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tech-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.tech-thumb { position: relative; aspect-ratio: 16 / 10; background: #111; }
.tech-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tech-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.tech-cat { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tech-body { padding: 12px 14px; }
.tech-body h3 { margin: 0 0 2px; font-size: 16px; }
.tech-body .muted { margin: 0 0 6px; font-size: 13px; }
.tech-meta { display: flex; gap: 12px; align-items: center; margin: 0; font-size: 13px; }
.stars { color: #f5a623; letter-spacing: 1px; }
.stars-off { color: #d9ddd9; }

.tech-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-bottom: 18px; }
.video-frame { background: #000; border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.video-frame video { display: block; width: 100%; max-height: 70vh; background: #000; }
.tech-info { position: sticky; top: 16px; }
.tech-info h1 { font-size: 24px; margin: 8px 0 12px; }
.tech-cat-lg { display: inline-block; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.author-box { display: flex; gap: 10px; align-items: center; }
.author-box > div { display: flex; flex-direction: column; }
.authorship { font-size: 13px; color: var(--muted); margin: 8px 0 14px; padding: 8px 10px; background: var(--bg); border-radius: 8px; border-left: 3px solid #f5a623; }
.tech-info .btn-full { margin-top: 8px; }
.btn-dark { background: var(--solid); }
.btn-dark:hover { background: #000; }
.owner-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.owner-actions form { margin: 0; }
.steps { padding-left: 0; list-style: none; counter-reset: step; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 10px 12px 10px 48px; border-radius: 10px; background: var(--bg); margin-bottom: 8px; }
.steps li::before { content: counter(step); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }

.attempt-form { background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.attempt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.attempt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.attempt video { display: block; width: 100%; aspect-ratio: 9 / 12; object-fit: cover; background: #000; }
.attempt-body { padding: 10px 12px; }
.attempt-body p { margin: 4px 0; font-size: 13px; }
.attempt-actions { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.attempt-actions form { margin: 0; }
.video-small { width: 100%; max-height: 260px; border-radius: 10px; background: #000; margin-bottom: 6px; }
.choice-sm { padding: 7px 12px; font-size: 14px; }

@media (max-width: 860px) {
    .tech-layout { grid-template-columns: 1fr; }
    .tech-info { position: static; }
}

/* --- Hapi 8d: Ndeshjet --- */
.game-list { display: flex; flex-direction: column; gap: 10px; }
.game-card { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.game-card:hover { border-color: var(--green); transform: translateY(-1px); }
.game-when { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; border-radius: 12px; background: var(--green-soft); }
.game-day { font-size: 12px; font-weight: 700; color: var(--muted); }
.game-time { font-size: 18px; font-weight: 800; }
.game-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.game-body .muted { font-size: 13px; }
.game-progress { display: block; height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-top: 4px; }
.game-progress span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 20px; align-items: start; }
.game-pitch-wrap { width: 100%; }
.game-pitch { position: relative; width: 100%; aspect-ratio: 68 / 105; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.game-pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot-dot-wrap { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.slot-dot-wrap form { margin: 0; }
.game-player { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.game-player .avatar { border-width: 3px; }
.game-player.team-home .avatar { border-color: #1565c0; }
.game-player.team-away .avatar { border-color: #c62828; }
.game-player.is-me .avatar { box-shadow: 0 0 0 3px #ffd54a; }
.game-player-name { font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.game-player .kick { position: absolute; top: -6px; right: -10px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: #fff; color: var(--red); font-size: 11px; cursor: pointer; line-height: 1; }
.game-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.9); background: rgba(255,255,255,.15); color: #fff; cursor: pointer; padding: 0; font: inherit; position: relative; }
.game-empty span { font-size: 18px; font-weight: 800; line-height: 1; }
.game-empty small { position: absolute; top: 42px; font-size: 9px; font-weight: 700; white-space: nowrap; background: rgba(0,0,0,.45); padding: 1px 5px; border-radius: 999px; }
.game-empty.team-home { border-color: #90caf9; }
.game-empty.team-away { border-color: #ef9a9a; }
.game-empty:not(.is-static):hover { background: rgba(255,255,255,.35); transform: scale(1.08); }
.game-empty.is-static { cursor: default; opacity: .8; }
.game-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.game-legend span { display: inline-flex; gap: 6px; align-items: center; }
.score { display: flex; align-items: center; justify-content: center; gap: 20px; background: var(--solid); color: #fff; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.score strong { font-size: 32px; }
.result-form label { margin-top: 0; }
.result-inputs { display: flex; gap: 6px; align-items: center; }
.result-inputs input { width: 64px; text-align: center; }
.pitch-actions { display: flex; gap: 6px; flex-wrap: wrap; }
input[type=time], input[type=date] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); }

@media (max-width: 860px) {
    .game-layout { grid-template-columns: 1fr; }
    .game-card { grid-template-columns: 60px 1fr; }
    .game-free { grid-column: 1 / -1; }
    .game-empty { width: 34px; height: 34px; }
}

/* --- Hapi 9: Modulet --- */
.container:has(.module-layout) { max-width: 1240px; }
.module-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.module-main { min-width: 0; }
.module-nav { position: sticky; top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.module-nav-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.module-nav-head strong { display: block; font-size: 17px; line-height: 1.1; }
.module-nav-head small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.module-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 22px; }
.module-nav nav { display: flex; flex-direction: column; gap: 2px; }
.module-nav nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.module-nav nav a:hover { background: var(--green-soft); }
.module-nav nav a.active { background: var(--green); color: #fff; }
.module-nav nav a span { width: 20px; text-align: center; }
.module-switch { border-top: 1px solid var(--line); margin-top: 10px; padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 4px; }
.module-switch a { text-decoration: none; color: var(--ink); font-size: 14px; padding: 4px; }

.nav-modules { position: relative; }
.nav-modules summary { cursor: pointer; list-style: none; font-weight: 600; }
.nav-modules summary::-webkit-details-marker { display: none; }
.nav-modules-menu { position: absolute; right: 0; top: 30px; z-index: 50; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; min-width: 180px; }
.nav-modules-menu a { padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.nav-modules-menu a:hover, .nav-modules-menu a.active { background: var(--green-soft); }

.module-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0 22px; }
.module-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.module-tile:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.module-tile-icon { font-size: 30px; }
.module-tile strong { font-size: 18px; }
.module-tile .muted { font-size: 13px; flex: 1; }
.module-tile-go { color: var(--green); font-weight: 700; font-size: 14px; }
.module-toggles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

/* Rreshta të përbashkët */
.m-list { display: flex; flex-direction: column; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-row:last-child { border-bottom: 0; }
.m-row form { margin: 0; }
.m-row.is-cancelled { opacity: .55; }
.m-row > a.muted { font-size: 22px; text-decoration: none; padding: 0 4px; }
.m-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-grow .muted { font-size: 13px; }
.m-when { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 50px; border-radius: 10px; background: var(--green-soft); line-height: 1.1; }
.m-when span { font-size: 12px; color: var(--muted); }
.m-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; }
.m-dl dt { color: var(--muted); }
.m-dl dd { margin: 0; font-weight: 600; }
.m-inline-form { margin-bottom: 8px; }
.m-add { margin-top: 12px; }
.m-add summary { list-style: none; display: inline-flex; }
.m-add summary::-webkit-details-marker { display: none; }
.m-add[open] summary { margin-bottom: 8px; }
.right { text-align: right !important; }
.small { font-size: 13px; }
.danger { color: var(--red) !important; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person h1 { margin: 0; }
.crest-sm { width: 56px; height: 56px; object-fit: contain; }
.doc-icon { font-size: 24px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--green); border-color: var(--green); }
.cat-row { margin-bottom: 14px; }
.cat-row .chip { background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cat-row .chip-on { background: var(--green); border-color: var(--green); color: #fff; }

/* Burimi i rezervimit */
.src-online { background: #e3ebff; color: #1d3f9a; }
.src-manual { background: #e6f4ea; color: #1e6b34; }
.src-block { background: #eceff1; color: #455a64; }

/* Kalendari javor */
.week-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.week-nav strong { margin-left: 6px; }
.week-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.week { width: 100%; border-collapse: separate; border-spacing: 3px; min-width: 720px; table-layout: fixed; }
.week thead th:first-child { width: 52px; }
.week thead th { font-size: 12px; color: var(--muted); padding: 6px 2px; font-weight: 600; }
.week thead th strong { display: block; font-size: 17px; color: var(--ink); }
.week thead th.is-today strong { color: #fff; background: var(--green); border-radius: 50%; width: 30px; height: 30px; line-height: 30px; margin: 0 auto; }
.week-time { font-size: 12px; color: var(--muted); font-weight: 600; width: 48px; text-align: right; padding-right: 6px; }
.wk { height: 44px; border-radius: 8px; padding: 0; vertical-align: middle; text-align: center; }
.wk a { display: flex; flex-direction: column; justify-content: center; height: 100%; width: 100%; text-decoration: none; color: inherit; padding: 2px 4px; font-size: 12px; line-height: 1.2; }
.wk small { opacity: .8; font-size: 11px; }
.wk-free { background: var(--bg); }
.wk-free a { color: var(--muted); font-size: 18px; opacity: 0; transition: opacity .1s; }
.wk-free:hover a { opacity: 1; }
.wk-free:hover { background: var(--green-soft); }
.wk-past { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 4px, #eef1ee 4px, #eef1ee 8px); }
.wk-online, i.wk-online { background: #dbe6ff; color: #1d3f9a; }
.wk-manual, i.wk-manual { background: #d6efdd; color: #1e6b34; }
.wk-pending, i.wk-pending { background: #ffe9c2; color: #7a4b00; }
.wk-block, i.wk-block { background: #e0e4e7; color: #455a64; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }

/* Grafiku i të ardhurave */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.bar span { width: 100%; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar small { font-size: 10px; color: var(--muted); }

/* Fushat e mia */
.m-pitch { display: flex; gap: 16px; align-items: center; }
.m-pitch h3 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m-pitch-img { width: 120px; height: 90px; border-radius: 12px; background: var(--green-soft) center / cover; display: grid; place-items: center; font-size: 34px; flex-shrink: 0; }

/* Trajneri */
.tr-planned { background: #e3ebff; color: #1d3f9a; }
.tr-done { background: #e6f4ea; color: #1e6b34; }
.tr-cancelled { background: #eceff1; color: #455a64; }
.ex-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 8px; }
.ex-pick-item { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; margin: 0; font-weight: 400; }
.ex-pick-item:hover { background: var(--bg); }
.ex-pick-item:has(input:checked) { background: var(--green-soft); }
.ex-pick-item[hidden] { display: none; }
.ex-plan { padding-left: 20px; }
.ex-plan li { margin-bottom: 8px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ex-grid .panel { margin-bottom: 0; }
.ex-card h3 { margin: 8px 0 4px; }
.ex-card p { margin: 4px 0; }
.att-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.att-opts { display: flex; gap: 4px; }
.att { margin: 0; cursor: pointer; }
.att input { position: absolute; opacity: 0; pointer-events: none; }
.att span { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 8px; border: 2px solid var(--line); font-weight: 800; background: var(--white); }
.att-present input:checked + span { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.att-late input:checked + span { background: #f9a825; border-color: #f9a825; color: #fff; }
.att-absent input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.att-excused input:checked + span { background: #607d8b; border-color: #607d8b; color: #fff; }
.att-note { width: 180px; padding: 6px 10px; font-size: 13px; }
.att-chip.att-present { background: #e6f4ea; color: #1e6b34; }
.att-chip.att-late { background: #fff4d6; color: #7a5a00; }
.att-chip.att-absent { background: #fdecea; color: #a12622; }
.att-chip.att-excused { background: #eceff1; color: #455a64; }
.eval-bars { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.eval-bar { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.eval-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.eval-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #4caf50); border-radius: 999px; }
.eval-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.eval-item:last-child { border-bottom: 0; }
input[type=range] { width: 100%; accent-color: var(--green); }

/* Klubi */
.mini-avatars { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin: 6px 0; }

/* Lojtari */
.player-hero { display: flex; align-items: center; gap: 18px; }
.player-hero h1 { margin: 0; }
.cv { max-width: 820px; }
.cv-head { display: flex; gap: 20px; align-items: center; border-bottom: 3px solid var(--green); padding-bottom: 16px; margin-bottom: 16px; position: relative; }
.cv-head h2 { margin: 0; font-size: 28px; }
.cv-sub { margin: 2px 0; font-weight: 700; color: var(--green); }
.cv-brand { position: absolute; right: 0; top: 0; font-weight: 800; color: var(--muted); }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cv h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 8px; }
.cv-foot { text-align: right; font-size: 12px; margin-top: 16px; }

@media print {
    .topbar, .footer, .module-nav, .no-print, .alert { display: none !important; }
    .module-layout { display: block; }
    body { background: #fff; }
    .cv { border: 0; box-shadow: none; max-width: none; }
}

@media (max-width: 900px) {
    .module-layout { grid-template-columns: 1fr; }
    .module-nav { position: static; }
    .module-nav nav { flex-direction: row; overflow-x: auto; }
    .module-nav nav a { white-space: nowrap; }
    .module-switch { flex-direction: row; flex-wrap: wrap; }
    .cv-grid { grid-template-columns: 1fr; }
    .att-note { width: 100%; }
    .m-pitch { flex-direction: column; align-items: flex-start; }
}

/* --- Faqja e parë --- */
.home-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 24px 0 32px; }
.home-hero h1 { font-size: 46px; line-height: 1.1; margin: 10px 0 16px; letter-spacing: -.02em; }
.home-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.home-safety { color: var(--muted); font-size: 14px; margin-top: 18px; }
.home-pitch { justify-self: center; width: 100%; max-width: 300px; transform: perspective(900px) rotateX(18deg); }
.home-pitch svg { width: 100%; display: block; border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.22); }
.home-dot { animation: home-pop .5s ease-out both; transform-origin: center; transform-box: fill-box; }
@keyframes home-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
html[data-theme="blue"] .home-pitch { --home-dot: #90caf9; }

.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.home-stats a { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); text-align: center; transition: border-color .15s, transform .15s; }
.home-stats a:hover { border-color: var(--green); transform: translateY(-2px); }
.home-stats strong { display: block; font-size: 34px; line-height: 1; color: var(--green); }
.home-stats span { color: var(--muted); font-size: 14px; }

.home-section { margin-bottom: 44px; }
.home-section-head { margin-bottom: 16px; }
.home-section-head h2 { margin: 0 0 4px; font-size: 26px; }
.home-section-head.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-section-head.row a { font-weight: 700; text-decoration: none; }

.home-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-module { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.home-module-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); font-size: 24px; }
.home-module h3 { margin: 12px 0 8px; }
.home-module ul { margin: 0; padding: 0; list-style: none; }
.home-module li { padding: 4px 0 4px 22px; position: relative; font-size: 14px; color: var(--muted); }
.home-module li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--ink); }
.home-card:hover { border-color: var(--green); }
.home-card .chip { align-self: flex-start; }
.home-empty { background: var(--white); border: 1px dashed var(--line); border-radius: 16px; padding: 22px; text-align: center; color: var(--muted); }
.home-empty p { margin: 0 0 10px; }

.home-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.home-row { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; text-decoration: none; color: var(--ink); }
.home-row:hover { border-color: var(--green); }
.home-thumb { width: 54px; height: 54px; border-radius: 12px; background: var(--green-soft) center / cover; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }

.home-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-steps li { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.home-steps li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; flex-shrink: 0; }
.home-steps p { margin: 4px 0 0; font-size: 14px; }

.home-final { text-align: center; background: var(--green); color: #fff; border-radius: 20px; padding: 36px 20px; margin-bottom: 20px; }
.home-final h2 { margin: 0 0 16px; }
.home-final .btn { background: #fff; color: var(--green); }
html[data-theme="red"] .home-final { background: #111; }
html[data-theme="red"] .home-final .btn { background: #c8102e; color: #fff; }

@media (max-width: 900px) {
    .home-hero { grid-template-columns: 1fr; }
    .home-hero h1 { font-size: 34px; }
    .home-pitch { max-width: 220px; }
    .home-stats, .home-modules { grid-template-columns: repeat(2, 1fr); }
    .home-cards, .home-two, .home-steps { grid-template-columns: 1fr; }
}

/* Menuja e moduleve: tekst i lexueshëm në çdo temë */
.nav-modules-menu a { color: var(--ink) !important; }
html[data-theme="red"] .nav-modules summary { color: #fff; }

/* --- Hapi 10: Grupet, ndeshjet e ekipit, orari, ndarja --- */
.group-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--gc, var(--green)); margin-right: 6px; vertical-align: middle; }
.group-card { border-top: 4px solid var(--gc); }
.group-card h3 { margin: 0; }
.group-list { list-style: none; padding: 0; margin: 8px 0 12px; columns: 2; column-gap: 12px; font-size: 14px; }
.group-list li { padding: 2px 0; break-inside: avoid; }
.group-list b, .print-list b { display: inline-block; min-width: 24px; color: var(--muted); }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.color-pick label { margin: 0; cursor: pointer; }
.color-pick input { position: absolute; opacity: 0; }
.color-pick span { display: block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.color-pick input:checked + span { box-shadow: 0 0 0 3px var(--ink); }

.fixture-row { text-decoration: none; color: var(--ink); }
.fixture-row:hover { background: var(--bg); }
.score-sm { font-size: 18px; padding: 2px 10px; border-radius: 8px; background: var(--bg); }
.score-sm.win { background: #e6f4ea; color: #1e6b34; }
.score-sm.loss { background: #fdecea; color: #a12622; }
.fixture-grid { align-items: start; }
.sq-starter input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.sq-sub input:checked + span { background: #f9a825; border-color: #f9a825; color: #fff; }
.sq-out input:checked + span { background: #eceff1; border-color: #cfd8dc; color: #78909c; }
.squad-opts .att span { width: 40px; }
.next-fixture h3 { margin: 4px 0; }

.share-box .panel-title { margin-bottom: 10px; }
.share-actions, .share-apps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.share-app { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.share-wa { background: #25d366; }
.share-viber { background: #7360f2; }
.share-mail { background: #546e7a; }
.share-native { background: var(--solid); }
.share-link { border-top: 1px solid var(--line); padding-top: 10px; }
.share-link label { margin-top: 0; }
.share-link-row { display: flex; gap: 6px; }
.share-link-row input { flex: 1; font-size: 13px; }
.share-link form { margin: 0; }

.agenda-day { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.agenda-day:last-child { border-bottom: 0; }
.agenda-date { width: 54px; flex-shrink: 0; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.agenda-date strong { font-size: 24px; }
.agenda-date span { font-weight: 700; color: var(--green); font-size: 13px; }
.agenda-date small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.agenda-items { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agenda-item { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--bg); border-left: 4px solid var(--gc, #90a4ae); text-decoration: none; color: var(--ink); }
.agenda-fixture { background: #fff8e1; }
.agenda-item.is-cancelled { opacity: .5; text-decoration: line-through; }
a.agenda-item:hover { filter: brightness(.97); }
.agenda-time { font-size: 13px; font-weight: 700; color: var(--muted); }
.agenda-title { font-weight: 700; }

.print-sheet { max-width: 860px; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--green); padding-bottom: 12px; margin-bottom: 14px; position: relative; }
.print-head h1, .print-head h2 { margin: 4px 0 0; }
.print-head .cv-brand { position: static; }
.print-list { columns: 2; column-gap: 24px; padding-left: 22px; }
.print-list li { padding: 3px 0; break-inside: avoid; }
.print-bar { margin-bottom: 12px; }
.share-page { max-width: 860px; margin: 0 auto; }

@media print {
    .print-sheet { border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: none; }
    .agenda-item { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .group-dot, .print-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .share-page .btn { display: none; }
}
@media (max-width: 700px) {
    .group-list, .print-list { columns: 1; }
}

/* --- Hapi 11: Lojtarët pa llogari dhe pëlqimet --- */
.notice-info { background: var(--green-soft); }
.chip-managed { background: #eceff1; color: #455a64; margin-left: 4px; }
.consent-panel { border-left: 4px solid #f9a825; }
.consent-panel.is-ok { border-left-color: #2e7d32; }
.consent-steps { padding-left: 20px; margin: 6px 0 14px; }
.consent-steps li { margin-bottom: 4px; }
.consent-history { margin-top: 10px; }
.form-section { margin: 20px 0 4px; font-size: 16px; }
.form-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.form-table th, .form-table td { border: 1px solid #cfd8dc; padding: 10px 12px; text-align: left; }
.form-table th { width: 38%; background: var(--bg); font-weight: 600; }
.form-table td { min-height: 28px; }
.sign-cell { height: 70px; }
.form-checks { list-style: none; padding: 0; }
.form-checks li { padding: 6px 0; font-size: 15px; }
.consent-sheet h3 { margin: 18px 0 8px; }
.review-form input[type=text] { width: 220px; padding: 6px 10px; font-size: 13px; }
@media print { .form-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* --- Hapi 12: Plani javor, statistikat, analizat --- */
.week-plan { display: flex; flex-direction: column; gap: 0; }
.wp-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.wp-row { display: grid; grid-template-columns: 110px 96px 10px 96px 1fr 170px; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--bg); }
.wp-row:has(input[type=checkbox]:checked) { background: var(--green-soft); }
.wp-row input, .wp-row select { padding: 7px 8px; font-size: 14px; margin: 0; }
.wp-day { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-weight: 400; }
.wp-day input { width: 18px; height: 18px; accent-color: var(--green); }
.wp-submit { display: flex; align-items: flex-end; }
.wp-copy { margin: -8px 0 18px; }
.poster-wrap { background: var(--bg); border-radius: 14px; padding: 14px; display: flex; justify-content: center; }
.poster-wrap svg { width: 100%; max-width: 420px; height: auto; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.line-chart { width: 100%; height: auto; display: block; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-axis { font-size: 11px; fill: var(--muted); }
.form-strip { display: flex; gap: 6px; margin-bottom: 12px; }
.form-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-weight: 800; color: #fff; }
.form-W { background: #2e7d32; }
.form-D { background: #90a4ae; }
.form-L { background: #c62828; }
.highlights p { margin: 6px 0; }
.pct { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pct-hi { background: #e6f4ea; color: #1e6b34; }
.pct-mid { background: #fff4d6; color: #7a5a00; }
.pct-lo { background: #fdecea; color: #a12622; }
.sortable th[data-dir=desc]::after { content: " ▼"; font-size: 10px; }
.sortable th[data-dir=asc]::after { content: " ▲"; font-size: 10px; }
.stats-table input, .stats-table select { width: 64px; padding: 6px; margin: 0; text-align: center; }
.att-rating { width: 84px; padding: 6px; margin: 0; font-size: 13px; }
.bars-sm { height: 140px; }
.bar-val { font-size: 11px; color: var(--muted); font-weight: 700; }

@media (max-width: 900px) {
    .wp-row { grid-template-columns: 1fr 1fr; }
    .wp-row .muted { display: none; }
    .wp-day { grid-column: 1 / -1; }
}
@media print {
    .week-plan > form, .wp-copy, .filters { display: none !important; }
    .poster-wrap { background: none; padding: 0; }
    .poster-wrap svg { max-width: 100%; box-shadow: none; }
}

/* --- Hapi 13: Vlerësimi me 4 kënde --- */
.eval-corners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 10px 0 14px; }
.eval-corner { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; border-top: 4px solid var(--ec, var(--green)); }
.eval-corner legend { font-weight: 800; padding: 0 6px; }
.ec-technical { --ec: #146c2e; } .ec-physical { --ec: #1565c0; } .ec-psychological { --ec: #6a1b9a; } .ec-social { --ec: #ef6c00; } .ec-position { --ec: #455a64; }
.crit-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.crit-row:last-child { border-bottom: 0; }
.crit-row > span { font-size: 14px; cursor: help; }
.stars-input { display: inline-flex; flex-direction: row-reverse; }
.stars-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.stars-input label { margin: 0; font-size: 24px; line-height: 1; padding: 0 1px; color: #d5dbd6; cursor: pointer; font-weight: 400; transition: color .1s; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: #f4b400; }
.stars-input:hover input:checked ~ label { color: #d5dbd6; }
.stars-input:hover label:hover, .stars-input:hover label:hover ~ label { color: #f4b400; }
.stars-sm { color: #f4b400; letter-spacing: 1px; font-weight: 400; }
.stars-sm i { color: #d5dbd6; font-style: normal; }
.input-inline { width: auto !important; margin: 0; }
.ev-technical { background: #146c2e !important; } .ev-physical { background: #1565c0 !important; } .ev-psychological { background: #6a1b9a !important; } .ev-social { background: #ef6c00 !important; }
.eval-bar { grid-template-columns: 150px 1fr 34px; }
.eval-detail { margin: 6px 0; }
.crit-grid { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 13px; margin-top: 6px; }
.eval-text { margin: 6px 0; font-size: 14px; }
.radar { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
.rd-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-label { font-size: 13px; font-weight: 700; fill: var(--ink); }
.radar-legend { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.radar-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.stars-select { width: 92px; padding: 6px; margin: 0; }
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0; }
.report-stats div { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.report-stats strong { display: block; font-size: 24px; }
.report-stats span { font-size: 12px; color: var(--muted); }
.report-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; margin-top: 12px; }
.report-sign { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
@media print {
    .report-stats div, .eval-track span, .radar polygon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 800px) {
    .eval-corners, .report-grid { grid-template-columns: 1fr; }
    .report-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Fusha Virtuale: shiriti i rregulluar (5 grupe) --- */
.tb-toolbar { grid-template-columns: repeat(6, 1fr); align-items: stretch; }
.tb-g-pitch, .tb-g-teams, .tb-g-players { grid-column: span 2; }
.tb-g-draw, .tb-g-actions { grid-column: span 3; }
.tb-group { gap: 8px; padding: 10px 12px; }
.tb-team-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tb-g-teams .tb-switch { margin-top: 2px; }
.tb-import { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.tb-import select { width: 100%; padding: 7px 8px; font-size: 14px; }
.tb-import .tb-btn { justify-content: center; width: 100%; }
.tb-import-none { margin: 0; }
.tb-g-actions .tb-group-body { align-items: stretch; }
.tb-g-actions .tb-btn { flex: 1; justify-content: center; white-space: nowrap; font-size: 13px; padding-left: 6px; padding-right: 6px; }
@media (max-width: 900px) {
    .tb-toolbar { grid-template-columns: 1fr 1fr; }
    .tb-toolbar > .tb-group { grid-column: span 1 !important; }
    .tb-toolbar > .tb-g-players, .tb-toolbar > .tb-g-draw, .tb-toolbar > .tb-g-actions { grid-column: span 2 !important; }
}
@media (max-width: 560px) {
    .tb-toolbar { grid-template-columns: 1fr; }
    .tb-toolbar > .tb-group { grid-column: auto !important; }
}

/* --- Hapi 15: Email dhe Domeni --- */
.md-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.md-link:hover { border-color: var(--green); }
.md-link-icon { font-size: 28px; }
.md-steps { padding-left: 22px; margin: 0; }
.md-steps > li { margin-bottom: 18px; }
.md-steps > li > strong { font-size: 16px; }
.md-dns { max-width: 520px; }
.md-dns code, .md-help code { background: var(--bg); padding: 2px 6px; border-radius: 6px; }
.md-checks { list-style: none; padding: 0; margin: 8px 0; }
.md-checks li { padding: 4px 0; }
.md-checks .bad { color: var(--red); }
.md-form, .md-test { margin-top: 8px; }
.md-test { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 10px; }
.md-help { margin: 10px 0 14px; }
.md-help summary { cursor: pointer; font-weight: 700; }
.md-force { margin: 6px 0 10px; }
.ok-text { color: #1e6b34; }

/* --- Hapi 16: Paketa e trajnerit 2 --- */
.sev { font-weight: 700; }
.sev-light { color: #7a5a00; } .sev-medium { color: #b45309; } .sev-serious { color: #a12622; }
.injury-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.injury-banner form { margin: 0; }
.goal-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.goal-item:last-of-type { border-bottom: 0; }
.goal-item.is-done { opacity: .7; }
.goal-item p { margin: 2px 0 6px; }
.goal-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.goal-form input[type=range] { flex: 1; min-width: 120px; }
.goal-form output { font-weight: 700; min-width: 40px; }
.goal-bar { display: block; flex: 1; height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; min-width: 80px; }
.goal-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #4caf50); border-radius: 999px; }
.goal-line { display: grid; grid-template-columns: 1fr 140px 44px; gap: 10px; align-items: center; padding: 5px 0; }
.goal-line b { text-align: right; }
.test-line { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.test-line .muted { grid-column: 1 / -1; }
.test-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.test-input { display: inline-flex; align-items: center; gap: 6px; }
.test-input input { width: 100px; margin: 0; text-align: right; }
.att-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 4px 0 10px; padding: 8px 10px; background: var(--bg); border-radius: 10px; }
.att-legend span { display: inline-flex; align-items: center; gap: 6px; }
.att-key { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; color: #fff; font-size: 12px; }
.att-key.att-present { background: #2e7d32; } .att-key.att-late { background: #f9a825; } .att-key.att-absent { background: var(--red); } .att-key.att-excused { background: #607d8b; }
.report-tools { max-width: 860px; margin: 0 auto 12px; }
.report-actions { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.report-actions .m-inline-form { margin: 0; }
.report-send { flex: 1; min-width: 280px; }
.report-send textarea { margin-top: 6px; }
.report h3 { margin: 18px 0 6px; }
@media (max-width: 700px) { .goal-line { grid-template-columns: 1fr 70px 40px; } }
.injury-text { flex: 1; color: inherit; }

/* ===== Hapi 17: listat e redaktueshme ===== */
.alert-error { background: #fdecef; color: #8a1424; }
.notice-info { background: #eef4ff; border: 1px solid #c9d8f5; color: #1d3a73; }
.small { font-size: 13px; }
.lo-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.lo-nav { position: sticky; top: 12px; padding: 10px; }
.lo-nav-title { margin: 10px 6px 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lo-nav-title:first-child { margin-top: 0; }
.lo-nav a { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.lo-nav a:hover { background: var(--green-soft); }
.lo-nav a.active { background: var(--select, var(--green)); color: #fff; }
.lo-main { min-width: 0; }
.lo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.lo-grid label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.lo-grid input, .lo-grid select, .lo-grid textarea { width: 100%; }
.lo-wide { grid-column: span 2; }
.lo-sort { max-width: 110px; }
.lo-row { border-top: 1px solid var(--line); padding: 12px 0; }
.lo-row:first-of-type { border-top: 0; }
.lo-off { opacity: .6; }
.lo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lo-key { background: #f1f3f4; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.lo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lo-chips .chip { background: #f1f3f4; color: var(--ink); }
@media (max-width: 760px) {
    .lo-layout { grid-template-columns: 1fr; }
    .lo-nav { position: static; }
    .lo-wide { grid-column: auto; }
}

/* ===== Pamja në telefon ===== */
.nav-burger { display: none; }

@media (max-width: 900px) {
    .container { padding: 0 14px; }
    .main { padding-top: 18px; }
    .topbar { position: sticky; top: 0; z-index: 60; }
    .topbar-inner { position: relative; height: 56px; }
    .brand span:last-child { display: inline; }

    /* Butoni ☰ */
    .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--white); }
    .nav-burger span { display: block; height: 2px; background: var(--solid); border-radius: 2px; transition: transform .2s, opacity .2s; }
    .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Menuja si listë poshtë shiritit */
    .nav { display: none; position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; align-items: stretch; gap: 0;
           background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.1); padding: 8px 14px 14px; font-size: 16px; max-height: calc(100vh - 56px); overflow-y: auto; }
    .nav-toggle:checked ~ .nav { display: flex; }
    .nav > a, .nav > form, .nav > details > summary { padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav > form .link-button { width: 100%; text-align: left; font-size: 16px; }
    .nav-admin { align-self: flex-start; margin: 8px 6px; padding: 6px 12px !important; border-bottom: 0 !important; }
    .nav-modules-menu { position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
    .nav-settings { border: 0; border-radius: 0; padding: 12px 6px; }
    .nav-settings span { display: inline !important; }
    .lang { border-left: 0; padding: 12px 6px 0; }
    .lang a { font-size: 15px; padding: 6px 12px; }

    /* Modulet: menuja e modulit si shirit që rrëshqet anash */
    .module-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .module-nav, .module-main { min-width: 0; }
    .module-nav { padding: 6px; border-radius: 14px; }
    .module-nav-head { padding: 4px 6px 8px; margin-bottom: 6px; }
    .module-icon { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
    .module-nav nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .module-nav nav::-webkit-scrollbar { display: none; }
    .module-nav nav a { flex: 0 0 auto; padding: 8px 12px; }
    .module-switch { flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 6px 2px; }
    .module-switch a { white-space: nowrap; }

    /* Tabelat rrëshqasin brenda vetes, jo gjithë faqja */
    .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { white-space: nowrap; padding: 9px 10px; }
    .panel, .card { min-width: 0; }

    .page-head { align-items: flex-start; }
    .page-head h1 { font-size: 24px; }
    h1 { font-size: 26px; }
}

@media (max-width: 600px) {
    /* iPhone nuk zmadhon faqen kur shtyp një fushë me tekst 16px */
    input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea { font-size: 16px; }
    .panel, .card { padding: 14px; }
    .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .grid-4.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-head-actions { width: 100%; }
    .head-row > span { display: flex; flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 900px) {
    .tb-layout, .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .schedule-row { grid-template-columns: 84px minmax(0, 1fr) auto; }
}
@media (max-width: 600px) {
    .eval-bar { grid-template-columns: 96px minmax(0, 1fr) 30px; font-size: 13px; }
    .schedule-row { grid-template-columns: minmax(0, 1fr) auto; }
    .schedule-row > :first-child { grid-column: 1 / -1; font-weight: 700; }
    .m-row { flex-wrap: wrap; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: 1fr 1fr; }
}


/* Kuq e Zi në telefon: menuja ☰ e zezë me shkrim të bardhë */
@media (max-width: 900px) {
    html[data-theme="red"] .nav { background: #111; border-bottom-color: #000; }
    html[data-theme="red"] .nav > a, html[data-theme="red"] .nav > form, html[data-theme="red"] .nav > details > summary { border-bottom-color: #2a2a2a; }
    html[data-theme="red"] .nav-modules-menu { background: transparent; }
    html[data-theme="red"] .nav-modules-menu a { color: #fff !important; }
    html[data-theme="red"] .nav-modules-menu a:hover, html[data-theme="red"] .nav-modules-menu a.active { background: #222; }
    html[data-theme="red"] .nav-settings { color: #fff; }
    html[data-theme="red"] .nav-burger { background: #222; border-color: #333; }
    html[data-theme="red"] .nav-burger span { background: #fff; }
}

/* Faqet e hyrjes/regjistrimit në telefon */
@media (max-width: 600px) {
    .form-card { padding: 20px 16px; border-radius: 14px; }
    .form-card h1 { font-size: 23px; }
    .main:has(.form-card) { padding-top: 14px; }
}
@media (max-width: 900px) {
    .nav > a, .nav > details > summary, .nav .link-button { font-size: 16px !important; }
    .nav > a.btn { align-self: flex-start; margin: 10px 6px 4px; padding: 8px 18px; border-bottom: 0; }
}
/* Fushat e formularëve: gjithmonë shkrim i errët në sfond të bardhë (edhe kur telefoni është në modalitet të errët) */
input, select, textarea { color: var(--ink); background-color: var(--white); }
select option { color: var(--ink); background: var(--white); }
:root { color-scheme: light; }

/* Fshirja nga admini */
.del-card { max-width: 560px; }
.del-warn { background: #fdecef; color: #8a1424; border: 1px solid #f5c2cb; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.del-owned { background: #fff7e6; border: 1px solid #f6e3bd; border-radius: 10px; padding: 10px 14px; }
.del-list { list-style: none; padding: 0; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; }
.del-list li { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--line); }
.del-list li:first-child { border-top: 0; }
.del-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ===== Hapi 19: Njoftimet (email, SMS, WhatsApp) ===== */
.nt-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 6px; }
.nt-status-card { display: flex; align-items: center; gap: 12px; margin: 0; }
.nt-status-card .m-grow { display: flex; flex-direction: column; }
.nt-status-card.off { opacity: .75; }
.nt-status-icon { font-size: 26px; }
.nt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.nt-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; max-height: 380px; overflow-y: auto; margin: 8px 0; padding: 2px; }
.nt-player { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; background: var(--white); }
.nt-player:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.nt-player[hidden] { display: none; }
.nt-player input { width: 18px; height: 18px; margin: 0; flex: none; }
.nt-pname { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nt-pname strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-u18 { font-size: 11px; font-weight: 700; color: #455a64; background: #eceff1; border-radius: 6px; padding: 1px 6px; flex: none; }
.nt-icons { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.nt-off { opacity: .3; filter: grayscale(1); }
.nt-disabled { opacity: .45; cursor: not-allowed; }
.nt-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.nt-cc[hidden] { display: none; }
.nt-summary { position: sticky; bottom: 10px; border: 2px solid var(--green); box-shadow: 0 6px 20px rgba(0,0,0,.08); z-index: 5; }
.nt-summary-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 16px; }
.nt-summary-row [hidden] { display: none; }
.nt-missing { color: #a15c00; }
.nt-recipients { display: flex; flex-direction: column; }
.nt-recipient { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.nt-recipient:first-child { border-top: 0; }
.nt-rinfo { flex: 1; min-width: 0; line-height: 1.45; }
.nt-rinfo .error { margin: 2px 0 0; }
.nt-wa-btn { white-space: nowrap; }
.nt-wa-btn.nt-done { opacity: .6; }
.nt-st-sent, .nt-st-opened { background: #e3f4e7; color: #146c2e; }
.nt-st-failed { background: #fdecec; color: #b3261e; }
.nt-st-pending { background: #fff4dc; color: #8a5a00; }
.nt-pane[hidden] { display: none; }
.nt-contacts input { min-width: 150px; margin: 0; padding: 8px 10px; }
.nt-contacts td { vertical-align: top; }
.nt-two input + input { margin-top: 6px; }
.nt-guardian2 { margin: 6px 0 10px; }
.nt-guardian2 > summary { cursor: pointer; }
.nt-group-panel { border: 2px solid #25d366; }
.nt-group-btn { font-size: 15px; padding: 10px 18px; }
.nt-group-btn.nt-done { opacity: .7; }
@media (max-width: 700px) {
    .nt-status { grid-template-columns: 1fr; }
    .nt-players { grid-template-columns: 1fr; max-height: 320px; }
    .nt-summary { position: static; box-shadow: none; }
    .nt-summary-row { gap: 12px; font-size: 15px; }
    .nt-recipient { flex-wrap: wrap; }
}

/* ===== Hapi 21: Karta e lojtarit dhe njoftimi i ndeshjes ===== */
.pcard-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: -6px 0 10px; }
.pcard { display: grid; grid-template-columns: auto 1fr minmax(220px, 280px); gap: 24px; align-items: start; }
.pcard-photo { position: relative; }
.pcard-photo .avatar { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--green), 0 8px 20px rgba(0,0,0,.12); }
.pcard-shirt { position: absolute; right: -6px; bottom: -4px; background: var(--green); color: #fff; font-weight: 800; font-size: 17px; min-width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--white); }
.pcard-name { margin: 2px 0 8px; }
.pcard-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pcard-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; margin: 0; }
.pcard-facts div { min-width: 0; }
.pcard-facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.pcard-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pcard-facts a { white-space: nowrap; }
.pcard-rating { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-align: center; }
.pcard-rating p { margin: 4px 0; }
.rating-stars { position: relative; display: inline-block; font-size: 30px; line-height: 1; letter-spacing: 3px; }
.rating-stars .rs-bg { color: #d6dcd7; }
.rating-stars .rs-fg { position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; white-space: nowrap; color: #f5b301; }
.pcard-score { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 4px; }
.pcard-score b { font-size: 30px; }
.pcard-score span { color: var(--muted); font-weight: 600; }
.pcard-score small { margin-left: 6px; font-weight: 700; }
.pcard-corners { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 8px; }
.pcard-corner { font-size: 12px; border-radius: 999px; padding: 3px 9px; background: var(--white); border: 1px solid var(--ec, var(--line)); color: var(--ec, var(--ink)); }
.pcard-corner b { margin-left: 2px; }
.nt-fixture-notify { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-left: 4px solid var(--green); }
.nt-fixture-notify .m-grow { display: flex; flex-direction: column; gap: 2px; }
.nt-fixture-notify.is-new { background: var(--green-soft); border: 2px solid var(--green); }
.nt-notify-check { margin-top: 10px; }
@media (max-width: 860px) {
    .pcard { grid-template-columns: auto 1fr; }
    .pcard-rating { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .pcard { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
    .pcard-tags { justify-content: center; }
    .pcard-facts { grid-template-columns: 1fr 1fr; text-align: left; width: 100%; }
    .pcard-rating { width: 100%; box-sizing: border-box; }
    .pcard-actions { justify-content: center; }
}

/* Zgjedhja e të ftuarve te ndeshja */
.fx-pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0 14px; background: var(--bg); }
.fx-pick .head-row label { margin: 0; }
.fx-pick .search-input { margin: 8px 0; }
.fx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; }
.fx-other { display: none; font-size: 11px; }
.nt-player.is-other { border-style: dashed; }
.nt-player.is-other .fx-other { display: inline; }
.fx-others { margin: 10px 0; }
.fx-others > summary { cursor: pointer; font-weight: 700; color: var(--green); padding: 8px 0; }
@media (max-width: 600px) { .fx-list { grid-template-columns: 1fr; } }
.fx-list .nt-player { display: flex; align-items: center; margin: 0; text-align: left; font-weight: 400; }
.fx-list .nt-pname { flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.fx-list .nt-pname small { margin: 0; }

/* Kërkimi i lojtarëve */
.pl-search { display: flex; gap: 8px; margin-bottom: 14px; }
.pl-search input { flex: 1; margin: 0; font-size: 16px; }
.pl-result { margin-bottom: 18px; }
.pl-result .pcard-actions { margin: -6px 0 0; }

/* Fleta e ndeshjes te njoftimi */
.nt-sheet-check { background: var(--green-soft); border: 1px solid var(--green); border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.nt-sheet-hint { margin: 4px 0 12px; padding-left: 18px; }
.nt-sheet-hint li { margin: 2px 0; }

/* 📍 Vendndodhja GPS */
.loc-picker { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0; background: var(--bg); }
.loc-picker > label { margin-top: 0; }
.loc-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.loc-row input { flex: 1; min-width: 220px; margin: 0; }
.loc-preview iframe { width: 100%; height: 220px; border: 0; border-radius: 10px; margin-top: 6px; background: #e8ece9; }
.loc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.loc-actions .muted { flex: 1; }
.loc-map { border-radius: 12px; overflow: hidden; }
.loc-map iframe { width: 100%; height: 260px; border: 0; display: block; }
.loc-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ===== Hapi 28: 🧰 Materialet e stërvitjes te Fusha Virtuale ===== */
.tb-items-bar { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.tb-items-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.tb-item-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 6px 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--ink); }
.tb-item-btn:hover { background: var(--green-soft); }
.tb-item-btn.active { border-color: var(--green); background: var(--green); color: #fff; }
.tb-item-icon { width: 26px; height: 26px; }
.tb-place-hint { margin: 8px 0 0; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tb-place-hint[hidden] { display: none; }
.tb-svg[data-mode="place"] { cursor: copy; }
.tb-item { cursor: grab; }
.tb-svg[data-mode="erase"] .tb-item { cursor: not-allowed; }
.tb-it-stroke { stroke: rgba(0,0,0,.35); stroke-width: .1; }
.tb-item-sel { fill: none; stroke: #fff; stroke-width: .25; stroke-dasharray: .6 .4; }
.tb-third .tb-dot { stroke: #263238; }
.tb-items-sum { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--green-soft); font-weight: 600; font-size: 14px; }
.tb-items-sum[hidden] { display: none; }
.tb-item-box h3 { margin-top: 0; }
.tb-it-colors { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tb-it-colors button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); cursor: pointer; }
.tb-it-colors button.active { outline: 3px solid var(--green); outline-offset: 2px; }
.tb-it-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.tb-it-row[hidden], [data-it-colors][hidden], .tb-it-rowbox[hidden] { display: none; }
.tb-it-row > label { width: 100%; margin: 4px 0 0; }
.tb-it-num { width: 70px; margin: 0; padding: 6px 8px; }
.tb-it-rowbox { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.tb-it-rowbox select { width: auto; margin: 0; padding: 6px 8px; }
.tb-item-box .tb-modal-actions { flex-wrap: wrap; }
@media print { .tb-items-bar, .tb-place-hint { display: none !important; } .tb-items-sum { background: none; border: 1px solid #ccc; } }

/* ===== Hapi 29: Fusha Virtuale — më shumë hapësirë për fushën ===== */
.tb-layout-wide { display: block; }
.tb-layout-wide .tb-side { position: static; margin-top: 14px; }
.tb-savebar { padding: 12px 16px; }
.tb-save-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.tb-save-title { flex: 1; min-width: 220px; }
.tb-save-title label { margin-top: 0; }
.tb-save-title input { margin: 0; }
.tb-save-public { margin: 0 0 10px; }
.tb-save-btn { min-width: 150px; }
.tb-save-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.tb-save-links input { flex: 1; min-width: 200px; margin: 0; }
.tb-save-links form { margin: 0; }

/* Shiriti i vetëm */
.tb-bar { display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; position: relative; z-index: 6; }
.tb-bar-ro { justify-content: flex-end; border: 0; background: none; padding: 0; }
.tb-bar-scroll { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.tb-bar-end { display: flex; align-items: center; gap: 6px; flex: none; }
.tb-mini { width: auto; margin: 0; padding: 7px 26px 7px 10px; font-size: 13px; font-weight: 600; border-radius: 9px; flex: none; }
.tb-sep { width: 1px; align-self: stretch; background: var(--line); flex: none; margin: 2px 2px; }
.tb-segment-mini { flex: none; }
.tb-segment-mini button { padding: 6px 10px; font-size: 15px; flex-direction: row; gap: 5px; }
.tb-segment-mini button span { font-size: 12px; }
.tb-ico { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); white-space: nowrap; }
.tb-ico span { font-size: 13px; }
.tb-ico:hover { background: var(--green-soft); }
.tb-ico.active { background: var(--green); border-color: var(--green); color: #fff; }
.tb-ico-dark { background: #1d2a1f; color: #fff; border-color: #1d2a1f; }
.tb-ico-sm { padding: 3px 8px; font-size: 13px; }

/* ⚙️ Më shumë */
.tb-more-wrap { position: relative; }
.tb-more { position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, 90vw); max-height: 70vh; overflow-y: auto; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); z-index: 20; }
.tb-more[hidden] { display: none; }
.tb-more .tb-group-title { margin: 10px 0 6px; }
.tb-more .tb-group-title:first-child { margin-top: 0; }
.tb-more .tb-team-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.tb-more .tb-team-row .tb-swatch { flex: 1; }
.tb-more .tb-import { display: flex; gap: 6px; flex-wrap: wrap; }
.tb-more .tb-import select { flex: 1; margin: 0; }
.tb-more .tb-help { margin: 10px 0 0; font-size: 12px; }

/* Fusha + paneli anash */
.tb-stage { display: flex; gap: 10px; align-items: flex-start; }
.tb-pitch-wrap { flex: 1; min-width: 0; perspective: 1700px; }
.tb-stage .tb-svg { max-width: none; width: 100%; max-height: calc(100vh - 150px); }
.tb-sidepanel { width: 250px; flex: none; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 150px); overflow-y: auto; position: sticky; top: 10px; }
.tb-sidepanel[hidden] { display: none; }
.tb-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tb-items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tb-items-grid .tb-item-btn { min-width: 0; padding: 8px 4px 6px; }
.tb-items-grid .tb-item-btn span { font-size: 10.5px; line-height: 1.15; text-align: center; }
.tb-item-btn .tb-item-icon { width: 30px; height: 30px; filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.35)); }
.tb-side-tip { font-size: 12px; margin: 8px 0; }
.tb-sidepanel .tb-place-hint { font-size: 12px; }
.tb-item-edit { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.tb-item-edit[hidden] { display: none; }
.tb-item-edit h3 { font-size: 15px; margin: 0 0 6px; }
.tb-item-edit .tb-modal-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tb-item-edit .tb-modal-actions .btn { padding: 7px 12px; font-size: 13px; }
.tb-item-edit .tb-it-row label { font-size: 12px; }
.tb-clear-all { width: 100%; margin-top: 10px; }
.tb-items-open .tb-stage .tb-svg { max-height: calc(100vh - 150px); }

/* Pamja "3D": hije dhe shkëlqim (në SVG) + 🎥 fusha e pjerrët për prezantim */
.tb-svg { transition: transform .45s ease; transform-origin: 50% 62%; }
.tb-3d .tb-svg { transform: rotateX(38deg) scale(.94); pointer-events: none; box-shadow: 0 40px 50px -20px rgba(0,0,0,.45); }
.tb-3d .tb-sidepanel { opacity: .5; pointer-events: none; }
.tb-gloss { pointer-events: none; }

/* Ekran i plotë: fusha zë gjithë lartësinë */
.tb-is-full .tb-stage .tb-svg, .tb-is-full .tb-sidepanel { max-height: calc(100vh - 80px); }

@media (max-width: 760px) {
    .tb-bar { padding: 4px; gap: 4px; }
    .tb-ico span, .tb-segment-mini button span { display: none; }
    .tb-ico { padding: 7px 9px; }
    .tb-stage { display: block; }
    .tb-stage .tb-svg { max-height: none; }
    /* Materialet në telefon: sirtar nga poshtë */
    .tb-sidepanel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 46vh; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.25); z-index: 40; top: auto; }
    .tb-items-grid { grid-template-columns: repeat(5, 1fr); }
    .tb-more { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 70vh; }
}
@media print { .tb-bar, .tb-sidepanel { display: none !important; } }
.tb-bar .tb-segment-mini { display: inline-flex; width: auto; flex: none; }
.tb-bar .tb-segment-mini button { flex: none; min-width: 0; }
.tb-sidepanel .tb-it-row { gap: 4px; }
.tb-sidepanel input.tb-it-num { width: 58px; min-width: 0; display: inline-block; padding: 5px 6px; font-size: 13px; }
.tb-sidepanel .tb-it-rowbox select { width: auto; display: inline-block; padding: 5px 6px; font-size: 13px; }
.tb-sidepanel .tb-it-rowbox .tb-btn { margin-top: 4px; }
.tb-3d .tb-svg { transform: rotateX(34deg) scale(.95) translateY(-3%); }
.tb-bar select.tb-mini { width: auto; min-width: 0; flex: none; }
.tb-bar #tb-size { width: 78px; }
.tb-bar #tb-formation { width: 96px; }
.tb-bar #tb-view { width: 118px; }
@media (max-width: 1180px) { .tb-bar .tb-segment-mini button span { display: none; } .tb-bar .tb-segment-mini button { padding: 6px 12px; } }
/* Faqet e Fushës Virtuale: më shumë gjerësi */
.container.main-wide { max-width: 1440px; }
.tb-stage .tb-svg { width: 100%; height: auto; aspect-ratio: var(--ar, .885); max-width: calc((100vh - 140px) * var(--ar, .885)); max-height: none; margin: 0 auto; }
.tb-is-full .tb-stage .tb-svg { max-width: calc((100vh - 70px) * var(--ar, .885)); }
@media (max-width: 760px) { .tb-stage .tb-svg { max-width: none; } }
.tb-bar #tb-size { width: 90px; }
/* Fusha sa lartësia e ekranit; paneli i materialeve ngjitur me të */
.tb-stage { justify-content: center; }
.tb-stage .tb-pitch-wrap { flex: 0 1 calc((100vh - 140px) * var(--ar, .885)); }
.tb-is-full .tb-stage .tb-pitch-wrap { flex-basis: calc((100vh - 70px) * var(--ar, .885)); }
.tb-stage .tb-svg { max-width: none; }
@media (max-width: 760px) { .tb-stage .tb-pitch-wrap { flex: none; } }

/* ---- Hapi 30: 🧍 figurat e lojtarëve, ⚽ topi klasik, 🎬 lëvizjet ---- */
.tb-num-fig { font-size: 1.45px; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: .22px; }
.tb-third .tb-num-fig { fill: #1b1b1b; stroke: rgba(255,255,255,.5); }
.tb-trail { stroke-width: .38; stroke-dasharray: .9 .7; fill: none; opacity: .85; pointer-events: none; }
.tb-trail-dot { opacity: .55; pointer-events: none; stroke: none !important; }
.tb-trail-home { stroke: #bbdefb; fill: #bbdefb; }
.tb-trail-away { stroke: #ffcdd2; fill: #ffcdd2; }
.tb-trail-third { stroke: #fff59d; fill: #fff59d; }
.tb-trail-ball { stroke: #fff; fill: #fff; stroke-dasharray: .4 .5; }
path.tb-trail { fill: none !important; }
.tb-curve-h { cursor: grab; touch-action: none; }
.tb-curve-dot { fill: rgba(255,255,255,.35); stroke: #fff; stroke-width: .22; }
.tb-curve-h.tb-curved .tb-curve-dot { fill: #ffd54a; stroke: #1b1b1b; }
.tb-curve-h:hover .tb-curve-dot { fill: #ffd54a; }
.tb-ball-ring { fill: none; stroke: #ffd54a; stroke-width: .35; stroke-dasharray: .8 .5; }
.tb-playing .tb-svg { cursor: default; }
.tb-anim { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; padding: 8px 10px;
    border-radius: 12px; background: #102a1a; color: #e8f5e9; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.tb-anim[hidden] { display: none; }
.tb-anim-play { min-width: 44px; height: 38px; font-size: 18px; border-radius: 50%; background: #2e7d32; color: #fff; border: 0; }
.tb-anim-play:disabled { opacity: .45; }
.tb-anim-steps { display: flex; gap: 5px; flex: 1 1 200px; overflow-x: auto; align-items: center; min-height: 34px; }
.tb-anim-step { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: #fff; font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.tb-anim-step.active { background: #ffd54a; color: #1b1b1b; border-color: #ffd54a; }
.tb-anim-hint { font-size: 13px; opacity: .85; }
.tb-anim { flex-wrap: nowrap; }
.tb-anim > * { flex: 0 0 auto; width: auto; margin: 0; }
.tb-anim > .tb-anim-steps { flex: 1 1 auto; min-width: 0; }
.tb-anim-speed { height: 34px; border-radius: 8px; width: auto !important; padding: 0 8px; }
.tb-anim .tb-btn { height: 34px; width: auto; }
@media (max-width: 600px) { .tb-anim { flex-wrap: wrap; } .tb-anim > .tb-anim-steps { flex-basis: 100%; order: 5; } }
.tb-anim-count:not(:empty) { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ffd54a; color: #1b1b1b; font-size: 11px; line-height: 18px; }
#tb-anim-toggle.active { background: #ffd54a; color: #1b1b1b; }
.tb-is-full .tb-anim { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 6; max-width: 94%; }
@media print { .tb-anim { display: none !important; } }

/* ---- Hapi 32: 📲 hyrja, aplikacioni i instalueshëm, 👨‍👩‍👧 familja ---- */
.main-auth { padding-top: 0; }
.auth-wrap { max-width: 440px; margin: 0 auto; }
.main-auth { overflow-x: hidden; }
.auth-hero { text-align: center; color: #fff; margin: 0 calc(50% - 50vw); padding: 34px 16px 70px;
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); }
.auth-hero h1 { margin: 10px 0 2px; font-size: 30px; letter-spacing: .5px; }
.auth-hero p { margin: 0; opacity: .9; }
.auth-logo { border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.auth-card { margin-top: -50px; position: relative; box-shadow: 0 14px 36px rgba(16,42,26,.14); }
.auth-card h2 { margin: 0 0 6px; font-size: 21px; }
.auth-brand { text-align: center; margin-bottom: 6px; }
.auth-brand img { border-radius: 16px; }
.btn-big { padding: 14px 18px; font-size: 17px; border-radius: 12px; }
.pw-field { position: relative; }
.pw-field input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 18px; cursor: pointer; padding: 6px; }
.auth-who { display: grid; gap: 8px; margin: 18px 0; }
.auth-who > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.auth-who span { grid-column: 2; color: var(--muted); font-size: 13px; }

.pwa-install { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 12px 0; border-radius: 14px;
    background: var(--green-soft); border: 1px solid rgba(20,108,46,.18); }
.pwa-install[hidden] { display: none; }
.pwa-install > .m-grow { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pwa-install-ico img { border-radius: 11px; display: block; }
.pwa-close { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px; }
.is-app .footer { display: none; }

.nav-family { font-weight: 700; }
.fam { max-width: 760px; margin: 0 auto; }
.fam-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.fam-head h1 { margin: 0; }
.fam-kids { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 4px; padding-bottom: 4px; }
.fam-kid { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--white);
    border: 1px solid var(--line); color: var(--ink); text-decoration: none; flex: 0 0 auto; font-weight: 600; }
.fam-kid.active { background: var(--green); color: #fff; border-color: var(--green); }
.fam-h2 { font-size: 18px; margin: 26px 0 10px; }
.fam-event { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid #90a4ae;
    border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.fam-event.fam-fixture { border-left-color: #ef6c00; }
.fam-event.is-yes { border-left-color: #2e7d32; }
.fam-event.is-no { border-left-color: var(--red); opacity: .92; }
.fam-date { display: flex; flex-direction: column; align-items: center; min-width: 50px; line-height: 1.1; }
.fam-day { font-size: 26px; font-weight: 800; }
.fam-mon { font-size: 13px; text-transform: uppercase; font-weight: 700; color: var(--green); }
.fam-dow { font-size: 12px; color: var(--muted); }
.fam-info { flex: 1; min-width: 0; }
.fam-info h3 { margin: 2px 0; font-size: 17px; }
.fam-kind { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.fam-info p { margin: 2px 0; }
.fam-ans { margin-top: 6px !important; color: var(--muted); }
.fam-drill { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.fam-drill .m-grow { display: flex; flex-direction: column; flex: 1; }
.fam-drill-ico { font-size: 24px; }
.form-card-wide { max-width: 560px; }
.fam-rel { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fam-invite-lead { font-size: 16px; }
.fam-perks { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 6px; }
.fam-perks li { background: var(--green-soft); border-radius: 10px; padding: 8px 12px; font-size: 14px; }

.fam-coach .fam-links { list-style: none; padding: 0; margin: 0 0 10px; }
.fam-coach .fam-links li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fam-invite-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.fam-invite-box { background: var(--green-soft); border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; }
.fam-invite-box p { margin: 0 0 6px; }
.fam-invite-url { width: 100%; font-size: 13px; margin: 0 0 8px; }
.fam-invite-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fam-reqs { border-left: 4px solid #ffb300; }
.fam-req { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.fam-req .m-grow { flex: 1 1 220px; }
.fam-req-ok { display: flex; gap: 6px; align-items: center; }
.fam-req-ok select { margin: 0; max-width: 220px; }
.fam-sum .panel-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-sum-list { list-style: none; padding: 0; margin: 0; columns: 2 260px; }
.fam-sum-list li { padding: 3px 0; break-inside: avoid; }
.tb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.tb-share-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px;
    border: 2px solid var(--gc, var(--green)); font-size: 13px; cursor: pointer; }
.tb-share-chip input { margin: 0; accent-color: var(--gc, var(--green)); }
@media (max-width: 600px) {
    .fam-event { padding: 10px 12px; gap: 10px; }
    .fam-date { min-width: 42px; }
    .fam-day { font-size: 22px; }
    .auth-hero { padding-top: 24px; }
}

/* ---- Hapi 33: ✓/✕ të vegjël, 🔔 zilja, 💬 chat-i ---- */
.fam-rsvp { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; }
.fam-rsvp button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: var(--white);
    font-size: 17px; font-weight: 800; line-height: 1; cursor: pointer; color: var(--muted); padding: 0; }
.fam-rsvp .fam-yes:hover, .fam-rsvp .fam-yes.on { border-color: #2e7d32; color: #2e7d32; }
.fam-rsvp .fam-no:hover, .fam-rsvp .fam-no.on { border-color: var(--red); color: var(--red); }
.fam-rsvp .fam-yes.on { background: #2e7d32; color: #fff; }
.fam-rsvp .fam-no.on { background: var(--red); color: #fff; }
.fam-no-form { display: flex; gap: 6px; margin-top: 8px; }
.fam-no-form[hidden] { display: none; }
.fam-no-form input { margin: 0; flex: 1; min-width: 0; }
.btn-danger-soft { background: #fdecea; color: var(--red) !important; border: 1px solid #f5c6c0; }
.btn-danger-soft:hover { background: #fbd9d4; }
.reg-coach[hidden], #child-fields[hidden] { display: none; }

.nav-bell { position: relative; margin-left: auto; font-size: 20px; text-decoration: none; padding: 4px 6px; line-height: 1; }
.bell-count, .chat-count { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-style: normal; }
.bell-count[hidden], .chat-count[hidden] { display: none; }
.notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px;
    background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.notif-row.unread { border-left: 4px solid var(--green); background: #fbfefb; }
.notif-row .m-grow { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.notif-ico { font-size: 22px; line-height: 1.2; }
.notif-body { font-size: 14px; color: var(--ink); white-space: pre-line; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 6px; }
.push-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.push-panel .m-grow { display: flex; flex-direction: column; flex: 1 1 220px; }
.push-panel form { margin: 0; }

.chat-bubble { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
    border: 0; background: var(--green); color: #fff; font-size: 26px; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.chat-bubble:hover { background: var(--green-deep, var(--green-dark)); }
.chat-bubble .chat-count { top: 0; right: 0; }
.chat { position: fixed; right: 18px; bottom: 88px; z-index: 61; width: 360px; max-width: calc(100vw - 24px); height: min(560px, calc(100vh - 120px)); }
.chat[hidden] { display: none; }
.chat-panel { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 18px 48px rgba(0,0,0,.28); border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--green); color: #fff; }
.chat-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-back, .chat-x { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 8px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.chat-back[hidden] { display: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 8px; background: #f3f6f3; display: flex; flex-direction: column; gap: 6px; }
.chat-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 12px;
    background: var(--white); cursor: pointer; color: var(--ink); font: inherit; }
.chat-item:hover { background: var(--green-soft); }
.chat-item.unread b { color: var(--green); }
.chat-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.chat-mid { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-n { background: var(--red); color: #fff; border-radius: 10px; min-width: 20px; padding: 0 6px; font-size: 12px; font-weight: 700; text-align: center; }
.chat-msg { max-width: 82%; padding: 7px 10px 5px; border-radius: 14px 14px 14px 4px; background: var(--white); align-self: flex-start;
    box-shadow: 0 1px 1px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.chat-msg.mine { align-self: flex-end; background: #d9f2df; border-radius: 14px 14px 4px 14px; }
.chat-who { font-size: 12px; font-weight: 700; color: var(--green); }
.chat-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.chat-at { font-size: 10.5px; color: var(--muted); align-self: flex-end; }
.chat-empty, .chat-loading { color: var(--muted); text-align: center; margin: 24px 12px; font-size: 14px; }
.chat-form { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form[hidden] { display: none; }
.chat-form textarea { flex: 1; margin: 0; resize: none; min-height: 40px; max-height: 120px; border-radius: 20px; padding: 9px 14px; font: inherit; }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 18px; cursor: pointer; flex: 0 0 auto; }
@media (max-width: 600px) {
    .chat { right: 0; bottom: 0; width: 100vw; max-width: none; height: 100dvh; }
    .chat-panel { border-radius: 0; }
    .chat-open .chat-bubble { display: none; }
    .chat-open body { overflow: hidden; }
    .chat-bubble { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media print { .chat, .chat-bubble { display: none !important; } }
.btn[hidden] { display: none !important; }
.fam-head .btn { white-space: nowrap; }
.fam-head h1 { font-size: 26px; }

/* ---- Hapi 34: 💶 Pagesat ---- */
.fee-month { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.fee-month b { font-size: 18px; min-width: 150px; text-align: center; }
.stat-ok .stat-num { color: #2e7d32; }
.stat-bad .stat-num { color: var(--red); }
.fee-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.fee-filter .chip { text-decoration: none; }
.fee-filter .chip.active { background: var(--green); color: #fff; }
.fee-table { display: flex; flex-direction: column; }
.fee-row { display: grid; grid-template-columns: minmax(160px, 2fr) 110px minmax(130px, 1.2fr) auto; gap: 10px; align-items: center;
    padding: 9px 4px; border-bottom: 1px solid var(--line); }
.fee-row:last-child { border-bottom: 0; }
.fee-who, .fee-st { display: flex; flex-direction: column; min-width: 0; }
.fee-amt { font-weight: 700; text-align: right; }
.fee-badge { font-size: 13px; font-weight: 700; }
.fee-badge-paid { color: #2e7d32; }
.fee-badge-overdue { color: var(--red); }
.fee-badge-open { color: #8d6e00; }
.fee-act { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.fee-act form { margin: 0; }
.fee-pay { display: flex; gap: 6px; }
.fee-pay select { margin: 0; width: auto; padding: 6px 8px; }
.fee-overdue { background: #fff7f6; }
.fee-batch { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 8px; }
.fee-batch summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; }
.fee-batch summary::-webkit-details-marker { display: none; }
.fee-batch .m-grow { flex: 1; }
.fee-progress { min-width: 64px; text-align: center; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
    background: linear-gradient(90deg, #c8e6c9 var(--p), #eef2ee var(--p)); }
.fee-batch-del { margin: 6px 0 10px; }
.fee-new { margin-top: 10px; }
.fee-new > summary { list-style: none; display: inline-block; cursor: pointer; }
.fee-new > summary::-webkit-details-marker { display: none; }
.fee-extra-form { margin-top: 12px; }
.fee-target { border: 0; padding: 0; margin: 8px 0; }
.fee-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px 26px; }
.fee-pick[hidden] { display: none; }
.fee-pick-players { max-height: 220px; overflow-y: auto; flex-direction: column; flex-wrap: nowrap; }
.fee-report { margin-bottom: 12px; }
.fee-report td:not(:first-child), .fee-report th:not(:first-child) { text-align: right; }
.fee-groups { display: flex; flex-direction: column; margin-bottom: 10px; }
.fee-group { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.fee-input { display: flex; align-items: center; gap: 6px; }
.fee-input input { width: 120px; margin: 0; text-align: right; }
.fee-override { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fee-override form { margin: 0; }
.fee-override-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fee-override-form > * { margin: 0; width: auto; flex: 1 1 130px; }
.fee-override-form button { flex: 0 0 auto; }
.fee-settings { border: 0; padding: 0; margin: 0; }
.fee-check { display: flex; align-items: flex-end; }
.fam-fee { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid #ffb300;
    border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.fam-fee .m-grow { display: flex; flex-direction: column; flex: 1; }
.fam-fee.is-late { border-left-color: var(--red); }
.fam-fee-paid { border-left-color: #2e7d32; }
.fam-fee-amt { font-size: 17px; }
.fee-late { color: var(--red); }
.fam-fee-ok { color: #2e7d32; font-weight: 600; }
.fam-bank { background: var(--green-soft); border-radius: 10px; padding: 8px 12px; }
.fam-bank span { white-space: pre-line; }
.fam-fee-hist summary { cursor: pointer; margin: 6px 0; color: var(--muted); }
.fam-overview .fam-req-ok select { max-width: 200px; }
@media (max-width: 700px) {
    .fee-row { grid-template-columns: 1fr auto; grid-template-areas: "who amt" "st act"; row-gap: 6px; }
    .fee-who { grid-area: who; }
    .fee-amt { grid-area: amt; }
    .fee-st { grid-area: st; }
    .fee-act { grid-area: act; }
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.fee-override .m-grow { flex: 1; }
.fee-batch summary .m-grow { display: flex; flex-direction: column; }

/* ---- Hapi 35: 📸 Galeria ---- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.album-grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.album-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.album-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,42,26,.12); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e8f3ea, #cfe6d4); display: block; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: .5; }
.album-count, .album-vis { position: absolute; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
.album-count { left: 8px; }
.album-vis { right: 8px; }
.album-meta { display: flex; flex-direction: column; padding: 10px 12px; gap: 2px; }
.album-new > summary { cursor: pointer; list-style: none; }
.album-new > summary::-webkit-details-marker { display: none; }
.album-new[open] > summary { margin-bottom: 10px; }
.album-vis-pick { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }

.gal-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.gal-head h1 { margin: 2px 0 4px; }
.gal-desc { white-space: pre-line; max-width: 760px; }
.gal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.gal-upload-btn { cursor: pointer; }
.gal-progress { flex: 1 1 100%; position: relative; height: 26px; border-radius: 13px; background: #eef2ee; overflow: hidden; }
.gal-progress[hidden] { display: none; }
.gal-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #66bb6a, #2e7d32); transition: width .3s; }
.gal-progress b { position: relative; display: block; text-align: center; line-height: 26px; font-size: 13px; }
.gal-edit { flex: 1 1 100%; }
.gal-edit > summary { list-style: none; display: inline-block; cursor: pointer; }
.gal-edit > summary::-webkit-details-marker { display: none; }
.gal-edit form { margin-top: 10px; }
.gal-del { margin-top: 8px; }
.gal-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 14px 0; }
.gal-video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.gal-video iframe { width: 100%; height: 100%; border: 0; }
/* Rrjet "justified": rreshta me lartësi të njëjtë, fotot sipas përmasave. */
.gal-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.gal-grid::after { content: ''; flex-grow: 999; }
.gal-item { position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 200px); height: 200px; padding: 0; border: 0;
    border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #e9efe9; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gal-item:hover img { transform: scale(1.03); }
.gal-likes, .gal-cover-tag { position: absolute; bottom: 6px; left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.gal-cover-tag { left: auto; right: 6px; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(8,12,9,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-open body { overflow: hidden; }
.lb-fig { margin: 0; max-width: 94vw; max-height: 82vh; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 94vw; max-height: 76vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #e8f5e9; margin-top: 8px; text-align: center; min-height: 1.2em; }
.lb-x { position: absolute; top: 12px; right: 14px; }
.lb-x, .lb-nav { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-bar { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center;
    background: rgba(0,0,0,.5); padding: 6px 10px; border-radius: 999px; color: #fff; max-width: 96vw; flex-wrap: wrap; justify-content: center; }
.lb-count { font-size: 13px; opacity: .85; }
.lb-tags { font-size: 13px; }
.lb-btn { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; text-decoration: none; font-size: 14px; }
.lb-btn.on { background: rgba(229,57,53,.35); }
.lb-tagbox { position: absolute; right: 14px; bottom: 70px; width: min(340px, 92vw); max-height: 60vh; overflow-y: auto; background: var(--white);
    color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.lb-tagbox[hidden] { display: none; }
.lb-people { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.fam-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-bottom: 10px; }
.fam-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.fam-consent { margin-top: 22px; }
.fam-consent-row { display: flex; gap: 8px; }
.fam-consent-row select { margin: 0; flex: 1; }
.fx-album { margin: 10px 0; }
@media (max-width: 600px) {
    .gal-item { height: 120px; flex-basis: calc(var(--r) * 120px); }
    .lb-nav { display: none; }
    .album-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.lb { background: rgba(6,10,7,.97); }
.lb-bar { flex-wrap: nowrap; border-radius: 16px; }
@media (max-width: 600px) {
    .lb-tags { display: none; }
    .lb-bar { gap: 6px; padding: 6px 8px; bottom: 10px; }
    .lb-btn { padding: 6px 10px; }
    .lb-tagbox { right: 3vw; bottom: 64px; }
}
.lb-count, .lb-btn { white-space: nowrap; }

/* ---- Familja: karta e lojtarit lart + skedat ---- */
.fam-kids { margin: 0 0 10px; }
.fam-kid-add { padding: 6px 12px; color: var(--green); }
.fam-hero { position: relative; border-radius: 20px; padding: 20px 20px 16px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 140% at 100% 0%, #2fa356 0%, var(--green) 45%, var(--green-dark) 100%);
    box-shadow: 0 14px 34px rgba(16,58,30,.22); }
.fam-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
    border: 18px solid rgba(255,255,255,.07); pointer-events: none; }
.fam-hero-main { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.fam-hero-photo { flex: 0 0 auto; border-radius: 50%; padding: 3px; background: rgba(255,255,255,.9); box-shadow: 0 6px 18px rgba(0,0,0,.25); display: inline-flex; }
.fam-hero-photo img, .fam-hero-photo .avatar { border-radius: 50%; }
.fam-hero-txt { min-width: 0; flex: 1; }
.fam-hero-eyebrow { margin: 0; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; opacity: .85; font-weight: 700; }
.fam-hero h1 { margin: 2px 0 6px; font-size: 26px; line-height: 1.15; color: #fff; }
.fam-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 13px; }
.fam-hero-meta span { background: rgba(255,255,255,.15); padding: 2px 9px; border-radius: 999px; }
.fam-hero-group { border-left: 4px solid var(--gc, #fff); }
.fam-hero-add { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; background: rgba(255,255,255,.15); text-decoration: none; }
.fam-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.fam-stat { display: flex; align-items: center; gap: 8px; text-align: left; padding: 10px; border: 0; border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font: inherit; min-width: 0; }
.fam-stat:hover { background: rgba(255,255,255,.22); }
.fam-stat > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fam-stat b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-stat small { font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-stat-ico { font-size: 20px; }
.fam-stat-warn { background: rgba(255,213,74,.25); }
.fam-stat-bad { background: rgba(229,57,53,.55); }
.fam-tabs { display: flex; gap: 4px; margin: 16px 0 6px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    position: sticky; top: 64px; z-index: 5; overflow-x: auto; scrollbar-width: none; }
.fam-tabs::-webkit-scrollbar { display: none; }
.fam-tabs button { flex: 1 0 auto; border: 0; background: none; padding: 9px 12px; border-radius: 10px; cursor: pointer; font: inherit;
    font-weight: 600; color: var(--muted); white-space: nowrap; position: relative; }
.fam-tabs button.active { background: var(--green); color: #fff; box-shadow: 0 4px 10px rgba(20,108,46,.25); }
.fam-tab-n { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
    font-size: 11px; line-height: 18px; text-align: center; }
.fam:not(.fam-js) .fam-tabs { display: none; }
.fam-tab[hidden] { display: none; }
.fam-h2-first { margin-top: 12px; }
.fam-js .fam-h2-first { display: none; }
@media (max-width: 600px) {
    .fam-hero { padding: 16px 14px 12px; border-radius: 16px; }
    .fam-hero h1 { font-size: 21px; }
    .fam-hero-main { gap: 12px; }
    .fam-hero-photo .avatar, .fam-hero-photo img { width: 64px !important; height: 64px !important; }
    .fam-stat { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; }
    .fam-stat-ico { font-size: 16px; }
    .fam-stat b { font-size: 13px; }
    .fam-tabs button { display: flex; flex-direction: column; align-items: center; font-size: 19px; padding: 6px 6px 4px; line-height: 1.1; flex: 1 1 0; }
    .fam-tabs button span { font-size: 10.5px; font-weight: 600; margin-top: 2px; }
    .fam-tab-n { position: absolute; top: 2px; right: 4px; margin: 0; }
    .fam-tabs { top: 58px; }
}
.fee-repeat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 4px 0; }
.fee-weeks { display: inline-flex; align-items: center; gap: 6px; }
.fee-weeks[hidden], p[data-weeks][hidden] { display: none; }
.fee-weeks input { width: 70px; margin: 0; }
.fee-sub { margin: 16px 0 2px; font-size: 15px; }

/* ---- Hapi 39: 🔐 lejet, ⏳ aprovimet, 📜 historiku ---- */
.perms-wrap { overflow-x: auto; }
.perms-table td, .perms-table th { vertical-align: middle; }
.perms-table th:not(:first-child) { min-width: 150px; }
.perms-sel { margin: 0; width: 100%; font-size: 14px; }
.perms-sel.perms-yes { border-color: #a5d6a7; }
.perms-sel.perms-no { border-color: #ef9a9a; }
.perms-sel.perms-approve, .perms-sel.perms-limited { border-color: #ffe082; }
.perms-club > summary { cursor: pointer; list-style: none; }
.perms-club > summary::-webkit-details-marker { display: none; }
.perms-club[open] > summary { margin-bottom: 10px; }
.audit-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-row .m-grow { flex: 1; }
.audit-ico { font-size: 18px; }
.fee-head-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.fee-override.is-pending { background: #fffbea; border-radius: 8px; padding-left: 6px; }
.fee-decide { display: flex; gap: 6px; margin: 0; }
.fee-batch-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 6px 0 10px; }
.fee-batch-tools .fee-batch-del { margin: 0; }
.fee-batch-edit > summary { list-style: none; cursor: pointer; }
.fee-batch-edit > summary::-webkit-details-marker { display: none; }
.fee-edit-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fee-edit-form input { margin: 0; width: auto; flex: 1 1 120px; }

/* ---- Hapi 40: 🔁 Transferimet ---- */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.tr-card select, .tr-card input[type=search] { width: 100%; }
.tr-players { height: auto; min-height: 150px; }
.tr-players option { padding: 4px 6px; }
.tr-what { list-style: none; padding: 0; margin: 8px 0 12px; }
.tr-what li { padding: 2px 0; }

/* ---- Hapi 42: 🔒 të dhënat zyrtare ---- */
.is-locked select, .is-locked input { pointer-events: none; background: #f2f4f2; color: var(--muted); }
.is-locked label::after { content: ' 🔒'; }
input[readonly] { background: #f2f4f2; color: var(--muted); }
.fam-change { margin-top: 12px; }
.fam-change details > summary { list-style: none; display: inline-block; cursor: pointer; }
.fam-change details > summary::-webkit-details-marker { display: none; }
.fam-change-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fam-change-form > * { margin: 0; flex: 1 1 140px; width: auto; }
.fam-change-form button { flex: 0 0 auto; }
.fam-change-row { margin: 4px 0; }
.fam-match { display: block; color: var(--green); font-weight: 600; margin-bottom: 2px; }

/* =====================================================================
   Hapi 44 — 🎨 Pamja e re: shkronjat Inter, butona/fusha më të holla,
   🏟️ sfondet (foto e fushës / vijat / topa), ✨ animacionet, 📣 bordurat.
   ===================================================================== */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700 800; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700 800; font-display: swap; src: url(../fonts/inter-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --line: #e2e7e3;
    --field-line: #d5dcd7;
    --ring: color-mix(in srgb, var(--green) 20%, transparent);
    --shadow-card: 0 1px 2px rgba(16, 40, 24, .05), 0 6px 18px rgba(16, 40, 24, .05);
    --ui-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 109 72'%3E%3Cg fill='none' stroke='%23146c2e' stroke-opacity='.16' stroke-width='.35'%3E%3Crect width='105' height='68'/%3E%3Cpath d='M52.5 0v68'/%3E%3Ccircle cx='52.5' cy='34' r='9.15'/%3E%3Cpath d='M0 13.84h16.5v40.32H0M105 13.84H88.5v40.32H105M0 24.84h5.5v18.32H0M105 24.84H99.5v18.32H105'/%3E%3Cpath d='M16.5 26.7a9.15 9.15 0 0 1 0 14.6M88.5 26.7a9.15 9.15 0 0 0 0 14.6'/%3E%3C/g%3E%3C/svg%3E");
    --ui-balls: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23146c2e' stroke-opacity='.11' stroke-width='1.4'%3E%3Cg transform='translate(28 30) rotate(12)'%3E%3Ccircle r='13'/%3E%3Cpath d='M0-5l4.8 3.5-1.8 5.6h-6l-1.8-5.6z M0-5V-13 M4.8-1.5l7.6-2.5 M3 4.1l4.6 6.4 M-3 4.1l-4.6 6.4 M-4.8-1.5l-7.6-2.5'/%3E%3C/g%3E%3Cg transform='translate(88 86) rotate(-20) scale(.8)'%3E%3Ccircle r='13'/%3E%3Cpath d='M0-5l4.8 3.5-1.8 5.6h-6l-1.8-5.6z M0-5V-13 M4.8-1.5l7.6-2.5 M3 4.1l4.6 6.4 M-3 4.1l-4.6 6.4 M-4.8-1.5l-7.6-2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px; line-height: 1.5;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}
h1 { font-size: 26px; letter-spacing: -.015em; line-height: 1.2; }
h2 { font-size: 20px; letter-spacing: -.01em; }
h3 { font-size: 16px; }
.page-head h1 { font-size: 26px; }
.hero h1 { letter-spacing: -.025em; }

/* Butonat: më të ulët, më të hollë */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; padding: 8px 16px; font-size: 14px; font-weight: 600; line-height: 1.2;
    border-radius: 9px; position: relative; overflow: hidden; vertical-align: middle;
    box-shadow: 0 1px 2px rgba(16, 40, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: background-color .15s, border-color .15s, box-shadow .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn-small { min-height: 32px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-outline, .btn-light { background: #fff; border: 1px solid var(--field-line); box-shadow: 0 1px 2px rgba(16, 40, 24, .05); }
.btn-outline:hover, .btn-light:hover { background: #f5f8f6; border-color: #c3ccc5; }

/* Fushat e formularit */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=tel], input[type=url], input[type=search], input[type=time], input[type=datetime-local], input[type=month],
select, textarea {
    font-size: 14px; padding: 8px 11px; min-height: 38px;
    border: 1px solid var(--field-line); border-radius: 9px; background-color: #fff; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 0; line-height: 1.5; }
select {
    -webkit-appearance: none; appearance: none; padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b5e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
}
select[multiple] { background-image: none; padding-right: 11px; }
input:hover, select:hover, textarea:hover { border-color: #bfc9c2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--ring); }
input::placeholder, textarea::placeholder { color: #9aa69d; }
label { font-size: 13px; font-weight: 600; color: #34423a; margin: 14px 0 6px; }
.check { font-size: 14px; color: var(--ink); }
.hint { font-size: 12.5px; }

/* Kartat, panelet, tabelat, etiketat */
.card, .panel { border-color: var(--line); box-shadow: var(--shadow-card); }
.panel { border-radius: 14px; padding: 18px; }
.card { padding: 18px; }
.panel-title { font-size: 15px; }
.table { font-size: 13.5px; }
.table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; background: #f6f8f6; }
.badge { font-size: 12px; padding: 2px 9px; }
.badge-muted { background: #eef1ef; color: var(--muted); }
.alert { border-radius: 12px; font-size: 14px; }
.nav a { font-size: 14px; font-weight: 500; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.danger-link { color: var(--red) !important; }

/* ---- 🏟️ Sfondet ---- */
body.ui-bg-photo {
    background: linear-gradient(rgba(6, 34, 14, var(--ui-veil)), rgba(6, 34, 14, var(--ui-veil))), var(--ui-photo) center / cover fixed no-repeat #2f6a2c;
}
@media (max-width: 760px) {
    body.ui-bg-photo { background-image: linear-gradient(rgba(6, 34, 14, var(--ui-veil)), rgba(6, 34, 14, var(--ui-veil))), var(--ui-photo-m); background-attachment: scroll; }
}
body.ui-bg-lines { background: var(--ui-lines) center / min(1500px, 96vw) auto fixed no-repeat, #eef3ef; }
body.ui-bg-balls { background: var(--ui-balls) 0 0 / 120px 120px, #f4f6f3; }

/* Me foton, përmbajtja rri mbi një "fletë" të çelët — bari duket si kornizë anash */
body.ui-bg-photo main.main {
    width: calc(100% - 32px); max-width: 1100px;
    margin: 22px auto 28px; padding: 26px 26px 34px;
    background: rgba(246, 248, 245, .95);
    border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
@supports (backdrop-filter: blur(4px)) {
    body.ui-bg-photo main.main { background: rgba(246, 248, 245, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    body.ui-bg-photo .topbar, body.ui-bg-photo .footer { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
@media (max-width: 760px) {
    body.ui-bg-photo main.main { width: calc(100% - 14px); margin: 8px auto 14px; padding: 16px 14px 24px; border-radius: 16px; }
}
@media print {
    body[class*="ui-bg-"] { background: #fff !important; }
    body.ui-bg-photo main.main { box-shadow: none; padding: 0; margin: 0; width: 100%; background: #fff; }
}

/* Mostrat te Cilësimet → Pamja */
.ui-sub { font-size: 15px; margin: 24px 0 2px; }
.ui-bg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.ui-bg-card { position: relative; margin: 0; cursor: pointer; font-weight: 500; }
.ui-bg-card input { position: absolute; opacity: 0; pointer-events: none; }
.ui-bg-sample { display: block; position: relative; height: 76px; border-radius: 11px; border: 2px solid var(--line); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ui-bg-sample i { position: absolute; inset: 18px 18px; background: rgba(255, 255, 255, .95); border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.ui-bg-card input:checked + .ui-bg-sample { border-color: var(--green); box-shadow: 0 0 0 3px var(--ring); }
.ui-bg-card input:focus-visible + .ui-bg-sample { box-shadow: 0 0 0 3px var(--ring); }
.ui-bg-name { display: block; text-align: center; font-size: 13px; margin-top: 6px; color: var(--ink); }
.ui-bg-name small { display: block; font-weight: 400; }
.ui-sample-photo { background: var(--ui-photo) center / cover #2f6a2c; }
.ui-sample-lines { background: var(--ui-lines) center / 140% auto no-repeat, #eef3ef; }
.ui-sample-balls { background: var(--ui-balls) 0 0 / 60px 60px, #f4f6f3; }
.ui-sample-none { background: #f5f6f4; }
.ui-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--field-line); border-radius: 10px; overflow: hidden; background: #fff; margin-top: 8px; }
.ui-seg label { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.ui-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ui-seg span { display: block; padding: 8px 14px; font-size: 13px; border-right: 1px solid var(--line); color: var(--ink); }
.ui-seg label:last-child span { border-right: 0; }
.ui-seg input:checked + span { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.ui-seg input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--green); }
.ui-seg small { color: var(--muted); font-weight: 400; }

/* ---- ✨ Animacionet (vetëm me .ui-anim) ---- */
.ui-wave { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .42); transform: scale(0); pointer-events: none; animation: ui-wave .6s ease-out forwards; }
.btn-outline .ui-wave, .btn-light .ui-wave, .tb-btn .ui-wave { background: color-mix(in srgb, var(--green) 18%, transparent); }
.ui-anim .tb-btn { position: relative; overflow: hidden; }
@keyframes ui-wave { to { transform: scale(2.6); opacity: 0; } }

.ui-loader { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ui-loader.on { opacity: 1; background: linear-gradient(90deg, transparent, var(--green), transparent) 0 0 / 40% 100% no-repeat; animation: ui-bar 1.2s linear infinite; }
.ui-loader span { position: absolute; top: 3px; left: -24px; font-size: 18px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.ui-loader.on span { animation: ui-roll 1.8s linear infinite; }
@keyframes ui-bar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes ui-roll { from { left: -24px; transform: rotate(0); } to { left: 100%; transform: rotate(900deg); } }

.ui-anim .alert { animation: ui-drop .5s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes ui-drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.ui-anim .alert-success::before { content: '⚽'; display: inline-block; margin-right: 8px; animation: ui-goal 1s cubic-bezier(.2, .8, .3, 1.2) both; }
@keyframes ui-goal { 0% { transform: translateX(-40px) rotate(-540deg); opacity: 0; } 70% { transform: translateX(3px) rotate(0); opacity: 1; } 100% { transform: none; } }
.ui-anim .card-link, .ui-anim .panel { transition: transform .18s, box-shadow .18s, border-color .18s; }
.ui-anim .card-link:hover { box-shadow: 0 10px 24px rgba(16, 40, 24, .1); }

@media (prefers-reduced-motion: reduce) {
    .ui-anim *, .ui-anim *::before, .ui-anim *::after { animation: none !important; transition: none !important; }
}

/* ---- 📣 Bordurat e reklamave (LED) ---- */
.ad-band { position: relative; overflow: hidden; background: #0f2418; border-radius: 8px; padding: 4px 0 4px 4px; margin: 8px 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ad-track { display: flex; width: max-content; }
.ui-anim .ad-band:not(.ad-step) .ad-track { animation: ad-scroll calc(var(--ad-n, 6) * var(--ad-s, 4.5s)) linear infinite; }
.ad-step .ad-track { will-change: transform; }
.ui-anim .ad-band-rev .ad-track { animation-direction: reverse; }
.ad-band:hover .ad-track { animation-play-state: paused; }
@keyframes ad-scroll { to { transform: translateX(-50%); } }
.ad-board {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-width: 150px; height: 34px; margin-right: 4px;
    border-radius: 4px; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-decoration: none;
    white-space: nowrap; overflow: hidden; padding: 0 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -8px 12px rgba(0, 0, 0, .12);
}
.ad-board img { max-width: 92%; max-height: 80%; object-fit: contain; }
a.ad-board:hover { filter: brightness(1.08); }
.home-pitch .ad-band { margin: 6px 0; border-radius: 6px; padding: 3px 0 3px 3px; }
.home-pitch .ad-board { min-width: 92px; height: 22px; font-size: 9px; margin-right: 3px; padding: 0 8px; }
.game-pitch-wrap .ad-board { min-width: 120px; height: 28px; font-size: 11px; padding: 0 12px; }
.ad-board-lg { width: 100%; max-width: 460px; height: 68px; font-size: 24px; border-radius: 8px; }
.ad-live { background: #0f2418; border-radius: 12px; padding: 14px; text-align: center; margin-bottom: 8px; }
.ad-live .ad-board-lg { margin: 0 auto; }
.ad-live .hint { color: rgba(255, 255, 255, .7); margin: 10px 0 0; }
.ad-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ad-row:last-child { border-bottom: 0; }
.ad-row .m-grow { min-width: 160px; }
.ad-row .m-grow small { display: block; }
.ad-chip { flex: 0 0 auto; display: grid; place-items: center; width: 120px; height: 30px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .05em; overflow: hidden; white-space: nowrap; padding: 0 4px; }
.ad-chip img { max-height: 24px; max-width: 110px; }
.ad-delete { margin-top: 10px; }
.tb-ads a { cursor: pointer; }
/* Fusha Virtuale dhe kontrollet kompakte ruajnë madhësinë e tyre */
.tb select, .tb input, .tb textarea, .table select, .table input { min-height: 0; }

/* Tema e kuqe: shiriti lart/poshtë mbetet i errët edhe mbi foton (teksti i bardhë lexohet) */
@supports (backdrop-filter: blur(4px)) {
    html[data-theme="red"] body.ui-bg-photo .topbar,
    html[data-theme="red"] body.ui-bg-photo .footer { background: rgba(17, 17, 17, .88); }
}
.ad-motion-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ad-motion-row > div { flex: 1 1 180px; }
.ad-motion-row label { margin-top: 0; }
.ad-sec { display: flex; align-items: center; gap: 8px; }
.ad-sec input { width: 110px; }
.ad-sec span { color: var(--muted); font-size: 14px; }

/* =====================================================================
   Hapi 45 — 🧭 Menuja lart e rregulluar:
   Paneli · (Familja) · Fusha Virtuale · Modulet ▾ · Eksploro ▾ · Admin  …  🔔 · 👤 ▾
   ===================================================================== */
.topbar-inner { height: 62px; gap: 10px; }
.nav { flex: 1; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; margin-left: 14px; min-width: 0; }
.nav > a:not(.btn):not(.nav-admin), .nav-drop > summary {
    display: inline-flex; align-items: center; gap: 4px; padding: 7px 11px; border-radius: 8px;
    color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.nav > a:not(.btn):not(.nav-admin):hover, .nav-drop > summary:hover, .nav-drop[open] > summary { background: rgba(16, 40, 24, .06); }
.nav > a.active:not(.btn):not(.nav-admin) { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.nav-family { font-weight: 600 !important; }
.nav-admin { margin-left: auto; font-size: 13px; font-weight: 600; padding: 4px 10px; text-decoration: none; }
.nav-gap { flex: 1; }
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop:not(.nav-user) > summary::after { content: ''; width: 7px; height: 7px; margin-left: 3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .15s; }
.nav-drop[open]:not(.nav-user) > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop-menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; min-width: 210px;
    display: flex; flex-direction: column; padding: 6px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(16, 40, 24, .16);
}
.nav-drop-menu a { padding: 9px 12px; border-radius: 8px; color: var(--ink) !important; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-drop-menu a:hover, .nav-drop-menu a.active { background: var(--green-soft); }
.ui-anim .nav-drop[open] .nav-drop-menu { animation: nav-pop .16s ease-out; }
@keyframes nav-pop { from { opacity: 0; transform: translateY(-4px); } }

.nav-bell { margin-left: 0; padding: 7px; border-radius: 50%; font-size: 18px; }
.nav-bell:hover { background: rgba(16, 40, 24, .06); }
.nav-user > summary { padding: 0; border-radius: 50%; }
.nav-user > summary:hover, .nav-user[open] > summary { background: none !important; }
/* Menutë lart dalin mbi përmbajtjen (edhe mbi "fletën" me sfond); në telefon shiriti mbetet "sticky" */
@media (min-width: 901px) { .topbar { position: relative; z-index: 60; } }
.nav-user .nav-drop-menu { left: auto; right: 0; min-width: 250px; }
.nav-avatar {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    background: var(--green); color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
}
.nav-user[open] .nav-avatar, .nav-user > summary:hover .nav-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--green); }
.nav-user-head { display: flex; flex-direction: column; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.nav-user-head strong { font-size: 14px; }
.nav-user-head small { color: var(--muted); font-size: 12px; }
.nav-user-lang { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 14px; color: var(--ink); }
.nav-user-lang .lang { border-left: 0; padding-left: 0; }
.nav-drop-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.nav-logout { width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500; color: var(--red); cursor: pointer; }
.nav-logout:hover { background: #fdecef; }

/* Tema e kuqe (shiriti i errët) */
html[data-theme="red"] .nav > a:not(.btn):not(.nav-admin), html[data-theme="red"] .nav-drop > summary { color: #fff; }
html[data-theme="red"] .nav > a:not(.btn):not(.nav-admin):hover, html[data-theme="red"] .nav-drop > summary:hover,
html[data-theme="red"] .nav-drop[open] > summary { background: rgba(255, 255, 255, .1); }
html[data-theme="red"] .nav > a.active:not(.btn):not(.nav-admin) { background: #2a2a2a; color: #fff; }
html[data-theme="red"] .nav-bell:hover { background: rgba(255, 255, 255, .1); }
html[data-theme="red"] .nav-avatar { background: #c8102e; box-shadow: 0 0 0 2px #111, 0 0 0 3px #444; }
html[data-theme="red"] .nav-user-lang .lang a { color: var(--muted); }
html[data-theme="red"] .nav-user-lang .lang a.active { color: #fff; }

@media (max-width: 900px) {
    .topbar-inner { height: 56px; gap: 6px; }
    .nav { margin-left: 0; flex: none; }
    .nav-bell { margin-left: auto; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav > a:not(.btn):not(.nav-admin), .nav .nav-drop > summary { display: flex; padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav-drop:not(.nav-user) .nav-drop-menu { position: static; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 8px 14px; background: transparent; }
    .nav-drop-menu a { font-size: 15px; }
    .nav-admin { margin: 10px 8px 4px; align-self: flex-start; }
    .nav-user .nav-drop-menu { position: fixed; top: 60px; right: 10px; left: auto; max-width: calc(100vw - 20px); }
    .nav-avatar { width: 34px; height: 34px; }
    html[data-theme="red"] .nav-drop:not(.nav-user) .nav-drop-menu a { color: #fff !important; }
}

/* Fusha Virtuale në ekran të plotë: pa bordura reklamash, fusha zë gjithë lartësinë nën shiritin e veglave */
.tb-is-full .tb-ads { display: none; }
.tb.tb-is-full { padding: 8px 12px; gap: 6px; }
.tb.tb-is-full .tb-stage .tb-svg { height: calc(100vh - 84px); width: auto; max-width: 100%; max-height: none; aspect-ratio: var(--ar, .885); }
.tb.tb-is-full .tb-stage .tb-pitch-wrap { flex: 0 1 auto; max-width: 100%; }
.tb.tb-is-full .tb-sidepanel { max-height: calc(100vh - 84px); }
@media (max-width: 760px) {
    /* Telefon: fusha sa më e gjerë, pa u deformuar (gjerësia kufizohet nga lartësia e lirë) */
    .tb.tb-is-full { padding: 6px; }
    .tb.tb-is-full .tb-stage { display: flex; justify-content: center; width: 100%; align-self: stretch; }
    .tb.tb-is-full .tb-bar { max-width: 100%; align-self: stretch; }
    .tb.tb-is-full .tb-stage .tb-pitch-wrap { flex: 1 1 auto; display: flex; justify-content: center; }
    .tb.tb-is-full .tb-stage .tb-svg {
        width: min(100%, calc((100dvh - 76px) * var(--ar, .885))); height: auto; max-height: none; max-width: none;
        aspect-ratio: var(--ar, .885); border-radius: 8px;
    }
}
.fam-leave { margin: 14px 2px 0; text-align: right; }

/* ---- Hapi 49: 🎯 stërvitje me lojtarë të zgjedhur ---- */
.tr-aud { margin-top: 2px; }
.tr-aud-pane { margin-top: 10px; }
.tr-aud-pane[hidden], .tr-pick-item[hidden] { display: none !important; }
.tr-pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcfb; }
.tr-pick .hint { margin-top: 0; }
.tr-pick-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tr-pick-search { flex: 1 1 200px; width: auto; }
.tr-pick-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tr-pick-count b { color: var(--green-dark); font-size: 15px; }
.tr-pick-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.tr-chip { border: 1px solid var(--field-line); border-left: 4px solid var(--gc, var(--green)); background: #fff; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tr-chip:hover { background: var(--green-soft); }
.tr-chip-clear { border-left-width: 1px; color: var(--muted); }
.tr-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-top: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.tr-pick-item { display: flex; align-items: center; gap: 9px; margin: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; }
.tr-pick-item:hover { border-color: #c3ccc5; }
.tr-pick-item input { margin: 0; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.tr-pick-item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tr-pick-item b { font-size: 14px; font-weight: 600; color: var(--ink); }
.tr-pick-item small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-pick-item:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.tr-picked { display: inline-block; font-weight: 600; color: var(--green-dark); }
.hist-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.hist-filter > div { flex: 1 1 170px; }
.hist-filter .hist-q { flex: 2 1 240px; }
.hist-filter label { margin-top: 0; }

/* =====================================================================
   Hapi 51 — 🔎 Kërkimi (butoni lart, dritarja e shpejtë, faqja /kerko)
   ===================================================================== */
.nav-search { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; text-decoration: none; flex: none; }
.nav-search:hover { background: rgba(16, 40, 24, .06); }
html[data-theme="red"] .nav-search:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .nav-search { margin-left: auto; } .nav-search ~ .nav-bell { margin-left: 0; } }

.srch-pop { position: fixed; inset: 0; z-index: 200; background: rgba(10, 25, 15, .45); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 14px 14px; }
.srch-pop[hidden] { display: none; }
html.srch-open { overflow: hidden; }
.srch-pop-box { width: 100%; max-width: 620px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; display: flex; flex-direction: column; max-height: 80vh; }
.ui-anim .srch-pop-box { animation: nav-pop .18s ease-out; }
.srch-pop-field { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.srch-pop-field input { flex: 1; border: 0 !important; box-shadow: none !important; font-size: 16px; padding: 8px 0; min-height: 0; background: transparent; }
.srch-pop-close { border: 1px solid var(--line); background: #f6f8f6; border-radius: 6px; font: inherit; font-size: 11px; color: var(--muted); padding: 3px 7px; cursor: pointer; }
.srch-pop-res { overflow-y: auto; padding: 6px; }
.srch-pop-res.is-loading { opacity: .6; }
.srch-pop-hint { color: var(--muted); font-size: 14px; padding: 14px 10px; margin: 0; }
.srch-pop-title { margin: 8px 10px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.srch-pop-all { display: block; text-align: center; padding: 11px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; text-decoration: none; }

.srch-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.srch-item:hover, .srch-item.is-active { background: var(--green-soft); }
.srch-pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; }
.srch-ini { background: var(--green); color: #fff; font-size: 13px; font-weight: 600; }
.srch-emo { background: #eef3ef; font-size: 17px; }
.srch-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.srch-txt b { font-weight: 600; font-size: 14.5px; }
.srch-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.srch-page-form { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--field-line); border-radius: 14px; padding: 6px 6px 6px 14px; margin-bottom: 14px; box-shadow: var(--shadow-card); }
.srch-page-form input { flex: 1; border: 0 !important; box-shadow: none !important; font-size: 16px; min-height: 0; padding: 8px 0; }
.srch-hint { text-align: center; padding: 24px 0; }
.srch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.srch-grid .srch-item { border: 1px solid var(--line); }
.srch-empty { text-align: center; }
.srch-pop-field input[type="search"], .srch-page-form input[type="search"] { -webkit-appearance: none; appearance: none; outline: none; border: none !important; box-shadow: none !important; background: transparent !important; padding-left: 0; }

/* 🔎 Fusha e kërkimit lart (si fushë e vërtetë, jo ikonë) */
.nav-search {
    width: auto; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px;
    padding: 0 8px 0 11px; min-width: 210px; font-size: 13.5px; color: var(--muted);
    background: rgba(255, 255, 255, .75); border: 1px solid var(--field-line); text-decoration: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.nav-search:hover { background: #fff; border-color: #bfc9c2; }
.nav-search svg { flex: none; color: #6b7a6e; }
.nav-search-txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search kbd { font: inherit; font-size: 11px; line-height: 1; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: #f6f8f6; color: var(--muted); }
html[data-theme="red"] .nav-search { background: #1c1c1c; border-color: #333; color: #aaa; }
html[data-theme="red"] .nav-search:hover { background: #222; border-color: #555; }
html[data-theme="red"] .nav-search svg { color: #bbb; }
html[data-theme="red"] .nav-search kbd { background: #111; border-color: #333; color: #888; }
@media (max-width: 1180px) { .nav-search { min-width: 0; } .nav-search-txt, .nav-search kbd { display: none; } .nav-search { width: 36px; padding: 0; justify-content: center; } }
.srch-svg { color: #6b7a6e; flex: none; }

/* ---- Hapi 53: 🧹 fshirja e mesazheve të chat-it ---- */
.chat-clear { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 8px; width: 32px; height: 32px; font-size: 15px; cursor: pointer; }
.chat-clear[hidden] { display: none; }
.chat-clear:hover, .chat-x:hover, .chat-back:hover { background: rgba(255,255,255,.28); }
.chat-msg { position: relative; }
.chat-del { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 11px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.chat-msg:hover .chat-del, .chat-del:focus { opacity: 1; }
@media (hover: none) { .chat-del { opacity: .75; } }
.tr-days { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-day { margin: 0; position: relative; cursor: pointer; }
.tr-day input { position: absolute; opacity: 0; pointer-events: none; }
.tr-day span { display: grid; place-items: center; min-width: 44px; height: 36px; padding: 0 10px; border: 1px solid var(--field-line); border-radius: 9px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tr-day input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.tr-day input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.tr-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.tr-tools form { margin: 0; }

/* =====================================================================
   Hapi 54 — 🎨 Ikonat me vija (Lucide) + dritarja e konfirmimit në mes
   ===================================================================== */
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; stroke-width: 1.8; overflow: visible; }
.btn .ico, .btn-small .ico { width: 1.05em; height: 1.05em; vertical-align: -.15em; }
h1 .ico { width: .95em; height: .95em; vertical-align: -.08em; color: var(--green); stroke-width: 2; margin-right: .1em; }
h2 .ico, h3 .ico, .panel-title .ico { color: var(--green); vertical-align: -.16em; }
/* (hapi 68: ngjyra e ikonave vjen nga --green, edhe për temën e kuqe dhe klubet) */
.module-nav nav a span { display: grid; place-items: center; }
.module-nav nav a .ico { width: 18px; height: 18px; color: var(--muted); }
.module-nav nav a:hover .ico { color: var(--green); }
.module-nav nav a.active .ico { color: #fff; }
.module-icon .ico { width: 22px; height: 22px; color: var(--green); }
.nav-drop-menu a .ico { width: 17px; height: 17px; color: var(--muted); margin-right: 4px; vertical-align: -.22em; }
.nav-bell .ico { width: 19px; height: 19px; vertical-align: -.25em; color: var(--ink); }
html[data-theme="red"] .nav-bell .ico { color: #fff; }
.chat-bubble .ico { width: 26px; height: 26px; color: #fff; }
.chat-clear .ico { width: 17px; height: 17px; }
.ui-seg-icons span { display: inline-flex; align-items: center; gap: 4px; }
.ui-seg-icons .ico { color: var(--green); }

.ui-dlg { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 22, 14, .5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: ui-dlg-in .14s ease-out; }
.ui-dlg.is-closing { opacity: 0; transition: opacity .12s; }
html.ui-dlg-open { overflow: hidden; }
.ui-dlg-box { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 22px 22px 18px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: ui-dlg-pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.ui-dlg-ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); }
.ui-dlg-ico.is-danger { background: #fdecef; color: #b42318; }
.ui-dlg-title { margin: 0 0 6px; font-size: 18px; }
.ui-dlg-msg { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; white-space: pre-line; }
.ui-dlg-btns { display: flex; gap: 8px; }
.ui-dlg-btns .btn { flex: 1; }
@keyframes ui-dlg-in { from { opacity: 0; } }
@keyframes ui-dlg-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .ui-dlg, .ui-dlg-box { animation: none; } }

/* ---- Hapi 55: ⏱ shpejtësia e hapave + ⚽ topi kryesor ---- */
.tb-anim-tempo { display: inline-flex; gap: 4px; align-items: center; }
.tb-anim-tempo[hidden] { display: none; }
.tb-anim-tempo select { font-size: 12.5px; padding: 4px 24px 4px 8px; min-height: 0; height: 30px; border-radius: 8px; background-position: right 7px center; }
.tb-anim-step.tb-t-walk { box-shadow: inset 0 -3px 0 #90a4ae; }
.tb-anim-step.tb-t-jog { box-shadow: inset 0 -3px 0 #66bb6a; }
.tb-anim-step.tb-t-sprint { box-shadow: inset 0 -3px 0 #ef6c00; }
.tb-anim-step[class*="tb-act-"]::after { content: ''; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #333; }
.tb-anim-step.tb-act-dribble::after { background: #43a047; }
.tb-anim-step.tb-act-shot::after { background: #e53935; }
.tb-anim-legend { display: flex; gap: 6px 14px; font-size: 11.5px; color: var(--muted, #667); align-items: center; flex-wrap: wrap; margin: 6px 2px 0; }
.tb-anim[hidden] + .tb-anim-legend { display: none; }
.tb-anim-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; box-shadow: 0 0 0 1px #333; vertical-align: 0; }
.tb-edit-ball { flex-wrap: wrap; }
.tb-edit-ball .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.tb-anim-step { position: relative; }
.tb-it-hint { font-size: 12px; color: var(--muted); }

/* ---- Hapi 56: menuja lart me lidhjet në rresht (pa "Eksploro") ---- */
.topbar > .container { max-width: 1280px; }
.nav { gap: 0; }
.nav > a:not(.btn):not(.nav-admin), .nav-drop > summary { padding: 7px 10px; }
@media (max-width: 1400px) { .nav-search { min-width: 0; width: 36px; padding: 0; justify-content: center; } .nav-search-txt, .nav-search kbd { display: none; } }
@media (min-width: 901px) and (max-width: 1100px) { .nav > a:not(.btn):not(.nav-admin), .nav-drop > summary { padding: 7px 7px; font-size: 13.5px; } .topbar-inner { gap: 6px; } .nav { margin-left: 8px; } }

/* =====================================================================
   ⚽ Hapi 59 — Faqja e ndeshjes, formacioni, ndeshjet live
   ===================================================================== */
.mx { --live: #1e8e3e; }
.mx-i { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.mx-i-lg { width: 22px; height: 22px; color: var(--muted); }
.mx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1e8e3e; margin-right: 6px; vertical-align: 1px; animation: mx-pulse 1.4s ease-in-out infinite; }
@keyframes mx-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .mx-dot { animation: none; } }
.mx-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.mx-card h3 { margin: 0 0 10px; font-size: 16px; }

/* Tabela e rezultatit */
.mx-board { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px 14px; margin: 6px 0 14px; text-align: center; }
.mx-comp { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.mx-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.mx-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.mx-team-name { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.mx-crest { --c: #5f6368; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
    background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); border: 2px solid color-mix(in srgb, var(--c) 35%, #fff); font-weight: 800; font-size: 18px; letter-spacing: .5px; overflow: hidden; }
.mx-crest img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mx-crest-sm { width: 26px; height: 26px; font-size: 10px; border-width: 1.5px; }
.mx-center { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; min-width: 96px; }
.mx-score { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.mx-score[hidden] { display: none; }
.mx-score b { font-size: 40px; line-height: 1; font-weight: 800; }
.mx-score span { font-size: 26px; color: var(--muted); }
.mx-bump { animation: mx-bump .6s ease; }
@keyframes mx-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); color: var(--live, #1e8e3e); } 100% { transform: scale(1); } }
.mx-status { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mx-st-live { color: #1e8e3e; background: #e6f4ea; border-color: #c6e7cf; font-variant-numeric: tabular-nums; }
.mx-st-cancelled { color: #b3261e; background: #fdecea; border-color: #f6c9c4; }
.mx-meta { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* Skedat */
.mx-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 2px; }
.mx-tabs::-webkit-scrollbar { display: none; }
.mx-tabs button { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.mx-tabs button.active { background: color-mix(in srgb, var(--green) 10%, #fff); border-color: var(--green); color: var(--green-dark); }
html[data-theme="red"] .mx-tabs button.active { background: #111; border-color: #111; color: #fff; }

/* Butonat e trajnerit */
.mx-coach-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.mx-live-btn { background: #1e8e3e; border-color: #1e8e3e; }
.mx-live-btn .mx-dot { background: #fff; }
.mx-live-hint { margin: 0 0 12px; }
.mx-panel-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: #e6f4ea; border: 1px solid #c6e7cf; color: #0d5c27; text-decoration: none; }
.mx-panel-link small { display: block; color: #3c6b4a; }
.mx-side { display: grid; gap: 14px; }
@media (min-width: 900px) { .mx-side { grid-template-columns: 1fr 1fr; } .mx-side > .mx-col { display: contents; } }

/* Ngjarjet */
.mx-timeline { list-style: none; margin: 0; padding: 0; }
.mx-tl-empty { padding: 6px 0; }
.mx-tl-row { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.mx-tl-row:first-child { border-top: 0; }
.mx-tl-row.is-pending { opacity: .55; }
.mx-tl-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mx-tl-l { justify-content: flex-end; text-align: right; }
.mx-tl-l .mx-tl-ic { order: 2; }
.mx-tl-l .mx-tl-del { order: -1; }
.mx-tl-ic svg { width: 20px; height: 20px; display: block; }
.mx-tl-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; font-size: 14px; }
.mx-tl-txt small { font-size: 12px; }
.mx-tl-in, .mx-tl-out { display: inline-flex; align-items: center; gap: 4px; }
.mx-tl-l .mx-tl-in, .mx-tl-l .mx-tl-out { justify-content: flex-end; }
.mx-tl-min { text-align: center; font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; }
.mx-tl-score { color: var(--ink); font-size: 13px; }
.mx-tl-sep { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); }
.mx-tl-del { border: 0; background: var(--bg); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; flex: none; }
.mx-tl-del:hover { background: #fdecea; color: #b3261e; }

.mx-alerts { display: flex; align-items: center; gap: 12px; }
.mx-alerts small { display: block; }

/* Formacioni */
.mx-lineup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mx-lineup-head h3 { margin: 0; }
.mx-formation select { padding: 6px 30px 6px 12px; border-radius: 999px; font-weight: 700; min-height: 0; }
.mx-formation-tag { font-weight: 700; font-size: 14px; color: var(--muted); }
.mx-pitch { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 68 / 100; border-radius: 14px; overflow: hidden;
    background: repeating-linear-gradient(180deg, #7cc88e 0 10%, #74c087 10% 20%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.mx-l { position: absolute; border: 2px solid rgba(255, 255, 255, .55); pointer-events: none; }
.mx-l-half { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.mx-l-circle { width: 26%; aspect-ratio: 1; left: 37%; top: 50%; transform: translateY(-50%); border-radius: 50%; }
.mx-l-spot { width: 6px; height: 6px; left: calc(50% - 3px); top: calc(50% - 3px); background: rgba(255, 255, 255, .7); border: 0; border-radius: 50%; }
.mx-l-box { left: 20%; right: 20%; height: 15%; }
.mx-l-six { left: 36%; right: 36%; height: 5.5%; }
.mx-l-box-b { bottom: 0; border-bottom: 0; }
.mx-l-six-b { bottom: 0; border-bottom: 0; }
.mx-l-box-t { top: 0; border-top: 0; }
.mx-l-six-t { top: 0; border-top: 0; }
.mx-pl { position: absolute; transform: translate(-50%, -38%); display: flex; flex-direction: column; align-items: center; width: 82px; text-align: center; transition: left .25s, top .25s; }
.mx-pitch.is-editable .mx-pl { cursor: pointer; }
.mx-pl.is-picked .mx-ph { box-shadow: 0 0 0 3px #ffd54a, 0 2px 6px rgba(0, 0, 0, .25); }
.mx-pl-pic { position: relative; }
.mx-ph { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #e8eaed; color: #9aa0a6; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); flex: none; }
.mx-ph img { width: 100%; height: 100%; object-fit: cover; }
.mx-ph-none { width: 70%; height: 70%; }
.mx-ic { position: absolute; display: inline-flex; align-items: center; }
.mx-ic svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.mx-ic b { font-size: 10px; background: #1b1b1b; color: #fff; border-radius: 6px; padding: 0 3px; margin-left: -4px; line-height: 13px; }
.mx-ic-tl { top: -7px; left: -8px; }
.mx-ic-tr { top: -7px; right: -8px; }
.mx-ic-br { bottom: -5px; right: -10px; }
.mx-ic-bl { bottom: -5px; left: -10px; }
.mx-rate { display: inline-block; min-width: 26px; padding: 0 5px; border-radius: 8px; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; background: #fde68a; color: #1b1b1b; }
.mx-pl .mx-rate { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); }
.mx-rate.is-good { background: #b7e4c7; }
.mx-rate.is-mid { background: #fde68a; }
.mx-rate.is-low { background: #fdba74; }
.mx-nm { margin-top: 10px; font-size: 12px; font-weight: 600; color: #0b2614; line-height: 1.15; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-nm b { font-weight: 800; }
.mx-swap-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.mx-saved { color: #1e8e3e; font-weight: 700; }
.mx-empty { padding: 10px 0; }

.mx-bench-title { margin: 18px 0 6px; }
.mx-bench { list-style: none; margin: 0; padding: 0; }
.mx-bench-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.mx-bench-row:first-child { border-top: 0; }
.mx-bench-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mx-bench-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-in { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; font-weight: 600; color: var(--ink); }
.mx-bench-icons { display: inline-flex; gap: 4px; }

/* Lista e ndeshjeve (karta) */
.mx-fx { display: flex; align-items: stretch; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); margin-top: 8px; transition: border-color .15s, background .15s; }
.mx-fx:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: var(--white); }
.mx-fx-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.mx-fx-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mx-fx-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mx-fx-g { font-size: 17px; font-variant-numeric: tabular-nums; }
.mx-fx-t.is-lost { color: var(--muted); }
.mx-fx-side { flex: none; width: 92px; border-left: 1px solid var(--line); padding-left: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-size: 13.5px; line-height: 1.35; }
.mx-fx-live { color: #1e8e3e; font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-fx-cancel { color: #b3261e; font-weight: 600; }
.mx-fx-meta { font-size: 11px; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-fx.is-cancelled .mx-fx-teams { opacity: .6; text-decoration: line-through; }
.mx-fx.is-live { background: var(--white); border-color: #c6e7cf; box-shadow: 0 0 0 1px #c6e7cf; }
.mx-fx-list { margin-bottom: 18px; }
.fam-match-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.fam-match-link.is-live { color: #1e8e3e; }

/* 🔴 Paneli live */
.mx-live-main { max-width: 640px; }
.mx-offline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #fff4e5; border: 1px solid #ffd8a8; color: #8a4b00; font-size: 13.5px; margin: 0 0 12px; }
.mx-offline[hidden] { display: none; }
.mx-phase [hidden] { display: none; }
.mx-phase .btn-full { margin-top: 0; }
.mx-half { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.mx-half select { width: auto; min-height: 0; padding: 6px 30px 6px 10px; }
.mx-big { min-height: 54px; font-size: 17px; }
.mx-go { background: #1e8e3e; border-color: #1e8e3e; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mx-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mx-actions[hidden] { display: none; }
.mx-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; touch-action: manipulation; }
.mx-act svg { width: 30px; height: 30px; color: var(--ink); }
.mx-act:active { transform: scale(.97); }
.mx-act-goal { background: #1e8e3e; border-color: #1e8e3e; color: #fff; }
.mx-act-goal-them { background: #3c4043; border-color: #3c4043; color: #fff; }
.mx-act-wide { grid-column: 1 / -1; min-height: 64px; flex-direction: row; }
.mx-reporter label { display: flex; flex-direction: column; gap: 6px; }
.mx-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.mx-sheet[hidden] { display: none; }
.mx-sheet-box { width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; background: var(--white); border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); animation: mx-up .2s ease-out; }
@keyframes mx-up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.mx-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mx-sheet-head strong { font-size: 17px; }
.mx-minute { display: inline-flex; align-items: center; gap: 8px; }
.mx-minute b { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.mx-minute button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 18px; cursor: pointer; }
.mx-sheet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mx-pick { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.mx-pick b { min-width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-pick:active { background: var(--green-soft); border-color: var(--green); }
.mx-pick-x { grid-column: 1 / -1; justify-content: center; background: var(--bg); }
body.mx-sheet-open { overflow: hidden; }
.mx-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: #202124; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); max-width: 92vw; }

@media (max-width: 480px) {
    .mx-crest { width: 46px; height: 46px; font-size: 15px; }
    .mx-crest-sm { width: 24px; height: 24px; font-size: 9.5px; }
    .mx-score b { font-size: 34px; }
    .mx-team-name { font-size: 14px; }
    .mx-pl { width: 70px; }
    .mx-ph { width: 38px; height: 38px; border-radius: 10px; }
    .mx-nm { font-size: 11px; max-width: 72px; }
    .mx-fx-side { width: 80px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hapi 61: kundërshtari te paneli live (emri i lojtarit) */
.mx-sheet-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--bg); border-radius: 12px; margin-bottom: 12px; }
.mx-sheet-tabs[hidden], .mx-opp[hidden], .mx-sheet-list[hidden] { display: none; }
.mx-sheet-tabs button { border: 0; background: transparent; padding: 10px 8px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-sheet-tabs button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.mx-opp { margin-bottom: 12px; }
.mx-opp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mx-chip { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.mx-chip:active { background: var(--green-soft); border-color: var(--green); }
.mx-chip-none { background: var(--bg); color: var(--muted); }
.mx-opp-form { display: flex; gap: 8px; }
.mx-opp-form input { flex: 1; min-width: 0; font-size: 16px; }
.mx-opp-form .btn { margin: 0; }

/* Hapi 62: fotoja e lojtarit te ngjarjet (ikona si shenjë mbi foto) */
.mx-tl-row { grid-template-columns: 1fr 54px 1fr; }
.mx-tl-ph { position: relative; width: 38px; height: 38px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #e8eaed; color: #9aa0a6; }
.mx-tl-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.mx-tl-none { width: 68%; height: 68%; }
.mx-tl-badge { position: absolute; right: -6px; bottom: -5px; width: 19px; height: 19px; display: inline-flex; }
.mx-tl-badge svg { width: 19px; height: 19px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.mx-tl-goal .mx-tl-ph { width: 44px; height: 44px; }
.mx-tl-txt strong { overflow-wrap: normal; }
.mx-tl-txt small { line-height: 1.2; }
.mx-tl-l .mx-tl-del { order: -1; } .mx-tl-l .mx-tl-txt { order: 1; } .mx-tl-l .mx-tl-ph, .mx-tl-l .mx-tl-ic { order: 2; }
.mx-tl-r .mx-tl-ph, .mx-tl-r .mx-tl-ic { order: 0; } .mx-tl-r .mx-tl-txt { order: 1; } .mx-tl-r .mx-tl-del { order: 3; margin-left: auto; }
.mx-tl-side { gap: 10px; }
.mx-tl-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mx-tl-txt { overflow: hidden; }
.mx-tl-badge { background: #fff; border-radius: 50%; padding: 1px; width: 21px; height: 21px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); align-items: center; justify-content: center; }
.mx-tl-badge svg { width: 17px; height: 17px; filter: none; color: #1b1b1b; }
.mx-tl-del { width: 22px; height: 22px; font-size: 14px; }
.mx-live .mx-tl-side { gap: 8px; }
.mx-live .mx-tl-row { position: relative; padding-left: 28px; }
.mx-live .mx-tl-del { position: absolute; left: 0; top: 50%; transform: translateY(-50%); margin: 0; }

/* Hapi 63: fleta e zgjedhjes në mes të ekranit (jo poshtë) */
.mx-sheet { align-items: center; padding: 12px; }
.mx-sheet-box { border-radius: 20px; max-height: calc(100dvh - 24px); padding-bottom: 16px; animation: mx-pop .18s ease-out; }
@keyframes mx-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mx-sheet-box { animation: none; } }

/* 🔔 Njoftim manual për pagesat (hapi 64) */
.fee-notify > summary { cursor: pointer; }
.fee-notify-form { margin-top: 10px; display: grid; gap: 6px; max-width: 640px; }
.fee-notify-form textarea, .fee-notify-form input[type=text], .fee-notify-form select { width: 100%; max-width: 100%; box-sizing: border-box; }
.fee-notify-form [hidden] { display: none !important; }
.fee-act { flex-wrap: wrap; }

/* 🏟️ Fusha e faqes kryesore me perspektivë (hapi 65) */
.home-pitch { max-width: 480px; transform: none; }
.home-pitch .hp-svg { width: 100%; display: block; border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 26px rgba(0,0,0,.28)); overflow: visible; }
.hp-player { animation: hp-in .45s ease-out both; }
@keyframes hp-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hp-player { animation: none; } }
@media (max-width: 900px) { .home-pitch { max-width: 100%; } }
/* Telefoni: kolona e hyrjes s'duhet të zgjerohet nga shiriti i reklamave (faqja dilte më e gjerë se ekrani). */
.home-hero > * { min-width: 0; }
@media (max-width: 900px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 8px; }
    .home-pitch { justify-self: stretch; max-width: 520px; margin: 0 auto; overflow: hidden; }
}
@media (max-width: 480px) {
    .home-hero h1 { font-size: 30px; }
    .home-cta .btn { flex: 1 1 auto; text-align: center; }
    .home-stats { gap: 8px; }
    .home-stats a { padding: 12px 8px; }
    .home-stats strong { font-size: 26px; }
}

/* =====================================================================
   Hapi 67 — ✨ Sistemi i ri i pamjes: thellësi (hije me shtresa),
   ngjyrë theksi për çdo temë, gradientë të lehtë, mikro-lëvizje
   dhe 🌙 modaliteti i errët (html.dark; "Automatik" e vendos skripti te <head>).
   Rregull: asnjë transform/filter mbi main.main (sfondi me foto ka backdrop-filter).
   ===================================================================== */
:root {
    --accent: #9bd31f;                 /* lime për temën jeshile */
    --accent-ink: #1a2e05;
    --solid: var(--ink);               /* butonat/etiketat "e zeza" */
    --surface-2: #f4f6f3;
    --bg: #f3f5f0;                     /* pak më i ngrohtë */
    --line: #e3e8e2;
    --shadow-1: 0 1px 2px rgba(17, 28, 21, .06), 0 1px 1px rgba(17, 28, 21, .03);
    --shadow-card: 0 1px 2px rgba(17, 28, 21, .05), 0 4px 10px -2px rgba(17, 28, 21, .05), 0 14px 32px -10px rgba(17, 28, 21, .10);
    --shadow-3: 0 2px 4px rgba(17, 28, 21, .06), 0 12px 24px -6px rgba(17, 28, 21, .14), 0 28px 50px -16px rgba(17, 28, 21, .18);
    --grad: linear-gradient(135deg, var(--green) 0%, color-mix(in srgb, var(--green) 72%, var(--accent)) 100%);
    --ease: cubic-bezier(.2, .7, .3, 1);
}
html[data-theme="blue"] { --accent: #22d3ee; --accent-ink: #062a33; --surface-2: #f2f5fa; --bg: #f2f4f9; }
html[data-theme="red"] { --accent: #f2b705; --accent-ink: #2e2100; --surface-2: #f6f3f2; --bg: #f6f3f2; }

/* Tituj me karakter, numra që s'kërcejnë */
h1, .page-head h1 { font-weight: 800; letter-spacing: -.022em; }
h2, .panel-head h2 { font-weight: 750; letter-spacing: -.012em; }
.panel-title { font-weight: 700; letter-spacing: -.005em; }
.score, .score-sm, .stat-num, .stats strong, .count-pill, .badge, .table td, .mx-score, [class*="-score"], .fee-amount, .big {
    font-variant-numeric: tabular-nums;
}
.stat-num { font-weight: 800; letter-spacing: -.02em; }

/* Kartat/panelet: hije me shtresa në vend të bordurës gri */
.card, .panel, .settings-tile, .home-card {
    border-color: color-mix(in srgb, var(--line) 55%, transparent);
    box-shadow: var(--shadow-card);
}
.table-wrap.panel, .panel .table-wrap { box-shadow: none; }
.panel .panel, .card .card, .panel .card { box-shadow: var(--shadow-1); }

/* Butonat: gradient i lehtë + shkëlqim sipër + "ngritje" kur kalon miu */
.btn {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
    transition: background-color .15s, border-color .15s, box-shadow .2s var(--ease), transform .15s var(--ease);
}
.btn:not(.btn-outline):not(.btn-light):not(.btn-ghost-danger):not(.btn-danger-soft) {
    box-shadow: 0 1px 2px rgba(17, 28, 21, .18), 0 4px 12px -4px color-mix(in srgb, var(--green) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .05s; }
.btn-outline, .btn-light { background-image: none; }
.btn-outline:hover, .btn-light:hover { box-shadow: var(--shadow-1); }

/* Theksi: shiriti i hollë me gradient nën titullin e faqes */
.page-head h1::after {
    content: ""; display: block; width: 44px; height: 4px; margin-top: 8px; border-radius: 4px;
    background: linear-gradient(90deg, var(--green), var(--accent));
}
.page-head h1.no-accent::after, .home-hero h1::after { display: none; }

/* Etiketat e suksesit / përzgjedhjes me pak më shumë ngjyrë */
.alert-success { background: color-mix(in srgb, var(--green) 10%, var(--white)); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); }
.ui-seg input:checked + span { background: var(--grad); color: #fff; }
/* Hapi 69: brenda butonit të zgjedhur gjithçka e bardhë (shënimi i vogël, ikonat, emoji monokrome) */
.ui-seg input:checked + span *, .ui-seg input:checked + span .ico { color: #fff !important; }
.ui-seg input:checked + span small { opacity: .85; }
.ui-seg input:checked + span .ui-mode-dot, .ui-seg input:checked + span .ui-club-sw { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }

/* Fokus i qartë për tastierën */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---- ✨ Mikro-lëvizje (vetëm elementet, kurrë main.main) ---- */
.card-link, .settings-tile, .home-card, a.card, a.panel, .mx-fx {
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .15s;
}
.card-link:hover, .settings-tile:hover, .home-card:hover, a.card:hover, a.panel:hover, .mx-fx:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-3);
}
@keyframes ui-pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes ui-toast-in { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
body.ui-anim main.main > .container > .alert, body.ui-anim .main > .alert, body.ui-anim .alert { animation: ui-pop-in .35s var(--ease) both; }
body.ui-anim .mx-toast { animation: ui-toast-in .3s var(--ease) both; }
body.ui-anim .ui-dlg-box { animation: ui-pop-in .22s var(--ease) both; }
body.ui-still .btn:hover, body.ui-still .card-link:hover, body.ui-still .settings-tile:hover, body.ui-still .home-card:hover,
body.ui-still a.card:hover, body.ui-still a.panel:hover, body.ui-still .mx-fx:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .btn, .card-link, .settings-tile, .home-card, a.card, a.panel, .mx-fx { transition: none; }
    .btn:hover, .card-link:hover, .settings-tile:hover, .home-card:hover, a.card:hover, a.panel:hover, .mx-fx:hover { transform: none; }
    .alert, .mx-toast, .ui-dlg-box { animation: none !important; }
}

/* Cilësimet → Pamja: pika e vogël drita/errët */
.ui-mode-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 7px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .18); }
.ui-mode-light { background: #fff; }
.ui-mode-dark { background: #0f1512; border-color: #3a463f; }
.ui-mode-system { background: linear-gradient(135deg, #fff 50%, #0f1512 50%); }

/* =====================================================================
   🌙 Modaliteti i errët — "stadium natën"
   ===================================================================== */
html.dark {
    color-scheme: dark;
    --bg: #0a0e0c;
    --white: #121815;                  /* "sipërfaqja" e kartave */
    --surface-2: #19211d;
    --ink: #e7eee9;
    --muted: #93a39a;
    --line: #232d28;
    --field-line: #33403a;
    --solid: #2b3631;
    --green: #22a050;
    --green-dark: #8ee6aa;             /* si tekst mbi --green-soft */
    --green-deep: #178241;             /* si sfond (hover) */
    --green-soft: rgba(34, 160, 80, .16);
    --accent: #b5ee3a;
    --red: #f05252;
    --ring: color-mix(in srgb, var(--green) 35%, transparent);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px -8px rgba(0, 0, 0, .55);
    --shadow-3: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 16px 40px -10px rgba(0, 0, 0, .7), 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent);
}
html.dark[data-theme="blue"] {
    --bg: #090d15; --white: #111826; --surface-2: #172032; --line: #212b3d; --field-line: #2f3b52; --solid: #273247;
    --ink: #e6ecf7; --muted: #94a0b8;
    --green: #3b82f6; --green-dark: #a5c8ff; --green-deep: #2563eb; --green-soft: rgba(59, 130, 246, .18); --accent: #22d3ee;
}
html.dark[data-theme="red"] {
    --bg: #0b0a0a; --white: #161414; --surface-2: #1f1b1b; --line: #2c2626; --field-line: #3d3434; --solid: #2e2828;
    --ink: #f1ecec; --muted: #a59a9a;
    --green: #e3213f; --green-dark: #ffadb9; --green-deep: #b3132c; --green-soft: rgba(227, 33, 63, .17); --accent: #f5bd1f;
}

html.dark body { background: var(--bg); color: var(--ink); }
html.dark .topbar, html.dark .footer { background: #0e1311; border-color: #000; }
html.dark[data-theme="blue"] .topbar, html.dark[data-theme="blue"] .footer { background: #0c111c; }
html.dark[data-theme="red"] .topbar, html.dark[data-theme="red"] .footer { background: #080707; }
html.dark .topbar { box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 6px 20px rgba(0, 0, 0, .35); }
html.dark .brand, html.dark .nav a, html.dark .link-button { color: var(--ink); }
html.dark .nav > a:not(.btn):not(.nav-admin):hover, html.dark .nav-drop > summary:hover, html.dark .nav-drop[open] > summary,
html.dark .nav-bell:hover, html.dark .nav-search:hover { background: rgba(255, 255, 255, .06); }
html.dark .nav-search { background: rgba(255, 255, 255, .05); }
html.dark .nav-search svg { color: var(--muted); }
html.dark .nav-admin { background: var(--green); }
html.dark .lang a { color: var(--muted); }
html.dark .btn-outline, html.dark .btn-light { color: var(--ink); }
html.dark .table th { color: var(--muted); }
html.dark .table tr:hover td { background: rgba(255, 255, 255, .02); }
html.dark input::placeholder, html.dark textarea::placeholder { color: #66756c; }
html.dark select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a39a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
html.dark .page-head h1::after { box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
html.dark .muted, html.dark .hint { color: var(--muted); }
html.dark .ui-seg span { border-right-color: var(--line); }
html.dark .alert-success { background: color-mix(in srgb, var(--green) 16%, var(--white)); color: var(--green-dark); }
html.dark .badge-muted { color: var(--muted); }
html.dark hr { border-color: var(--line); }

/* Sfondet në errësirë */
html.dark body.ui-bg-photo {
    background: linear-gradient(rgba(3, 8, 5, calc(.45 + var(--ui-veil) / 2)), rgba(3, 8, 5, calc(.45 + var(--ui-veil) / 2))), var(--ui-photo) center / cover fixed no-repeat #0b1a0f;
}
@media (max-width: 760px) {
    html.dark body.ui-bg-photo { background-image: linear-gradient(rgba(3, 8, 5, .6), rgba(3, 8, 5, .6)), var(--ui-photo-m); background-attachment: scroll; }
}
html.dark body.ui-bg-photo main.main { background: rgba(10, 14, 12, .9); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
html.dark[data-theme="blue"] body.ui-bg-photo main.main { background: rgba(9, 13, 21, .9); }
html.dark[data-theme="red"] body.ui-bg-photo main.main { background: rgba(11, 10, 10, .9); }
@supports (backdrop-filter: blur(4px)) {
    html.dark body.ui-bg-photo main.main { background: rgba(10, 14, 12, .84); }
    html.dark[data-theme="blue"] body.ui-bg-photo main.main { background: rgba(9, 13, 21, .84); }
    html.dark[data-theme="red"] body.ui-bg-photo main.main { background: rgba(11, 10, 10, .84); }
    html.dark body.ui-bg-photo .topbar, html.dark body.ui-bg-photo .footer { background: rgba(8, 11, 9, .82); }
}
html.dark body.ui-bg-lines { background: var(--ui-lines) center / min(1500px, 96vw) auto fixed no-repeat, var(--bg); }
html.dark body.ui-bg-balls { background: var(--ui-balls) 0 0 / 120px 120px, var(--bg); }

/* Elemente me sfond gjysmë të bardhë */
html.dark .tb.tb-is-full .tb-toolbar { background: rgba(18, 24, 21, .96); }
html.dark .photo-delete { background: rgba(18, 24, 21, .9); color: var(--ink); }
html.dark .mx-toast { background: #e7eee9; color: #0a0e0c; }
html.dark .srch-pop-box, html.dark .ui-dlg-box { box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); }

/* Rregullat automatike për ngjyrat e ngurta (gjeneruar nga darkgen.py) */
html.dark .alert-warning { background: #3d3119; color: #f6ce8e; }
html.dark .badge-warn { background: #3d3119; color: #f6ce8e; }
html.dark .slot.slot-free { border-color: #375840; }
html.dark .slot.slot-pending { background: #3d3119; border-color: #604e2e; color: #f6ce8e; }
html.dark .slot.slot-taken { background: #3d1919; border-color: #602e2e; color: #ea9999; }
html.dark .slot-dot.slot-free { border-color: #375840; }
html.dark .slot-dot.slot-pending { background: #3d3119; border-color: #604e2e; }
html.dark .slot-dot.slot-taken { background: #3d1919; border-color: #602e2e; }
html.dark .schedule-row.slot-pending { background: #3d3119; }
html.dark .schedule-row.slot-taken { background: #213626; }
html.dark .schedule-row.is-block { background: var(--surface-2); }
html.dark .panel-accent { border-color: #604e2e; }
html.dark .count-warn { background: #3d3019; color: #f6ce8e; }
html.dark .notice-warn { background: #3d3119; border-color: #604e2e; color: #f6ce8e; }
html.dark .request { background: #3d3119; border-color: #60502e; }
html.dark .request-when { background: var(--white); border-color: #604e2e; }
html.dark .btn-ghost-danger { border-color: #602e2e; }
html.dark .btn-ghost-danger:hover { background: #3d1919; }
html.dark .tl-row:hover { background: var(--white); }
html.dark .tl-pending { background: #3d3119; }
html.dark .tl-confirmed { background: #192a3d; }
html.dark .tl-blocked { background: var(--surface-2); }
html.dark .chip-free { background: #1f3826; color: #9fe4b3; }
html.dark .chip-pending { background: #3d3019; color: #f6ce8e; }
html.dark .chip-confirmed { background: #19293d; color: #8eb7f6; }
html.dark .chip-blocked { background: var(--surface-2); color: #b7c6cd; }
html.dark .chip-past { background: var(--surface-2); }
html.dark .icon-no:hover { background: #3d1919; border-color: #602e2e; }
html.dark .cal-many { background: #1f3826; color: #9fe4b3; }
html.dark .cal-few { background: #3d3119; color: #f6ce8e; }
html.dark .cal-full { background: #3d1919; color: #ea9999; }
html.dark .avatar { border-color: var(--line); }
html.dark .src-online { background: #19243d; color: #98afec; }
html.dark .src-manual { background: #1f3826; color: #9fe4b3; }
html.dark .src-block { background: var(--surface-2); color: #b7c6cd; }
html.dark .tr-planned { background: #19243d; color: #98afec; }
html.dark .tr-done { background: #1f3826; color: #9fe4b3; }
html.dark .tr-cancelled { background: var(--surface-2); color: #b7c6cd; }
html.dark .att-chip.att-present { background: #1f3826; color: #9fe4b3; }
html.dark .att-chip.att-late { background: #3d3419; color: #f6db8e; }
html.dark .att-chip.att-absent { background: #3d1d19; color: #ea9c9a; }
html.dark .att-chip.att-excused { background: var(--surface-2); color: #b7c6cd; }
html.dark .color-pick span { border-color: var(--line); }
html.dark .score-sm.win { background: #1f3826; color: #9fe4b3; }
html.dark .score-sm.loss { background: #3d1d19; color: #ea9c9a; }
html.dark .sq-out input:checked + span { background: var(--surface-2); border-color: var(--line); }
html.dark .agenda-fixture { background: #3d3519; }
html.dark .chip-managed { background: var(--surface-2); color: #b7c6cd; }
html.dark .form-table th, html.dark .form-table td { border-color: var(--line); }
html.dark .pct-hi { background: #1f3826; color: #9fe4b3; }
html.dark .pct-mid { background: #3d3419; color: #f6db8e; }
html.dark .pct-lo { background: #3d1d19; color: #ea9c9a; }
html.dark .ok-text { color: #9fe4b3; }
html.dark .sev-light { color: #f6db8e; }
html.dark .sev-medium { color: #f6bb8e; }
html.dark .sev-serious { color: #ea9c9a; }
html.dark .alert-error { background: #3d1920; color: #f094a0; }
html.dark .notice-info { background: #19263d; border-color: #2e3f60; color: #9db6e6; }
html.dark .lo-key { background: var(--surface-2); }
html.dark .lo-chips .chip { background: var(--surface-2); }
html.dark .del-warn { background: #3d1920; color: #f094a0; border-color: #602e37; }
html.dark .del-owned { background: #3d3219; border-color: #60502e; }
html.dark .nt-u18 { color: #b7c6cd; background: var(--surface-2); }
html.dark .nt-missing { color: #f6c98e; }
html.dark .nt-st-sent, html.dark .nt-st-opened { background: #1d3a24; color: #98ecb1; }
html.dark .nt-st-failed { background: #3d1919; color: #ed9b96; }
html.dark .nt-st-pending { background: #3d3219; color: #f6d28e; }
html.dark .fam-rsvp .fam-yes:hover, html.dark .fam-rsvp .fam-yes.on { color: #a6dea8; }
html.dark .btn-danger-soft { background: #3d1d19; border-color: #60342e; }
html.dark .btn-danger-soft:hover { background: #3d1e19; }
html.dark .notif-row.unread { background: var(--white); }
html.dark .chat-body { background: var(--surface-2); }
html.dark .chat-msg.mine { background: #1b3b23; }
html.dark .stat-ok .stat-num { color: #a6dea8; }
html.dark .fee-badge-paid { color: #a6dea8; }
html.dark .fee-badge-open { color: #f6df8e; }
html.dark .fee-overdue { background: #3d1d19; }
html.dark .fam-fee-ok { color: #a6dea8; }
html.dark .gal-progress { background: var(--surface-2); }
html.dark .gal-item { background: var(--surface-2); }
html.dark .fam-hero-group { border-left-color: var(--line); }
html.dark .perms-sel.perms-yes { border-color: #355a36; }
html.dark .perms-sel.perms-no { border-color: #602e2e; }
html.dark .perms-sel.perms-approve, html.dark .perms-sel.perms-limited { border-color: #60542e; }
html.dark .fee-override.is-pending { background: #3d3619; }
html.dark .is-locked select, html.dark .is-locked input { background: var(--surface-2); }
html.dark input[readonly] { background: var(--surface-2); }
html.dark .btn-outline, html.dark .btn-light { background: var(--white); }
html.dark .btn-outline:hover, html.dark .btn-light:hover { background: var(--surface-2); border-color: var(--line); }
html.dark input[type=text], html.dark input[type=email], html.dark input[type=password], html.dark input[type=date], html.dark input[type=number], html.dark input[type=tel], html.dark input[type=url], html.dark input[type=search], html.dark input[type=time], html.dark input[type=datetime-local], html.dark input[type=month], html.dark select, html.dark textarea { background-color: var(--white); }
html.dark input:hover, html.dark select:hover, html.dark textarea:hover { border-color: var(--line); }
html.dark label { color: var(--ink); }
html.dark .table th { background: var(--surface-2); }
html.dark .badge-muted { background: var(--surface-2); }
html.dark .ui-seg { background: var(--white); }
html.dark .nav-drop-menu { background: var(--white); }
html.dark .nav-logout:hover { background: #3d1920; }
html.dark .tr-pick { background: var(--white); }
html.dark .tr-chip { background: var(--white); }
html.dark .tr-pick-item { background: var(--white); }
html.dark .tr-pick-item:hover { border-color: var(--line); }
html.dark .srch-pop-box { background: var(--white); }
html.dark .srch-pop-close { background: var(--surface-2); }
html.dark .srch-emo { background: var(--surface-2); }
html.dark .srch-page-form { background: var(--white); }
html.dark .nav-search:hover { background: var(--white); border-color: var(--line); }
html.dark .nav-search kbd { background: var(--surface-2); }
html.dark .chat-del { background: var(--white); }
html.dark .tr-day span { background: var(--white); }
html.dark .ui-dlg-box { background: var(--white); }
html.dark .ui-dlg-ico.is-danger { background: #3d1920; color: #f19a93; }
html.dark .mx-st-live { color: #9aeab1; background: #1f3826; border-color: #335c3e; }
html.dark .mx-st-cancelled { color: #ed9b96; background: #3d1d19; border-color: #60332e; }
html.dark .mx-panel-link { background: #1f3826; border-color: #335c3e; color: #94f0b2; }
html.dark .mx-panel-link small { color: #b1d3bb; }
html.dark .mx-tl-del:hover { background: #3d1d19; color: #ed9b96; }
html.dark .mx-nm { color: #a0e4b7; }
html.dark .mx-saved { color: #9aeab1; }
html.dark .mx-fx-live { color: #9aeab1; }
html.dark .mx-fx-cancel { color: #ed9b96; }
html.dark .mx-fx.is-live { border-color: #335c3e; }
html.dark .fam-match-link.is-live { color: #9aeab1; }
html.dark .mx-offline { background: #3d2e19; border-color: #604a2e; color: #f6c68e; }

/* Pas rregullave automatike: përjashtimet */
html.dark .home-final .btn { background: #fff; color: var(--green-deep); }
html.dark .crest-img, html.dark .mx-crest img { background: #fff; }
html.dark label.check, html.dark .check { color: var(--ink); }

/* =====================================================================
   Hapi 68 — 🎨 Ngjyrat e klubit, shiriti i kreut, ikonat në katrorë, karta KPI
   ===================================================================== */
/* Klubi: vija me dy ngjyrat poshtë shiritit të sipërm */
html[data-club] .topbar { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--green) 0%, var(--green) 55%, var(--accent) 100%) 1; }
html[data-club][data-theme="red"] .lang a.active, html[data-club][data-theme="red"] .nav-admin { background: var(--green); }

/* ---- Shiriti i kreut të faqes ---- */
.page-head {
    position: relative; isolation: isolate;
    padding: 18px 22px; border-radius: 18px; align-items: center;
    background:
        radial-gradient(circle at calc(100% - 70px) 50%, transparent 41px, color-mix(in srgb, var(--green) 16%, transparent) 42px 43.5px, transparent 44.5px),
        linear-gradient(90deg, transparent calc(100% - 71px), color-mix(in srgb, var(--green) 16%, transparent) calc(100% - 71px) calc(100% - 69px), transparent calc(100% - 69px)),
        linear-gradient(115deg, color-mix(in srgb, var(--green) 11%, var(--white)) 0%, var(--white) 58%);
    border: 1px solid color-mix(in srgb, var(--green) 14%, transparent);
    box-shadow: var(--shadow-card);
}
.page-head::before {
    content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px; z-index: -1; border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, var(--green), var(--accent));
}
.page-head h1 { margin: 0; }
.page-head h1::after { width: 36px; height: 3px; margin-top: 7px; }
.page-head p { margin: 4px 0 0; }
.page-head-actions { position: relative; z-index: 1; }
html.dark .page-head {
    background:
        radial-gradient(circle at calc(100% - 70px) 50%, transparent 41px, color-mix(in srgb, var(--green) 26%, transparent) 42px 43.5px, transparent 44.5px),
        linear-gradient(90deg, transparent calc(100% - 71px), color-mix(in srgb, var(--green) 26%, transparent) calc(100% - 71px) calc(100% - 69px), transparent calc(100% - 69px)),
        linear-gradient(115deg, color-mix(in srgb, var(--green) 20%, var(--white)) 0%, var(--white) 62%);
    border-color: color-mix(in srgb, var(--green) 22%, transparent);
}
@media (max-width: 640px) {
    .page-head { padding: 14px 14px 14px 18px; border-radius: 14px; }
    .page-head::before { border-radius: 14px 0 0 14px; }
    .page-head { background:
        linear-gradient(115deg, color-mix(in srgb, var(--green) 11%, var(--white)) 0%, var(--white) 70%); }
    html.dark .page-head { background: linear-gradient(115deg, color-mix(in srgb, var(--green) 20%, var(--white)) 0%, var(--white) 75%); }
}
.form-card > h1:first-child, .form-card h1 { letter-spacing: -.02em; }

/* ---- Ikonat e titujve në katrorë me ngjyrë ---- */
h1 .ico, .page-head h1 .ico {
    box-sizing: content-box; width: .62em; height: .62em; padding: .2em; margin-right: .32em;
    vertical-align: -.12em; border-radius: .28em; color: #fff; stroke-width: 2.2;
    background: var(--grad); box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--green) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
h2 .ico, h3 .ico, .panel-title .ico {
    box-sizing: content-box; width: .9em; height: .9em; padding: .24em; margin-right: .22em;
    vertical-align: -.3em; border-radius: .38em; color: var(--green); stroke-width: 2;
    background: color-mix(in srgb, var(--green) 12%, transparent);
}
html.dark h2 .ico, html.dark h3 .ico, html.dark .panel-title .ico { color: var(--green-dark); background: var(--green-soft); }

/* ---- Karta KPI ---- */
.stat-row { gap: 12px; }
.stat {
    position: relative; overflow: hidden; min-width: 0;
    background: var(--white); border-radius: 14px; padding: 14px 16px 13px;
    border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; gap: 3px;
}
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--accent)); opacity: .85; }
.stat-ok::before { background: linear-gradient(90deg, #1e8e3e, #7bd389); }
.stat-bad::before { background: linear-gradient(90deg, var(--red), #ff9f80); }
.stat .stat-num { order: 1; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .stat-label { order: 2; font-size: 12.5px; font-weight: 500; }
.stat .stat-label .ico { color: var(--green); }
.stat .kpi-delta { order: 3; }
.kpi-delta {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 3px;
    margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--muted);
}
.kpi-delta.is-good { background: #e3f5e8; color: #1b6b34; }
.kpi-delta.is-bad { background: #fdeaea; color: #a3261f; }
html.dark .kpi-delta.is-good { background: rgba(34, 160, 80, .18); color: #8ee6aa; }
html.dark .kpi-delta.is-bad { background: rgba(240, 82, 82, .16); color: #ffa3a3; }
@media (max-width: 640px) {
    .stat { padding: 12px 13px 11px; }
    .stat .stat-num { font-size: 24px; }
}

/* ---- Ngjyra e skuadrës ---- */
.team-card { border-top: 4px solid var(--tc, var(--green)); }
.team-chip { background: color-mix(in srgb, var(--tc, var(--green)) 14%, var(--white)) !important; color: color-mix(in srgb, var(--tc, var(--green)) 75%, var(--ink)) !important; }
html.dark .team-chip { color: color-mix(in srgb, var(--tc, var(--green)) 45%, #fff) !important; }
.team-color-row { display: flex; align-items: center; gap: 12px; }
.team-color-row input[type=color] { width: 56px; height: 38px; padding: 3px; flex: none; }
.ui-club-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); margin-right: 7px; vertical-align: -3px; }

/* =====================================================================
   Hapi 70: 📅 Kalendari i trajnerit, ✅ fleta e ditës, 📊 puna ime
   ===================================================================== */
.ccal-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.ccal-layout > * { min-width: 0; margin-bottom: 0; }
.ccal-day { aspect-ratio: auto; min-height: 54px; justify-content: flex-start; padding-top: 8px; gap: 5px; background: var(--surface-2, var(--bg)); }
.ccal-day.cal-off { background: transparent; }
.ccal-day.is-today:not(.is-selected) .cal-num { color: var(--green); }
.ccal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: 100%; padding: 0 2px; }
.ccal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: #90a4ae; }
.ccal-dot.k-training { background: var(--gc, var(--green)); }
.ccal-dot.k-fixture { background: #f5a623; }
.ccal-dot.k-event { background: var(--gc, #1565c0); }
.ccal-dot.k-birthday { background: #d81b60; }
.ccal-dot.k-fees { background: #8d6e63; }
.ccal-dot.is-cancelled { opacity: .35; }
.cal-day.is-selected .ccal-dot { box-shadow: 0 0 0 1.5px #fff; }
.cal-legend .ccal-dot { width: 10px; height: 10px; }
.ccal-today { margin-left: auto; }

.panel > .agenda-item + .agenda-item { margin-top: 6px; }
.agenda-event { background: color-mix(in srgb, var(--gc, #1565c0) 8%, var(--white)); border-left-color: var(--gc, #1565c0); }
.agenda-birthday { background: #fdeef4; border-left-color: #d81b60; }
.agenda-fees { background: #f5efec; border-left-color: #8d6e63; }
.ccal-item { flex-direction: row; align-items: center; gap: 10px; }
.ccal-item-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ccal-item-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ccal-item-actions form { margin: 0; }

.ccal-colors { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ccal-color { position: relative; margin: 0; cursor: pointer; }
.ccal-color input { position: absolute; opacity: 0; pointer-events: none; }
.ccal-color span { display: block; width: 30px; height: 30px; border-radius: 9px; background: var(--sw); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .1s; }
.ccal-color input:checked + span { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--sw); transform: scale(1.04); }
.ccal-color input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.ccal-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.ccal-form-actions .btn-full { flex: 1; width: auto; margin-top: 0; }

/* ✅ Fleta e ditës */
.ctask-auto { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--ink); border-left: 4px solid #90a4ae; }
.ctask-auto + .ctask-auto { margin-top: 6px; }
.ctask-auto.is-warn { border-left-color: #f5a623; background: #fff8e8; }
.ctask-auto.is-info { border-left-color: var(--green); }
.ctask-auto:hover { box-shadow: var(--shadow-1, 0 2px 6px rgba(0, 0, 0, .06)); }
.ctask-auto-ico { flex: none; width: 22px; text-align: center; }
.ctask-add { display: flex; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; }
.ctask-add input[type=text] { flex: 1 1 220px; min-width: 0; margin: 0; }
.ctask-add select { width: auto; flex: 0 0 auto; margin: 0; }
.ctask-add .btn { flex: 0 0 auto; }
.ctask-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--field-line, var(--line)); background: var(--white); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; padding: 0; transition: background .15s, border-color .15s; }
.ctask-check:hover { border-color: var(--green); }
.ctask.is-done .ctask-check { background: var(--green); border-color: var(--green); color: #fff; }
.ctask .m-grow { display: flex; flex-direction: column; min-width: 0; }
.ctask-title { font-weight: 600; overflow-wrap: anywhere; }
.ctask.is-done .ctask-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.ctask-prio { font-weight: 700; }
.ctask.p-high .ctask-prio { color: #c62828; }
.ctask.p-high:not(.is-done) .ctask-check { border-color: #e57373; }
.ctask.p-low .ctask-prio { color: var(--muted); }
.ctask-bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin: 2px 0 10px; }
.ctask-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad, var(--green)); }

/* 📊 Puna ime */
.cwork-filters { align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cwork-vs { margin: 0 0 14px; }
.ui-seg-links { margin-top: 0; }
.ui-seg-links a { display: block; padding: 8px 16px; font-size: 13px; font-weight: 500; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ui-seg-links a:last-child { border-right: 0; }
.ui-seg-links a:hover { background: var(--bg); }
.ui-seg-links a.is-on { background: var(--grad); color: #fff; font-weight: 600; }
.ui-seg-links a.is-on * { color: #fff !important; }
.cwork-sub { margin: 12px 0 2px; font-weight: 700; font-size: 13px; color: var(--muted); }
.cwork-person { padding: 6px 0; }
.cwork-person a { color: var(--ink); font-weight: 600; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cwork-gdot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gc); margin-right: 8px; vertical-align: 0; }
.m-dl dd .kpi-delta { margin-left: 6px; font-size: 11px; }

/* Faqja kryesore: Sot */
.ctoday-week { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); text-decoration: none; font-size: 14px; }
.ctoday-week span:first-child { font-weight: 700; }
.ctoday-week span:nth-child(2) { flex: 1; min-width: 0; }
.ctoday .head-row > span { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 820px) {
    .ccal-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .ccal-day { min-height: 44px; padding-top: 6px; border-radius: 8px; }
    .ccal-dot { width: 6px; height: 6px; }
    .ccal-dots { gap: 2px; }
    .cwork-filters { flex-direction: column; align-items: stretch; }
    .ui-seg-links { display: flex; }
    .ui-seg-links a { flex: 1; text-align: center; padding: 8px 6px; }
    .ccal-colors { gap: 6px; }
    .ctask-add select { flex: 1 1 auto; }
}

html.dark .agenda-event { background: color-mix(in srgb, var(--gc, #1565c0) 16%, var(--white)); }
html.dark .agenda-birthday { background: #3a1c29; }
html.dark .agenda-fees { background: #33291f; }
html.dark .ctask-auto.is-warn { background: #3d3119; }
html.dark .ccal-day.cal-off { background: transparent; }
html.dark .ctask.p-high .ctask-prio { color: #ef9a9a; }
