/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

/* T055: Skip to content link - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    z-index: 10000;
    transition: top 0.3s;
    opacity: 0;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
}

/* T053: Visually hidden labels for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* T057: Enhanced focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.opportunity-card:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Remove default outline for mouse users, keep for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
.opportunity-card:focus:not(:focus-visible) {
    outline: none;
}

/* Keep outline for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.opportunity-card:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    position: relative;
}

.nav-brand {
    z-index: 1001;
}

.nav-brand .logo {
    text-decoration: none;
    display: block;
    border: none;
}

.nav-brand .logo:focus,
.nav-brand .logo:focus-visible {
    outline: none;
}

.logo-image {
    height: 120px;
    width: auto;
    display: block;
    border: none;
    outline: none;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.nav-brand span {
    font-size: 0.9rem;
    color: #6b7280;
    display: block;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.hamburger-icon {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #374151;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #374151;
    transition: all 0.3s ease;
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #2563eb;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Google AdSense Ad Slot Styles */
.ad-slot {
    margin: 1.5rem 0;
    overflow: hidden;
}

.ad-slot-banner {
    padding: 0.5rem;
    text-align: center;
    min-height: 90px;
    background: #f9fafb;
    border-radius: 4px;
}

.ad-slot-sidebar {
    padding: 0.5rem;
    text-align: center;
    min-height: 250px;
    background: #f9fafb;
    border-radius: 4px;
}

.ad-slot-infeed {
    padding: 1rem;
    text-align: center;
    min-height: 120px;
    background: #f9fafb;
    border-radius: 4px;
}

.ad-placeholder {
    position: relative;
    width: 100%;
}

.ad-label {
    display: block;
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

/* Google AdSense responsive container */
.adsbygoogle {
    display: block;
    text-align: center;
}

/* Ensure ads are responsive */
.ad-slot-banner .adsbygoogle {
    min-height: 90px;
    max-height: 90px;
}

.ad-slot-sidebar .adsbygoogle {
    min-height: 250px;
    width: 100%;
}

.ad-slot-infeed .adsbygoogle {
    min-height: 120px;
}

/* Mobile adjustments for AdSense */
@media (max-width: 768px) {
    .ad-slot-banner .adsbygoogle {
        min-height: 50px;
        max-height: 100px;
    }

    .ad-slot-sidebar {
        min-height: 200px;
    }

    .ad-slot-sidebar .adsbygoogle {
        min-height: 200px;
    }
}

/* Legacy ad banner styles for backwards compatibility */
.ad-banner {
    background: #f3f4f6;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.ad-banner.top-banner {
    margin-top: 0;
}

.ad-banner.sidebar-ad {
    position: sticky;
    top: 100px;
    margin: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5)), url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Search Section */
.search-section {
    background: white;
    padding: 3rem 0;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.1);
    width: 100%;
    overflow: hidden;
}

.search-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1d4ed8;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-tag:hover,
.filter-tag.active {
    background: #2563eb;
    color: white;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem 0;
}

.main-content {
    min-height: 500px;
}

.sidebar {
    space-y: 2rem;
}

/* Opportunity Cards */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.opportunity-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.opportunity-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
}

.opportunity-title:hover {
    color: #2563eb;
}

.opportunity-type {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.opportunity-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-description {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
    /* Truncate long text with ellipsis after 3 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.opportunity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.opportunity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.opportunity-deadline {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9rem;
}

.opportunity-link {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.opportunity-link:hover {
    background: #1d4ed8;
}

/* Map Styles */
.map-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.map-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.map-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

#opportunity-map {
    height: 500px;
    width: 100%;
    max-width: 100%;
}

/* Sidebar Ads */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.sidebar-ad {
    text-align: center;
    background: #f9fafb;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    color: #6b7280;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}

/* T061-T064: Enhanced Responsive Design */

/* T062: Tablet breakpoint (768px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
        width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr 250px;
        gap: 1.5rem;
        width: 100%;
    }

    .opportunities-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .filter-tags {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* T061: Mobile breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    .nav {
        padding: 0.2rem 0;
    }

    .logo-image {
        height: 90px;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .nav-brand span {
        font-size: 0.8rem;
    }

    /* Page Titles - Scale down on mobile */
    .main-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100% !important;
    }

    .main-content h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .main-content h3 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Text content - prevent overflow */
    .main-content p,
    .main-content ul,
    .main-content li,
    .main-content div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    /* Grids with minmax - force single column on mobile */
    .main-content [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Flex containers with space-between - stack on mobile */
    .main-content > [style*="flex"],
    .main-content [style*="display: flex"][style*="space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    /* Ensure container has proper padding */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force all content to respect viewport */
    .main-content,
    .main-content > *,
    .main-content section,
    .main-content [style*="padding"],
    .main-content [style*="width"] {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Fix inline padding that might cause overflow */
    .main-content section[style*="padding"],
    .main-content div[style*="padding"] {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile menu styles */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .sign-in-btn {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Hero Section */
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Search & Filters */
    .search-section {
        padding: 2rem 0;
    }

    .search-container {
        grid-template-columns: 1fr;
    }

    .search-btn {
        padding: 0.875rem 1.5rem;
        width: 100%;
    }

    .filters-section {
        padding: 1.5rem 0;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .filter-tags {
        justify-content: center;
    }

    /* Content Grid & Sidebar */
    .content-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 0;
    }

    .sidebar {
        order: 2;
    }

    .main-content {
        order: 1;
        min-height: auto;
    }

    /* Opportunity Cards */
    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .opportunity-card {
        padding: 1.25rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .opportunity-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .opportunity-type {
        align-self: flex-start;
    }

    .opportunity-meta {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

    .opportunity-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .opportunity-link {
        width: 100%;
        text-align: center;
    }

    /* T064: Map - Mobile specific controls */
    #opportunity-map {
        height: 400px;
        touch-action: pan-x pan-y;
    }

    .map-header h2 {
        font-size: 1.3rem;
    }

    /* Ad Slots - Mobile adjustments */
    .ad-slot-banner,
    .ad-slot-sidebar,
    .ad-slot-infeed {
        min-height: 100px;
        padding: 1rem;
    }

    .ad-mock-icon {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* T063: Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .stat-card {
        padding: 1rem;
    }

    .logo-image {
        height: 70px;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-brand span {
        font-size: 0.75rem;
    }

    /* Even smaller page titles for very small screens */
    .main-content h1 {
        font-size: 1.5rem !important;
        white-space: normal !important;
    }

    .main-content h2 {
        font-size: 1.25rem !important;
    }

    .main-content h3 {
        font-size: 1.1rem !important;
    }

    /* Smaller paragraph text */
    .main-content p {
        font-size: 0.95rem !important;
    }

    /* Tighter container padding for very small screens */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .nav-menu {
        width: 260px;
        padding: 70px 1.5rem 1.5rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .filter-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .opportunity-title {
        font-size: 1.05rem;
    }

    .opportunity-description {
        font-size: 0.875rem;
    }

    /* Make search inputs and buttons stack better */
    .search-container {
        gap: 0.75rem;
    }

    .search-input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.sign-in-btn {
    margin-left: auto;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* T065-T070: Mock Authentication UI Styles */

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 2rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.auth-tab:hover {
    color: #111827;
}

.auth-tab.active {
    color: #2563eb;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

/* Auth Tab Content */
.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

/* Auth Forms */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    margin-top: 1.5rem;
}

.btn-block {
    width: 100%;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

/* Auth Divider */
.auth-divider {
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-oauth {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    color: #374151;
}

.btn-oauth:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.oauth-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
}

.user-email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-tier-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-tier-badge.free {
    background: #f3f4f6;
    color: #6b7280;
}

.user-tier-badge.paid {
    background: #dcfce7;
    color: #166534;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.user-menu-toggle:hover .dropdown-arrow {
    transform: translateY(2px);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s;
    z-index: 1001;
}

.user-dropdown.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: left;
    text-decoration: none;
    color: #374151;
    background: white;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    max-width: 350px;
}

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

.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .user-email {
        max-width: 100px;
    }

    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* T071: Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #d1d5db;
    stroke-width: 1.5;
}

.empty-state-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
}

.empty-state-subtext a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.empty-state-subtext a:hover {
    text-decoration: underline;
}

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.account-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.account-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-value {
    font-size: 1.1rem;
    color: #111827;
    font-weight: 500;
}

.account-tier-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tier-status-text {
    font-size: 0.95rem;
    color: #059669;
    font-weight: 500;
}

/* Saved Searches List (will be populated in T074) */
.saved-searches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Bookmarks List (will be populated in T076) */
.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1.5rem 1rem;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .dashboard-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        width: 48px;
        height: 48px;
    }

    .account-tier-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* T073: Save Search Modal Styles */
.save-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-description {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.current-filters {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.current-filters h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    display: inline-block;
    background: white;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #374151;
}

.no-filters {
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.form-actions .btn {
    min-width: 100px;
}

/* Save Search Mobile Adjustments */
@media (max-width: 768px) {
    .filters-summary {
        flex-direction: column;
    }

    .filter-pill {
        width: 100%;
        text-align: center;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* T074: Saved Search Card Styles */
.saved-search-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.saved-search-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.saved-search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.saved-search-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.delete-search {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-search:hover {
    color: #ef4444;
}

.saved-search-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.saved-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-tag-small {
    display: inline-block;
    background: white;
    border: 1px solid #d1d5db;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #374151;
}

.saved-search-actions {
    display: flex;
    gap: 0.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .saved-search-card {
        padding: 1rem;
    }

    .saved-search-name {
        font-size: 1rem;
    }

    .saved-search-filters {
        flex-direction: column;
    }

    .filter-tag-small {
        width: 100%;
        text-align: center;
    }

    .saved-search-actions {
        flex-direction: column;
    }

    .saved-search-actions .btn {
        width: 100%;
    }
}

/* T075: Bookmark Button Styles */
.opportunity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.bookmark-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bookmark-btn svg {
    width: 20px;
    height: 20px;
}

.bookmark-btn:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.bookmark-btn.bookmarked {
    color: #3b82f6;
}

.bookmark-btn.bookmarked:hover {
    color: #2563eb;
}

/* T076: Bookmark Card Styles */
.bookmark-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.bookmark-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.bookmark-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.delete-bookmark {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-bookmark:hover {
    color: #ef4444;
}

.bookmark-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.bookmark-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.meta-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.meta-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 90px;
}

.meta-value {
    font-size: 0.85rem;
    color: #111827;
}

.bookmark-actions {
    display: flex;
    gap: 0.5rem;
}

/* Mobile adjustments for bookmarks */
@media (max-width: 768px) {
    .bookmark-card {
        padding: 1rem;
    }

    .bookmark-title {
        font-size: 1rem;
    }

    .bookmark-meta {
        padding: 0.5rem;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .meta-label {
        min-width: auto;
    }

    .bookmark-actions {
        flex-direction: column;
    }

    .bookmark-actions .btn {
        width: 100%;
    }
}

/* T077-T079: Pricing Page Styles */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card-paid {
    border-color: #3b82f6;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.pricing-card-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111827;
}

.price-period {
    font-size: 1.25rem;
    color: #6b7280;
}

.pricing-description {
    color: #6b7280;
    font-size: 1rem;
}

.pricing-features h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #374151;
}

.feature-item-limited {
    color: #9ca3af;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

.pricing-card-paid .feature-icon {
    color: #3b82f6;
}

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

.cta-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Comparison Table */
.pricing-comparison {
    margin-bottom: 4rem;
}

.pricing-comparison h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
}

.comparison-table thead {
    background: #f9fafb;
}

.comparison-table th {
    font-weight: 600;
    color: #111827;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table .highlight-row {
    background: #eff6ff;
}

.comparison-table .check {
    color: #10b981;
    font-size: 1.25rem;
    font-weight: 700;
}

.comparison-table .cross {
    color: #ef4444;
    font-size: 1.25rem;
}

/* FAQ Section */
.pricing-faq {
    margin-bottom: 4rem;
}

.pricing-faq h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-container {
        padding: 2rem 1rem;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .pricing-subtitle {
        font-size: 1rem;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 2rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 600px;
    }

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

/* T081: Upgrade Modal Styles */
.upgrade-modal-content {
    max-width: 600px;
}

.upgrade-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.upgrade-icon {
    margin-bottom: 1rem;
}

.upgrade-icon svg {
    color: #3b82f6;
}

.upgrade-tagline {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.upgrade-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upgrade-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.upgrade-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-feature-icon svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
}

.upgrade-feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.upgrade-feature-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.upgrade-pricing {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.upgrade-price {
    margin-bottom: 0.5rem;
}

.upgrade-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
}

.upgrade-price-period {
    font-size: 1.125rem;
    color: #6b7280;
}

.upgrade-price-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.upgrade-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.upgrade-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: #9ca3af;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #fbbf24;
    margin: 0;
}

/* Mobile adjustments for upgrade modal */
@media (max-width: 768px) {
    .upgrade-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .upgrade-icon svg {
        width: 48px;
        height: 48px;
    }

    .upgrade-tagline {
        font-size: 1rem;
    }

    .upgrade-price-amount {
        font-size: 2rem;
    }
}

/* T080: AI Features Section on Dashboard */
.ai-features-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ai-features-section .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.ai-features-section .section-header h2 {
    color: white;
}

.premium-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s;
    position: relative;
}

.ai-feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ai-feature-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ai-feature-icon svg {
    color: #667eea;
}

.lock-icon-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-feature-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.ai-feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.ai-action-btn {
    margin-top: auto;
    background: white;
    color: #667eea;
    font-weight: 600;
    transition: all 0.2s;
}

.ai-action-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile adjustments for AI features */
@media (max-width: 768px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
    }

    .ai-feature-card {
        padding: 1.5rem;
    }

    .ai-feature-icon {
        width: 48px;
        height: 48px;
    }

    .ai-feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .ai-feature-content h3 {
        font-size: 1.125rem;
    }

    .ai-feature-content p {
        font-size: 0.875rem;
    }
}

/* T089: CV Upload Section Styles */
.cv-upload-section {
    margin-bottom: 2rem;
}

.cv-upload-header {
    margin-bottom: 1.5rem;
}

.cv-upload-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem 0;
}

.cv-upload-header h3 svg {
    width: 28px;
    height: 28px;
}

.cv-upload-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

.cv-upload-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
}

.cv-upload-box {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s;
}

.cv-upload-box:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cv-upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #9ca3af;
}

.cv-upload-text {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.cv-upload-link {
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.cv-upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* T091: CV Parsing Progress Styles */
.cv-parsing-progress {
    text-align: center;
    padding: 3rem 2rem;
}

.cv-parsing-progress .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.cv-parsing-progress p {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

/* T091: CV Parse Results Styles */
.cv-parse-results {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.parse-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.parse-results-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.parse-results-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.parse-result-section h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem 0;
}

.parsed-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.parsed-item {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 200px;
}

.parsed-item-name {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 500;
}

.parsed-item-confidence {
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.parsed-text {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #111827;
    font-weight: 500;
    margin: 0;
}

.parsed-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.parsed-keyword {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.parse-results-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

/* Mobile adjustments for CV upload */
@media (max-width: 768px) {
    .cv-upload-container {
        padding: 1.5rem;
    }

    .cv-upload-box {
        padding: 2rem 1rem;
    }

    .cv-upload-icon {
        width: 48px;
        height: 48px;
    }

    .cv-upload-text {
        font-size: 1rem;
    }

    .cv-parse-results {
        padding: 1rem;
    }

    .parsed-item {
        min-width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .parsed-item-confidence {
        text-align: center;
    }
}

/* T093-T096: Personalized Matches Section Styles */
.personalized-matches-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.personalized-matches-section .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.personalized-matches-section .section-header h2 {
    color: white;
    margin: 0;
}

.exploration-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.exploration-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#exploration-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.exploration-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
}

.exploration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.exploration-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.exploration-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.matches-intro {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.matches-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
}

.loading-matches {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-matches .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-matches p {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.personalized-matches-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.match-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9ca3af;
}

.match-score-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-score-high {
    background: #d1fae5;
    color: #059669;
}

.match-score-medium {
    background: #dbeafe;
    color: #2563eb;
}

.match-score-low {
    background: #fef3c7;
    color: #d97706;
}

.match-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.match-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.match-title a:hover {
    color: #2563eb;
}

.match-rationale {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f9fafb;
    padding: 0.875rem;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    margin-bottom: 1rem;
}

.match-rationale svg {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 0.125rem;
}

.match-rationale p {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.match-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.match-meta-item svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.match-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.match-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-actions svg {
    width: 14px;
    height: 14px;
}

/* Mobile adjustments for personalized matches */
@media (max-width: 768px) {
    .personalized-matches-section .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .exploration-controls {
        min-width: 100%;
    }

    .match-card {
        padding: 1.25rem;
    }

    .match-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .match-rank {
        font-size: 1.25rem;
    }

    .match-title {
        font-size: 1.125rem;
    }

    .match-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .match-actions {
        flex-direction: column;
    }

    .match-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
