/*
 * Wiederverwendbare UI-Komponenten und Zustandsstile.
 *
 * @package LeadershipCoachPortal
 */

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease), opacity var(--speed) var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover { box-shadow: 0 14px 30px rgba(117, 88, 255, 0.36); }

.btn-dark {
    background: #1f283e;
    color: #fff;
}

.btn-light {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.btn-light:hover { background: var(--surface-2); }

.btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

.btn-outline:hover { background: var(--surface-2); }

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
}

.btn-ghost:hover { background: var(--surface-2); }

.btn-danger {
    background: var(--grad-danger);
    color: #fff;
    box-shadow: 0 10px 24px rgba(245, 54, 92, 0.24);
}

.btn-success { background: var(--success); color: #fff; }

.btn-sm {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}

.btn-xs {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-block { width: 100%; }

.btn-icon {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

.btn-icon:hover { background: var(--surface-2); color: var(--ink); }
.btn-icon.round { border-radius: 999px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
}

.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    padding: 0;
}

.link-btn:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------ */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    min-width: 0;
}

.card-hover {
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 0;
}

.card-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.card-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
}

.card-body {
    padding: 18px 22px 22px;
}

.card-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid var(--line);
}

.card-flush .card-body { padding: 0; }

.card-pad { padding: 22px; }

.card-gradient {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: 0;
    background: var(--grad-brand);
    box-shadow: var(--shadow-brand);
}

.card-gradient::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.card-gradient .card-title,
.card-gradient .card-subtitle,
.card-gradient .muted { color: rgba(255, 255, 255, 0.82); }

/* ------------------------------------------------------------------
   Stat cards
   ------------------------------------------------------------------ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    min-width: 0;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
    box-shadow: var(--shadow-sm);
}

.stat-icon.violet { background: var(--grad-violet); }
.stat-icon.cyan { background: var(--grad-cyan); }
.stat-icon.orange { background: var(--grad-orange); }
.stat-icon.blue { background: var(--grad-blue); }
.stat-icon.danger { background: var(--grad-danger); }
.stat-icon.dark { background: linear-gradient(135deg, #3a4257, #1a2035); }

.stat-info { min-width: 0; }
.stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-value {
    margin-top: 2px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.stat-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------
   Coach cards
   ------------------------------------------------------------------ */

.coach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.coach-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.coach-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--coach-grad, var(--grad-brand));
}

.coach-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
}

.coach-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.coach-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--coach-grad, var(--grad-brand));
    box-shadow: var(--shadow-sm);
    flex: 0 0 auto;
}

.coach-card h3 {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.coach-card .coach-tagline {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12.5px;
}

.coach-card p.coach-desc {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

.coach-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.coach-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.coach-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------------------
   Badges / chips
   ------------------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 7px;
    background: var(--surface-3);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-success { background: var(--success-soft); color: #1a9e68; }
.badge-warning { background: var(--warning-soft); color: #b96b00; }
.badge-danger { background: var(--danger-soft); color: #c62a4c; }
.badge-info { background: var(--info-soft); color: #0789a1; }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-cyan { background: var(--cyan-soft); color: #0b9bb0; }
.badge-orange { background: var(--orange-soft); color: #d04a2c; }
.badge-blue { background: var(--blue-soft); color: #2c62d6; }
.badge-dark { background: #1f283e; color: #fff; }
.badge-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Avatars
   ------------------------------------------------------------------ */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex: 0 0 auto;
}

.avatar-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.avatar-soft { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field label,
.label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}

.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.textarea { min-height: 110px; resize: vertical; }

/* iOS zoomt Formularfelder unter 16px beim Fokus heran. */
@media (max-width: 720px) {
    .input, .select, .textarea { font-size: 16px; }
}

.select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.field-hint { font-size: 11.5px; color: var(--muted); }
.field-error { font-size: 11.5px; color: var(--danger); font-weight: 600; }

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 42px; }
.input-icon-wrap .input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid .span-2 { grid-column: span 2; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
}

.switch input { position: absolute; opacity: 0; pointer-events: none; }

.switch-track {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--line-strong);
    position: relative;
    transition: background var(--speed) var(--ease);
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform var(--speed) var(--ease);
}

.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }

.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-soft);
}

.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); }

/* ------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------ */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--speed) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table .right { text-align: right; }
.table .nowrap { white-space: nowrap; }

.table-empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--muted);
}

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.table-toolbar .grow { min-width: 180px; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12.5px;
}

.pagination-actions { display: flex; gap: 8px; }

/* ------------------------------------------------------------------
   Timeline
   ------------------------------------------------------------------ */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 0 0 20px 0;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--coach-grad, var(--grad-brand));
    flex: 0 0 auto;
    z-index: 1;
}

.timeline-body { min-width: 0; padding-top: 2px; display: flex; flex-direction: column; gap: 2px; }
.timeline-title { display: block; font-size: 13.5px; font-weight: 700; }
.timeline-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 0; }
.timeline-date { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; padding-top: 3px; }

.timeline-link:hover .timeline-title { color: var(--brand); }

/* ------------------------------------------------------------------
   Tabs
   ------------------------------------------------------------------ */

.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    flex-wrap: wrap;
}

.tab {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
}

.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ------------------------------------------------------------------
   Progress
   ------------------------------------------------------------------ */

.progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--grad-brand);
    transition: width 400ms var(--ease);
}

.progress-sm { height: 6px; }
.progress-success .progress-bar { background: var(--grad-cyan); }
.progress-orange .progress-bar { background: var(--grad-orange); }

/* ------------------------------------------------------------------
   Alerts
   ------------------------------------------------------------------ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: 13.5px;
}

.alert-icon { flex: 0 0 auto; margin-top: 1px; }
.alert-success { background: var(--success-soft); border-color: transparent; color: #177f54; }
.alert-warning { background: var(--warning-soft); border-color: transparent; color: #925600; }
.alert-danger { background: var(--danger-soft); border-color: transparent; color: #a51f3d; }
.alert-info { background: var(--info-soft); border-color: transparent; color: #087d94; }

/* ------------------------------------------------------------------
   Empty / skeleton
   ------------------------------------------------------------------ */

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 48px 20px;
    color: var(--muted);
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 4px;
}

.empty h3 { color: var(--ink); font-size: 16px; }
.empty p { max-width: 420px; font-size: 13.5px; }

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-card { height: 180px; border-radius: var(--radius); }

/* ------------------------------------------------------------------
   Modal
   ------------------------------------------------------------------ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(5px);
    animation: fadeIn 160ms var(--ease);
}

.modal.lg { width: min(100%, 780px); }

.modal {
    width: min(100%, 560px);
    max-height: min(90vh, 760px);
    overflow: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    animation: modalIn 200ms var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.legal-text h3 {
    font-size: 15px;
    margin: 18px 0 6px;
    letter-spacing: -0.01em;
}

.legal-text p {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 10px;
}

.legal-text p:last-child,
.legal-section:last-child p { margin-bottom: 0; }

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 0;
}

.modal-title { font-size: 19px; letter-spacing: -0.02em; }
.modal-body { padding: 18px 24px 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   Toasts
   ------------------------------------------------------------------ */

.toast-root {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    color: var(--ink);
    font-size: 13.5px;
    pointer-events: auto;
    animation: toastIn 200ms var(--ease);
}

@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--info); }
.toast-warning { border-left: 4px solid var(--warning); }

/* ------------------------------------------------------------------
   Misc
   ------------------------------------------------------------------ */

.divider {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 18px 0;
}

.kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}

.kv:last-child { border-bottom: 0; }
.kv-label { color: var(--muted); }
.kv-value { font-weight: 700; text-align: right; }

.code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--surface-3);
    padding: 3px 7px;
    border-radius: 6px;
    color: var(--ink-soft);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 13px;
    text-align: left;
}

.dropdown-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.switch-row:last-child { border-bottom: 0; }

.meter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--grad-brand);
}

@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .coach-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid .span-2 { grid-column: auto; }
}

@media (max-width: 620px) {
    .stat-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 21px; }
    .table th, .table td { padding: 11px 12px; }
    .card-header, .card-body, .card-footer { padding-left: 16px; padding-right: 16px; }
    .modal-header, .modal-body, .modal-footer { padding-left: 18px; padding-right: 18px; }
}
