/* ============================================================
   LaxLab — Dashboard Styles
   Requires: shared.css (loaded first for variables & base)
   ============================================================ */

/* Dashboard-specific spacing vars */
:root {
    --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
}

/* Dashboard overrides */
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ==================== DASHBOARD NAV ==================== */
.dash-nav {
    position: sticky; top: 0; z-index: 100;
    width: 100%; padding: 0 clamp(20px, 5vw, 48px);
    background: rgba(11, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.dash-nav__inner {
    width: 100%; max-width: 1100px;
    margin: 0 auto; display: flex;
    align-items: center; justify-content: space-between;
    height: 56px;
}
.dash-nav__logo {
    font-family: var(--font-display); font-size: 1.25rem;
    font-weight: 900; letter-spacing: -0.5px;
    text-decoration: none; color: var(--text);
}
.dash-nav__logo span { color: var(--blue); }
.dash-nav__actions {
    display: flex; align-items: center; gap: 16px;
}
.dash-nav__user {
    display: flex; align-items: center; gap: 10px;
}
.dash-nav__avatar {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--border-2); display: none;
}
.dash-nav__name {
    font-size: 0.85rem; font-weight: 600; color: var(--text-2);
}
.dash-nav__signout {
    background: transparent; border: none;
    color: var(--text-3); padding: 6px;
    border-radius: 8px; transition: all 0.2s;
}
.dash-nav__signout:hover {
    color: var(--red); background: rgba(239, 68, 68, 0.1);
}

/* ==================== AUTH GATE ==================== */
.auth-gate {
    display: none; align-items: center; justify-content: center;
    min-height: calc(100vh - 56px); padding: 40px 20px;
}
.auth-gate__card {
    text-align: center; max-width: 360px;
}
.auth-gate__card h2 {
    font-family: var(--font-display); font-size: 1.3rem;
    font-weight: 800; margin-bottom: 8px;
}
.auth-gate__card p {
    color: var(--text-2); font-size: 0.9rem;
    line-height: 1.6; margin-bottom: 16px;
}

/* ==================== LOADING ==================== */
.loading-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: calc(100vh - 56px); gap: 16px;
    color: var(--text-2); font-size: 0.9rem;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner.small { width: 20px; height: 20px; border-width: 2px; }
.loading-inline {
    display: flex; align-items: center; gap: 12px;
    padding: 40px; justify-content: center;
    color: var(--text-3); font-size: 0.85rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== CLAIM BANNER ==================== */
.claim-banner {
    display: flex; align-items: center; gap: 16px;
    max-width: 1100px; margin: 16px auto;
    padding: 14px 20px; border-radius: var(--radius);
    background: var(--blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.claim-banner__icon { font-size: 24px; flex-shrink: 0; }
.claim-banner__text {
    flex: 1; font-size: 0.85rem;
}
.claim-banner__text strong {
    display: block; margin-bottom: 2px;
}
.claim-banner__text span { color: var(--text-2); }
.claim-banner__btn {
    flex-shrink: 0; padding: 8px 16px;
    background: var(--blue); color: #fff;
    border-radius: 8px; font-size: 0.8rem;
    font-weight: 600; white-space: nowrap;
    transition: all 0.2s;
}
.claim-banner__btn:hover { background: var(--blue-light); }

/* ==================== TABS ==================== */
.tabs {
    display: flex; gap: 4px; padding: 16px clamp(20px, 5vw, 48px) 0;
    max-width: calc(1100px + clamp(40px, 10vw, 96px));
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}
.tab {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; font-size: 0.85rem;
    font-weight: 600; color: var(--text-3);
    background: transparent; border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s; position: relative;
}
.tab:hover { color: var(--text-2); }
.tab.active {
    color: var(--text); border-bottom-color: var(--blue);
}
.tab__badge {
    background: var(--blue); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 6px; border-radius: 10px;
    min-width: 18px; text-align: center;
}

/* ==================== TAB CONTENT ==================== */
.tab-content {
    display: none; padding: 24px clamp(20px, 5vw, 48px);
    max-width: calc(1100px + clamp(40px, 10vw, 96px));
    margin: 0 auto; width: 100%; box-sizing: border-box;
}
.tab-content.active { display: block; }

/* ==================== PANELS ==================== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 28px;
    overflow: hidden; box-sizing: border-box; max-width: 100%;
}
.panel__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 8px;
}
.panel__title {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 800;
}
.panel__link {
    font-size: 0.8rem; color: var(--blue-light);
    font-weight: 500; transition: opacity 0.2s;
}
.panel__link:hover { opacity: 0.8; }
.panel__count {
    font-size: 0.8rem; color: var(--text-3);
    font-family: var(--font-mono);
}
.panel__actions {
    display: flex; align-items: center; gap: 16px;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ==================== PROFILE SUMMARY ==================== */
.profile-summary {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 24px; margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.profile-summary__avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--bg-surface); border: 2px solid var(--border-2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: var(--blue);
    flex-shrink: 0;
}
.profile-summary__info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 800;
    margin-bottom: 2px;
}
.profile-summary__info p {
    font-size: 0.8rem; color: var(--text-2);
}

/* ==================== VIDEO SECTION ==================== */
.video-section {
    margin-bottom: 28px; padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.video-section__title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 700;
    margin-bottom: 16px; color: var(--text);
}
.video-section__title svg { color: var(--blue); }

/* Video Preview */
.video-preview__embed {
    position: relative; width: 100%;
    aspect-ratio: 16 / 9; border-radius: 12px;
    overflow: hidden; background: #000;
    margin-bottom: 12px;
}
.video-preview__embed iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.video-preview__actions {
    display: flex; align-items: center; gap: 10px;
}
.video-preview__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; font-size: 0.78rem; font-weight: 500;
    color: var(--text-2); border-radius: 8px;
    background: var(--bg-surface); border: 1px solid var(--border);
    transition: all 0.15s;
}
.video-preview__link:hover {
    border-color: var(--blue); color: var(--blue-light);
}
.video-preview__replace {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; font-size: 0.78rem; font-weight: 500;
    color: var(--text-3); border-radius: 8px;
    background: transparent; border: 1px solid var(--border);
    transition: all 0.15s; cursor: pointer;
}
.video-preview__replace:hover {
    border-color: var(--border-2); color: var(--text-2);
}

/* Upload Zone */
.upload-zone__droparea {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px;
    padding: 40px 24px; border-radius: 12px;
    border: 2px dashed var(--border-2);
    background: var(--bg-surface);
    transition: all 0.2s; cursor: pointer;
    text-align: center;
}
.upload-zone__droparea:hover,
.upload-zone__droparea.drag-over {
    border-color: var(--blue);
    background: var(--blue-glow);
}
.upload-zone__droparea.drag-over {
    border-style: solid;
    transform: scale(1.01);
}
.upload-zone__icon {
    color: var(--text-3); opacity: 0.6;
}
.upload-zone__droparea:hover .upload-zone__icon,
.upload-zone__droparea.drag-over .upload-zone__icon {
    color: var(--blue); opacity: 1;
}
.upload-zone__text {
    font-size: 0.85rem; color: var(--text-2);
    line-height: 1.5;
}
.upload-zone__text strong { color: var(--text); }
.upload-zone__text span { color: var(--text-3); font-size: 0.78rem; }
.upload-zone__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; background: var(--blue);
    color: #fff; border: none; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600;
    transition: all 0.2s; margin-top: 4px;
}
.upload-zone__btn:hover {
    background: var(--blue-light); transform: translateY(-1px);
}
.upload-zone__note {
    font-size: 0.72rem; color: var(--text-3);
    max-width: 340px; line-height: 1.5;
    margin-top: 4px;
}

/* YouTube Status */
.yt-status {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    margin-top: 12px; font-size: 0.78rem;
}
.yt-status--connected {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--green);
}
.yt-status--disconnected {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--amber);
}
.yt-status--error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red);
}
.yt-status__dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.yt-status--connected .yt-status__dot { background: var(--green); }
.yt-status--disconnected .yt-status__dot { background: var(--amber); }

/* Upload Progress */
.upload-progress {
    padding: 20px; border-radius: 12px;
    background: var(--bg-surface); border: 1px solid var(--border);
}
.upload-progress__header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 12px;
}
.upload-progress__file {
    font-size: 0.85rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 70%;
}
.upload-progress__size {
    font-size: 0.75rem; color: var(--text-3);
    font-family: var(--font-mono);
}
.upload-progress__bar {
    width: 100%; height: 8px; border-radius: 4px;
    background: var(--border); overflow: hidden;
    margin-bottom: 10px;
}
.upload-progress__fill {
    height: 100%; border-radius: 4px;
    background: var(--blue);
    transition: width 0.3s ease-out;
}
.upload-progress__footer {
    display: flex; justify-content: space-between;
    align-items: center;
}
.upload-progress__percent {
    font-size: 0.82rem; font-weight: 700;
    color: var(--blue-light);
    font-family: var(--font-mono);
}
.upload-progress__status {
    font-size: 0.75rem; color: var(--text-3);
}

/* ==================== VIDEO LIST ==================== */
.video-list {
    margin-top: 16px;
}
.video-list__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.video-list__title {
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-2); text-transform: uppercase;
    letter-spacing: 0.4px;
}
.video-list__count {
    font-size: 0.72rem; color: var(--text-3);
    font-family: var(--font-mono);
}
.video-list__item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px; transition: background 0.15s;
}
.video-list__item:hover { background: var(--bg-surface); }
.video-list__item--primary {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--blue-glow);
}
.video-list__thumb {
    width: 80px; height: 45px; border-radius: 6px;
    overflow: hidden; flex-shrink: 0; position: relative;
    background: #000;
}
.video-list__thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.video-list__badge {
    position: absolute; top: 2px; left: 2px;
    background: var(--blue); color: #fff;
    font-size: 0.55rem; font-weight: 700;
    padding: 1px 5px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.video-list__info { flex: 1; min-width: 0; }
.video-list__item-title {
    font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-list__item-meta {
    font-size: 0.7rem; color: var(--text-3);
    margin-top: 2px; text-transform: capitalize;
}
.video-list__actions {
    display: flex; gap: 6px; flex-shrink: 0;
}
.video-list__btn {
    width: 32px; height: 32px; border-radius: 6px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-3); display: inline-flex;
    align-items: center; justify-content: center;
    transition: all 0.15s; cursor: pointer;
}
.video-list__btn:hover {
    border-color: var(--blue); color: var(--blue-light);
    background: var(--blue-glow);
}
.video-list__btn--danger:hover {
    border-color: var(--red); color: var(--red);
    background: rgba(239, 68, 68, 0.08);
}

/* ==================== EDIT GRID ==================== */
.edit-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.edit-field.full-width { grid-column: 1 / -1; }
.edit-field label {
    display: block; font-size: 0.72rem; font-weight: 600;
    color: var(--text-3); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.edit-field input,
.edit-field select,
.edit-field textarea {
    width: 100%; padding: 10px 14px;
    box-sizing: border-box;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 10px; color: var(--text);
    font-size: 0.88rem; outline: none;
    transition: border-color 0.2s;
}
.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}
.edit-field textarea { resize: vertical; min-height: 80px; }
.edit-field select { cursor: pointer; }
.edit-field { min-width: 0; overflow: hidden; }
.edit-grid { overflow: hidden; }

/* Date inputs — constrain native picker width */
.edit-field input[type="date"] {
    max-width: 100%; min-width: 0;
    -webkit-appearance: none; appearance: none;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    background: var(--blue); color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 0.88rem; font-weight: 600;
    transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.save-status {
    font-size: 0.8rem; font-weight: 500;
}

/* ==================== FILTERS ==================== */
.filters { margin-bottom: 20px; }
.filter-group { margin-bottom: 12px; }
.filter-input {
    width: 100%; padding: 11px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 10px; color: var(--text);
    font-size: 0.88rem; outline: none;
    transition: border-color 0.2s;
}
.filter-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}
.filter-input::placeholder { color: var(--text-3); }
.filter-row {
    display: flex; gap: 10px;
}
.filter-select {
    flex: 1; padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 10px; color: var(--text);
    font-size: 0.85rem; cursor: pointer;
    outline: none;
}
.filter-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

/* ==================== COACH CARDS ==================== */
.coach-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: background 0.15s;
    margin-bottom: 8px;
}
.coach-card:hover { background: var(--bg-surface); }
.coach-card__avatar {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--bg-surface); border: 1px solid var(--border-2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.7rem; color: var(--blue);
    flex-shrink: 0; letter-spacing: 0.5px;
}
.coach-card__info { flex: 1; min-width: 0; }
.coach-card__school {
    font-size: 0.88rem; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}
.coach-card__name {
    font-size: 0.78rem; color: var(--text-2);
    margin-bottom: 4px;
}
.coach-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    font-size: 0.65rem; font-weight: 600;
    padding: 2px 8px; border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-3); border: 1px solid var(--border);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.tag--prep { color: var(--amber); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }

.coach-card__btn {
    flex-shrink: 0; padding: 8px 16px;
    background: transparent; color: var(--blue-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px; font-size: 0.78rem;
    font-weight: 600; transition: all 0.2s;
}
.coach-card__btn:hover {
    background: var(--blue); color: #fff;
    border-color: var(--blue);
}
.coach-card__btn--followup {
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.3);
}
.coach-card__btn--followup:hover {
    background: var(--amber); color: #fff;
    border-color: var(--amber);
}
.coach-card__contact-status {
    display: flex; gap: 8px; align-items: center;
    margin-top: 4px; flex-wrap: wrap;
}
.coach-card__school-note {
    margin-top: 2px;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding: 20px 0 4px;
    border-top: 1px solid var(--border); margin-top: 16px;
}
.pagination__btn {
    padding: 8px 16px; background: var(--bg-surface);
    border: 1px solid var(--border-2); border-radius: 8px;
    color: var(--text-2); font-size: 0.8rem; font-weight: 500;
    transition: all 0.2s;
}
.pagination__btn:hover:not(:disabled) {
    border-color: var(--blue); color: var(--blue-light);
}
.pagination__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination__info {
    font-size: 0.78rem; color: var(--text-3); font-family: var(--font-mono);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center; padding: 48px 20px;
}
.empty-state__icon { margin-bottom: 16px; opacity: 0.5; }
.empty-state__title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: 8px;
}
.empty-state__text {
    color: var(--text-2); font-size: 0.85rem;
    line-height: 1.6; max-width: 400px;
    margin: 0 auto 20px;
}

/* ==================== EMAIL LIST ==================== */
.email-list { max-width: 100%; overflow: hidden; }
.email-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px; transition: background 0.15s;
    max-width: 100%; overflow: hidden; box-sizing: border-box;
}
.email-item:hover { background: var(--bg-surface); }
.email-item__status {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.email-item__status--draft { background: var(--border-2); }
.email-item__status--sent { background: var(--amber); }
.email-item__status--clicked { background: var(--green); }
.email-item:hover .email-item__delete { opacity: 1 !important; }
.email-item__delete:hover { color: var(--red) !important; }

/* Email preview (expanded sent email body) */
.email-preview {
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}
.email-preview img { max-width: 100%; height: auto; }
.email-preview table { max-width: 100%; table-layout: fixed; }
.email-preview a { word-break: break-all; }
.email-item__info { flex: 1; min-width: 0; }
.email-item__school {
    font-size: 0.88rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.email-item__subject {
    font-size: 0.78rem; color: var(--text-2); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.email-item__meta {
    font-size: 0.72rem; color: var(--text-3); margin-top: 3px;
    display: flex; align-items: center; gap: 12px;
}
.email-item__stats {
    display: flex; gap: 12px; flex-shrink: 0;
    font-size: 0.7rem; color: var(--text-3); font-family: var(--font-mono);
}
.email-item__stat { display: flex; align-items: center; gap: 4px; }
.email-item__stat .dot {
    width: 6px; height: 6px; border-radius: 50%;
}

/* ==================== COMPOSE MODAL ==================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease-out;
}
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%; max-width: 680px;
    max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.2s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg-card);
    z-index: 2; border-radius: 16px 16px 0 0;
}
.modal__title {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 800;
}
.modal__close {
    width: 32px; height: 32px; border-radius: 8px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-3); display: flex;
    align-items: center; justify-content: center;
    transition: all 0.15s;
}
.modal__close:hover { background: var(--bg-surface); color: var(--text); }

.modal__body { padding: 24px; }

/* Template & Tone Selectors */
.compose-options {
    display: flex; gap: 12px; margin-bottom: 20px;
    flex-wrap: wrap;
}
.compose-options__group { flex: 1; min-width: 200px; }
.compose-options__label {
    font-size: 0.72rem; font-weight: 600;
    color: var(--text-3); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px; display: block;
}
.option-pills {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.option-pill {
    padding: 7px 14px; border-radius: 8px;
    background: var(--bg-surface); border: 1px solid var(--border);
    color: var(--text-2); font-size: 0.78rem; font-weight: 500;
    transition: all 0.15s; white-space: nowrap;
}
.option-pill:hover { border-color: var(--border-2); color: var(--text); }
.option-pill.active {
    background: var(--blue-glow); border-color: var(--blue);
    color: var(--blue-light); font-weight: 600;
}

/* Compose Form */
.compose-recipient {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: var(--radius);
    background: var(--bg-surface); border: 1px solid var(--border);
    margin-bottom: 16px;
}
.compose-recipient__avatar {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-dark); border: 1px solid var(--border-2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.65rem; color: var(--blue);
    flex-shrink: 0;
}
.compose-recipient__info { flex: 1; min-width: 0; }
.compose-recipient__school {
    font-size: 0.88rem; font-weight: 700; margin-bottom: 1px;
}
.compose-recipient__name {
    font-size: 0.78rem; color: var(--text-2);
}
.compose-recipient__email {
    font-size: 0.72rem; color: var(--text-3); font-family: var(--font-mono);
}

.compose-field { margin-bottom: 16px; }
.compose-field label {
    display: block; font-size: 0.72rem; font-weight: 600;
    color: var(--text-3); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.compose-field input {
    width: 100%; padding: 10px 14px;
    background: var(--bg-surface); border: 1px solid var(--border-2);
    border-radius: 10px; color: var(--text);
    font-size: 0.88rem; outline: none;
    transition: border-color 0.2s;
}
.compose-field input:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow);
}

.compose-body {
    width: 100%; min-height: 280px; padding: 16px;
    background: #fff; border: 1px solid var(--border-2);
    border-radius: 10px; color: #1a1a1a;
    font-size: 0.9rem; line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none; resize: vertical;
    overflow-y: auto;
}
.compose-body:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow);
}
.compose-body p { margin: 0 0 12px; }
.compose-body a { color: #3b82f6; }

/* Gmail Status */
.gmail-status {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    margin-bottom: 20px; font-size: 0.8rem;
}
.gmail-status--connected {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--green);
}
.gmail-status--disconnected {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--amber);
}
.gmail-status__dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.gmail-status--connected .gmail-status__dot { background: var(--green); }
.gmail-status--disconnected .gmail-status__dot { background: var(--amber); }

/* Modal Footer / Actions */
.modal__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-top: 1px solid var(--border);
    gap: 12px; flex-wrap: wrap;
    position: sticky; bottom: 0;
    background: var(--bg-card); border-radius: 0 0 16px 16px;
}
.modal__footer-left {
    display: flex; align-items: center; gap: 10px;
}
.modal__footer-right {
    display: flex; align-items: center; gap: 10px;
}

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px;
    background: var(--bg-surface); color: var(--text-2);
    border: 1px solid var(--border-2); border-radius: 10px;
    font-size: 0.82rem; font-weight: 500;
    transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-light); }

.btn-send {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px;
    background: var(--blue); color: #fff;
    border: none; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600;
    transition: all 0.2s;
}
.btn-send:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-send svg { flex-shrink: 0; }

.send-status {
    font-size: 0.78rem; font-weight: 500;
    padding: 4px 0;
}

/* No-email warning */
.no-email-warning {
    padding: 14px 16px; border-radius: var(--radius);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--text-2); font-size: 0.82rem;
    margin-bottom: 16px;
}
.no-email-warning strong { color: var(--amber); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .tabs { padding: 12px 16px 0; gap: 0; }
    .tab {
        flex: 1; justify-content: center;
        padding: 10px 8px; font-size: 0.78rem; gap: 6px;
    }
    .tab svg { width: 16px; height: 16px; }
    .tab-content { padding: 16px; }
    .panel { padding: 20px 16px; }
    .edit-grid { grid-template-columns: 1fr; }
    .scores-row { grid-template-columns: 1fr !important; }
    .filter-row { flex-direction: column; }
    .coach-card { flex-wrap: wrap; }
    .coach-card__btn { width: 100%; text-align: center; margin-top: 4px; }
    .claim-banner { flex-direction: column; text-align: center; }
    .claim-banner__btn { width: 100%; text-align: center; }
    .profile-summary { flex-direction: column; text-align: center; }

    /* Modal mobile */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal {
        max-height: 95vh; border-radius: 16px 16px 0 0;
        max-width: 100%;
    }
    .modal__header { padding: 16px; }
    .modal__body { padding: 16px; }
    .modal__footer { padding: 12px 16px; }
    .compose-options { flex-direction: column; gap: 12px; }
    .compose-options__group { min-width: 100%; }
    .modal__footer-left,
    .modal__footer-right { width: 100%; }
    .btn-send { width: 100%; }
    .btn-secondary { flex: 1; }
    .compose-body { min-height: 200px; }

    /* Video section mobile */
    .upload-zone__droparea { padding: 32px 16px; }
    .video-preview__actions { flex-wrap: wrap; }
    .video-preview__link, .video-preview__replace { flex: 1; justify-content: center; }

    /* Email item mobile */
    .email-item { flex-wrap: wrap; }
    .email-item__stats { width: 100%; padding-top: 8px; }

    /* Date inputs constrained on mobile — prevent over-wide native pickers */
    .edit-field input[type="date"] { max-width: 100%; box-sizing: border-box; }

    /* Email preview constrained on mobile */
    .email-preview {
        max-width: 100% !important;
        overflow-x: hidden !important;
        word-break: break-word !important;
    }
    .email-item { max-width: 100%; overflow: hidden; }
}

/* ==================== INTERESTS / TAGS INPUT ==================== */
.tags-input {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    background: var(--bg);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    cursor: text;
}
.tags-input:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.tags-input__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.tags-input input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-1);
    font-size: 0.85rem;
    flex: 1;
    min-width: 140px;
    padding: 4px 0;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    background: var(--blue);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.tag-pill button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.tag-pill button:hover {
    color: #fff;
}
.tag-suggest {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}
.tag-suggest:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ==================== AI BIO BUTTON ==================== */
.btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-ai:hover {
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-ai .spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== POSITION MULTI-SELECT GRID ==================== */
.position-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pos-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.pos-pill input[type="checkbox"] {
    display: none;
}
.pos-pill:has(input:checked) {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.pos-pill:hover {
    border-color: var(--blue-light);
    background: rgba(59, 130, 246, 0.1);
}
.pos-pill:has(input:checked):hover {
    background: var(--blue-light);
}
.pos-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.65;
    padding: 1px 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.pos-pill:has(input:checked) .pos-tag {
    background: rgba(255,255,255,0.2);
    opacity: 0.85;
}

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
    padding: 20px 0 10px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}
.section-divider__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.section-divider__desc {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.4;
}

/* ==================== CHECKBOX ROW (recruiting options) ==================== */
.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.check-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.check-pill input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--blue);
    cursor: pointer;
}
.check-pill:has(input:checked) {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--blue);
    color: var(--text);
}

/* ==================== TEAM STATS / CAMPS / AWARDS EDITING ==================== */
.entry-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    animation: fadeSlide 0.2s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.entry-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.entry-card__title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-card__remove {
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-card__remove:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

.entry-card .edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.entry-card .edit-grid .full-width {
    grid-column: 1 / -1;
}

.entry-card .edit-field label {
    font-size: 0.72rem;
    color: var(--text-3);
    margin-bottom: 3px;
    display: block;
}

.entry-card .edit-field input,
.entry-card .edit-field select,
.entry-card .edit-field textarea {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.82rem;
}

.entry-card .edit-field input:focus,
.entry-card .edit-field select:focus,
.entry-card .edit-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Stats sub-grid for the team stats number fields */
.stats-number-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.stats-number-grid .edit-field {
    min-width: 0;
}

.stats-number-grid .edit-field input {
    text-align: center;
    padding: 7px 4px;
}

@media (max-width: 480px) {
    .entry-card .edit-grid {
        grid-template-columns: 1fr;
    }
    .stats-number-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Visibility toggle inside entry card */
.entry-card__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
}

.entry-card__toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--blue);
    cursor: pointer;
}

/* Empty state inside sections */
.entry-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-3);
    font-size: 0.85rem;
}

.entry-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.4;
}

/* ── Profile Avatar Upload ── */
.profile-summary__avatar-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.avatar-upload-hint {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.profile-summary__avatar-wrap:hover .avatar-upload-hint {
    transform: scale(1.15);
}

.avatar-edit-label {
    font-size: 0.65rem;
    color: var(--blue);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ── Photo Upload Section ── */
.photo-upload-section {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.photo-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: var(--text-3);
    transition: all 0.2s;
    cursor: pointer;
}
.photo-drop-zone:hover,
.photo-drop-zone.dragover {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.05);
}

.game-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.game-photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-3);
}
.game-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-photo-card__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.game-photo-card:hover .game-photo-card__remove {
    opacity: 1;
}
.game-photo-card__remove:hover {
    background: rgba(239, 68, 68, 0.9);
}

@media (max-width: 640px) {
    .game-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

