/* ============================================
   RecruitAI — Premium Recruiter UI
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0a0b14;
    --bg-secondary: #0f1120;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.5);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Background Orbs ---- */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -3s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    overflow: hidden;
}

.logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

/* ---- Main ---- */
.main {
    position: relative;
    z-index: 1;
    padding: 60px 24px 80px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    margin-bottom: 56px;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Form Grid ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

/* ---- Card ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

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

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.step-badge {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Drop Zone ---- */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.drop-zone.has-file {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.04);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.drop-zone-content {
    pointer-events: none;
}

.drop-icon {
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition);
}

.drop-zone:hover .drop-icon,
.drop-zone.drag-over .drop-icon {
    color: var(--purple-light);
    transform: scale(1.1);
}

.drop-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.drop-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.drop-link {
    color: var(--purple-light);
    font-weight: 500;
}

.drop-formats {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

/* ---- File Preview ---- */
.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-sm);
    width: 100%;
}

.file-icon {
    color: var(--green);
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.file-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.file-remove {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ---- Resume List ---- */
.resume-list {
    margin-top: 12px;
}

.resume-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.clear-all-btn {
    background: none;
    border: none;
    color: var(--red);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.clear-all-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.resume-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.resume-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    animation: slide-in 0.2s ease;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-item-icon {
    color: var(--purple-light);
    flex-shrink: 0;
}

.resume-item-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resume-item-size {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.add-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    color: var(--purple-light);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.add-more-btn:hover {
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.05);
}

/* ---- Instructions Textarea ---- */
.textarea-wrapper {
    position: relative;
}

.instructions-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 16px;
    resize: vertical;
    transition: var(--transition);
    outline: none;
}

.instructions-textarea::placeholder {
    color: var(--text-muted);
}

.instructions-textarea:focus {
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.04);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.textarea-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Submit ---- */
.submit-section {
    text-align: center;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: var(--transition);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn-content,
.submit-btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Spinner ---- */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ---- Loading Overlay ---- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 56px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--purple);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    opacity: 0;
}

.pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.loading-icon {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.loading-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.loading-step.active {
    color: var(--text-primary);
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: var(--transition);
}

.loading-step.active .step-dot {
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple);
    animation: pulse-dot 1s ease-in-out infinite;
}

.loading-step.done .step-dot {
    background: var(--green);
}

.loading-step.done {
    color: var(--green);
}

/* ---- Results Overlay ---- */
.results-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.results-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.results-title {
    font-size: 22px;
    font-weight: 700;
}

.results-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.results-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.results-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.results-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* ---- Candidate Card ---- */
.candidate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: var(--transition);
    animation: card-reveal 0.4s ease both;
}

.candidate-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.2);
}

.candidate-card.rank-1 {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.04);
}

.candidate-card.rank-2 {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.03);
}

.candidate-card.rank-3 {
    border-color: rgba(180, 120, 60, 0.3);
    background: rgba(180, 120, 60, 0.03);
}

@keyframes card-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.candidate-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rank-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.rank-1 .rank-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.rank-2 .rank-badge {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.rank-3 .rank-badge {
    background: rgba(180, 120, 60, 0.15);
    color: #b4783c;
}

.rank-other .rank-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-light);
}

.candidate-info {
    flex: 1;
}

.candidate-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.recommendation-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.rec-highly {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.rec-recommended {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.rec-consider {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.rec-not {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-bar-wrapper {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-bar.high {
    background: var(--gradient);
}

.score-bar.mid {
    background: linear-gradient(90deg, var(--amber), #f97316);
}

.score-bar.low {
    background: linear-gradient(90deg, var(--red), #f97316);
}

.score-number {
    font-size: 22px;
    font-weight: 800;
    min-width: 48px;
    text-align: right;
}

.score-number.high {
    color: var(--purple-light);
}

.score-number.mid {
    color: var(--amber);
}

.score-number.low {
    color: var(--red);
}

.candidate-assessment {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(139, 92, 246, 0.4);
}

.candidate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.tag-strength {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.tag-gap {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ---- Results Footer ---- */
.results-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.screen-again-btn,
.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.screen-again-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.screen-again-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.export-btn {
    background: var(--gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    background: #1e1e2e;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.3s ease;
    max-width: 480px;
    width: 90%;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-icon {
    color: var(--red);
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-full {
        grid-column: 1;
    }

    .results-container {
        max-height: 95vh;
    }

    .results-header,
    .results-body,
    .results-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .loading-card {
        padding: 36px 28px;
    }
}
@media print {
    body * {
        visibility: hidden;
    }
    .results-overlay {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        height: auto;
        background: white;
        overflow: visible;
    }
    .results-container, .results-container * {
        visibility: visible;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }
    .results-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
    }
    .results-footer, .results-close {
        display: none !important;
    }
}
