/* ============================================
   JOB RADAR - VIBRANT & FUN THEME
   ============================================ */

:root {
    /* Colors - High Energy & Fun */
    --bg-gradient-start: #FF9A9E;
    --bg-gradient-end: #FECFEF;
    --bg-mesh-1: #a18cd1;
    --bg-mesh-2: #fbc2eb;

    /* Card - Solid & Clean */
    --card-bg: #FFFFFF;
    --card-text: #2D3748;
    --card-text-muted: #718096;

    /* Brand Actions - Pop Colors */
    --brand-primary: #FF6B6B;
    /* Coral Red */
    --brand-secondary: #4ECDC4;
    /* Teal */
    --brand-tertiary: #FFE66D;
    /* Yellow */
    --brand-accent: #6C5CE7;
    /* Purple */

    /* Action Specific */
    --action-apply: #00b96b;
    /* Vivid Green */
    --action-reject: #ff4757;
    /* Hot Pink/Red */
    --action-save: #3742fa;
    /* Royal Blue */

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;

    /* Physics */
    --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Poppins', -apple-system, sans-serif;
    /* Friendly font */
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: var(--card-text);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

/* Animated Mesh Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 107, 107, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(78, 205, 196, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 230, 109, 0.3) 0%, transparent 50%);
    filter: blur(60px);
    animation: gradientMove 15s ease infinite alternate;
    z-index: 0;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5%, -5%);
    }
}

.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
    text-align: center;
    margin-bottom: var(--space-md);
    padding-top: var(--space-sm);
}

.app-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
    font-style: italic;
    /* Dynamic feel */
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ============================================
   STATS - PILL STYLE
   ============================================ */
.stats-card {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 12px 24px;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--card-text);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--card-text-muted);
}

/* ============================================
   CARD STACK - SOLID & POP
   ============================================ */
.swipe-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 460px;
}

.job-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    /* SOLID WHITE */
    border-radius: 30px;
    /* Super rounded */
    padding: 28px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Subtle border */

    transform-origin: 50% 100%;
    transition: transform 0.4s var(--bounce);
    cursor: grab;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.job-card:active {
    cursor: grabbing;
}

/* Stacking */
.job-card:nth-child(1) {
    z-index: 3;
    transform: scale(1) translateY(0);
}

.job-card:nth-child(2) {
    z-index: 2;
    transform: scale(0.95) translateY(15px);
    background: rgba(255, 255, 255, 0.9);
    opacity: 1 !important;
    /* Force solid appearance */
}

.job-card:nth-child(3) {
    z-index: 1;
    transform: scale(0.9) translateY(30px);
    background: rgba(255, 255, 255, 0.8);
    opacity: 1 !important;
}

/* Content */
.job-header {
    margin-bottom: 5px;
}

.job-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.job-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--card-text);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.job-company {
    font-size: 1.1rem;
    color: var(--card-text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.job-company::before {
    content: '🏢';
    margin-right: 6px;
    font-size: 1.2rem;
}

.job-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--action-apply);
    margin: 0.5rem 0 1.5rem;
    background: linear-gradient(to right, #00b96b, #00d2d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.job-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--card-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

/* View Button */
/* View Details Button - Sleek */
.view-details-btn {
    width: 100%;
    padding: 14px;
    background: #E2E8F0;
    border: 2px solid #CBD5E0;
    border-radius: 16px;
    color: var(--card-text);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.view-details-btn:hover {
    background: #fff;
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
}

/* Only overlays */
.swipe-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    border-radius: 30px;
}

/* Full card colorful overlays */
.swipe-overlay.apply {
    background: rgba(0, 185, 107, 0.85);
}

.swipe-overlay.reject {
    background: rgba(255, 71, 87, 0.85);
}

.swipe-overlay.save {
    background: rgba(55, 66, 250, 0.85);
}

.swipe-icon {
    font-size: 6rem;
    color: white;
    transform: scale(0.5);
    transition: transform 0.3s var(--bounce);
}

.swipe-overlay.visible .swipe-icon {
    transform: scale(1.2) rotate(10deg);
}


/* ============================================
   FUN ACTION BUTTONS
   ============================================ */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: var(--space-md);
    padding-bottom: var(--space-xl);
}

.action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s var(--bounce), box-shadow 0.2s;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: scale(0.9);
}

/* Individual Styles */
.action-btn.reject {
    color: var(--action-reject);
}

.action-btn.reject:hover {
    background: var(--action-reject);
    color: white;
}

.action-btn.ai {
    color: #f6b93b;
    /* Yellow/Orange */
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-top: 5px;
    /* Offset smaller button */
}

.action-btn.ai:hover {
    background: #f6b93b;
    color: white;
    box-shadow: 0 0 20px rgba(246, 185, 59, 0.4);
}

.action-btn.save {
    color: var(--action-apply);
    /* Use Green variable */
}

.action-btn.save:hover {
    background: var(--action-apply);
    color: white;
}

/* ============================================
   MODAL & UTILS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s var(--bounce);
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    padding-bottom: 4px;
    /* Optical adjustment */
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* Text Utils */
.empty-state {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 100px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.empty-message {
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    text-align: center;
    color: white;
    padding-top: 50px;
}

.spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: white;
}

.hidden {
    display: none;
}





/* ============================================
   HEADER & BADGE
   ============================================ */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-left {
    flex: 1;
}

.header-btn {
    background: rgba(255, 255, 255, 0.85);
    /* High contrast bg */
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 14px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.5);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-primary);
    /* Coral Red */
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SAVED LIST
   ============================================ */

.saved-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
}

.saved-job-item {
    background: #fff;
    /* Solid white for list items */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.saved-job-info {
    flex: 1;
}

.saved-title {
    font-weight: 800;
    color: var(--card-text);
    /* Dark text */
    margin-bottom: 4px;
    font-size: 1rem;
}

.saved-meta {
    font-size: 0.8rem;
    color: var(--card-text-muted);
}

.saved-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.saved-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.saved-btn.apply {
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #2cb5a0;
    text-decoration: none;
}

.saved-btn.delete {
    background: transparent;
    color: var(--action-reject);
    font-size: 1.2rem;
    padding: 0 8px;
}

.empty-state-small {
    text-align: center;
    color: rgba(50, 50, 50, 0.6);
    padding: 40px;
    font-style: italic;
}

.full-height {
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.full-btn {
    display: block;
    width: 100%;
    background: var(--brand-secondary);
    /* Teal */
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* ============================================
   ONBOARDING UI
   ============================================ */
.input-field {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--card-text);
    outline: none;
    transition: all 0.2s;
}

.input-field:focus {
    border-color: var(--brand-accent);
    background: rgba(255, 255, 255, 0.2);
}

.file-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
    color: var(--card-text-muted);
}

.file-upload-box:hover {
    border-color: var(--brand-secondary);
    background: rgba(78, 205, 196, 0.1);
    color: var(--brand-secondary);
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.1s;
}

.modal-btn:active {
    transform: scale(0.95);
}

.modal-btn.reject {
    background: #fee2e2;
    color: #991b1b;
}

.modal-btn.ai {
    background: #fef3c7;
    color: #92400e;
}

.modal-btn.save {
    background: #dcfce7;
    color: #166534;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* AI Scanning Effects */
.ai-scanning-container {
    text-align: center;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.ai-scanner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #818cf8;
    /* Gold */
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

.ai-status {
    color: #818cf8;
    font-weight: bold;
    font-size: 1.2rem;
    transition: opacity 0.5s;
    height: 24px;
}

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

/* AI Results */
.ai-header {
    text-align: center;
    margin-bottom: 2rem;
}

.match-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.match-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.1);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: #818cf8;
    stroke-width: 8;
    stroke-linecap: round;
}

.match-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
}

.match-text .score {
    font-size: 2rem;
    font-weight: 800;
    color: #818cf8;
}

.match-text .label {
    font-size: 0.7rem;
    font-weight: bold;
    opacity: 0.5;
}

.glass-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.glass-panel h4 {
    color: #818cf8;
    margin: 0 0 0.8rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.copy-box {
    font-style: italic;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-btn-pastel {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
    border: none;
    transition: transform 0.2s;
}

.ai-btn-pastel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

@keyframes pulse-pastel {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(129, 140, 248, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ============================ */
/* BENTO DASHBOARD STYLES       */
/* ============================ */

.bento-container {
    padding: 1rem;
    padding-bottom: 100px;
    background: #f8fafc;
    min-height: 100%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.bento-card {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(129, 140, 248, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
}

/* Score Ring Internal Positioning */
.score-ring-small {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    color: #4f46e5;
    margin: 0;
    line-height: 1;
}

/* Specific Card Layouts */
.bento-header {
    grid-column: span 2;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0;
    text-align: left;
}

.bento-score {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff, #f5f7ff);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.bento-fit {
    grid-column: span 2;
    background: rgba(238, 242, 255, 0.5);
}

.bento-strategy {
    grid-column: span 1;
}

.bento-vibe {
    grid-column: span 1;
}

/* Content Styling */
.bento-card h4 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #818cf8;
    margin-bottom: 8px;
}

.bento-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.3;
}

.bento-card p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.bento-icon {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

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

    .bento-header,
    .bento-score,
    .bento-fit,
    .bento-strategy,
    .bento-vibe {
        grid-column: span 1;
    }

    .bento-score {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Analysis List inside Bento */
.bento-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.bento-list li {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.bento-footer {
    grid-column: span 2;
    padding: 1rem 0;
}

/* ============================ */
/* OVERLAY VIEW STYLES          */
/* ============================ */

.view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    z-index: 2000;
    /* Above everything */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.view-overlay.active {
    transform: translateY(0);
}

/* AI Overlay Specifics */
#view-ai {
    background: #eef2ff;
    /* Very light indigo tint */
}

/* Close FAB (Floating Action Button) for AI */
.overlay-close-fab {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    z-index: 2010;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.overlay-close-fab:active {
    transform: scale(0.9);
}

/* Saved Header Bar */
.overlay-header-bar {
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.overlay-header-bar h2 {
    margin: 0;
    font-size: 1.2rem;
}

.overlay-close-text {
    background: none;
    border: none;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
}

.overlay-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 380px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    padding: 0.5rem;
    transition: all 0.3s ease;
    width: 60px;
}

.nav-item .nav-icon {
    font-size: 1.5rem;
    transition: transform 0.2s;
    filter: grayscale(1);
}

.nav-item .nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    height: 0;
    transition: all 0.3s;
}

.nav-item.active {
    color: #4f46e5;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    filter: grayscale(0);
}

.nav-item.active .nav-label {
    opacity: 1;
    height: auto;
}

/* Nav Item Specific Colors */
.nav-item[data-tab="radar"].active .nav-icon {
    filter: none;
}

.nav-item[data-tab="ai"].active .nav-icon {
    filter: none;
}

.nav-item[data-tab="saved"].active .nav-icon {
    filter: none;
}

.scroll-hint {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #818cf8;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(10px)
    }
}

/* Premium Gradients/Text */
.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.story-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: absolute;
    /* Relative to modal body */
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-action-bar.visible {
    transform: translateY(0);
    opacity: 1;
}