/* ============================================================
   COMISSÃO DOS TÉCNICOS — Design System
   CSS Avançado: Grid, Flexbox, Variáveis, Animações, Glass
   ============================================================ */

/* --- Variáveis CSS (Tema Claro) --- */
:root {
    --color-bg:           #ffffff;
    --color-bg-2:         #f8fafc;
    --color-surface:      #ffffff;
    --color-surface-2:    #f1f5f9;
    --color-border:       rgba(15, 23, 42, 0.08);
    --color-border-glow:  rgba(99, 102, 241, 0.25);

    --color-primary:      #6366f1;
    --color-primary-light:#4f46e5;
    --color-accent:       #0891b2;
    --color-accent-2:     #7c3aed;
    --color-success:      #059669;
    --color-error:        #dc2626;
    --color-warning:      #d97706;

    --color-text:         #1e293b;
    --color-text-muted:   #64748b;
    --color-text-dim:     #94a3b8;

    --font-display:       'Syne', sans-serif;
    --font-body:          'Outfit', sans-serif;

    --radius-sm:          8px;
    --radius-md:          16px;
    --radius-lg:          24px;
    --radius-xl:          32px;

    --shadow-glow:        0 0 40px rgba(99, 102, 241, 0.08);
    --shadow-card:        0 2px 16px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);

    --glass-blur:         blur(16px);
    --glass-bg:           rgba(255, 255, 255, 0.92);
    --glass-border:       1px solid rgba(15, 23, 42, 0.06);

    --transition-fast:      0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth:    0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce:    0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    --header-height:      64px;
    --header-height-mobile: 56px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body.loading {
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* --- Canvas 3D Background --- */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.ambient-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        #ffffff,
        radial-gradient(ellipse 70% 50% at 10% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 45% at 90% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafbfd 60%, #f7f9fc 100%);
    pointer-events: none;
}

.noise-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* --- Cursor Personalizado --- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    mix-blend-mode: normal;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s;
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--color-accent);
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-svg {
    width: 64px;
    height: 64px;
    animation: loaderSpin 1.5s linear infinite;
}

.loader-circle {
    stroke: var(--color-primary);
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: loaderDraw 1.5s ease-in-out infinite;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderDraw {
    0%, 100% { stroke-dashoffset: 200; }
    50%      { stroke-dashoffset: 0; }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* --- Layout Principal --- */
.app {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    opacity: 0;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: env(safe-area-inset-top, 0) clamp(16px, 4vw, 48px) 0;
    padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0));
    padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0));
    height: calc(var(--header-height) + env(safe-area-inset-top, 0));
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}

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

.brand-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.brand-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.brand-name {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-accent {
    color: var(--color-primary-light);
}

/* --- Contadores no Header --- */
.header-stats {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    flex-shrink: 0;
}

.header-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.header-stat--accent {
    border-color: rgba(8, 145, 178, 0.2);
    background: rgba(6, 182, 212, 0.05);
}

.header-stat-icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary-light);
    flex-shrink: 0;
    display: none;
}

.header-stat--accent .header-stat-icon {
    color: var(--color-accent);
}

.header-stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.header-stat-number {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 800;
    color: var(--color-primary-light);
    letter-spacing: -0.02em;
}

.header-stat--accent .header-stat-number {
    color: var(--color-accent);
}

.header-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* --- Main Grid (Layout Assimétrico) --- */
.main-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: clamp(20px, 3vw, 40px);
    padding: clamp(16px, 3vw, 40px) clamp(16px, 4vw, 48px) calc(clamp(40px, 6vh, 80px) + env(safe-area-inset-bottom, 0));
    padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0));
    padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0));
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* --- Glass Card --- */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.04),
        transparent
    );
    animation: cardShine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardShine {
    0%, 100% { left: -100%; }
    50%      { left: 150%; }
}

/* --- Formulário --- */
.form-card {
    padding: clamp(20px, 4vw, 40px);
}

.form-header {
    margin-bottom: clamp(16px, 3vw, 28px);
}

.form-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.form-desc {
    color: var(--color-text-muted);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    line-height: 1.4;
}

.cadastro-form {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.5vw, 20px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.interesse-group .form-label {
    margin-bottom: 4px;
}

/* --- Input com borda animada --- */
.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 20px);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 16px; /* evita zoom no iOS */
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.form-input::placeholder {
    color: var(--color-text-dim);
}

.form-input:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-input.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width var(--transition-smooth), left var(--transition-smooth);
    border-radius: 2px;
}

.form-input:focus ~ .input-border {
    width: 100%;
    left: 0;
}

.form-error {
    font-size: 0.8rem;
    color: var(--color-error);
    min-height: 1.2em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.form-error.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Opções de Interesse --- */
.interesse-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.interesse-option {
    cursor: none;
}

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

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: clamp(14px, 3vw, 20px) clamp(8px, 2vw, 12px);
    background: #f8fafc;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-height: 72px;
    justify-content: center;
}

.option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.interesse-option input:checked + .option-card {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.interesse-option input:checked + .option-card::before {
    opacity: 1;
}

.option-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.option-icon {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.option-text {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
    line-height: 1.3;
}

.option-text-short {
    display: none;
}

.interesse-option input:checked + .option-card .option-text {
    color: var(--color-text);
}

/* --- Botão Submit --- */
.btn-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: clamp(14px, 3vw, 18px) 24px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%);
    background-size: 200% auto;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition: background-position var(--transition-smooth), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-submit:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.45);
}

.btn-submit:hover::before {
    transform: translateX(100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    opacity: 1;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-bounce);
}

.btn-submit:hover .btn-icon svg {
    transform: translateX(4px);
}

.btn-loader {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* --- Painel Lateral --- */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.recentes-card {
    padding: 28px;
}

.side-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.recentes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recente-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-fast), background var(--transition-fast);
    animation: slideInRight 0.5s ease forwards;
    opacity: 0;
}

.recente-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: #ffffff;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.recente-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recente-nome {
    font-weight: 600;
    font-size: 0.9rem;
}

.recente-matricula {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.recente-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recente-badge--sim {
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-success);
}

.recente-badge--nao {
    background: rgba(100, 116, 139, 0.08);
    color: var(--color-text-muted);
}

.recente-empty {
    text-align: center;
    padding: 24px;
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

/* Skeleton loading */
.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(15,23,42,0.03) 25%, rgba(15,23,42,0.06) 50%, rgba(15,23,42,0.03) 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeletonShimmer 1.5s ease infinite;
    margin-bottom: 8px;
}

.skeleton-line--short {
    width: 60%;
}

.recente-placeholder {
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Info card */
.info-card {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.info-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    pointer-events: all;
    transform: translateX(120%);
    transition: transform var(--transition-bounce);
    max-width: 380px;
}

.toast.show {
    transform: translateX(0);
}

.toast--success { border-left: 3px solid var(--color-success); }
.toast--error   { border-left: 3px solid var(--color-error); }

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- Modal de Sucesso --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    padding: 48px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
}

.success-check {
    width: 80px;
    height: 80px;
    color: var(--color-success);
}

.check-circle {
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
}

.check-path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.modal-overlay.active .check-circle {
    animation: drawCircle 0.6s ease forwards 0.2s;
}

.modal-overlay.active .check-path {
    animation: drawCheck 0.4s ease forwards 0.7s;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-text {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.btn-modal-close {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* Confetti particles */
.modal-confetti {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 1.5s ease forwards;
}

@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 32px;
    color: var(--color-text-dim);
    font-size: 0.8rem;
    border-top: 1px solid var(--color-border);
}

/* --- Reveal Items (estado inicial para GSAP) --- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Responsivo --- */
@media (min-width: 768px) {
    .header-stat-icon {
        display: block;
    }

    .header-stat-info {
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }

    .header {
        padding: 0 12px;
    }

    .brand-icon {
        width: 28px;
        height: 28px;
    }

    .header-stats {
        gap: 6px;
    }

    .header-stat {
        padding: 5px 8px;
        gap: 0;
    }

    .header-stat-number {
        font-size: 0.95rem;
    }

    .header-stat-label {
        font-size: 0.55rem;
    }

    .main-grid {
        padding: 12px 12px 32px;
        gap: 16px;
    }

    .form-card {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .form-header {
        margin-bottom: 12px;
    }

    .form-group {
        gap: 4px;
    }

    .interesse-group .form-label {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .option-text-full {
        display: none;
    }

    .option-text-short {
        display: inline;
    }

    .option-icon {
        font-size: 1rem;
    }

    .option-card {
        min-height: 60px;
        padding: 12px 8px;
    }

    .side-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .recentes-card {
        padding: 16px;
    }

    .info-card {
        padding: 16px;
    }

    .footer {
        padding: 20px 16px;
        font-size: 0.7rem;
    }

    .modal {
        padding: 32px 24px;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .form-desc {
        display: none;
    }

    .form-header {
        margin-bottom: 8px;
    }

    .cadastro-form {
        gap: 10px;
    }

    .option-card {
        min-height: 52px;
        padding: 10px 6px;
    }

    .info-card {
        display: none;
    }

    .footer {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    button, .interesse-option {
        cursor: pointer;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .brand-name {
        font-size: 0.8rem;
    }

    .header-stat-label {
        display: none;
    }

    .header-stat {
        padding: 6px 10px;
    }
}

/* --- Acessibilidade: reduzir movimento --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}

/* --- Scrollbar customizada --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.35);
}
