/* ===== RESET & BASE ===== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
    /* Brand */
    --uga-red: #BA0C2F;
    --uga-red-dark: #910921;
    --uga-red-light: rgba(186,12,47,0.08);
    --uga-red-soft: rgba(186,12,47,0.04);

    /* Surfaces */
    --white: #FFFFFF;
    --surface: #F3F4F6;
    --panel: #FFFFFF;
    --header-bg: #BA0C2F;

    /* Ink scale — blue-biased neutrals */
    --ink-900: #14171C;
    --ink-800: #1E2330;
    --ink-700: #2D3449;
    --ink-600: #434D65;
    --ink-500: #6B7494;
    --ink-400: #9299B0;
    --ink-300: #C2C8D8;
    --ink-200: #DDE1EB;
    --ink-100: #ECEEF5;
    --ink-50:  #F4F5F9;

    /* Legacy aliases for backwards compat */
    --g-25: #FCFCFD;
    --g-50: var(--ink-50);
    --g-100: var(--ink-100);
    --g-200: var(--ink-200);
    --g-300: var(--ink-300);
    --g-400: var(--ink-400);
    --g-500: var(--ink-500);
    --g-600: var(--ink-600);
    --g-700: var(--ink-700);
    --g-800: var(--ink-800);
    --g-900: var(--ink-900);
    --black: #0D0F12;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    --shadow-panel: 0 0 0 1px rgba(22,25,30,0.06), 0 2px 6px rgba(22,25,30,0.05);
    --shadow-lg: 0 12px 28px -4px rgba(0,0,0,0.10);
    --shadow-xl: 0 24px 56px -8px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.04);
    --shadow-red: 0 4px 14px rgba(186,12,47,0.28);

    /* Layout */
    --header-h: 60px;
    --radius: 8px;
    --radius-sm: 5px;
    --gap: 14px;
    --max-w: 1300px;
    --ease: all 0.16s ease;

    /* Type */
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --display: 'Libre Franklin', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
    font-family: var(--sans);
    background: var(--surface);
    min-height: 100vh;
    color: var(--ink-900);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

/* ===== HEADER ===== */
.header {
    background: var(--header-bg);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2.5px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 16px rgba(0,0,0,0.24);
}
.header-content {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.logo-mark {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.18);
    color: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.28);
}
.title h1 {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    line-height: 1.15;
}
.title p {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.reset-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.58);
    padding: 0.36rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ease);
    font-family: var(--sans);
    letter-spacing: 0.1px;
}
.reset-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.32);
    color: rgba(255,255,255,0.88);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 0.85rem 1.5rem;
    margin-bottom: var(--gap);
    display: flex;
    justify-content: space-between;
    box-shadow: var(--shadow-panel);
    border: 1px solid var(--ink-200);
}
.stat-item { text-align: center; flex: 1; }
.stat-item + .stat-item { border-left: 1px solid var(--ink-200); }
.stat-label {
    display: block;
    font-size: 0.57rem;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.85px;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.stat-value {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink-900);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}

/* ===== DASHBOARD GRID ===== */
.main-container {
    max-width: var(--max-w);
    margin: var(--gap) auto 2.5rem;
    padding: 0 1.5rem;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: var(--gap);
    min-height: 560px;
}
.grid-item {
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-panel);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: move;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.grid-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--ink-300);
}
.grid-item.dragging { opacity: 0.35; box-shadow: var(--shadow-xl); }
.grid-item.over { border: 2px dashed var(--uga-red); background: var(--uga-red-soft); }

.grid-item[data-grid="dossier"] { grid-column: span 6; grid-row: span 2; }
.grid-item[data-grid="contacts"],
.grid-item[data-grid="clubs"]    { grid-column: span 3; }
.grid-item[data-grid="news"],
.grid-item[data-grid="chat"] { grid-column: span 4; }
.grid-item[data-grid="opportunities"] { grid-column: span 5; }

/* Item Headers */
.item-header {
    padding: 0.68rem 1rem;
    border-bottom: 1px solid var(--ink-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--ink-50);
}
.item-header h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-600);
    font-family: var(--sans);
    font-size: 0.61rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}
.item-header h3 svg {
    opacity: 0.65;
    flex-shrink: 0;
    color: var(--uga-red);
}

.ai-badge {
    font-size: 0.54rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ink-500);
    border: 1px solid var(--ink-200);
    border-radius: 3px;
    padding: 0.1rem 0.3rem;
    background: var(--panel);
}

/* ===== DOSSIER — centrepiece elevation ===== */
.grid-item[data-grid="dossier"] {
    box-shadow: 0 0 0 1px rgba(186,12,47,0.08), 0 4px 16px rgba(0,0,0,0.08);
    border-color: rgba(186,12,47,0.14);
}
.grid-item[data-grid="dossier"]:hover {
    box-shadow: 0 0 0 1px rgba(186,12,47,0.12), 0 8px 24px rgba(0,0,0,0.10);
}
.grid-item[data-grid="dossier"] .item-header {
    background: linear-gradient(100deg, #1C0508 0%, #2A0B13 100%);
    border-bottom: 1px solid rgba(186,12,47,0.28);
}
.grid-item[data-grid="dossier"] .item-header h3 {
    color: #ffffff;
    letter-spacing: 0.8px;
}
.grid-item[data-grid="dossier"] .item-header h3 svg {
    color: rgba(186,12,47,0.75);
    opacity: 1;
}

.dossier-actions { display: flex; align-items: center; gap: 0.4rem; }
.ghost-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.16);
    color: #ffffff;
    padding: 0.26rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    font-family: var(--sans);
    letter-spacing: 0.1px;
}
.ghost-btn:hover {
    border-color: rgba(255,255,255,0.34);
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.07);
}

.dossier-meta {
    margin: 0.8rem 1rem 0;
    font-size: 0.7rem;
    color: var(--ink-600);
    background: var(--ink-50);
    border: 1px solid var(--ink-100);
    border-left: 3px solid var(--ink-300);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.72rem;
    line-height: 1.55;
}
.dossier-content {
    flex: 1;
    padding: 0.8rem 1rem 1rem;
    overflow-y: auto;
    max-height: 600px;
}
.dossier-section { margin-bottom: 1.3rem; }
.dossier-section h4 {
    font-family: var(--display);
    color: var(--ink-900);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.42rem;
    padding-left: 0.72rem;
    position: relative;
    letter-spacing: -0.2px;
    text-wrap: balance;
    line-height: 1.3;
}
.dossier-section h4::before {
    content: '';
    position: absolute;
    left: 0; top: 2px; bottom: 2px;
    width: 3px;
    background: var(--uga-red);
    border-radius: 2px;
}
.dossier-section p {
    color: var(--ink-600);
    line-height: 1.78;
    font-size: 0.82rem;
}
.download-btn {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    background: var(--uga-red);
    color: var(--white);
    border: none;
    padding: 0.28rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ease);
    font-family: var(--sans);
    letter-spacing: 0.1px;
}
.download-btn:hover { background: var(--uga-red-dark); box-shadow: var(--shadow-red); }

/* ===== CONTACTS, CLUBS ===== */
.contacts-container,
.clubs-container { padding: 0.5rem; flex: 1; overflow-y: auto; }
.faculty-search-wrap { padding: 0.2rem 0.1rem 0.5rem; }
.faculty-search-input {
    width: 100%;
    padding: 0.4rem 0.65rem;
    font-size: 0.74rem;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--ink-800);
    outline: none;
    box-sizing: border-box;
    transition: var(--ease);
    font-family: var(--sans);
}
.faculty-search-input::placeholder { color: var(--ink-400); }
.faculty-search-input:focus { border-color: var(--uga-red); box-shadow: 0 0 0 3px var(--uga-red-light); }

.contact-list, .club-list { list-style: none; }
.contact-item, .club-item {
    padding: 0.6rem 0.5rem 0.6rem 0.72rem;
    border-bottom: 1px solid var(--ink-100);
    transition: background 0.14s ease, border-left-color 0.14s ease;
    border-radius: 4px;
    border-left: 3px solid transparent;
    position: relative;
}
.contact-item:last-child, .club-item:last-child { border-bottom: none; }
.contact-item:hover, .club-item:hover {
    background: var(--ink-50);
    border-left-color: var(--uga-red);
}
.contact-name, .club-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--ink-800);
    margin-bottom: 0.1rem;
    line-height: 1.3;
}
.contact-email {
    font-size: 0.69rem;
    color: var(--uga-red);
    text-decoration: none;
    font-weight: 500;
    transition: var(--ease);
}
.contact-email:hover { text-decoration: underline; }
.contact-dept { font-size: 0.63rem; color: var(--ink-500); margin-top: 0.06rem; letter-spacing: 0.08px; }
.club-description { font-size: 0.69rem; color: var(--ink-500); margin-top: 0.1rem; line-height: 1.45; }
.club-link {
    display: inline-block;
    font-size: 0.63rem;
    color: var(--uga-red);
    text-decoration: none;
    margin-top: 0.15rem;
    font-weight: 600;
}
.club-link:hover { text-decoration: underline; }

.source-note {
    font-size: 0.6rem;
    color: var(--ink-400);
    text-align: center;
    padding: 0.5rem 0 0.3rem;
}
.source-note a { color: var(--uga-red); text-decoration: none; }
.source-note a:hover { text-decoration: underline; }

.refresh-btn {
    background: transparent;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: 0.22rem;
    cursor: pointer;
    transition: var(--ease);
    color: var(--ink-400);
    display: flex;
    align-items: center;
    justify-content: center;
}
.refresh-btn:hover { background: var(--uga-red-soft); border-color: var(--uga-red); color: var(--uga-red); }

/* ===== NEWS ===== */
.news-container { padding: 0.5rem; flex: 1; overflow-y: auto; }
.news-item {
    padding: 0.55rem 0.5rem 0.55rem 0.72rem;
    border-bottom: 1px solid var(--ink-100);
    transition: background 0.14s ease, border-left-color 0.14s ease;
    border-radius: 4px;
    border-left: 3px solid transparent;
    position: relative;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--ink-50); border-left-color: var(--uga-red); }
.news-title { font-weight: 500; font-size: 0.79rem; color: var(--ink-800); margin-bottom: 0.12rem; line-height: 1.45; }
.news-source { font-size: 0.63rem; color: var(--ink-500); display: flex; align-items: center; gap: 0.3rem; }
.news-date { color: var(--uga-red); font-weight: 600; }

/* ===== OPPORTUNITY CHECKLIST ===== */
.opp-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.5rem 0.55rem 0.6rem;
    border-bottom: 1px solid var(--ink-100);
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: background 0.14s ease, border-left-color 0.14s ease;
    position: relative;
}
.opp-item:last-of-type { border-bottom: none; }
.opp-item:hover { background: var(--ink-50); border-left-color: var(--uga-red); }
.opp-item:hover .item-x { opacity: 1; }
.opp-check-label { display: flex; align-items: center; padding-top: 0.13rem; cursor: pointer; flex-shrink: 0; }
.opp-checkbox {
    width: 15px; height: 15px;
    accent-color: var(--uga-red);
    cursor: pointer;
    flex-shrink: 0;
}
.opp-body { flex: 1; min-width: 0; }
.opp-title { font-weight: 500; font-size: 0.79rem; color: var(--ink-800); margin-bottom: 0.1rem; line-height: 1.45; }
.opp-meta { font-size: 0.63rem; color: var(--ink-500); display: flex; align-items: center; gap: 0.3rem; }
.opp-done .opp-title { text-decoration: line-through; color: var(--ink-400); }
.opp-done .opp-meta { color: var(--ink-300); }
.add-more-btn {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.45rem;
    background: none;
    border: 1px dashed var(--ink-300);
    border-radius: var(--radius-sm);
    color: var(--ink-500);
    font-size: 0.7rem;
    font-family: var(--sans);
    font-weight: 500;
    cursor: pointer;
    transition: var(--ease);
    text-align: center;
    letter-spacing: 0.1px;
}
.add-more-btn:hover { border-color: var(--uga-red); color: var(--uga-red); background: var(--uga-red-soft); }

/* ===== CHAT ===== */
.chat-container { flex: 1; display: flex; flex-direction: column; height: 360px; }
.chat-messages {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.message {
    max-width: 86%;
    padding: 0.5rem 0.72rem;
    border-radius: 8px;
    font-size: 0.79rem;
    line-height: 1.58;
    animation: msgPop 0.14s ease;
}
@keyframes msgPop { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
.message.user {
    background: var(--uga-red);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.message.assistant {
    background: var(--ink-100);
    color: var(--ink-800);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--ink-200);
}
.message.assistant.loading { color: var(--ink-400); font-style: italic; }
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.38rem 0.7rem 0.42rem;
    border-top: 1px solid var(--ink-100);
}
.quick-chip {
    border: 1.5px solid var(--ink-200);
    background: var(--panel);
    color: var(--ink-600);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.62rem;
    cursor: pointer;
    transition: var(--ease);
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.1px;
}
.quick-chip:hover { border-color: var(--uga-red); color: var(--uga-red); background: var(--uga-red-soft); }
.chat-input-container {
    padding: 0.55rem 0.7rem;
    border-top: 1px solid var(--ink-100);
    display: flex;
    gap: 0.4rem;
    background: var(--panel);
}
.chat-input {
    flex: 1;
    padding: 0.46rem 0.72rem;
    border: 1.5px solid var(--ink-200);
    border-radius: 6px;
    font-size: 0.79rem;
    transition: var(--ease);
    font-family: var(--sans);
    color: var(--ink-800);
    background: var(--ink-50);
    line-height: 1.4;
}
.chat-input:focus { outline: none; border-color: var(--uga-red); box-shadow: 0 0 0 3px var(--uga-red-light); background: var(--panel); }
.chat-input::placeholder { color: var(--ink-400); }
.chat-send {
    width: 32px; height: 32px;
    border-radius: 6px;
    background: var(--uga-red);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-send:hover { background: var(--uga-red-dark); box-shadow: var(--shadow-red); }
.chat-send:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,15,18,0.62);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container {
    background: var(--panel);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(12px);
    transition: transform 0.22s ease;
    border: 1px solid rgba(0,0,0,0.06);
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-header {
    background: var(--uga-red);
    color: var(--white);
    padding: 1.45rem 1.65rem;
    border-radius: 12px 12px 0 0;
}
.modal-header h2 {
    font-family: var(--display);
    font-size: 1.38rem;
    font-weight: 800;
    margin-bottom: 0.22rem;
    letter-spacing: -0.3px;
    text-wrap: balance;
    line-height: 1.25;
}
.modal-header > p { font-size: 0.78rem; opacity: 0.78; }
.progress-container { margin-top: 1rem; }
.progress-bar { height: 2px; background: rgba(255,255,255,0.22); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--white); border-radius: 2px; transition: width 0.3s ease; }
.progress-text { display: block; margin-top: 0.32rem; font-size: 0.64rem; opacity: 0.72; letter-spacing: 0.25px; }
.modal-body { padding: 1.45rem 1.65rem; }
.question-slide { display: none; animation: fadeSlide 0.28s ease; }
.question-slide.active { display: block; }
@keyframes fadeSlide { from{opacity:0;transform:translateX(10px)} to{opacity:1;transform:translateX(0)} }
.question-label {
    display: block;
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 0.72rem;
    letter-spacing: -0.2px;
    text-wrap: balance;
    line-height: 1.3;
}
.question-input {
    width: 100%;
    padding: 0.62rem 0.8rem;
    border: 1.5px solid var(--ink-200);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: var(--ease);
    font-family: var(--sans);
    color: var(--ink-800);
    background: var(--panel);
    line-height: 1.55;
}
.question-input::placeholder { color: var(--ink-400); }
.question-input:focus { outline: none; border-color: var(--uga-red); box-shadow: 0 0 0 3px var(--uga-red-light); }
select.question-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7494' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}
.input-hint { margin-top: 0.35rem; font-size: 0.68rem; color: var(--ink-500); }
.modal-footer {
    padding: 0.9rem 1.65rem;
    border-top: 1px solid var(--ink-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-btn {
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 0.32rem;
    font-family: var(--sans);
    letter-spacing: 0.1px;
}
.modal-btn.prev-btn {
    background: var(--ink-100);
    color: var(--ink-600);
    border: 1.5px solid var(--ink-200);
}
.modal-btn.prev-btn:hover:not(:disabled) { background: var(--ink-200); color: var(--ink-800); }
.modal-btn.prev-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.modal-btn.next-btn { background: var(--uga-red); color: var(--white); margin-left: auto; }
.modal-btn.next-btn:hover { background: var(--uga-red-dark); box-shadow: var(--shadow-red); }

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    width: 22px; height: 22px;
    border: 2px solid var(--ink-200);
    border-top-color: var(--uga-red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 1.2rem auto;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 1.25rem; right: 1.25rem;
    background: var(--ink-900);
    color: var(--white);
    padding: 0.58rem 1.05rem;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(70px);
    opacity: 0;
    transition: var(--ease);
    z-index: 1001;
    letter-spacing: 0.1px;
    border-left: 3px solid var(--ink-600);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #0c5c3e; border-left-color: #0ca678; }
.toast.error { background: #5c1010; border-left-color: #e03131; }
.toast.info { background: var(--ink-800); border-left-color: var(--ink-600); }

/* ===== ITEM REMOVE BUTTONS ===== */
.item-x {
    position: absolute;
    top: 0.4rem;
    right: 0.35rem;
    background: var(--panel);
    border: 1px solid var(--ink-200);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-400);
    opacity: 0;
    transition: var(--ease);
    z-index: 2;
    padding: 0;
}
.contact-item, .club-item, .news-item { position: relative; }
.contact-item:hover .item-x,
.club-item:hover .item-x,
.news-item:hover .item-x { opacity: 1; }
.item-x:hover {
    background: var(--uga-red-light);
    border-color: var(--uga-red);
    color: var(--uga-red);
}

/* ===== SCROLLABLE CONTAINERS ===== */
.contacts-container,
.clubs-container,
.news-container,
#opportunityList {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem;
    flex: 1;
}
.dossier-content { max-height: 550px; overflow-y: auto; }

/* Custom scrollbars — 4px, unobtrusive */
.contacts-container::-webkit-scrollbar,
.clubs-container::-webkit-scrollbar,
.news-container::-webkit-scrollbar,
#opportunityList::-webkit-scrollbar,
.dossier-content::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar { width: 4px; }
.contacts-container::-webkit-scrollbar-track,
.clubs-container::-webkit-scrollbar-track,
.news-container::-webkit-scrollbar-track,
#opportunityList::-webkit-scrollbar-track,
.dossier-content::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.contacts-container::-webkit-scrollbar-thumb,
.clubs-container::-webkit-scrollbar-thumb,
.news-container::-webkit-scrollbar-thumb,
#opportunityList::-webkit-scrollbar-thumb,
.dossier-content::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 2px; }
.contacts-container::-webkit-scrollbar-thumb:hover,
.clubs-container::-webkit-scrollbar-thumb:hover,
.news-container::-webkit-scrollbar-thumb:hover,
#opportunityList::-webkit-scrollbar-thumb:hover,
.dossier-content::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ===== CAREER BUBBLES ===== */
.career-bubbles-section {
    margin: 0.8rem 1rem 0;
    padding: 0.68rem 0.78rem;
    background: var(--ink-50);
    border: 1px solid var(--ink-100);
    border-radius: 6px;
}
.career-bubbles-label {
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.85px;
    color: var(--ink-500);
    margin-bottom: 0.5rem;
}
.career-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.career-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--panel);
    border: 1.5px solid var(--ink-200);
    border-radius: 999px;
    padding: 0.22rem 0.45rem 0.22rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-700);
    transition: var(--ease);
}
.career-bubble:hover {
    border-color: var(--uga-red);
    color: var(--uga-red);
    background: var(--uga-red-soft);
}
.bubble-x {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-400);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    transition: var(--ease);
    flex-shrink: 0;
}
.bubble-x:hover { color: var(--uga-red); background: var(--uga-red-light); }

/* ===== LINKED NEWS ===== */
.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.news-link:hover .news-title { color: var(--uga-red); }
.news-link:hover { background: var(--ink-50); }

/* ===== FOCUS STATES ===== */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--uga-red);
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --surface: #0F1117;
        --panel: #1A1D26;
        --header-bg: #910921;
        --ink-900: #EDF0F7;
        --ink-800: #D4D9E8;
        --ink-700: #B8BECE;
        --ink-600: #8E97AD;
        --ink-500: #636E87;
        --ink-400: #454E62;
        --ink-300: #2F3648;
        --ink-200: #252A38;
        --ink-100: #1C2030;
        --ink-50:  #161A28;
        --uga-red-light: rgba(186,12,47,0.14);
        --uga-red-soft: rgba(186,12,47,0.07);
    }
    .grid-item[data-grid="dossier"] .item-header {
        background: linear-gradient(100deg, #120005 0%, #1C0009 100%);
    }
    select.question-input {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E97AD' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }
}

:root[data-theme="dark"] {
    --surface: #0F1117;
    --panel: #1A1D26;
    --header-bg: #910921;
    --ink-900: #EDF0F7;
    --ink-800: #D4D9E8;
    --ink-700: #B8BECE;
    --ink-600: #8E97AD;
    --ink-500: #636E87;
    --ink-400: #454E62;
    --ink-300: #2F3648;
    --ink-200: #252A38;
    --ink-100: #1C2030;
    --ink-50:  #161A28;
    --uga-red-light: rgba(186,12,47,0.14);
    --uga-red-soft: rgba(186,12,47,0.07);
}
:root[data-theme="dark"] .grid-item[data-grid="dossier"] .item-header {
    background: linear-gradient(100deg, #120005 0%, #1C0009 100%);
}
:root[data-theme="dark"] select.question-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E97AD' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

:root[data-theme="light"] {
    --surface: #F3F4F6;
    --panel: #FFFFFF;
    --header-bg: #BA0C2F;
    --ink-900: #14171C;
    --ink-800: #1E2330;
    --ink-700: #2D3449;
    --ink-600: #434D65;
    --ink-500: #6B7494;
    --ink-400: #9299B0;
    --ink-300: #C2C8D8;
    --ink-200: #DDE1EB;
    --ink-100: #ECEEF5;
    --ink-50:  #F4F5F9;
    --uga-red-light: rgba(186,12,47,0.08);
    --uga-red-soft: rgba(186,12,47,0.04);
}
:root[data-theme="light"] .grid-item[data-grid="dossier"] .item-header {
    background: linear-gradient(100deg, #1C0508 0%, #2A0B13 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width:1200px) {
    .dashboard-grid { grid-template-columns: repeat(6,1fr); }
    .grid-item[data-grid="dossier"] { grid-column: span 6; }
    .grid-item[data-grid="contacts"],
    .grid-item[data-grid="clubs"],
    .grid-item[data-grid="news"],
    .grid-item[data-grid="chat"],
    .grid-item[data-grid="opportunities"] { grid-column: span 3; }

}
@media (max-width:768px) {
    .header-content { flex-direction: column; height: auto; padding: 0.72rem 1rem; gap: 0.4rem; text-align: center; }
    .logo-section { flex-direction: column; }
    .stats-bar { flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem; }
    .stat-item { flex: 1 1 45%; border-left: none !important; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .grid-item[data-grid] { grid-column: span 1 !important; }
    .modal-container { width: 96%; }
    .dossier-actions { flex-direction: column; align-items: flex-end; gap: 0.3rem; }
}
