        .main-content {
            flex: 1;
            padding: 30px 0;
            background: linear-gradient(180deg, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
        }

        .navigation-bar {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            padding: 10px 18px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            transition: all 0.3s ease;
            font-family: 'Consolas', monospace;
            background: var(--background-light);
        }

        .back-link:hover {
            background: rgba(0, 212, 255, 0.1);
            border-color: var(--primary-color);
            transform: translateX(-5px);
        }

        .back-link svg {
            transition: transform 0.3s ease;
        }

        .back-link:hover svg {
            transform: translateX(-3px);
        }

        .breadcrumb {
            font-size: 14px;
            color: var(--text-secondary);
            font-family: 'Consolas', monospace;
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            overflow: hidden;
            max-width: 100%;
        }

        .breadcrumb a {
            color: var(--primary-color);
            text-decoration: none;
            transition: all 0.2s;
            padding: 4px 8px;
            border-radius: 4px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .breadcrumb a:hover {
            color: var(--primary-dark);
            background: rgba(0, 212, 255, 0.1);
        }

        .breadcrumb-separator {
            margin: 0 8px;
            color: var(--border-color);
            flex-shrink: 0;
        }

        .breadcrumb-job-name {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
        }

        .job-detail {
            border-radius: 12px;
        }

        .job-layout {
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 24px;
            margin-bottom: 24px;
        }

        .job-info-section {
            display: flex;
            flex-direction: column;
            gap: 18px;
            background: var(--background-light);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 36px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* Company Logo Section */
        .company-logo-section {
            background: var(--background-light);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .company-logo {
            max-width: 100%;
            max-height: 120px;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 8px;
        }

        .job-sidebar {
            display: flex;
            flex-direction: column;
            gap: 16px;
            position: sticky;
            top: 20px;
            align-self: start;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .job-sidebar .job-actions {
            margin: 0;
        }

        .job-sidebar .job-actions a {
            width: 100%;
            justify-content: center;
        }

        .quick-links {
            display: flex;
            flex-direction: row;
            gap: 8px;
            width: 100%;
        }

        .quick-link-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 16px;
            background: var(--code-bg);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            font-family: 'Consolas', monospace;
            transition: all 0.3s ease;
            flex: 1;
        }

        .quick-link-btn svg {
            stroke: var(--primary-color);
            transition: transform 0.3s ease;
        }

        .quick-link-btn:hover {
            border-color: var(--primary-color);
            background: rgba(0, 212, 255, 0.08);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
        }

        .quick-link-btn:hover svg {
            transform: scale(1.1);
        }

        .quick-link-btn:active {
            transform: translateY(0);
        }

        .job-top-grid {
            display: grid;
            grid-template-columns: 1fr minmax(240px, 320px);
            gap: 18px;
            align-items: start;
        }

        .job-header-wrapper {
            margin-bottom: 6px;
        }

        .job-header-badges {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .job-category-badge {
            display: inline-flex;
            align-items: center;
            padding: 8px 12px;
            background: #3db2cf;
            color: var(--secondary-color);
            border-radius: 8px;
            font-size: 11px;
            text-transform: uppercase;
            font-weight: 700;
            width: fit-content;
            letter-spacing: 1.1px;
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
            transition: all 0.3s ease;
        }

        .job-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 11px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

        .job-status-badge.active-badge {
            background: rgba(52, 199, 89, 0.15);
            color: var(--success-color);
            border: 2px solid var(--success-color);
        }

        .job-status-badge.active-badge:hover {
            background: rgba(52, 199, 89, 0.25);
            transform: translateY(-2px);
        }

        .job-status-badge.package-badge {
            background: rgba(255, 159, 10, 0.15);
            color: #FF9F0A;
            border: 2px solid #FF9F0A;
        }

        .job-status-badge.package-badge:hover {
            background: rgba(255, 159, 10, 0.25);
            transform: translateY(-2px);
        }

        /* Quick Stats Bar */
        .quick-stats-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 10px 0;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: var(--code-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: default;
        }

        .stat-item:hover {
            border-color: var(--primary-color);
            background: rgba(0, 212, 255, 0.08);
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 212, 255, 0.15);
        }

        .stat-icon {
            font-size: 20px;
            color: var(--primary-color);
            stroke: var(--primary-color);
            transition: transform 0.3s ease;
        }

        .stat-item:hover .stat-icon {
            transform: scale(1.15);
        }

        .stat-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
        }

        .job-title {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 8px 0 12px 0;
            font-family: 'Consolas', monospace;
            line-height: 1.2;
            background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .job-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 4px 0 10px 0;
        }

        .job-actions a {
            text-decoration: none;
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--border-color);
            color: var(--text-primary);
        }

        .btn-outline:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background: rgba(0, 212, 255, 0.08);
        }

        /* Job Stats Section (Sidebar) - Compact Version */
        .job-stats-section {
            padding: 10px 12px;
            background: var(--code-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-bottom: 12px;
        }

        .job-stats-grid {
            display: flex;
            gap: 8px;
            justify-content: space-between;
            align-items: center;
        }

        .job-stat-compact {
            display: flex;
            align-items: center;
            gap: 6px;
            flex: 1;
            min-width: 0;
        }

        .job-stat-icon-compact {
            flex-shrink: 0;
            stroke: var(--primary-color);
            opacity: 0.8;
        }

        .job-stat-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

        .job-stat-value-compact {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .job-stat-label-compact {
            font-size: 9px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.3px;
            font-family: 'Consolas', monospace;
            white-space: nowrap;
        }

        /* Compensation Section */
        .compensation-section {
            padding: 18px;
            border: 2px solid var(--border-color);
            background: var(--code-bg);
            border-radius: 10px;
            overflow: hidden;
        }

        .compensation-section.compact {
            border-width: 1px;
            padding: 14px;
        }

        .compensation-section .section-title {
            color: var(--primary-color);
            font-size: 16px;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .compensation-section .section-title::before {
            content: "";
        }

        .contract-options-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .contract-option {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: start;
            column-gap: 12px;
            row-gap: 8px;
            padding: 12px 14px;
            background: var(--background-light);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .contract-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--primary-color);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .contract-option:hover {
            border-color: var(--primary-color);
            box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
            transform: translateY(-2px);
        }

        .contract-option:hover::before {
            transform: scaleY(1);
        }

        .contract-type-badge {
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            white-space: nowrap;
            transition: all 0.3s ease;
        }

        .contract-salary {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
            width: 100%;
        }

        .contract-salary-amount {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
            word-break: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        .contract-salary-subtitle {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.6px;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .contract-tax-badge {
            padding: 4px 8px;
            background: var(--background-light);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 10px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .no-contracts-message {
            padding: 14px;
            background: var(--background-light);
            border: 1px dashed var(--border-color);
            border-radius: 10px;
            text-align: center;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }

        .no-contracts-message::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
            transform: translate(-50%, -50%);
        }

        .applicants-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 8px 16px;
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid var(--primary-color);
            border-radius: 20px;
            color: var(--primary-color);
            font-size: 14px;
            font-weight: 600;
            margin-top: 15px;
        }

        .job-description {
            font-size: 15px;
            line-height: 1.7;
            color: var(--text-primary);
            padding: 16px 0;
        }

        .job-description p {
            white-space: pre-line;
            margin-bottom: 15px;
        }

        /* Mobile expandable content */
        .expandable-content {
            position: relative;
        }

        .expandable-content.collapsed {
            max-height: 400px;
            overflow: hidden;
        }

        .expandable-content.collapsed::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(to bottom, transparent, var(--background-light));
            pointer-events: none;
        }

        .expand-toggle {
            display: none;
            margin: 16px auto 0;
            padding: 12px 24px;
            background: var(--primary-color);
            color: var(--secondary-color);
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: 'Consolas', monospace;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 300px;
        }

        .expand-toggle:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
        }

        .expand-toggle svg {
            transition: transform 0.3s ease;
            margin-left: 8px;
        }

        .expand-toggle.expanded svg {
            transform: rotate(180deg);
        }

        /* Rich text formatting styles for job description content */
        .job-description-content {
            font-size: 15px;
            line-height: 1.7;
            color: var(--text-primary);
        }

        .job-description-content h1,
        .job-description-content h2,
        .job-description-content h3 {
            color: var(--text-primary);
            font-weight: 700;
            margin-top: 20px;
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .job-description-content h1 {
            font-size: 24px;
        }

        .job-description-content h2 {
            font-size: 20px;
        }

        .job-description-content h3 {
            font-size: 18px;
        }

        .job-description-content p {
            margin-bottom: 15px;
            line-height: 1.7;
        }

        .job-description-content strong,
        .job-description-content b {
            font-weight: 700;
            color: var(--text-primary);
        }

        .job-description-content em,
        .job-description-content i {
            font-style: italic;
        }

        .job-description-content u {
            text-decoration: underline;
        }

        .job-description-content ul,
        .job-description-content ol {
            margin-left: 20px;
            margin-bottom: 15px;
            padding-left: 10px;
        }

        .job-description-content ul li,
        .job-description-content ol li {
            margin-bottom: 8px;
            line-height: 1.6;
        }

        .job-description-content ul {
            list-style-type: disc;
        }

        .job-description-content ol {
            list-style-type: decimal;
        }

        .job-description-content a {
            color: var(--primary-color);
            text-decoration: underline;
            transition: color 0.2s ease;
        }

        .job-description-content a:hover {
            color: var(--primary-dark);
        }

        .job-description-content br {
            line-height: 1.7;
        }

        /* Ensure first element has no top margin */
        .job-description-content > *:first-child {
            margin-top: 0;
        }

        /* Ensure last element has no bottom margin */
        .job-description-content > *:last-child {
            margin-bottom: 0;
        }

        .bonus-content {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .bonus-amount {
            font-size: 16px;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
            padding: 12px 16px;
            background: var(--code-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            border-left: 4px solid var(--success-color);
        }

        .bonus-amount strong {
            color: var(--success-color);
        }

        .bonus-description {
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-primary);
        }

        /* Hide empty paragraphs with only br tags */
        .bonus-description p:empty,
        .bonus-description p:has(> br:only-child) {
            display: none;
        }

        /* Benefits Grid - 3 Column Layout */
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 12px;
        }

        .benefit-card {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(52, 199, 89, 0.04) 100%);
            border: 1px solid var(--border-color);
            border-left: 3px solid var(--primary-color);
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .benefit-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .benefit-card:hover {
            border-color: var(--primary-color);
            border-left-color: var(--success-color);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 212, 255, 0.15);
        }

        .benefit-card:hover::before {
            opacity: 1;
        }

        .benefit-icon {
            flex-shrink: 0;
            stroke: var(--success-color);
            margin-top: 2px;
            transition: transform 0.3s ease;
            z-index: 1;
        }

        .benefit-card:hover .benefit-icon {
            transform: scale(1.2);
        }

        .benefit-text {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.5;
            font-family: 'Consolas', monospace;
            z-index: 1;
        }

        .job-description h3 {
            color: var(--primary-color);
            margin-bottom: 12px;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .job-section {
            padding: 12px 0;
        }

        .job-section + .job-section {
            border-top: 1px solid var(--border-color);
        }

        .job-section h2:not(.section-title):not(.buy-now-title):not(.apply-title),
        .job-section h3:not(.section-title):not(.buy-now-title) {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Key Details Section - New Design (Optimized for Space) */
        .key-details-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: flex-start; /* Align to top */
        }

        .detail-group {
            background: var(--code-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 12px 14px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            /* Default: all groups are equal */
            flex: 1 1 280px;
            min-width: 280px;
            max-width: 100%;
        }

        /* Modern browsers with :has() support - dynamic sizing based on content */
        @supports (selector(:has(*))) {
            /* Groups with only 1 item are more compact */
            .detail-group:has(.detail-items > .detail-item:only-child),
            .detail-group:has(.detail-items > .detail-item.detail-item-full:only-child) {
                flex-grow: 0.4;
            }

            /* Groups with 2 items are medium sized */
            .detail-group:has(.detail-items > .detail-item:nth-child(2):last-child) {
                flex-grow: 0.7;
                flex-basis: 260px;
                min-width: 260px;
            }

            /* Groups with 3+ items grow normally */
            .detail-group:has(.detail-items > .detail-item:nth-child(3)) {
                flex-grow: 1;
                flex-basis: 300px;
                min-width: 280px;
            }

            /* Highlight group (referral benefits) is more prominent */
            .detail-group-highlight {
                flex-grow: 1.2;
                flex-basis: 320px;
            }
        }

        /* Fallback for older browsers - use order to arrange */
        @supports not (selector(:has(*))) {
            /* In older browsers, all groups will be equal size */
            .detail-group {
                flex: 1 1 calc(50% - 6px);
                min-width: 280px;
            }
        }

        .detail-group::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: var(--primary-color);
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 0.3s ease;
        }

        .detail-group:hover {
            border-color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
        }

        .detail-group:hover::before {
            transform: scaleY(1);
        }

        .detail-group-highlight {
            background: linear-gradient(135deg, rgba(52, 199, 89, 0.04) 0%, rgba(0, 212, 255, 0.04) 100%);
            border-color: rgba(52, 199, 89, 0.3);
        }

        .detail-group-highlight::before {
            background: linear-gradient(180deg, var(--success-color) 0%, var(--primary-color) 100%);
        }

        .detail-group-highlight:hover {
            border-color: var(--success-color);
            box-shadow: 0 4px 12px rgba(52, 199, 89, 0.12);
        }

        .detail-group-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 700;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 10px;
            font-family: 'Consolas', monospace;
        }

        .detail-group-highlight .detail-group-title {
            color: var(--success-color);
        }

        .detail-group-icon {
            stroke: var(--primary-color);
            flex-shrink: 0;
            transition: transform 0.3s ease;
            width: 16px;
            height: 16px;
        }

        .detail-group-highlight .detail-group-icon {
            stroke: var(--success-color);
        }

        .detail-group:hover .detail-group-icon {
            transform: scale(1.1);
        }

        .detail-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 6px 8px;
            background: var(--background-light);
            border-radius: 6px;
            border: 1px solid transparent;
            transition: all 0.2s ease;
        }

        .detail-item:hover {
            border-color: rgba(0, 212, 255, 0.3);
            background: rgba(0, 212, 255, 0.03);
        }

        .detail-item-full {
            grid-column: 1 / -1;
        }

        /* Company Header with Logo */
        .company-header-item {
            padding: 12px;
        }

        .company-header-content {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .company-logo-compact {
            flex-shrink: 0;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--background);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 6px;
            overflow: hidden;
        }

        .company-logo-img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        .company-name-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        .company-header-item .detail-label {
            font-size: 10px;
        }

        .company-header-item .detail-value {
            font-size: 14px;
        }

        .company-header-item:hover .company-logo-compact {
            border-color: rgba(0, 212, 255, 0.4);
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.15);
        }


        .detail-label {
            font-size: 10px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.6px;
            font-weight: 600;
            font-family: 'Consolas', monospace;
            line-height: 1.2;
        }

        .detail-value {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
            line-height: 1.4;
        }

        .detail-value-link {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .detail-value-with-logo {
            display: block !important;
        }

        .company-info-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .company-logo-detail {
            width: 48px;
            height: 48px;
            object-fit: contain;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: var(--background-light);
            padding: 4px;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .company-logo-detail:hover {
            border-color: var(--primary-color);
            transform: scale(1.05);
        }

        .company-links {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            min-width: 0;
        }

        .detail-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
        }

        .detail-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .detail-link-linkedin {
            color: #0077B5;
        }

        .detail-link-linkedin:hover {
            color: #005885;
        }

        .detail-link-linkedin svg {
            flex-shrink: 0;
            width: 14px;
            height: 14px;
        }

        .detail-sublink {
            font-size: 11px;
            color: var(--text-secondary);
            text-decoration: none;
            word-break: break-all;
            transition: color 0.2s ease;
            line-height: 1.3;
        }

        .detail-sublink:hover {
            color: var(--primary-color);
        }

        .detail-badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 5px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            width: fit-content;
            line-height: 1.3;
        }

        .detail-badge-primary {
            background: rgba(0, 212, 255, 0.12);
            color: var(--primary-color);
            border: 1px solid rgba(0, 212, 255, 0.3);
        }

        .detail-badge-success {
            background: rgba(52, 199, 89, 0.12);
            color: var(--success-color);
            border: 1px solid rgba(52, 199, 89, 0.3);
        }

        .detail-badge-info {
            background: rgba(255, 159, 10, 0.12);
            color: #FF9F0A;
            border: 1px solid rgba(255, 159, 10, 0.3);
        }

        .detail-value-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .detail-tag {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            background: var(--background-light);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            transition: all 0.2s ease;
            line-height: 1.3;
        }

        .detail-tag svg {
            stroke: var(--primary-color);
            flex-shrink: 0;
            width: 11px;
            height: 11px;
        }

        .detail-tag:hover {
            border-color: var(--primary-color);
            background: rgba(0, 212, 255, 0.06);
        }

        .detail-perk {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            background: rgba(52, 199, 89, 0.06);
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            border: 1px solid rgba(52, 199, 89, 0.2);
            transition: all 0.2s ease;
            line-height: 1.3;
        }

        .detail-perk svg {
            stroke: var(--success-color);
            flex-shrink: 0;
            width: 14px;
            height: 14px;
        }

        .detail-perk:hover {
            background: rgba(52, 199, 89, 0.12);
            border-color: var(--success-color);
        }

        /* Legacy styles - kept for compatibility */
        .job-meta {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            padding: 18px;
            background: var(--code-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
        }

        .job-meta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--success-color) 100%);
        }

        .meta-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 10px;
            background: var(--background-light);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .meta-label {
            font-size: 10px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .meta-value {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
        }

        .meta-value-multiline {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.5;
            white-space: pre-line;
        }

        .meta-line {
            display: block;
        }

        .meta-link {
            color: var(--primary-color);
            text-decoration: none;
        }

        .meta-link:hover {
            text-decoration: underline;
        }

        .meta-sub-link {
            color: var(--text-secondary);
            font-size: 12px;
            text-decoration: none;
        }

        .meta-sub-link:hover {
            color: var(--primary-color);
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 20px 0;
        }

        .quantity-label {
            font-weight: 600;
            font-size: 16px;
            color: var(--text-primary);
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            overflow: hidden;
            background: var(--code-bg);
        }

        .quantity-btn {
            padding: 10px 20px;
            background: var(--background-light);
            border: none;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            color: var(--primary-color);
            transition: all 0.3s;
            font-family: 'Consolas', monospace;
        }

        .quantity-btn:hover {
            background: var(--primary-color);
            color: var(--secondary-color);
        }

        .quantity-input {
            width: 60px;
            text-align: center;
            border: none;
            font-size: 16px;
            font-weight: 600;
            padding: 10px;
            background: var(--code-bg);
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .btn-large {
            padding: 12px 22px;
            border: 2px solid transparent;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            flex: 1;
            font-family: 'Consolas', monospace;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            position: relative;
            overflow: hidden;
        }

        .btn-large::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn-large:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-large.btn-primary {
            background: #3db2cf;
            color: var(--secondary-color);
            border-color: #3db2cf;
            box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
        }

        .btn-large.btn-primary:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
        }

        .btn-large.btn-secondary {
            background: #3db2cf;
            color: var(--secondary-color);
            border-color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
        }

        .btn-large.btn-secondary:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
        }

        .btn-large:disabled {
            background: var(--code-bg);
            color: var(--text-secondary);
            border-color: var(--border-color);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-large:disabled::before {
            display: none;
        }

        .success-message {
            padding: 15px 20px;
            background: rgba(0, 255, 136, 0.1);
            color: var(--success-color);
            border: 2px solid var(--success-color);
            border-radius: 6px;
            margin-top: 20px;
            display: none;
            font-family: 'Consolas', monospace;
            font-weight: 600;
        }

        .success-message.show {
            display: block;
            animation: slideIn 0.3s ease-out;
        }

        .error-message {
            padding: 15px 20px;
            background: rgba(255, 71, 87, 0.1);
            color: var(--error-color);
            border: 2px solid var(--error-color);
            border-radius: 6px;
            margin-top: 20px;
            display: none;
            font-family: 'Consolas', monospace;
            font-weight: 600;
        }

        .error-message.show {
            display: block;
            animation: slideIn 0.3s ease-out;
        }

        .applicants-badge {
            padding: 8px 16px;
            background: rgba(0, 212, 255, 0.1);
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            border-radius: 4px;
            font-weight: 600;
            font-family: 'Consolas', monospace;
            font-size: 13px;
        }

        .buy-now-section {
            padding: 24px;
            background: linear-gradient(135deg, var(--code-bg) 0%, rgba(0, 212, 255, 0.05) 100%);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            margin-top: 20px;
            position: relative;
            overflow: hidden;
        }

        .buy-now-title {
            color: var(--primary-color);
            font-size: 18px;
            margin-bottom: 18px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .form-group label {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .form-group input {
            padding: 14px 18px;
            background: var(--background-light);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            background: var(--code-bg);
            box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
        }

        .form-group input::placeholder {
            color: var(--text-secondary);
            opacity: 0.6;
        }

        .company-info-jdp {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background: var(--code-bg);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .company-info-jdp::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--primary-color);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .company-info-jdp:hover {
            border-color: var(--primary-color);
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
        }

        .company-info-jdp:hover::before {
            transform: scaleY(1);
        }

        .company-logo-small {
            width: 70px;
            height: 70px;
            object-fit: contain;
            border-radius: 8px;
            border: 2px solid var(--border-color);
            background: var(--background-light);
            padding: 8px;
            transition: all 0.3s ease;
        }

        .company-info-jdp:hover .company-logo-small {
            transform: scale(1.05);
            border-color: var(--primary-color);
        }

        .company-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .company-link {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
            font-family: 'Consolas', monospace;
            transition: all 0.3s ease;
        }

        .company-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
            transform: translateX(5px);
        }

        .company-website {
            font-size: 14px;
            color: var(--text-secondary);
            font-family: 'Consolas', monospace;
        }

        /* Job Image Section */
        .job-image-section {
            margin: 20px 0;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid var(--border-color);
        }

        .job-main-image {
            width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: cover;
            display: block;
        }

        /* Legacy Salary Display */
        .legacy-salary-display {
            padding: 12px;
            background: var(--background-light);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            text-align: center;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .salary-amount {
            font-size: 18px;
            font-weight: bold;
            color: var(--success-color);
            font-family: 'Consolas', monospace;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .salary-period {
            font-size: 12px;
            color: var(--text-secondary);
            margin-left: 5px;
        }

        /* Utility Classes */
        .flex-column {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mt-10 {
            margin-top: 10px;
        }

        .mt-20 {
            margin-top: 20px;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        .location-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            background: var(--code-bg);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .location-item:hover {
            border-color: var(--primary-color);
            background: rgba(0, 212, 255, 0.05);
            transform: translateX(5px);
        }

        .location-icon {
            font-size: 20px;
        }

        .location-text {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
        }

        .btn-full-width {
            width: 100%;
        }

        .buy-now-title {
            color: var(--primary-color);
            font-size: 18px;
            margin-bottom: 18px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Add smooth page load animations */
        .job-detail {
            animation: fadeIn 0.6s ease-out;
        }

        .job-title {
            animation: slideUp 0.7s ease-out 0.1s both;
        }

        .quick-stats-bar .stat-item {
            animation: slideUp 0.6s ease-out both;
        }

        .quick-stats-bar .stat-item:nth-child(1) { animation-delay: 0.2s; }
        .quick-stats-bar .stat-item:nth-child(2) { animation-delay: 0.3s; }
        .quick-stats-bar .stat-item:nth-child(3) { animation-delay: 0.4s; }
        .quick-stats-bar .stat-item:nth-child(4) { animation-delay: 0.5s; }
        .quick-stats-bar .stat-item:nth-child(5) { animation-delay: 0.6s; }
        .quick-stats-bar .stat-item:nth-child(6) { animation-delay: 0.7s; }

        .contract-option {
            animation: slideUp 0.6s ease-out both;
        }

        .contract-option:nth-child(1) { animation-delay: 0.3s; }
        .contract-option:nth-child(2) { animation-delay: 0.4s; }
        .contract-option:nth-child(3) { animation-delay: 0.5s; }

        /* ==========================================
           Mobile-Specific Enhancements
           ========================================== */

        /* Ensure smooth scrolling on mobile */
        html {
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        /* Better touch target sizes */
        @media (pointer: coarse) {
            .main-content a, .main-content button, .main-content input, .main-content textarea, .main-content select {
                min-height: 44px;
            }
        }

        /* Apply Section Styles - Desktop */
        .apply-section {
            background: var(--background-light);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 32px 36px;
            margin-top: 24px;
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .apply-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, var(--primary-color) 0%, var(--success-color) 100%);
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 0.3s ease;
        }

        .apply-section:hover::before {
            transform: scaleY(1);
        }

        .apply-section:hover {
            border-color: var(--primary-color);
            box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
        }

        .apply-container {
            max-width: 100%;
        }

        .apply-title {
            color: var(--primary-color);
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 24px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: 'Consolas', monospace;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .apply-title::before {
            content: '>';
            color: var(--success-color);
            font-size: 24px;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .apply-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group-compact {
            margin-bottom: 0;
        }

        .form-label {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-family: 'Consolas', monospace;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .form-label .required {
            color: var(--error-color);
        }

        .form-label .optional {
            color: var(--text-secondary);
            font-size: 11px;
            text-transform: lowercase;
            font-weight: 500;
        }

        .form-input,
        .form-textarea {
            padding: 14px 16px;
            background: var(--code-bg);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-family: 'Consolas', monospace;
            font-size: 14px;
            transition: all 0.3s ease;
            width: 100%;
        }

        .form-input:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            background: var(--background-light);
            box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
        }

        .form-input::placeholder,
        .form-textarea::placeholder {
            color: var(--text-secondary);
            opacity: 0.6;
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
            font-family: 'Consolas', monospace;
            line-height: 1.6;
        }

        .file-input-wrapper {
            position: relative;
        }

        .form-input-file {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .file-input-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 20px;
            background: var(--code-bg);
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .file-input-label:hover {
            border-color: var(--primary-color);
            background: rgba(0, 212, 255, 0.05);
        }

        .file-input-label svg {
            stroke: var(--primary-color);
            transition: transform 0.3s ease;
        }

        .file-input-label:hover svg {
            transform: translateY(-3px);
        }

        .file-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
        }

        .file-hint {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .char-counter {
            font-size: 11px;
            color: var(--text-secondary);
            text-align: right;
            font-family: 'Consolas', monospace;
        }

        .salary-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .salary-currency {
            position: absolute;
            right: 16px;
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
            pointer-events: none;
            font-family: 'Consolas', monospace;
        }

        .form-hint {
            font-size: 12px;
            color: var(--text-secondary);
            font-family: 'Consolas', monospace;
            margin-top: 4px;
        }

        .form-error {
            font-size: 12px;
            color: var(--error-color);
            font-family: 'Consolas', monospace;
            margin-top: 4px;
        }

        .form-actions {
            margin-top: 8px;
            padding-top: 20px;
            border-top: 2px solid var(--border-color);
        }

        .gdpr-notice,
        .privacy-notice {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 14px 16px;
            background: rgba(0, 212, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-top: 16px;
        }

        .gdpr-notice svg,
        .privacy-notice svg {
            flex-shrink: 0;
            stroke: var(--primary-color);
            width: 16px;
            height: 16px;
        }

        .gdpr-notice a,
        .privacy-notice a {
            color: var(--primary-color);
            text-decoration: underline;
            transition: color 0.2s ease;
        }

        .gdpr-notice a:hover,
        .privacy-notice a:hover {
            color: var(--primary-dark);
        }

        .alert {
            padding: 14px 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Consolas', monospace;
            font-weight: 600;
            font-size: 14px;
        }

        .alert-success {
            background: rgba(52, 199, 89, 0.1);
            color: var(--success-color);
            border: 2px solid var(--success-color);
        }

        .alert-error {
            background: rgba(255, 71, 87, 0.1);
            color: var(--error-color);
            border: 2px solid var(--error-color);
        }

        .alert svg {
            flex-shrink: 0;
        }

        /* Prevent text size adjust on orientation change */
        @media screen and (max-width: 768px) {
            html {
                -webkit-text-size-adjust: 100%;
                -moz-text-size-adjust: 100%;
                -ms-text-size-adjust: 100%;
                text-size-adjust: 100%;
            }
        }

        @media (max-width: 1100px) {
            .job-layout {
                grid-template-columns: 1fr 300px;
                gap: 20px;
            }

            .job-top-grid {
                grid-template-columns: 1fr;
            }

            .job-meta {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            /* Benefits Grid - 2 columns on tablet */
            .benefits-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 16px 0 100px 0; /* Add bottom padding for sticky footer */
            }

            .main-content .container {
                overflow-x: clip;
            }

            .navigation-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                margin-bottom: 16px;
            }

            /* Hide breadcrumb on mobile */
            .breadcrumb {
                display: none;
            }

            .job-detail {
                padding: 0;
                border-radius: 12px;
            }

            .job-info-section {
                padding: 14px 14px;
                gap: 14px;
                border-radius: 12px 12px 0 0;
                margin: 0;
            }

            .job-layout {
                grid-template-columns: 1fr;
                gap: 0;
                margin: 0 -16px; /* Extend to screen edges */
                display: flex;
                flex-direction: column;
            }

            /* Move job-sidebar after quick-stats-bar */
            .job-info-section {
                order: 2;
            }

            .job-sidebar {
                position: static;
                order: 1; /* Place sidebar after quick-stats-bar but before main content */
                background: var(--background-light);
                border: none;
                border-top: 2px solid var(--border-color);
                border-bottom: 2px solid var(--border-color);
                border-radius: 0;
                padding: 16px;/* Extend to screen edges - full width */
                box-shadow: none;
                display: flex;
                flex-direction: column;
                gap: 12px;
                width: 100%; /* Compensate for negative margins */
            }

            /* Company logo section on mobile */
            .company-logo-section {
                padding: 16px;
                margin-bottom: 0;
            }

            .company-logo {
                max-height: 80px;
            }

            /* Show compensation section normally on mobile */
            .job-sidebar .compensation-section {
                display: block;
                border: 2px solid var(--border-color);
                background: var(--code-bg);
                padding: 14px;
                margin: 0;
                border-radius: 10px;
                box-shadow: 0 2px 8px rgba(0, 212, 255, 0.08);
            }

            .job-sidebar .compensation-section .section-title {
                display: block;
                font-size: 14px;
                font-weight: 700;
                margin-bottom: 10px;
                color: var(--primary-color);
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

            .job-sidebar .contract-options-container {
                display: flex;
            }

            /* Hide job-actions and quick-links on mobile */
            .job-sidebar .job-actions {
                display: none;
            }

            .job-sidebar .quick-links {
                display: none;
            }

            .job-title {
                font-size: 24px;
                line-height: 1.35;
                margin-bottom: 12px;
                word-break: break-word;
                font-weight: 700;
            }

            /* Compensation Section Mobile Fixes */
            .compensation-section {
                padding: 16px;
                margin-bottom: 0;
                display: none; /* Hide in sidebar on mobile since we'll show in sticky footer */
            }

            .compensation-section.compact {
                padding: 0;
                background: transparent;
                border: none;
            }

            .compensation-section .section-title {
                font-size: 14px;
                margin-bottom: 8px;
                font-weight: 700;
            }

            .contract-options-container {
                gap: 10px;
            }

            .contract-option {
                grid-template-columns: 1fr;
                align-items: flex-start;
                gap: 8px;
                padding: 14px 12px;
                border-radius: 8px;
            }

            .contract-option:hover {
                transform: none;
                box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
            }

            .contract-salary {
                font-size: 16px;
                display: flex;
                flex-direction: column;
                gap: 4px;
                width: 100%;
            }

            .contract-salary-amount {
                font-size: 18px;
                font-weight: 700;
                line-height: 1.3;
                word-break: break-word;
                overflow-wrap: break-word;
                color: var(--primary-color);
            }

            .contract-salary-subtitle {
                font-size: 12px;
                line-height: 1.4;
                word-break: break-word;
                overflow-wrap: break-word;
                color: var(--text-secondary);
            }

            /* Legacy salary display */
            .legacy-salary-display {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .salary-amount {
                font-size: 20px;
                font-weight: 700;
                line-height: 1.3;
                word-break: break-word;
            }

            .salary-period {
                font-size: 13px;
                color: var(--text-secondary);
            }

            .no-contracts-message {
                padding: 12px;
                font-size: 13px;
            }

            /* Contract type badge mobile */
            .contract-type-badge {
                padding: 5px 8px;
                font-size: 10px;
            }

            /* Job actions */
            .job-actions {
                margin: 0;
                padding: 0;
            }

            .job-actions a {
                font-size: 16px;
                padding: 14px 24px;
                width: 100%;
                text-align: center;
                border-radius: 8px;
                font-weight: 600;
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 48px; /* Better touch target */
            }

            /* Job Stats Section Mobile - HORIZONTAL IN ONE ROW */
            .job-stats-section {
                display: block; /* Show it on mobile */
                padding: 0;
                margin: 0 0 14px 0;
                background: transparent;
                border: none;
            }

            .job-stats-grid {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap; /* Force one row */
                gap: 8px;
                align-items: center;
                justify-content: flex-start;
                overflow-x: auto; /* Scroll if needed */
                -webkit-overflow-scrolling: touch;
                padding-bottom: 6px; /* Space for scrollbar */
            }

            .job-stat-compact {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 5px;
                padding: 8px 10px;
                flex: 0 0 auto; /* Don't grow or shrink, auto width */
                min-width: fit-content;
                background: rgba(0, 212, 255, 0.08);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                white-space: nowrap;
                transition: all 0.2s ease;
            }

            .job-stat-icon-compact {
                width: 15px;
                height: 15px;
                flex-shrink: 0;
                stroke: var(--primary-color);
            }

            .job-stat-text {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

            .job-stat-value-compact {
                font-size: 12px;
                font-weight: 700;
                line-height: 1.2;
                color: var(--text-primary);
            }

            .job-stat-label-compact {
                font-size: 9px;
                text-transform: uppercase;
                letter-spacing: 0.4px;
                line-height: 1;
                color: var(--text-secondary);
            }

            /* Apply Form Mobile Optimizations */
            .apply-section {
                padding: 20px 16px;
                margin: 16px -16px 16px -16px; /* Full width on mobile */
                border-radius: 0;
                border-left: none;
                border-right: none;
                box-shadow: none;
                background: var(--background-light);
            }

            .apply-section::before {
                width: 3px;
            }

            .apply-container {
                padding: 0;
            }

            .apply-title {
                font-size: 20px;
                margin-bottom: 16px;
                line-height: 1.3;
                letter-spacing: 0.5px;
            }

            .apply-title::before {
                font-size: 22px;
            }

            .apply-form {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }

            /* Keep first name and last name in one row on mobile */
            .form-row {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-bottom: 0;
            }

            .form-group {
                gap: 6px;
                margin-bottom: 0;
            }

            .form-label {
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.5px;
                line-height: 1.3;
            }

            .form-input,
            .form-textarea {
                padding: 12px 14px;
                font-size: 14px;
                border-radius: 8px;
                min-height: 46px;
            }

            .form-textarea {
                min-height: 110px;
                resize: vertical;
                line-height: 1.5;
            }

            .form-hint {
                font-size: 11px;
                margin-top: 4px;
                line-height: 1.4;
            }

            .char-counter {
                font-size: 11px;
                margin-top: 6px;
            }

            .file-input-label {
                padding: 16px 12px;
                font-size: 13px;
                gap: 6px;
            }

            .file-name {
                font-size: 13px;
                font-weight: 600;
            }

            .file-hint {
                font-size: 11px;
            }

            .salary-input-wrapper {
                position: relative;
            }

            .salary-currency {
                position: absolute;
                right: 14px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 13px;
                font-weight: 700;
                color: var(--text-secondary);
                pointer-events: none;
            }

            .form-actions {
                margin-top: 20px;
                padding-top: 16px;
                border-top: 2px solid var(--border-color);
            }

            .btn-large {
                padding: 14px 24px;
                font-size: 15px;
                min-height: 50px;
                border-radius: 8px;
                font-weight: 700;
            }

            .gdpr-notice,
            .privacy-notice {
                padding: 12px 14px;
                font-size: 11px;
                margin-top: 14px;
                line-height: 1.5;
                gap: 8px;
            }

            .gdpr-notice svg,
            .privacy-notice svg {
                width: 14px;
                height: 14px;
                flex-shrink: 0;
            }

            .alert {
                padding: 12px 14px;
                font-size: 13px;
                gap: 8px;
                margin-bottom: 16px;
            }
                font-size: 13px;
                border-radius: 6px;
                margin-bottom: 12px;
            }

            .alert svg {
                width: 16px;
                height: 16px;
            }
        }

        /* Extra small mobile devices */
        @media (max-width: 480px) {
            .main-content .container {
                padding: 0 16px;
            }

            .job-title {
                font-size: 20px;
                line-height: 1.4;
            }

            .job-info-section {
                padding: 12px;
                gap: 12px;
            }

            .compensation-section {
                padding: 14px;
            }

            .contract-salary-amount {
                font-size: 16px;
                font-weight: 700;
            }

            .contract-salary-subtitle {
                font-size: 11px;
            }

            .salary-amount {
                font-size: 17px;
            }

            .stat-item {
                padding: 7px 9px;
                font-size: 11px;
                flex: 1 1 100%;
                min-height: 38px;
            }

            .stat-label {
                font-size: 10px;
            }

            .quick-stats-bar {
                gap: 5px;
                padding: 6px 0;
            }

            .job-meta {
                padding: 14px;
                gap: 10px;
            }

            .meta-item {
                padding: 10px;
            }

            .meta-label {
                font-size: 9px;
            }

            .meta-value {
                font-size: 12px;
            }

            .quick-link-btn {
                padding: 12px 14px;
                font-size: 13px;
            }

            .job-actions a {
                font-size: 15px;
                padding: 12px 18px;
            }

            .breadcrumb {
                font-size: 11px;
            }

            .job-section {
                padding: 12px 0;
            }

            .job-description {
                font-size: 13px;
                padding: 10px 0;
            }

            .compensation-section .section-title {
                font-size: 13px;
            }

            .job-section h2:not(.section-title):not(.buy-now-title):not(.apply-title),
            .job-section h3:not(.section-title):not(.buy-now-title) {
                font-size: 14px;
                margin-bottom: 8px;
            }

            /* Key Details Mobile Styles - Extra Compact */
            .key-details-grid {
                flex-direction: column;
                gap: 6px;
            }

            .detail-group {
                padding: 8px 10px;
                flex: 1 1 auto;
                min-width: 100%;
                max-width: 100%;
            }

            /* Reset all flex properties on mobile */
            .detail-group:has(.detail-items > .detail-item:only-child),
            .detail-group:has(.detail-items > .detail-item:nth-child(2):last-child),
            .detail-group:has(.detail-items > .detail-item:nth-child(3)),
            .detail-group-highlight {
                flex-grow: 1;
                flex-basis: auto;
                min-width: 100%;
            }

            .detail-group:hover {
                transform: none;
            }

            .detail-group-title {
                font-size: 11px;
                margin-bottom: 6px;
            }

            .detail-items {
                gap: 5px;
            }

            .detail-item {
                padding: 5px 7px;
            }

            .detail-item:hover {
                transform: none;
            }

            /* Company Header Mobile Styles */
            .company-header-item {
                padding: 10px;
            }

            .company-header-content {
                gap: 10px;
            }

            .company-logo-compact {
                width: 48px;
                height: 48px;
                padding: 5px;
            }

            .company-header-item .detail-value {
                font-size: 13px;
            }

            .detail-label {
                font-size: 9px;
            }

            .detail-value {
                font-size: 11px;
            }

            .detail-badge {
                font-size: 9px;
                padding: 2px 6px;
            }

            .detail-tag {
                padding: 4px 7px;
                font-size: 10px;
            }

            .detail-tag:hover {
                transform: none;
            }

            .detail-perk {
                padding: 6px 8px;
                font-size: 11px;
            }

            .detail-perk:hover {
                transform: none;
            }

            .detail-link-linkedin svg {
                width: 12px;
                height: 12px;
            }

            /* Company logo mobile styles */
            .company-info-container {
                gap: 8px;
            }

            .company-logo-detail {
                width: 40px;
                height: 40px;
            }

            .company-links {
                gap: 2px;
            }

            .detail-tag svg {
                width: 10px;
                height: 10px;
            }

            .detail-perk svg {
                width: 12px;
                height: 12px;
            }

            /* Apply Form Extra Small Mobile */
            .apply-section {
                padding: 12px;
            }

            .apply-title {
                font-size: 16px;
                margin-bottom: 10px;
            }

            .form-label {
                font-size: 11px;
            }

            .form-input,
            .form-textarea {
                padding: 9px 11px;
                font-size: 13px;
            }

            .form-textarea {
                min-height: 90px;
            }

            .btn-large {
                padding: 11px 18px;
                font-size: 13px;
                min-height: 46px;
            }

            .privacy-notice {
                font-size: 10px;
                padding: 9px 11px;
            }
        }

        /* Stats bar - DYNAMIC, not fixed 50% */
        .quick-stats-bar {
            gap: 6px;
            flex-wrap: wrap;
            padding: 8px 0;
        }

        .stat-item {
            padding: 8px 10px;
            font-size: 12px;
            flex: 0 1 auto; /* Dynamic width based on content */
            min-width: fit-content;
            max-width: 48%; /* Max 2 per row */
            border-radius: 6px;
            background: rgba(0, 212, 255, 0.04);
            min-height: 40px;
            gap: 6px;
        }

        .stat-icon {
            width: 14px;
            height: 14px;
        }

        .stat-label {
            font-size: 11px;
            line-height: 1.3;
        }
