/* =============================================
   CSS Variables & Base Styles
   ============================================= */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #4a90e2;
    --secondary: #00897b;
    --accent: #ff6f00;
    --success: #2e7d32;
    --warning: #f57f17;
    --error: #d32f2f;

    --bg-dark: #f5f6fa;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;

    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8e8ea0;

    --border: #e2e4e9;
    --border-light: #d0d5dd;

    --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    --gradient-secondary: linear-gradient(135deg, #00897b 0%, #1a73e8 100%);
    --gradient-accent: linear-gradient(135deg, #ff6f00 0%, #e65100 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 4px 20px rgba(26, 115, 232, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    /* No overflow-x set — setting it causes overflow-y to compute as 'auto',
       making body a scroll container that breaks Chrome Android scrolling */
}

/* Modal scroll lock — only applied when a modal is open */
html.modal-open,
html.modal-open body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* =============================================
   Typography
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* =============================================
   Utility Classes
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.mt-8 {
    margin-top: 48px;
}

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

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(26, 115, 232, 0.06);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-arrow {
    transition: var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Apply button loading spinner */
.apply-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    display: inline-block;
}

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

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo-icon {
    font-size: 28px;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth,
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    color: var(--text-secondary);
    font-size: 14px;
}

#userName {
    color: var(--primary-light);
    font-weight: 600;
}

/* =============================================
   Hamburger Menu & Mobile Drawer
   ============================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: rgba(26, 115, 232, 0.06);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height — accounts for mobile browser address bar */
    background: #ffffff;
    z-index: 2000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-drawer-logo {
    height: 32px;
    width: auto;
}

.mobile-drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-drawer-close:hover {
    background: #f1f5f9;
    color: #1a1a2e;
}

.mobile-drawer-body {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.mobile-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.mobile-user-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 15px;
}

.mobile-user-profile-link {
    color: #1a73e8;
    font-size: 13px;
    text-decoration: none;
}

.mobile-user-profile-link:hover {
    text-decoration: underline;
}

/* Mobile Drawer Links */
.mobile-drawer-links {
    padding: 0 8px;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-drawer-link:hover {
    background: rgba(26, 115, 232, 0.06);
    color: #1a73e8;
}

.mobile-drawer-divider {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 8px 16px;
}

/* Mobile Drawer Footer */
.mobile-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-drawer-footer .btn-block {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-links,
    .nav-auth,
    .nav-user {
        display: none !important;
    }
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    /* REMOVED position:relative - it was creating a stacking context that 
       interfered with touch scroll on real Android Chrome */
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 100%;
    transform: translateY(0);
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26, 115, 232, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 137, 123, 0.06), transparent),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(26, 115, 232, 0.04), transparent);
    pointer-events: none;
    height: 100vh;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(26, 115, 232, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: center;
}

/* Hero Search Bar */
.hero-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(26, 115, 232, 0.06);
    max-width: 700px;
    transition: var(--transition);
}

.hero-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(26, 115, 232, 0.12), 0 2px 8px rgba(26, 115, 232, 0.1);
}

.hero-search-bar .shake {
    animation: heroShake 0.4s ease;
}

@keyframes heroShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Hero Search Suggestions */
.hero-search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: -8px;
    right: -8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hero-search-suggestions.active {
    display: block;
}

.hero-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
    font-size: 14px;
    color: var(--text-primary);
}

.hero-suggestion-item:last-child {
    border-bottom: none;
}

.hero-suggestion-item:hover {
    background: rgba(26, 115, 232, 0.08);
}

.hero-suggestion-item .suggestion-icon {
    font-size: 16px;
    opacity: 0.6;
}

.hero-suggestion-item .suggestion-label {
    flex: 1;
}

/* Hero Popular Tags */
.hero-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    align-items: center;
}

.hero-popular-tags .popular-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}

.hero-popular-tags a {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.hero-popular-tags a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.hero-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    min-width: 0;
}

.hero-location-wrapper {
    flex: 0 0 auto;
    min-width: 160px;
}

.hero-search-icon {
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

.hero-location-select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.hero-search-btn {
    flex-shrink: 0;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

/* =============================================
   Job Categories Section
   ============================================= */
.job-categories-section {
    background: var(--bg-darker);
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.12);
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

.category-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 115, 232, 0.06);
    border-radius: var(--radius-md);
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.category-info p {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-arrow {
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-visual {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 280px;
    opacity: 0.85;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 18px;
}

.floating-card .card-text {
    font-weight: 600;
    font-size: 12px;
}

.card-1 {
    top: 5%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 25%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

/* =============================================
   Sections
   ============================================= */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(26, 115, 232, 0.08);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Steps/How It Works
   ============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 48px;
    font-weight: 800;
    color: var(--bg-card-hover);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

/* =============================================
   Search Bar
   ============================================= */
.search-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 0 16px;
}

.search-icon {
    font-size: 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 14px 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    background: var(--bg-dark);
    border: none;
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    cursor: pointer;
    min-width: 160px;
}

/* =============================================
   Job Cards
   ============================================= */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
    gap: 24px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.company-logo {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.job-meta {
    flex: 1;
}

.job-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.company-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.job-badge {
    padding: 6px 12px;
    background: var(--gradient-accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.badge-new {
    background: var(--gradient-secondary);
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-icon {
    font-size: 16px;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    padding: 6px 12px;
    background: rgba(26, 115, 232, 0.08);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 500;
    border-radius: 50px;
}

.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.job-footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.referral-fee {
    font-size: 14px;
    color: var(--text-muted);
}

.posted-time {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Skill Test Notice */
.skill-test-notice {
    margin-bottom: 16px;
}

.test-required-badge {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.interview-fee {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
}


/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* =============================================
   Pricing
   ============================================= */
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-title {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-secondary);
}

.price {
    font-size: 64px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.period {
    font-size: 18px;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.feature:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer {
        padding: 48px 0 32px;
    }

    .footer-desc {
        max-width: 100%;
    }
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* =============================================
   Why ₹99 Section
   ============================================= */
.why-99-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 115, 232, 0.04) 50%, var(--bg-dark) 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.why-99-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.why-99-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-99-helps {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.why-99-benefits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.why-99-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
}

.why-99-benefit .benefit-icon {
    color: #22c55e;
    font-weight: 700;
    font-size: 16px;
}

.why-99-tagline {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .why-99-section {
        padding: 40px 20px;
    }

    .why-99-title {
        font-size: 24px;
    }

    .why-99-text {
        font-size: 14px;
    }

    .why-99-text br {
        display: none;
    }

    .why-99-benefit {
        font-size: 14px;
    }

    .why-99-tagline {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .why-99-section {
        padding: 32px 16px;
    }

    .why-99-title {
        font-size: 22px;
    }

    .why-99-text {
        font-size: 13px;
        padding: 0 8px;
    }

    .why-99-benefit {
        font-size: 13px;
        text-align: left;
    }

    .why-99-tagline {
        font-size: 15px;
    }
}

/* =============================================
   Modal - Cross-Device Compatible
   Works on: iOS Safari, Chrome Android, Firefox, 
   Edge, Desktop browsers (Windows, Mac, Linux)
   ============================================= */


/* Body lock state for modal - rules are consolidated at top of file */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Safari (iOS & Mac) */
    -webkit-backdrop-filter: blur(8px);
    /* Chrome, Firefox, Edge, Opera */
    backdrop-filter: blur(8px);
    z-index: 2000;
    /* FIXED: Use display:none instead of visibility:hidden to completely remove from render tree */
    /* This prevents hidden overlays from intercepting touch events on mobile */
    display: none;
    opacity: 0;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    /* Prevent scroll chaining only when overlay is active */
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
    /* Fade-in animation since display:none->block can't use transitions */
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    /* IMPORTANT: Modal is sibling to overlay, not child - must use fixed positioning */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 92%;
    max-width: 440px;
    /* Standard viewport height */
    max-height: 85vh;
    /* Dynamic viewport height for mobile browsers (iOS, Android) */
    max-height: 85dvh;
    overflow-y: auto;
    /* Smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Prevent scroll chaining */
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* Allow touch scrolling inside modal */
    touch-action: pan-y;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 8px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

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

/* Show Password Checkbox */
.show-password-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.show-password-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
    border-radius: 4px;
}

.show-password-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.2s ease;
}

.show-password-label:hover .show-password-text {
    color: var(--primary-light);
}

.show-password-label input[type="checkbox"]:checked~.show-password-text {
    color: var(--primary-light);
}

.modal-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-footer a {
    color: var(--primary-light);
    font-weight: 600;
}

/* =============================================
   Toast Notifications
   ============================================= */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .search-bar {
        flex-direction: column;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Modal mobile fix - All mobile browsers (iOS Safari, Chrome Android, Firefox Mobile, etc.) */
    .modal-overlay {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    .modal {
        /* On mobile, position from top instead of center to handle virtual keyboard */
        top: 20px;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        padding: 24px;
        width: 94%;
    }

    .modal.active {
        transform: translateX(-50%) scale(1);
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-subtitle {
        margin-bottom: 16px;
        font-size: 14px;
    }
}

/* =============================================
   Profile Dropdown
   ============================================= */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.profile-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.profile-btn:hover .dropdown-arrow {
    color: var(--primary);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.menu-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.menu-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

/* =============================================
   Dashboard Section
   ============================================= */
.dashboard-section {
    background: var(--bg-darker);
    padding-top: 120px;
}

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

.dashboard-welcome h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.dashboard-welcome p {
    color: var(--text-secondary);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.dashboard-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.dashboard-stat-card .stat-icon {
    font-size: 40px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Profile Section */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.profile-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(26, 115, 232, 0.08);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.profile-progress {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

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

/* Recent Applications */
.recent-applications {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

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

.section-header-small h3 {
    font-size: 18px;
}

.link {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
}

.applications-list {
    min-height: 150px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Profile Edit Modal
   ============================================= */
.modal-lg {
    max-width: 600px;
    max-height: 90vh;
    max-height: 90dvh;
    /* Dynamic viewport height for iOS */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.profile-edit-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.file-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.04);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-icon {
    font-size: 32px;
}

.file-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* =============================================
   Page Sections
   ============================================= */
.page-section {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--bg-darker);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 28px;
}

/* =============================================
   Applications Page
   ============================================= */
.applications-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.applications-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.5fr 1.5fr;
    padding: 16px 24px;
    background: var(--bg-darker);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.5fr 1.5fr;
    padding: 20px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: var(--bg-card-hover);
}

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

.company-logo-sm {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-passed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-referred {
    background: rgba(26, 115, 232, 0.08);
    color: var(--primary-light);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.empty-applications {
    text-align: center;
    padding: 80px;
}

.empty-applications h3 {
    margin-bottom: 8px;
}

.empty-applications p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* =============================================
   Settings Page
   ============================================= */
.settings-grid {
    display: grid;
    gap: 24px;
    max-width: 700px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.settings-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.settings-card-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.settings-card-danger h3 {
    color: var(--error);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.settings-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 28px;
    transition: var(--transition);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
    background: white;
    transform: translateX(24px);
}

/* Danger Button */
.btn-danger {
    background: var(--error);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-header {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .applications-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
}

/* =============================================
   Test Taking Page
   ============================================= */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.test-info h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.test-info p {
    color: var(--text-secondary);
}

.test-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.timer-icon {
    font-size: 24px;
}

.timer-value {
    font-size: 28px;
    font-weight: 700;
    font-family: monospace;
    color: var(--primary-light);
}

.timer-warning {
    color: var(--warning);
}

.timer-danger {
    color: var(--error);
    animation: pulse 1s infinite;
}

.test-progress {
    margin-bottom: 32px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar-test {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-test {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.test-content {
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.question-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 32px;
}

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

.option-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.option-item:hover {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.04);
}

.option-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.06);
}

.option-item input {
    display: none;
}

.option-marker {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.option-item:has(input:checked) .option-marker {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.option-text {
    font-size: 16px;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.question-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.question-dot {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.question-dot:hover {
    border-color: var(--primary);
}

.question-dot.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.question-dot.answered {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.test-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Test Result Modal */
.result-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-value {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-actions {
    margin-top: 24px;
}

/* Responsive Test Page */
@media (max-width: 768px) {
    .test-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .test-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .result-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Question Dot Active State */
.question-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Timer Warning States */
.test-timer.timer-warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--warning);
}

.test-timer.timer-warning .timer-value {
    color: var(--warning);
}

.test-timer.timer-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    animation: pulse-danger 0.5s infinite;
}

.test-timer.timer-danger .timer-value {
    color: var(--error);
}

@keyframes pulse-danger {

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

    50% {
        transform: scale(1.05);
    }
}

/* Option Item Selected State */
.option-item.selected {
    background: rgba(26, 115, 232, 0.1);
    border-color: var(--primary);
}

.option-item.selected .option-marker {
    background: var(--primary);
    color: white;
}

/* =============================================
   Advanced Search Filters
   ============================================= */
.search-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

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

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.filter-select {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    min-width: 130px;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary);
    outline: none;
}

.saved-jobs-btn {
    white-space: nowrap;
}

.saved-jobs-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* =============================================
   Save Job Button (Heart)
   ============================================= */
.job-card {
    position: relative;
}

.save-job-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0.7;
    z-index: 10;
}

.save-job-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.save-job-btn.saved {
    opacity: 1;
}

/* =============================================
   Resume Upload Display
   ============================================= */
.file-upload {
    position: relative;
}

.file-upload-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-dark);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-content:hover {
    border-color: var(--primary);
}

.file-upload-content.has-file {
    border-color: var(--success);
    border-style: solid;
    background: rgba(16, 185, 129, 0.1);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-icon {
    font-size: 24px;
}

.file-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.resume-uploaded {
    color: var(--success);
    font-weight: 500;
}

.btn-remove-resume {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.btn-remove-resume:hover {
    background: var(--error);
    color: white;
}

/* =============================================
   Application Detail Modal
   ============================================= */
.application-detail-modal .modal-content {
    max-width: 600px;
}

/* Application Timeline */
.application-timeline {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    position: relative;
}

.application-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--border);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.timeline-step.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}

.timeline-step.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    animation: pulse 2s infinite;
}

.timeline-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.timeline-step.completed .timeline-label,
.timeline-step.active .timeline-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Application Notes */
.application-notes {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
}

.application-notes h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.notes-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

/* Application Actions */
.application-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

.btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

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

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .filters-row {
        justify-content: center;
    }

    .filter-select {
        min-width: 100px;
        font-size: 13px;
        padding: 8px 12px;
    }

    .application-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .application-timeline::before {
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .timeline-step {
        flex-direction: row;
        gap: 16px;
    }
}

/* =============================================
   Job Detail Modal
   ============================================= */
.job-detail-modal .modal-content {
    max-width: 650px;
}

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

.company-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.job-detail-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.job-detail-skills {
    margin-bottom: 24px;
}

.job-detail-skills h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-detail-description {
    margin-bottom: 24px;
}

.job-detail-description h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.job-detail-description p {
    color: var(--text-primary);
    line-height: 1.6;
}

.job-detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* =============================================
   Similar Jobs Section
   ============================================= */
.similar-jobs-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.similar-jobs-section h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.similar-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.similar-job-card {
    padding: 14px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.similar-job-card:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

.similar-job-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.similar-job-header h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.similar-job-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.similar-job-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* =============================================
   Interview Schedule
   ============================================= */
.interview-schedule {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
}

.interview-schedule h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.interview-schedule.empty {
    text-align: center;
    padding: 24px;
}

.empty-schedule {
    color: var(--text-muted);
    font-size: 14px;
}

.interview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.interview-item:last-child {
    margin-bottom: 0;
}

.interview-item.completed {
    opacity: 0.7;
}

.interview-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 8px;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
}

.interview-date .day {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.interview-date .month {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.interview-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.interview-type {
    font-weight: 600;
    color: var(--text-primary);
}

.interview-time,
.interviewer {
    font-size: 13px;
    color: var(--text-secondary);
}

.interview-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 50px;
}

.interview-status.done {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.interview-status.upcoming {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .job-detail-info {
        grid-template-columns: 1fr;
    }

    .similar-jobs-grid {
        grid-template-columns: 1fr;
    }

    .interview-item {
        flex-wrap: wrap;
    }
}

/* =============================================
   Skill-Based Test System - Interview Ready Badge
   ============================================= */

/* Interview-Ready Badge */
.interview-ready-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(34, 197, 94, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    animation: badge-pulse 2s ease-in-out infinite;
}

.interview-ready-badge .badge-icon {
    font-size: 14px;
}

.interview-ready-badge .badge-text {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.interview-ready-badge .validity-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 12px 2px rgba(16, 185, 129, 0.2);
    }
}

/* Skill Test Status Card */
.skill-test-status {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.skill-test-status.valid {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}

.skill-test-status.expired {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

.skill-test-status.cooldown {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

.skill-test-status.pending {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.06);
}

.skill-test-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-test-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Cooldown Timer */
.cooldown-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(251, 146, 60, 0.12) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--error);
}

.cooldown-timer .timer-icon {
    font-size: 18px;
}

.cooldown-timer .timer-text {
    color: var(--text-secondary);
}

.cooldown-timer .timer-value {
    font-weight: 700;
    color: var(--error);
    font-variant-numeric: tabular-nums;
}

/* Validity Expiry Display */
.validity-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--success);
}

.validity-expiry .expiry-icon {
    font-size: 16px;
}

.validity-expiry .expiry-date {
    font-weight: 600;
}

/* HR Shortlisting Check Label */
.hr-check-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(26, 115, 232, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hr-check-label .check-icon {
    font-size: 14px;
}

/* Skill Bucket Tag on Job Cards */
.job-skill-bucket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(26, 115, 232, 0.08);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-light);
    margin-left: auto;
}

/* Test Prompt Modal Toast */
.skill-test-prompt {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.skill-test-prompt h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.skill-test-prompt p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.skill-test-prompt .btn {
    min-width: 160px;
}

/* =============================================
   Professional Confirmation Modal
   ============================================= */

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10001;
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.confirm-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.confirm-modal-content {
    padding: 32px;
    text-align: center;
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce-in 0.5s ease-out;
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

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

.confirm-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-actions .btn {
    min-width: 120px;
    padding: 12px 24px;
}

/* Danger variant for exit/delete actions */
.confirm-modal.danger .confirm-icon {
    color: var(--error);
}

.confirm-modal.danger .btn-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.confirm-modal.danger .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Warning variant */
.confirm-modal.warning .confirm-icon {
    color: var(--warning);
}

.confirm-modal.warning .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* =============================================
   Google Sign-In & Auth Enhancements
   ============================================= */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: white;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-google:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 16px;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-light);
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.success-message {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-message h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

/* Job Flow Steps (How to Apply) */
.job-flow-steps {
    margin: 24px 0;
    padding: 20px;
    background: rgba(26, 115, 232, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.job-flow-steps h4 {
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.flow-steps-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.flow-step-icon {
    font-size: 16px;
}

.flow-step-text {
    color: var(--text-secondary);
    white-space: nowrap;
}

.flow-step-arrow {
    color: var(--primary-light);
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .flow-steps-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-step-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
}

/* Eligibility Notice */
.eligibility-notice {
    margin-bottom: 24px;
}

.eligibility-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
}

.eligibility-card.new-user {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.06) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(26, 115, 232, 0.15);
}

.eligibility-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.eligibility-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.eligibility-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* =============================================
   Toast Notifications
   ============================================= */
#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
    pointer-events: auto;
}

.toast.success {
    border-left: 3px solid var(--success);
    background: linear-gradient(90deg, rgba(46, 125, 50, 0.06) 0%, rgba(255, 255, 255, 0.98) 30%);
}

.toast.error {
    border-left: 3px solid var(--error);
    background: linear-gradient(90deg, rgba(211, 47, 47, 0.06) 0%, rgba(255, 255, 255, 0.98) 30%);
}

.toast.warning {
    border-left: 3px solid var(--warning);
    background: linear-gradient(90deg, rgba(245, 127, 23, 0.06) 0%, rgba(255, 255, 255, 0.98) 30%);
}

.toast.info {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, rgba(26, 115, 232, 0.06) 0%, rgba(255, 255, 255, 0.98) 30%);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.toast.info .toast-icon {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-light);
}

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

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@media (max-width: 480px) {
    #toastContainer {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .toast {
        padding: 12px 14px;
    }

    .toast-message {
        font-size: 13px;
    }
}

/* =============================================
   Phone Input Group
   ============================================= */
.phone-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-dark);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid var(--border);
    user-select: none;
}

.phone-input-group .phone-input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.phone-input-group .phone-input:focus {
    box-shadow: none;
}

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

/* =============================================
   Location Checkboxes
   ============================================= */
.location-count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

.location-checkboxes {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.location-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.location-checkbox:hover {
    background: rgba(26, 115, 232, 0.06);
}

.location-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.location-checkbox .checkbox-label {
    font-size: 14px;
    color: var(--text-primary);
}

.location-checkbox.pan-india {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(26, 115, 232, 0.08) 100%);
    border: 1px solid rgba(26, 115, 232, 0.15);
    margin-bottom: 12px;
}

.location-checkbox.pan-india:hover {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.15) 0%, rgba(26, 115, 232, 0.15) 100%);
}

.location-checkbox.pan-india .checkbox-label {
    font-weight: 600;
    color: var(--primary-light);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.location-grid .location-checkbox {
    padding: 8px 12px;
}

.location-grid .location-checkbox.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.location-grid.disabled {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .phone-prefix {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .nav-links {
        gap: 20px;
    }

    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    }
}

/* Tablets */
@media (max-width: 768px) {

    /* Navigation */
    .nav-container {
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .logo-img {
        height: 32px;
    }

    /* Hide floating cards and hero-visual on tablet — they overlap text */
    .hero-visual,
    .floating-card {
        display: none;
    }

    /* Hide Contact/Refund links on tablet, keep Login/Register */
    .nav-auth .nav-link {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
        /* FIXED: Allow vertical scrolling past hero on mobile */
        overflow: visible;
        /* CRITICAL FIX: Explicitly allow vertical scroll gestures from within hero */
        touch-action: pan-y pinch-zoom;
    }

    /* Ensure ALL children of hero allow scroll-through on mobile */
    .hero * {
        touch-action: pan-y pinch-zoom;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .stat {
        text-align: center;
    }

    .stat-value {
        font-size: 28px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }

    /* Search Bar */
    .search-bar {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .filter-select {
        width: 100%;
        min-width: auto;
    }

    /* Job Cards */
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .job-card {
        padding: 20px;
    }

    .job-header {
        flex-wrap: wrap;
    }

    .job-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .job-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 24px;
    }

    /* Pricing */
    .pricing-card {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .price {
        font-size: 48px;
    }

    /* Dashboard Cards */
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Modal */
    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .modal-body {
        padding: 24px 20px;
    }

    /* Job Modal */
    .job-modal-content {
        margin: 12px;
        max-height: calc(100vh - 24px);
        padding: 20px;
    }

    .job-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .job-modal-header h2 {
        font-size: 22px;
    }

    .similar-jobs-scroll {
        padding-bottom: 16px;
    }

    .similar-job-card {
        min-width: 260px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* User section in nav */
    .nav-auth,
    .nav-user {
        gap: 8px;
    }

    .user-greeting {
        display: none;
    }

    /* Profile Menu */
    .profile-menu-trigger {
        padding: 8px 12px;
    }

    .profile-menu-dropdown {
        right: 0;
        min-width: 200px;
    }

    /* Applications table */
    .applications-table {
        display: block;
        overflow-x: auto;
    }

    .applications-table th,
    .applications-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    /* Dashboard page */
    .dashboard-content {
        padding: 16px;
    }

    .profile-card {
        padding: 20px;
    }

    .progress-card {
        padding: 16px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {

    /* Navigation */
    .nav-container {
        padding: 10px 12px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-img {
        height: 28px;
    }

    /* Smaller nav buttons on mobile */
    .nav-auth .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Hero */
    .hero {
        padding: 90px 12px 50px;
        /* FIXED: Allow vertical scrolling past hero on mobile */
        overflow: visible;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    /* Job Cards */
    .job-card {
        padding: 16px;
    }

    .company-logo {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .job-title {
        font-size: 16px;
    }

    .company-name {
        font-size: 13px;
    }

    .job-details {
        gap: 10px;
    }

    .job-detail {
        font-size: 12px;
    }

    .skill-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* Dashboard Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    /* Modals */
    .modal-content {
        margin: 8px;
        border-radius: var(--radius-md);
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px 16px;
    }

    .job-modal-content {
        margin: 8px;
        padding: 16px;
    }

    /* Form elements */
    .form-input,
    .form-select {
        padding: 10px 14px;
        font-size: 14px;
    }

    /* Pricing */
    .pricing-card {
        padding: 24px 16px;
    }

    .price {
        font-size: 40px;
    }

    .pricing-features {
        text-align: left;
    }

    /* Toast */
    .toast {
        border-radius: var(--radius-md);
        margin: 0 12px;
        max-width: calc(100% - 24px);
    }

    /* Similar jobs in modal */
    .similar-job-card {
        min-width: 220px;
        padding: 16px;
    }

    /* Applications */
    .applications-table th,
    .applications-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    /* Back button */
    .back-btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* Profile editor */
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    /* Job modal details */
    .job-modal-details {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .job-modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    .job-modal-footer .btn {
        width: 100%;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .job-modal-details {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 14px;
    }

    .company-logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 16px 40px;
        /* FIXED: Allow vertical scrolling past hero on mobile */
        overflow: visible;
    }

    .modal-content {
        max-height: 90vh;
    }

    .job-modal-content {
        max-height: 90vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .job-card:hover {
        transform: none;
    }

    .step-card:hover {
        transform: none;
    }

    .nav-link::after {
        display: none;
    }
}

/* Print styles */
@media print {

    .navbar,
    .hero-visual,
    .modal,
    .toast {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .job-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* =============================================
   Applications Page Styles
   ============================================= */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.applications-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(26, 115, 232, 0.06);
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.applications-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.2fr 1.5fr;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(26, 115, 232, 0.06);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.table-body .table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.2fr 1.5fr;
    gap: 16px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.table-body .table-row:hover {
    background: rgba(26, 115, 232, 0.04);
}

.table-body .table-row:last-child {
    border-bottom: none;
}

.empty-applications {
    text-align: center;
    padding: 60px 20px;
}

.empty-applications .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-applications h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-applications p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Applications Page Responsive - Tablet */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .applications-filters {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Hide table header on mobile */
    .table-header {
        display: none;
    }

    /* Transform rows to cards */
    .table-body .table-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        position: relative;
    }

    /* Add data labels */
    .table-body .table-row>* {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .table-body .table-row>*::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-secondary);
    }

    /* Actions should stack */
    .table-body .table-row .row-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
    }

    .table-body .table-row .row-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Better button handling on mobile */
    .table-body .table-row>span:last-child {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
        width: 100%;
        margin-top: 8px;
    }

    .table-body .table-row>span:last-child .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-left: 0 !important;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Status badge positioning */
    .table-body .table-row .status-badge {
        align-self: flex-start;
        margin-top: 4px;
    }

    /* Company cell layout */
    .table-body .table-row .company-cell {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        font-size: 16px;
    }

    .table-body .table-row .company-logo-sm {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Applications Page Responsive - Mobile */
@media (max-width: 480px) {
    .page-header h2 {
        font-size: 20px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .table-body .table-row {
        padding: 14px;
    }

    /* Even tighter button layout on small screens */
    .table-body .table-row>span:last-child .btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Stack all content vertically */
    .table-body .table-row>span {
        display: block !important;
        width: 100%;
        text-align: left;
        margin-bottom: 6px;
    }

    .table-body .table-row>span:last-child {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 0;
    }

    .empty-applications {
        padding: 40px 16px;
    }

    .empty-applications .empty-icon {
        font-size: 48px;
    }

    .empty-applications h3 {
        font-size: 20px;
    }
}

/* =============================================
   Application Card Mobile Enhancements
   ============================================= */
@media (max-width: 768px) {
    .table-body .table-row {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        margin-bottom: 12px;
        border: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .table-body .table-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.08);
    }

    /* Better visual hierarchy */
    .table-body .table-row>span:nth-child(1) {
        font-weight: 600;
        font-size: 15px;
        color: var(--text-primary);
    }

    .table-body .table-row>span:nth-child(2) {
        font-size: 14px;
        color: var(--primary);
    }

    .table-body .table-row>span:nth-child(3) {
        font-size: 13px;
        color: var(--text-secondary);
    }

    /* Make sure buttons don't overflow */
    .table-body .table-row>span:last-child>div {
        width: 100%;
    }

    .table-body .table-row>span:last-child>div .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* =============================================
   Skeleton Loader (Naukri-style loading effect)
   ============================================= */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.skeleton-line {
    background: linear-gradient(90deg, var(--bg-card-hover) 25%, #d0d5dd 50%, var(--bg-card-hover) 75%);
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 4px;
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-line.title {
    width: 60%;
    height: 22px;
    margin-bottom: 16px;
}

.skeleton-line.company {
    width: 40%;
    height: 14px;
}

.skeleton-line.badge {
    display: inline-block;
    width: 80px;
    height: 24px;
    border-radius: 12px;
    margin-right: 8px;
}

.skeleton-line.description {
    width: 100%;
    height: 12px;
}

.skeleton-line.description:last-child {
    width: 70%;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.jobs-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* =============================================
   Comprehensive Mobile Responsiveness Fixes
   Universal fixes for iOS, Android, and all devices
   ============================================= */

/* Fix for all mobile devices - prevent horizontal scroll */
/* CRITICAL: Do NOT use overflow-x:hidden on html/body — it forces overflow-y:auto
   which creates a scroll container that breaks touch scrolling on Chrome Android.
   Instead, just clip overflowing children at their own level. */
html,
body {
    width: 100%;
    max-width: 100vw;
}

/* Safe area handling for notched phones (iPhone X+, newer Android) */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .navbar {
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
}

/* Prevent content from getting stuck behind fixed navbar on all devices */
main,
.section:first-of-type {
    scroll-margin-top: 80px;
}

/* Mobile-first responsive - Very small phones (320px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .nav-container {
        padding: 12px;
    }

    .hero {
        padding: 80px 12px 40px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .job-card {
        padding: 16px;
    }

    .job-title {
        font-size: 15px;
    }

    .company-logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .step-card {
        padding: 20px;
    }

    .step-icon {
        font-size: 36px;
    }

    .step-title {
        font-size: 16px;
    }

    .pricing-card {
        padding: 24px 16px;
    }

    .price {
        font-size: 48px;
    }
}

/* Small phones (360px - 480px) */
@media (max-width: 480px) and (min-width: 361px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 90px 16px 50px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section {
        padding: 70px 0;
    }
}

/* All mobile phones (up to 768px) - Enhanced fixes */
@media (max-width: 768px) {

    /* Navigation fixes */
    .nav-container {
        padding: 12px 16px;
        gap: 8px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-img {
        height: 30px;
    }

    .nav-auth .btn,
    .nav-user .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .profile-dropdown {
        position: relative;
    }

    .profile-btn {
        padding: 4px 8px;
        font-size: 13px;
    }

    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    #userName {
        display: none;
    }

    .dropdown-arrow {
        display: none;
    }

    /* Profile menu mobile positioning */
    .profile-menu {
        right: -10px;
        min-width: 180px;
    }

    /* Search bar mobile fixes */
    .search-bar {
        padding: 12px;
        gap: 12px;
    }

    .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .search-input-wrapper {
        width: 100%;
        padding: 0 12px;
    }

    .search-input {
        padding: 12px 0;
        font-size: 14px;
    }

    .saved-jobs-btn {
        width: 100%;
    }

    /* Filters row - 2-column grid on mobile */
    .filters-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-bottom: 8px;
    }

    .filters-row::-webkit-scrollbar {
        display: none;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
        padding: 10px 14px;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* Job cards */
    .job-card {
        padding: 16px;
    }

    .job-header {
        gap: 12px;
    }

    .job-title {
        font-size: 16px;
    }

    .company-name {
        font-size: 13px;
    }

    .job-details {
        gap: 10px;
    }

    .job-detail {
        font-size: 12px;
    }

    .skill-tag {
        padding: 4px 8px;
        font-size: 11px;
    }

    .job-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .job-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Steps grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-card {
        padding: 24px;
    }

    /* Pricing mobile */
    .pricing-card {
        padding: 32px 20px;
        margin: 0 8px;
    }

    /* Dashboard mobile fixes */
    .dashboard-section {
        padding-top: 100px;
    }

    .dashboard-stat-card {
        flex-direction: row;
        padding: 16px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-title {
        font-size: 12px;
    }

    /* Profile card mobile */
    .profile-card {
        padding: 16px;
    }

    .profile-card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .profile-avatar-large {
        margin: 0 auto;
    }

    /* Application cards mobile */
    .applications-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    /* Modal fixes for iOS/Android */
    .modal-overlay {
        position: fixed;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: calc(100% - 24px);
        max-width: 400px;
        max-height: calc(100vh - 48px);
        max-height: calc(100dvh - 48px);
        margin: 0;
    }

    .modal.active {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Touch-friendly inputs */
    .form-input,
    .filter-select,
    select,
    input,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
        min-height: 44px;
        /* Apple recommended touch target */
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Better tap targets */
    .nav-link,
    .menu-item,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Tablets (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 14px;
    }
}

/* Landscape mode fixes for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .section {
        padding: 40px 0;
    }

    .modal {
        max-height: 95vh;
        max-height: 95dvh;
    }
}

/* High DPI / Retina display fixes */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .company-logo,
    .profile-avatar,
    .profile-avatar-large {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Prevent iOS rubber band scrolling issues */
@media (pointer: coarse) {
    body {
        overscroll-behavior-y: none;
    }

    .modal-overlay {
        overscroll-behavior: contain;
    }
}

/* Fix for iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }

    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Animation performance on mobile */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Extra small phones - iPhone SE, older Android */
@media (max-width: 320px) {
    .hero-title {
        font-size: 24px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .job-card {
        padding: 12px;
    }

    .filter-select {
        min-width: 110px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* =============================================
   Trust Counters (class-based, replaces inline styles)
   ============================================= */
.trust-counters {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.trust-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
}

.trust-counter-green {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.trust-counter-blue {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.trust-counter-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.trust-counter-value {
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

.trust-counter-label {
    color: #94a3b8;
    font-size: 14px;
}

/* =============================================
   FINAL Mobile Overrides — Consolidation
   These override conflicting rules scattered
   across 36 media query blocks above.
   ============================================= */

/* -- Tablets (max-width: 768px) -- */
@media (max-width: 768px) {

    /* Trust counters: stack vertically on tablets */
    .trust-counters {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .trust-counter {
        width: 100%;
        max-width: 360px;
        justify-content: center;
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .trust-counter-value {
        font-size: 20px;
    }

    .trust-counter-label {
        font-size: 13px;
    }

    /* Ensure hero doesn't force full viewport on short phones */
    .hero {
        min-height: auto;
    }

    /* Ensure hero badge doesn't overflow */
    .hero-badge {
        word-break: break-word;
        text-align: center;
    }

    /* Hero subtitle: remove forced line-breaks */
    .hero-subtitle br {
        display: none;
    }

    /* Search bar: ensure all rows stack properly */
    .search-bar {
        flex-direction: column;
    }

    .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .search-row .btn {
        width: 100%;
    }

    /* Filters row: 2-column grid on mobile */
    .filters-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-bottom: 8px;
    }

    .filters-row::-webkit-scrollbar {
        display: none;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
        box-sizing: border-box;
    }

    /* Job header: ensure badge doesn't overlap title */
    .job-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .job-badge {
        order: -1;
        align-self: flex-start;
    }

    .job-meta {
        min-width: 0;
        flex: 1 1 0%;
    }

    .job-title {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Job footer: stack buttons */
    .job-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .job-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Profile card header: stack on mobile */
    .profile-card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .profile-card-header .btn {
        width: 100%;
    }

    /* Dashboard header: stack */
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Dashboard stats: 2 columns on tablet, 1 on phone */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Eligibility card: wrap text */
    .eligibility-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Modal: ensure proper scrolling and no overflow */
    .modal {
        width: calc(100% - 24px);
        max-width: 440px;
    }

    /* Pricing card: don't let it overflow */
    .pricing-card {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Contact/Refund modal text: remove forced line-breaks */
    .modal-subtitle br {
        display: none;
    }

    /* Footer grid: single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* -- Mobile phones (max-width: 480px) -- */
@media (max-width: 480px) {

    /* Trust counters: even more compact */
    .trust-counter {
        padding: 8px 12px;
        gap: 8px;
    }

    .trust-counter-value {
        font-size: 18px;
    }

    .trust-counter-label {
        font-size: 12px;
    }

    /* Dashboard stats: single column */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    /* Pricing card: tighter padding */
    .pricing-card {
        padding: 24px 16px;
    }

    /* Hero CTA buttons: full width */
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Hero stats: stack vertically */
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Form rows: stack to single column */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Steps grid: single column */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* Filter select: full width */
    .filter-select {
        min-width: 120px;
        font-size: 13px;
        padding: 10px 12px;
    }

    /* Contact/Refund modal: ensure readable */
    .modal {
        padding: 20px 16px;
    }

    /* Footer: reduce spacing */
    .footer {
        padding: 40px 0 24px;
    }
}

/* -- Very small phones (max-width: 360px) -- */
@media (max-width: 360px) {

    /* Trust counters: compact layout */
    .trust-counter {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 4px;
    }

    .trust-counter-value {
        font-size: 20px;
    }

    .trust-counter-label {
        font-size: 11px;
    }

    /* Hero: tighter spacing */
    .hero {
        padding: 80px 12px 36px;
    }

    .hero-title {
        font-size: 22px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .hero-cta {
        margin-bottom: 32px;
    }

    /* Navigation: compact */
    .nav-container {
        padding: 10px 12px;
    }

    .logo-img {
        height: 26px;
    }

    /* Container: tighter gutters */
    .container {
        padding: 0 10px;
    }

    /* Section padding */
    .section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    /* Job card: compact */
    .job-card {
        padding: 14px;
    }

    .company-logo {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .job-title {
        font-size: 15px;
    }

    /* Buttons: compact */
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Step cards */
    .step-card {
        padding: 18px;
    }

    .step-icon {
        font-size: 32px;
    }

    .step-number {
        font-size: 36px;
    }

    /* Pricing */
    .pricing-card {
        padding: 20px 14px;
    }

    .price {
        font-size: 40px;
    }

    /* Modal */
    .modal {
        width: calc(100% - 16px);
        padding: 18px 14px;
    }

    .modal-title {
        font-size: 20px;
    }

    /* Footer */
    .footer-desc {
        font-size: 13px;
    }
}

/* -- Extra small (max-width: 320px) -- */
@media (max-width: 320px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .trust-counter {
        padding: 8px;
    }

    .trust-counter-value {
        font-size: 18px;
    }

    .company-logo {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .modal {
        width: calc(100% - 12px);
        padding: 16px 12px;
    }
}

/* =============================================
   Testimonials Section
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-thumbnail {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.blurred-preview {
    width: 100%;
    height: 100%;
    filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blurred-preview::after {
    content: '📋';
    font-size: 48px;
    filter: blur(0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.testimonial-content {
    padding: 20px;
    flex: 1;
    background: #ffffff;
}

.candidate-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.candidate-role {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.interview-company {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.interview-company strong {
    color: #1e293b;
}

.interview-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.rating-stars {
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-card .view-proof-btn {
    margin: 0 20px 20px 20px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
}

.testimonial-card .view-proof-btn:hover {
    background: var(--primary);
    color: white;
}

/* Testimonial Modal */
.testimonial-modal {
    max-width: 600px;
    padding: 0;
    overflow: hidden;
}

.testimonial-proof-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-proof-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.testimonial-quote {
    padding: 24px;
    background: #ffffff;
}

.testimonial-quote p {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    font-style: italic;
    position: relative;
    padding-left: 24px;
}

.testimonial-quote p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 48px;
    color: var(--primary);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-meta {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-meta #testimonialName {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.testimonial-meta #testimonialRole {
    font-size: 13px;
    color: #64748b;
}

/* Responsive Testimonials */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .testimonial-modal {
        max-width: 95%;
        margin: 20px;
    }

    .testimonial-proof-image {
        max-height: 300px;
    }
}

/* =============================================
   Video Guide Section
   ============================================= */
.video-guide-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(26, 115, 232, 0.03) 50%, var(--bg-primary) 100%);
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(26, 115, 232, 0.05);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.video-wrapper:hover {
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: var(--text-secondary);
}

.video-caption-icon {
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .video-wrapper {
        border-radius: var(--radius-md);
        margin: 0 8px;
    }

    .video-caption {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        margin: 0;
        border-radius: var(--radius-sm);
    }

    .video-caption {
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
    }
}

/* =============================================
   Hero Search & Job Categories - Mobile
   ============================================= */
@media (max-width: 768px) {
    .hero-search-bar {
        flex-direction: column;
        padding: 12px;
        gap: 0;
        max-width: 100%;
        /* CRITICAL FIX: Allow touch scrolling when swiping on the search bar area */
        touch-action: manipulation;
    }

    .hero-search-input-wrapper {
        padding: 12px;
        width: 100%;
    }

    .hero-location-wrapper {
        min-width: unset;
        width: 100%;
        border-top: 1px solid var(--border);
    }

    .hero-search-divider {
        display: none;
    }

    .hero-search-btn {
        width: 100%;
        margin-top: 8px;
        padding: 14px 24px !important;
        border-radius: 10px !important;
    }

    .hero-popular-tags {
        justify-content: center;
        font-size: 12px;
        margin-bottom: 24px;
    }

    .hero-search-suggestions {
        left: 0;
        right: 0;
    }

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

    .category-card {
        padding: 16px;
        gap: 12px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .category-info h3 {
        font-size: 13px;
    }

    .category-info p {
        font-size: 11px;
    }

    .category-arrow {
        display: none;
    }

    .job-categories-section {
        padding: 60px 0;
    }
}

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

    .category-card {
        gap: 14px;
    }

    .category-arrow {
        display: block;
    }
}

/* =============================================
   ATS Resume Builder Page
   ============================================= */

/* Main layout */
.ats-main {
    padding-top: 70px;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Hero */
.ats-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 60px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ats-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, .15) 0%, transparent 70%);
    pointer-events: none;
}

.ats-hero-content {
    position: relative;
    z-index: 1;
}

.ats-badge {
    display: inline-block;
    background: rgba(99, 102, 241, .15);
    color: #818cf8;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.ats-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.ats-hero-subtitle {
    font-size: 16px;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sections */
.ats-section {
    padding: 32px 0;
}

/* Cards */
.ats-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

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

/* Upload Area */
.ats-upload-card {
    max-width: 640px;
    margin: 0 auto;
}

.ats-upload-area {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
    transition: border-color .3s, background .3s;
    cursor: pointer;
}

.ats-upload-area:hover,
.ats-upload-area.ats-drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, .04);
}

.ats-upload-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.ats-upload-area h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ats-upload-area p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 18px;
}

.ats-upload-hint {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Upload Progress */
.ats-upload-progress {
    margin-top: 20px;
    text-align: center;
}

.ats-progress-bar {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ats-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 8px;
    transition: width .3s ease;
    width: 0%;
}

.ats-progress-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Score Row */
.ats-score-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

/* Score Gauge */
.ats-score-card {
    text-align: center;
}

.ats-score-gauge {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
}

.ats-gauge-svg {
    width: 100%;
    height: 100%;
}

.ats-gauge-circle {
    stroke: #6366f1;
    transition: stroke-dashoffset 1.5s ease-out;
}

.ats-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.ats-score-label {
    font-size: 15px;
    font-weight: 600;
}

/* Suggestions */
.ats-suggestions-card {
    display: flex;
    flex-direction: column;
}

.ats-suggestions-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 260px;
    padding-right: 8px;
}

.ats-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(99, 102, 241, .06);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.ats-suggestion-good {
    background: rgba(34, 197, 94, .08);
    color: #16a34a;
}

.ats-suggestion-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
}

.ats-suggestion-text {
    flex: 1;
}

.ats-fix-btn {
    flex-shrink: 0;
    padding: 4px 14px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    align-self: center;
}

.ats-fix-btn:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

/* Editor + Preview Row */
.ats-editor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Editor */
.ats-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ats-editor-header .ats-card-title {
    margin-bottom: 0;
}

.ats-editor-section {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}

.ats-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(99, 102, 241, .04);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: background .2s;
    user-select: none;
}

.ats-section-title:hover {
    background: rgba(99, 102, 241, .08);
}

.ats-section-toggle {
    font-size: 11px;
    color: var(--text-secondary);
    transition: transform .2s;
}

.ats-section-body {
    padding: 16px 18px;
}

/* Form Grid */
.ats-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ats-form-full {
    grid-column: 1 / -1;
}

.ats-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ats-form-group input,
.ats-form-group textarea,
.ats-section-body>textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s;
    box-sizing: border-box;
}

.ats-form-group input:focus,
.ats-form-group textarea:focus,
.ats-section-body>textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

/* Tags Input */
.ats-tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 44px;
    align-items: center;
}

.ats-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ats-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(139, 92, 246, .12));
    border: 1px solid rgba(99, 102, 241, .2);
    border-radius: 50px;
    font-size: 13px;
    color: #818cf8;
    font-weight: 500;
}

.ats-tag-remove {
    background: none;
    border: none;
    color: #818cf8;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.ats-tags-input input {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    padding: 4px;
}

/* Entry Cards */
.ats-entry-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(99, 102, 241, .02);
}

.ats-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.ats-entry-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.ats-add-btn {
    margin-top: 8px;
}

/* Preview Card */
.ats-preview-card {
    position: sticky;
    top: 90px;
}

.ats-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ats-preview-header .ats-card-title {
    margin-bottom: 0;
}

.ats-preview-frame {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px 28px;
    min-height: 400px;
    overflow-y: auto;
    max-height: 70vh;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.ats-preview-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.ats-preview-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

/* Preview Resume Styles */
.ats-preview-resume {
    font-family: 'Inter', 'Georgia', serif;
}

.ats-pv-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 14px;
}

.ats-pv-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.ats-pv-contact {
    font-size: 12px;
    color: #475569;
}

.ats-pv-contact a {
    color: #3b82f6;
    text-decoration: none;
}

.ats-pv-section {
    margin-bottom: 16px;
}

.ats-pv-section h2 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.ats-pv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ats-pv-skill {
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 12px;
    color: #334155;
}

.ats-pv-entry {
    margin-bottom: 10px;
    color: #334155;
    font-size: 13px;
}

.ats-pv-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ats-pv-dates {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.ats-pv-entry ul {
    margin: 4px 0 0 18px;
    padding: 0;
}

.ats-pv-entry li {
    margin-bottom: 3px;
}

/* Toast */
.ats-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    animation: atsToastIn .3s ease-out;
}

.ats-toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.ats-toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.ats-toast-info {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

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

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

/* ---- ATS Page Responsive ---- */
@media (max-width: 1024px) {
    .ats-editor-row {
        grid-template-columns: 1fr;
    }

    .ats-preview-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .ats-score-row {
        grid-template-columns: 1fr;
    }

    .ats-hero-title {
        font-size: 28px;
    }

    .ats-hero-subtitle {
        font-size: 14px;
    }

    .ats-form-grid {
        grid-template-columns: 1fr;
    }

    .ats-editor-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

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

@media (max-width: 480px) {
    .ats-hero {
        padding: 40px 0 28px;
    }

    .ats-hero-title {
        font-size: 24px;
    }

    .ats-card {
        padding: 18px;
        border-radius: 12px;
    }

    .ats-preview-frame {
        padding: 18px 14px;
    }

    .ats-upload-area {
        padding: 32px 16px;
    }
}