:root {
    --bg: #071833;
    --panel: #ffffff;
    --text: #14213d;
    --muted: #637083;
    --primary: #0d4ea6;
    --primary-dark: #083a7a;
    --danger: #b42318;
    --success: #087443;
    --warning: #8a5a00;
    --line: #e4e9f2;
    --soft: #f5f7fb;
    --soft-2: #eef4ff;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.20);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(18, 89, 184, 0.32), transparent 30%),
        radial-gradient(circle at left bottom, rgba(127, 179, 255, 0.16), transparent 30%),
        linear-gradient(160deg, #061329 0%, #08224d 48%, #071833 100%);
}

a { color: inherit; }

.topbar-shell {
    padding: 20px 0 0;
}

.topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    color: #fff;
}

.brand-link { text-decoration: none; }

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand-logo {
    width: clamp(180px, 22vw, 300px);
    height: auto;
    display: block;
}

.brand-copy {
    min-width: 0;
}

.brand strong, .brand span { display: block; }
.brand strong { font-size: 20px; }
.brand span, .footer span, .topbar-tag, .user-pill small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.4;
}

.topbar-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-tag, .user-pill {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-pill {
    display: grid;
    gap: 2px;
    min-width: 250px;
}

.user-pill-label {
    color: #7fb3ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 60px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.hero-copy, .section-heading {
    color: #fff;
}

.hero-copy { padding: 22px 10px 0 4px; }

.hero-copy h1, .section-heading h1, .section-heading h2 {
    margin: 0 0 10px;
    letter-spacing: -0.04em;
}

.hero-copy h1, .section-heading h1 { font-size: clamp(32px, 4.8vw, 56px); }
.hero-copy p, .section-heading p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.section-hero { margin-bottom: 24px; }
.narrow-gap { margin-bottom: 18px; }

.eyebrow {
    margin: 0 0 8px !important;
    color: #7fb3ff !important;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.hero-points {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-point strong {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.12);
}

.card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 38px);
}

.content-card { padding: clamp(22px, 4vw, 34px); }

.login-card {
    max-width: 560px;
    margin-left: auto;
}

.split-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.section-heading.compact h2,
.section-heading.compact h1 {
    font-size: clamp(26px, 3vw, 34px);
}

.section-heading.dark { color: var(--text); }
.section-heading.dark p:not(.eyebrow) { color: var(--muted); }
.small-gap { margin-bottom: 16px; }

.form-stack {
    display: grid;
    gap: 14px;
}

label {
    font-weight: 700;
    color: #26354d;
}

input {
    width: 100%;
    border: 1px solid #cad3e1;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    background: #fff;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

input:focus {
    border-color: #2f7dea;
    box-shadow: 0 0 0 4px rgba(47, 125, 234, 0.14);
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; }

.btn-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 12px 26px rgba(13, 78, 166, 0.25);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.24);
}
.card .btn-outline {
    color: var(--primary);
    background: #fff;
    border: 1px solid #cad3e1;
}
.btn-danger { color: #fff; background: var(--danger); }
.logout-form { margin: 0; }

.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.info-strip span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.pill-info, .info-strip span { background: #edf5ff; color: #0d4ea6; }
.pill-neutral { background: #eef2f8; color: #43526b; }
.pill-soft { background: #f6f8fc; color: #6d7b91; }

.grid { display: grid; gap: 18px; }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.aluno-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.aluno-card h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.card-topline { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-subtext { color: var(--muted); line-height: 1.55; }

.request-resume {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--soft);
    color: #41506a;
    border: 1px solid var(--line);
    font-size: 14px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 22px;
    align-items: start;
}

.side-card {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
}

.status-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    background: #edf5ff;
    color: #153c72;
    margin-bottom: 26px;
}
.status-box div { display: grid; gap: 4px; }

.friends-head-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.friends-header h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; }
.friends-header p:not(.eyebrow) { margin: 0; color: var(--muted); }

.counter-box {
    min-width: 230px;
    padding: 16px;
    border-radius: 18px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.counter-box strong { display: block; margin-bottom: 10px; }
.progress-track {
    width: 100%; height: 10px; border-radius: 999px; background: #dfe7f3; overflow: hidden;
}
.progress-bar {
    width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f7dea 0%, #0d4ea6 100%); transition: width 0.2s ease;
}

.friend-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 170px;
    gap: 14px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--soft);
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.friend-row.is-filled {
    border-color: #bfd3f7;
    background: #f7fbff;
}

.friend-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e1ecff;
    color: var(--primary);
    font-weight: 900;
}

.friend-fields { display: grid; gap: 8px; }
.legal-box {
    padding: 18px;
    border-radius: 18px;
    background: #fff8e6;
    border: 1px solid #f3d48b;
    color: #453100;
    line-height: 1.55;
}
.legal-box p { margin-top: 0; }

.checkbox-line {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    font-weight: 700;
}
.checkbox-line input { width: 18px; height: 18px; margin-top: 2px; }

.actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.center-actions { justify-content: center; }

.tips-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.65;
    display: grid;
    gap: 10px;
}

.soft-panel {
    padding: 16px;
    border-radius: 18px;
    background: var(--soft-2);
    border: 1px solid #d8e4fb;
    display: grid;
    gap: 3px;
}

.soft-panel-label {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.flash-area { margin-bottom: 18px; display: grid; gap: 10px; }
.flash {
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--line);
}
.flash-success { border-color: rgba(8, 116, 67, 0.25); color: var(--success); }
.flash-danger { border-color: rgba(180, 35, 24, 0.25); color: var(--danger); }
.flash-warning { border-color: rgba(138, 90, 0, 0.25); color: var(--warning); }
.flash-info { color: var(--primary); }

.empty-state, .success-card { text-align: center; }
.error-card { max-width: 760px; margin: 0 auto; }

.success-icon {
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
    background: #dff8eb; color: var(--success); font-size: 38px; font-weight: 900;
}

.muted { color: var(--muted); }

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hero, .page-grid, .friends-head-grid { grid-template-columns: 1fr; }
    .login-card { max-width: none; }
    .side-card { position: static; }
}

@media (max-width: 720px) {
    .topbar { padding: 16px; }
    .brand { flex-direction: column; align-items: flex-start; }
    .brand-logo { width: min(280px, 100%); }
    .topbar-side { width: 100%; justify-content: flex-start; }
    .user-pill { min-width: 0; width: 100%; }
    .friend-row { grid-template-columns: 1fr; }
    .friend-number { width: 34px; height: 34px; }
    .actions-row { justify-content: stretch; }
    .actions-row .btn { width: 100%; }
}
