@import url('variables.css');

/* ============================================
   MATCHA - Design System
   Modern, Clean, Swedish Marketplace
   ============================================ */


/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition);
}

/* Light theme: show sun icon, hide moon */
.theme-icon-light {
    color: var(--accent);
    display: block;
}

.theme-icon-dark {
    display: none;
    color: var(--accent-light);
}

/* Dark theme: show moon icon, hide sun */
[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* Language Toggle Button */
.lang-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.lang-toggle:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.lang-toggle svg {
    display: block;
}

/* Swedish flag icon - show when page is in English (click to switch to Swedish) */
.lang-icon-sv {
    display: none;
}

/* English flag icon - show when page is in Swedish (click to switch to English) */
.lang-icon-en {
    display: block;
}

/* When in English: show Swedish flag, hide English flag */
[data-lang="en"] .lang-icon-sv {
    display: block;
}

[data-lang="en"] .lang-icon-en {
    display: none;
}

[data-theme="dark"] .lang-toggle {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

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

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

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

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

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

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Spacing */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 46, 0.95);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

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

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

/* Grouped icon sections in navbar */
.nav-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Subtle vertical separator between groups */
.nav-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.375rem;
    opacity: 0.5;
}

/* Make preference toggles match communication icons (no container, just clean icons) */
.nav-group-prefs .theme-toggle,
.nav-group-prefs .lang-toggle {
    width: auto !important;
    height: auto !important;
    padding: 0.5rem !important;
    background: none !important;
    border: none !important;
    opacity: 0.65;
    transition: opacity var(--transition), color var(--transition);
}

.nav-group-prefs .theme-toggle:hover,
.nav-group-prefs .lang-toggle:hover {
    opacity: 1;
    background: none !important;
    transform: none !important;
}

[data-theme="dark"] .nav-group-prefs .theme-toggle,
[data-theme="dark"] .nav-group-prefs .lang-toggle {
    background: none !important;
    border: none !important;
}

.nav-group-prefs .theme-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-group-prefs .lang-toggle svg {
    width: 20px;
    height: 15px;
}

.nav-icon {
    position: relative;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.nav-icon svg {
    width: 24px;
    height: 24px;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--error);
    color: var(--text-on-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

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

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-hover);
}

.user-dropdown-name {
    font-weight: 600;
}

.user-dropdown-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-dropdown-menu {
    padding: 0.5rem;
    list-style: none;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: background var(--transition);
}

.user-dropdown-menu a:hover {
    background: var(--bg-hover);
}

.user-dropdown-menu svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    color: var(--text-secondary);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

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

    .mobile-menu-btn {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
}

.btn-primary span,
.btn-primary * {
    color: #ffffff !important;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Ensure btn-primary text stays white in all modes */
html:not([data-theme="dark"]) .btn-primary,
html:not([data-theme="dark"]) .btn-primary span,
html:not([data-theme="dark"]) .btn-primary * {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary span,
[data-theme="dark"] .btn-primary * {
    color: #ffffff !important;
}

.btn-secondary {
    background: #1a1a2e;
    color: #ffffff !important;
}

.btn-secondary span,
.btn-secondary svg,
.btn-secondary * {
    color: #ffffff !important;
}

.btn-secondary svg {
    stroke: #ffffff !important;
}

.btn-secondary:hover:not(:disabled) {
    background: #2d2d4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Light mode: force white text on dark button */
html:not([data-theme="dark"]) .btn-secondary,
html:not([data-theme="dark"]) .btn-secondary span,
html:not([data-theme="dark"]) .btn-secondary * {
    color: #ffffff !important;
}

html:not([data-theme="dark"]) .btn-secondary svg {
    stroke: #ffffff !important;
}

/* Dark mode: inverted colors for btn-secondary */
[data-theme="dark"] .btn-secondary {
    background: #ffffff;
    color: #1a1a2e !important;
}

[data-theme="dark"] .btn-secondary span,
[data-theme="dark"] .btn-secondary svg,
[data-theme="dark"] .btn-secondary * {
    color: #1a1a2e !important;
}

[data-theme="dark"] .btn-secondary svg {
    stroke: #1a1a2e !important;
}

[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
    background: #e5e5e5;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--border-hover);
    background: var(--bg-body);
}

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

.btn-outline-primary:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
}

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

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-main);
}

.btn-danger {
    background: var(--error);
    color: var(--text-on-primary);
}

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
}

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

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

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.75rem;
}

/* Cards */
.card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2), 0 0 0 3px rgba(16, 185, 129, 0.08);
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* Dark mode cards - use theme background instead of white */
[data-theme="dark"] .card {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25), 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.card-image {
    aspect-ratio: 16/10;
    background: var(--gray-100);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.card-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

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

.card-meta-item svg {
    width: 16px;
    height: 16px;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-main);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-surface);
    background: var(--bg-card);
}

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

/* Page header search - extra visibility in light mode */
.page-header-search .form-control {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
}

.page-header-search .form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
}

/* Select dropdowns - white in light mode */
html:not([data-theme="dark"]) select.form-control {
    background: #FFFFFF;
    border-color: var(--border-color);
}

html:not([data-theme="dark"]) select.form-control:focus {
    background: #FFFFFF;
}

/* Ensure text is visible in dark mode */
[data-theme="dark"] .form-control {
    color: #ffffff;
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: var(--error);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-hint {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.form-error {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--error);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Input with Icon */
.input-group {
    position: relative;
}

.input-group .form-control {
    padding-left: 2.75rem;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.input-group-icon svg {
    width: 20px;
    height: 20px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* Checkbox Grid for Multi-select */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.checkbox-grid .form-check {
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.checkbox-grid .form-check:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.checkbox-grid .form-check:has(input:checked) {
    background: var(--primary-100);
    border-color: var(--primary);
}

.checkbox-grid .form-check-input {
    width: 16px;
    height: 16px;
}

.checkbox-grid .form-check-label {
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-dark);
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-error {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Dark mode badges - ensure visibility in dark theme */
[data-theme="dark"] .badge-success {
    background: #059669;
    color: #ffffff;
}

[data-theme="dark"] .badge-warning {
    background: #B45309;
    color: #ffffff;
}

[data-theme="dark"] .badge-error {
    background: #DC2626;
    color: #ffffff;
}

[data-theme="dark"] .badge-info {
    background: #2563EB;
    color: #ffffff;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.category-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-badge.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.category-badge .emoji {
    font-size: 1.125rem;
}

/* Icon System */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

/* Category Card with Icon */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
}

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

.category-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.category-card-icon svg {
    width: 32px;
    height: 32px;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
}

/* Light mode: Strong poppy colors instead of pastels */
html:not([data-theme="dark"]) .category-card-icon {
    background: linear-gradient(135deg, currentColor, currentColor) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

html:not([data-theme="dark"]) .category-card-icon svg {
    color: #ffffff !important;
}

.category-card-name {
    font-weight: 600;
    color: var(--gray-800);
}

.category-card-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Card Category Tag with Icon */
.card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.card-category .category-icon {
    width: 16px;
    height: 16px;
}

.card-image {
    position: relative;
}

/* Icon placeholder for images */
.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
}

.card-image-placeholder .category-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    opacity: 0.85;
}

/* Light mode: Strong poppy colors for ad placeholders */
html:not([data-theme="dark"]) .card-image-placeholder {
    background: linear-gradient(135deg, #00d97e 0%, #059669 100%) !important;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.1);
}

html:not([data-theme="dark"]) .card-image-placeholder .category-icon {
    color: #ffffff !important;
    opacity: 1;
}

/* Location icon inline */
.card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.card-location svg,
.card-location .icon {
    width: 16px;
    height: 16px;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: calc(100% - 2rem);
    max-width: 500px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    padding: 0.5rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--text-secondary);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================
   PAGE SPECIFIC STYLES
   ============================================ */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

/* Search Box */
.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.search-box .form-control {
    border: none;
    background: var(--gray-50);
}

.search-box .form-control:focus {
    box-shadow: none;
    background: var(--gray-100);
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3), 0 0 0 4px rgba(16, 185, 129, 0.12);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, var(--bg-card) 100%);
}

.category-card .emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.category-card .name {
    font-weight: 600;
    color: var(--gray-800);
}

.category-card .count {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.section-header a {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-header a:hover {
    text-decoration: underline;
}

/* Ads Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

/* Ad Card */
.project-card {
    position: relative;
}

.project-card .card-image {
    position: relative;
}

.project-card .card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: var(--shadow);
}

.project-card .card-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.project-card .card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.project-card .card-location svg {
    width: 14px;
    height: 14px;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.filter-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Modern category filter styling */
.filter-options .form-check {
    position: relative;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    margin: 0;
}

.filter-options .form-check:hover {
    background: var(--bg-hover);
}

.filter-options .form-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-options .form-check-label {
    display: block;
    padding-left: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-options .form-check:hover .form-check-label {
    color: var(--text-main);
}

/* Selected state */
.filter-options .form-check-input:checked+.form-check-label {
    color: var(--primary);
    font-weight: 600;
}

.filter-options .form-check:has(.form-check-input:checked) {
    background: var(--primary-surface);
    border-left: 3px solid var(--primary);
    padding-left: calc(1rem - 3px);
}

/* Dark mode adjustments */
[data-theme="dark"] .filter-options .form-check:has(.form-check-input:checked) {
    background: rgba(16, 185, 129, 0.1);
}

/* Offers List */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.offer-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

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

.offer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offer-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.offer-user-info h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.offer-user-info span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.offer-price {
    text-align: right;
}

.offer-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.offer-price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

.offer-message {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.offer-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

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

.offer-meta-item svg {
    width: 16px;
    height: 16px;
}

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

/* Chat */
.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 4rem);
    background: var(--white);
    overflow: hidden;
}

@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }
}

.chat-sidebar {
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background var(--transition);
}

.chat-list-item:hover {
    background: var(--gray-50);
}

.chat-list-item.active {
    background: var(--primary-surface);
    border-left: 3px solid var(--primary);
}

.chat-list-item.active:hover {
    background: var(--primary-surface);
}

.chat-list-item.unread {
    background: var(--primary-50);
}

.chat-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-list-content {
    flex: 1;
    min-width: 0;
}

.chat-list-name {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.chat-list-preview {
    font-size: 0.875rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list-meta {
    text-align: right;
}

.chat-list-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.chat-list-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: 0.25rem;
}

.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Back button for mobile chat - hidden on desktop */
.chat-back-btn {
    display: none;
}

.chat-header-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.125rem;
}

.chat-header-info span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 70%;
}

.chat-message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-message-bubble {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
    min-width: 60px;
}

.chat-message.sent .chat-message-bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message-content {
    word-break: break-word;
    overflow-wrap: break-word;
}

.chat-message-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.chat-message.sent .chat-message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
}

.chat-input .form-control {
    flex: 1;
}

.chat-typing {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
}

.auth-header .logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
}

.auth-body {
    padding: 0 2rem 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

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

.bankid-btn {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all var(--transition);
}

.bankid-btn:hover {
    border-color: #235971;
    background: #F0F7FA;
}

.bankid-btn img {
    height: 24px;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User Type Selection */
.user-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-type-option {
    padding: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: var(--bg-card);
}

.user-type-option:hover {
    border-color: var(--primary);
    background: var(--primary-surface);
    transform: translateY(-2px);
}

.user-type-option.active {
    border-color: var(--primary);
    background: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.user-type-option.active .icon {
    filter: grayscale(100%) brightness(200%);
}

.user-type-option.active .label {
    color: white;
}

/* Checkmark for active user type */
.user-type-option.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-type-option .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.user-type-option .label {
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Profile Page */
.profile-header {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--gray-100);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.profile-info .type {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-info .meta {
    color: var(--gray-500);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-tabs {
    display: flex;
    gap: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    border: none;
    overflow: visible;
}

.profile-tab {
    flex: 1;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-bottom: 2px solid transparent;
    position: relative;
    background: transparent;
}

.profile-tab svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.profile-tab:hover {
    color: var(--text-primary);
    background: transparent;
}

.profile-tab:hover svg {
    opacity: 0.8;
}

.profile-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
    background: transparent;
}

.profile-tab.active svg {
    opacity: 1;
    stroke: var(--primary);
}

/* Tab Content Card */
#tab-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    padding: 1.5rem;
    min-height: 300px;
}

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

.empty-state .icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state .icon svg {
    stroke: var(--text-muted);
    opacity: 0.4;
}



.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.25rem;
    background: var(--gray-800);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

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

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

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
    color: var(--gray-900);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.toast-close:hover {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

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

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   HERO WELCOME SECTION
   ============================================ */

.hero {
    padding: 8rem 0 4rem;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: flex-start;
}

/* Dark mode hero (default) */
.hero-welcome {
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.hero-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

/* Smooth transition from hero to next section */
.hero-welcome::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-body));
    pointer-events: none;
    z-index: 1;
}


/* Light mode hero - white/neutral background */
html:not([data-theme="dark"]) .hero-welcome {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}

html:not([data-theme="dark"]) .hero-welcome::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
}

/* Light mode text colors */
html:not([data-theme="dark"]) .hero h1 {
    color: var(--gray-900);
}

html:not([data-theme="dark"]) .hero p {
    color: var(--text-secondary);
}

html:not([data-theme="dark"]) .welcome-badge {
    background: #00d97e;
    border-color: #00c471;
    color: #ffffff;
}

/* Dark mode text colors - ensure white text */
[data-theme="dark"] .hero h1 {
    color: #ffffff;
}

[data-theme="dark"] .hero p {
    color: #c8c8e0;
}

[data-theme="dark"] .welcome-badge {
    background: #059669;
    border-color: #047857;
    color: #ffffff;
    box-shadow: none;
}

[data-theme="dark"] .choice-card-content h2 {
    color: #ffffff;
}

[data-theme="dark"] .choice-card-content p {
    color: #c8c8e0;
}

[data-theme="dark"] .choice-card-examples {
    color: #a8a8c8;
}

[data-theme="dark"] .choice-card-examples span {
    color: #e0e0f0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #00d97e;
    border: 2px solid #00c471;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 217, 126, 0.4);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Choice Cards Container */
.choice-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

@media (max-width: 768px) {
    .choice-cards {
        grid-template-columns: 1fr;
    }

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

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

/* Choice Card */
.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.choice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.choice-card:hover::before {
    opacity: 1;
}

/* Light mode choice cards */
html:not([data-theme="dark"]) .choice-card {
    background: #FFFFFF;
    border-color: var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

html:not([data-theme="dark"]) .choice-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.35), 0 0 0 4px rgba(16, 185, 129, 0.15);
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

html:not([data-theme="dark"]) .choice-card-content h2 {
    color: var(--gray-900);
}

html:not([data-theme="dark"]) .choice-card-content p {
    color: var(--text-secondary);
}

html:not([data-theme="dark"]) .choice-card-examples {
    color: var(--gray-500);
    border-top-color: var(--gray-200);
}

html:not([data-theme="dark"]) .choice-card-examples span {
    color: var(--gray-700);
}

html:not([data-theme="dark"]) .choice-card-arrow {
    background: var(--gray-100);
    color: var(--gray-500);
}

html:not([data-theme="dark"]) .choice-card:hover .choice-card-arrow {
    background: var(--primary);
    color: var(--white);
}

/* Provider Card (Blue accent) */
.choice-card-provider {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.choice-card-provider:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.choice-card-provider .choice-card-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Customer Card (Green accent) */
.choice-card-customer {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.choice-card-customer:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.choice-card-customer .choice-card-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Choice Card Icon */
.choice-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.choice-card:hover .choice-card-icon {
    transform: scale(1.05);
}

.choice-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

/* Image-based icon */
.choice-card-icon-image {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.choice-card-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transform: scale(1.6);
    filter: contrast(1.1) brightness(1.05);
}

/* Choice Card Content */
.choice-card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.choice-card-content p {
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Choice Card Examples */
.choice-card-examples {
    font-size: 0.875rem;
    color: var(--gray-400);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.choice-card-examples span {
    color: var(--gray-300);
    font-weight: 500;
}

/* Choice Card Arrow */
.choice-card-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.choice-card:hover .choice-card-arrow {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateX(4px);
}

.choice-card-arrow svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

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

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

/* ============================================
   PROVIDER TYPE SELECTION MODAL
   ============================================ */

.provider-modal {
    max-width: 500px;
    width: calc(100% - 2rem);
}

.provider-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.provider-modal .modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.provider-modal .modal-body {
    padding: 1.5rem;
}

.modal-description {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    text-align: center;
}

.provider-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.provider-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.provider-option:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), var(--shadow-md);
    transform: translateX(4px);
}

.provider-option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.provider-option-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.provider-private {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.provider-company {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.provider-both {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.provider-option-content {
    flex: 1;
}

.provider-option-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
}

.provider-option-content p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.provider-option-arrow {
    color: var(--gray-300);
    transition: all var(--transition);
}

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

.provider-option-arrow svg {
    width: 20px;
    height: 20px;
}

/* Featured option (Both) */
.provider-option-featured {
    border-color: var(--primary-100);
    background: var(--primary-50);
}

.provider-option-featured:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.provider-option-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

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

/* ============================================
   DARK MODE TEXT FIXES
   Ensure all text is clearly visible in dark mode
   ============================================ */

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] a:not(.btn) {
    color: #e0e0f0;
}

[data-theme="dark"] .text-muted {
    color: #a8a8c8;
}

[data-theme="dark"] .card-title a {
    color: #ffffff;
}

[data-theme="dark"] .card-text {
    color: #c8c8e0;
}

[data-theme="dark"] .card-location {
    color: #a8a8c8;
}

[data-theme="dark"] .card-meta {
    color: #a8a8c8;
}

[data-theme="dark"] .form-label {
    color: #e0e0f0;
}

[data-theme="dark"] .form-control {
    color: #ffffff;
    background-color: #2d2d4a;
    border-color: #4a4a6a;
}

[data-theme="dark"] .form-control::placeholder {
    color: #7a7a9a;
}

[data-theme="dark"] .section-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .section-header a {
    color: #4eeab8;
}

[data-theme="dark"] .category-card-name {
    color: #e0e0f0;
}

/* Footer Dark Mode - Complete fix */
[data-theme="dark"] .footer {
    background: #0f0f1a;
    border-top: 1px solid #2d2d4a;
}

[data-theme="dark"] .footer-brand .logo {
    color: #4eeab8;
}

[data-theme="dark"] .footer-brand p {
    color: #a8a8c8;
}

[data-theme="dark"] .footer-column h4 {
    color: #ffffff;
}

[data-theme="dark"] .footer-links a {
    color: #c8c8e0;
}

[data-theme="dark"] .footer-links a:hover {
    color: #4eeab8;
}

[data-theme="dark"] .footer-social a {
    color: #a8a8c8;
}

[data-theme="dark"] .footer-social a:hover {
    color: #4eeab8;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #2d2d4a;
}

[data-theme="dark"] .footer-bottom p {
    color: #7a7a9a;
}

/* Light mode footer - light background */
html:not([data-theme="dark"]) .footer {
    background: var(--gray-100);
    color: var(--gray-800);
    border-top: 1px solid var(--gray-200);
}

html:not([data-theme="dark"]) .footer-brand .logo {
    color: var(--primary);
}

html:not([data-theme="dark"]) .footer-brand p {
    color: var(--text-secondary);
}

html:not([data-theme="dark"]) .footer-column h4 {
    color: var(--gray-900);
}

html:not([data-theme="dark"]) .footer-links a {
    color: var(--text-secondary);
}

html:not([data-theme="dark"]) .footer-links a:hover {
    color: var(--primary);
}

html:not([data-theme="dark"]) .footer-social a {
    color: var(--gray-500);
}

html:not([data-theme="dark"]) .footer-social a:hover {
    color: var(--primary);
}

html:not([data-theme="dark"]) .footer-bottom {
    border-top: 1px solid var(--gray-200);
}

html:not([data-theme="dark"]) .footer-bottom p {
    color: #000000;
}

/* ============================================
   LIGHT MODE - ALL TEXT PURE BLACK
   ============================================ */

/* Global text override - ALL text black */
html:not([data-theme="dark"]) h1,
html:not([data-theme="dark"]) h2,
html:not([data-theme="dark"]) h3,
html:not([data-theme="dark"]) h4,
html:not([data-theme="dark"]) h5,
html:not([data-theme="dark"]) h6 {
    color: #000000 !important;
}

html:not([data-theme="dark"]) p {
    color: #000000 !important;
}

html:not([data-theme="dark"]) span {
    color: #000000 !important;
}

html:not([data-theme="dark"]) li {
    color: #000000 !important;
}

html:not([data-theme="dark"]) a:not(.btn):not(.navbar-brand) {
    color: #000000 !important;
}

/* Choice Cards */
html:not([data-theme="dark"]) .choice-card-content h2 {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .choice-card-content p {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .choice-card-examples {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .choice-card-examples span {
    color: #000000 !important;
}

/* Ad Cards */
html:not([data-theme="dark"]) .card-title,
html:not([data-theme="dark"]) .card-title a {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .card-text {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .card-location {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .card-meta,
html:not([data-theme="dark"]) .card-meta-item {
    color: #000000 !important;
}

/* Hero section */
html:not([data-theme="dark"]) .hero h1 {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .hero p {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .welcome-badge {
    color: #000000 !important;
}

/* Categories */
html:not([data-theme="dark"]) .category-card-name {
    color: #000000 !important;
}

/* Section headers */
html:not([data-theme="dark"]) .section-header h2 {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .section-header a {
    color: #000000 !important;
}

/* How it works */
html:not([data-theme="dark"]) .text-muted {
    color: #000000 !important;
}

/* Forms */
html:not([data-theme="dark"]) .form-label {
    color: #000000 !important;
}

/* Footer */
html:not([data-theme="dark"]) .footer h4 {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .footer-brand p {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .footer-links a {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .footer-brand .logo {
    color: #000000 !important;
}

/* Navbar */
html:not([data-theme="dark"]) .navbar-nav a {
    color: #000000 !important;
}

/* User dropdown */
html:not([data-theme="dark"]) .user-dropdown-name {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .user-dropdown-email {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .user-dropdown-menu a {
    color: #000000 !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: var(--gray-100);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

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

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

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Footer Social Media Buttons - Fixed Contrast */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a2e !important;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* Dark mode social buttons */
[data-theme="dark"] .footer-social a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

[data-theme="dark"] .footer-social a:hover {
    background: var(--primary);
    color: #ffffff !important;
}

/* ==================== ONBOARDING GUIDE ==================== */
.onboarding-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onboarding-backdrop.visible {
    opacity: 1;
}

.onboarding-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    max-width: 460px;
    width: calc(100% - 2rem);
    z-index: 9999;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.onboarding-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 50%;
    transition: all var(--transition);
    display: flex;
}

.onboarding-close:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.onboarding-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.onboarding-welcome-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    animation: onboardingBounce 0.6s ease;
}

.onboarding-welcome-icon svg {
    width: 56px;
    height: 56px;
}

@keyframes onboardingBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

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

.onboarding-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Steps */
.onboarding-step {
    text-align: center;
    padding: 1.5rem 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.35s ease;
}

.onboarding-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.onboarding-step-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
    animation: onboardingPop 0.4s ease 0.1s both;
}

.onboarding-step-icon svg {
    width: 56px;
    height: 56px;
}

@keyframes onboardingPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

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

.onboarding-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.onboarding-step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.onboarding-step-desc strong {
    color: var(--primary);
    font-weight: 600;
}

/* Progress dots */
.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1rem 0;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.onboarding-dot:hover:not(.active) {
    background: var(--text-muted);
}

/* Action buttons */
.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.onboarding-nav {
    display: flex;
    gap: 8px;
}

.btn-onboarding-skip {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-onboarding-skip:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.btn-onboarding-skip.hidden {
    display: none;
}

.btn-onboarding-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-onboarding-back:hover {
    background: var(--bg-hover);
}

.btn-onboarding-back.hidden {
    display: none;
}

.btn-onboarding-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-onboarding-next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Dismiss checkbox */
.onboarding-dismiss {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

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

/* Responsive */
@media (max-width: 480px) {
    .onboarding-modal {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 16px;
    }

    .onboarding-title {
        font-size: 1.25rem;
    }

    .onboarding-step-icon svg {
        width: 44px;
        height: 44px;
    }

    .onboarding-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .btn-onboarding-skip {
        width: 100%;
        text-align: center;
    }

    .onboarding-nav {
        width: 100%;
        justify-content: space-between;
    }

    .btn-onboarding-next {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */

.notification-bell-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.notification-dropdown.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.notification-dropdown-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.notification-dropdown-header button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.notification-dropdown-header button:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 340px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(16, 185, 129, 0.06);
}

.notification-item.unread:hover {
    background: rgba(16, 185, 129, 0.1);
}

.notification-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notification-item-icon.new_offer {
    background: rgba(59, 130, 246, 0.12);
}

.notification-item-icon.offer_accepted {
    background: rgba(16, 185, 129, 0.12);
}

.notification-item-body {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.notification-item-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notification-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
        width: auto;
    }
}

/* ==================== SKELETON LOADING ==================== */
@keyframes skeleton-shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton-bone {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

[data-theme="dark"] .skeleton-bone {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 800px 100%;
}

/* Skeleton shapes */
.skeleton-text {
    height: 14px;
    margin-bottom: 0.5rem;
}

.skeleton-text.w-50 {
    width: 50%;
}

.skeleton-text.w-60 {
    width: 60%;
}

.skeleton-text.w-75 {
    width: 75%;
}

.skeleton-text.w-100 {
    width: 100%;
}

.skeleton-text.w-40 {
    width: 40%;
}

.skeleton-text.w-30 {
    width: 30%;
}

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

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.skeleton-image {
    height: 160px;
    border-radius: 0;
}

/* Profile header skeleton */
.skeleton-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    margin-bottom: 2rem;
}

.skeleton-profile-header .skeleton-avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.skeleton-profile-header .skeleton-info {
    flex: 1;
}

/* Card grid skeleton */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skeleton-card-body {
    padding: 1rem;
}

/* Fade in when real content loads */
.skeleton-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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