/* ========================================
   TYPOGRAPHY - Design Refresh 2025
   ======================================== */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties for Typography & Colors */
:root {
    /* ===== TYPOGRAPHY ===== */
    /* Font Family */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Font Sizes - 5-level heading scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* ===== COLOR SYSTEM ===== */
    /* Minimalistic Zinc-Based Palette (shadcn/ui inspired)
       All colors meet WCAG AA contrast requirements */

    /* Neutral Grays - Zinc scale */
    --color-bg: #ffffff;                    /* Pure white background */
    --color-bg-secondary: #fafafa;          /* Subtle gray (zinc-50) */
    --color-bg-tertiary: #f4f4f5;           /* Light gray (zinc-100) */
    --color-bg-muted: #e4e4e7;              /* Muted gray (zinc-200) */

    --color-border: #e4e4e7;                /* Default border (zinc-200) */
    --color-border-strong: #d4d4d8;         /* Strong border (zinc-300) */
    --color-border-input: #a1a1aa;          /* Input border (zinc-400) */

    --color-text: #18181b;                  /* Primary text (zinc-900) - 17.7:1 contrast */
    --color-text-secondary: #3f3f46;        /* Secondary text (zinc-700) - 11.5:1 contrast */
    --color-text-tertiary: #71717a;         /* Tertiary text (zinc-500) - 4.9:1 contrast */
    --color-text-muted: #a1a1aa;            /* Muted text (zinc-400) - 3.1:1 contrast */

    /* Accent Colors - Unified system */
    --color-primary: #18181b;               /* Primary actions (zinc-900) */
    --color-primary-hover: #27272a;         /* Primary hover (zinc-800) */
    --color-primary-light: #f4f4f5;         /* Primary light bg (zinc-100) */

    --color-accent: #be185d;                /* Accent/CTA (rose-700) - 6.7:1 contrast */
    --color-accent-hover: #9f1239;          /* Accent hover (rose-800) - 9.2:1 contrast */
    --color-accent-light: #ffe4e6;          /* Accent light bg (rose-100) */

    /* Semantic Colors - High contrast */
    --color-success: #15803d;               /* Success (green-700) - 5.4:1 contrast */
    --color-success-light: #dcfce7;         /* Success bg (green-100) */
    --color-error: #dc2626;                 /* Error (red-600) - 6.4:1 contrast */
    --color-error-light: #fee2e2;           /* Error bg (red-100) */
    --color-warning: #ca8a04;               /* Warning (yellow-600) - 5.0:1 contrast */
    --color-warning-light: #fef3c7;         /* Warning bg (yellow-100) */
    --color-info: #2563eb;                  /* Info (blue-600) - 6.6:1 contrast */
    --color-info-light: #dbeafe;            /* Info bg (blue-100) */

    /* Special Features */
    --color-vip: #7c3aed;                   /* VIP (violet-600) - 5.8:1 contrast */
    --color-vip-light: #ede9fe;             /* VIP bg (violet-100) */

    /* Focus States - Consistent ring system */
    --color-focus-ring: rgba(24, 24, 27, 0.1);     /* Primary focus */
    --color-focus-accent: rgba(190, 24, 93, 0.1);  /* Accent focus */

    /* Shadows - Subtle depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Animation durations */
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;

    /* Mobile Touch Target Size - 44px minimum (Apple HIG) */
    --touch-target-min: 44px;

    /* Tap Highlight Colors - Subtle feedback */
    --tap-highlight-primary: rgba(24, 24, 27, 0.08);
    --tap-highlight-accent: rgba(190, 24, 93, 0.08);
    --tap-highlight-info: rgba(37, 99, 235, 0.08);

    /* Border radius - Consistent system */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-full: 9999px;   /* Full rounded */

    /* Spacing Scale - Tailwind-based (8px base unit) */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;   /* 2px */
    --space-1: 0.25rem;      /* 4px */
    --space-1-5: 0.375rem;   /* 6px */
    --space-2: 0.5rem;       /* 8px */
    --space-2-5: 0.625rem;   /* 10px */
    --space-3: 0.75rem;      /* 12px */
    --space-3-5: 0.875rem;   /* 14px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-9: 2.25rem;      /* 36px */
    --space-10: 2.5rem;      /* 40px */
    --space-11: 2.75rem;     /* 44px */
    --space-12: 3rem;        /* 48px */
    --space-14: 3.5rem;      /* 56px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-28: 7rem;        /* 112px */
    --space-32: 8rem;        /* 128px */
    --space-36: 9rem;        /* 144px */
    --space-40: 10rem;       /* 160px */
    --space-44: 11rem;       /* 176px */
    --space-48: 12rem;       /* 192px */
    --space-52: 13rem;       /* 208px */
    --space-56: 14rem;       /* 224px */
    --space-60: 15rem;       /* 240px */
    --space-64: 16rem;       /* 256px */
    --space-72: 18rem;       /* 288px */
    --space-80: 20rem;       /* 320px */
    --space-96: 24rem;       /* 384px */
}

/* Apply Inter to body and all elements */
body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading Hierarchy - Improved Scale */
h1, .text-h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h2, .text-h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h3, .text-h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
}

h4, .text-h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-normal);
}

h5, .text-h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
}

h6, .text-h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
}

/* Body Text - Improved Readability */
p {
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
}

/* Small Text */
small, .text-small {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/* Extra Small Text */
.text-xs {
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}

/* ========================================
   LINKS - shadcn/ui Inspired (No Underlines)
   ======================================== */

/* Base link styles - subtle, clean hover states */
a {
    color: inherit;
    text-decoration: none !important; /* Override Tailwind underline class */
    transition: color var(--duration-normal) ease, opacity var(--duration-normal) ease;
}

/* Override Tailwind's underline utility class */
.underline {
    text-decoration: none !important;
}

/* Default link hover - subtle opacity change (like shadcn/ui) */
a:hover {
    opacity: 0.7 !important;
}

/* Prevent buttons from getting opacity effect */
a.btn:hover,
a.button:hover,
button a:hover,
.btn:hover,
.button:hover {
    opacity: 1 !important;
}

/* Inline text links - slightly different color to indicate clickability */
.prose a,
p a,
li a {
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
}

.prose a:hover,
p a:hover,
li a:hover {
    color: var(--color-text);
    opacity: 1;
}

/* Primary action links - inherit button-like behavior */
a.btn,
a.button,
.btn a,
.button a {
    opacity: 1;
}

a.btn:hover,
a.button:hover,
.btn a:hover,
.button a:hover {
    opacity: 1; /* Buttons handle their own hover states */
}

/* Navigation links - clean color transitions */
nav a,
.nav-link {
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
}

nav a:hover,
.nav-link:hover {
    color: var(--color-text);
    opacity: 1;
}

nav a.active,
.nav-link.active {
    color: var(--color-text);
    opacity: 1;
}

/* Muted/secondary links - already subtle */
a.text-muted,
a.text-gray-500,
.text-muted a,
.text-gray-500 a {
    color: var(--color-text-muted);
}

a.text-muted:hover,
a.text-gray-500:hover,
.text-muted a:hover,
.text-gray-500 a:hover {
    color: var(--color-text-tertiary);
    opacity: 1;
}

/* Accent/CTA links */
a.text-accent,
a.text-rose-600,
.link-accent {
    color: var(--color-accent);
    font-weight: var(--font-medium);
}

a.text-accent:hover,
a.text-rose-600:hover,
.link-accent:hover {
    color: var(--color-accent-hover);
    opacity: 1;
}

/* External links - optional icon support */
a[target="_blank"]:not(.btn):not(.button) {
    /* Could add external icon via ::after if needed */
}

/* Focus states - accessibility */
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Disabled links */
a.disabled,
a[disabled] {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Responsive Typography - Mobile */
@media (max-width: 640px) {
    :root {
        --text-5xl: 2.25rem;   /* 36px on mobile */
        --text-4xl: 1.875rem;  /* 30px on mobile */
        --text-3xl: 1.5rem;    /* 24px on mobile */
    }

    body {
        line-height: var(--leading-loose);
    }
}

/* Tablet Adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    :root {
        --text-5xl: 2.5rem;    /* 40px on tablet */
        --text-4xl: 2rem;      /* 32px on tablet */
    }
}

/* ==============================================
   KEYBOARD NAVIGATION - WCAG AA Compliant
   ============================================== */

/* Remove default outline and add custom focus-visible styling */
*:focus {
    outline: none;
}

/* Focus-visible for keyboard navigation - Clear and visible indicators */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    transition: outline-offset var(--duration-fast) ease;
}

/* Links - Enhanced focus visibility */
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Buttons - Primary focus style */
button:focus-visible,
[role="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-focus-ring);
}

/* Accent buttons - Use accent color for focus */
button.bg-pink-600:focus-visible,
a.bg-pink-600:focus-visible,
.bg-gradient-to-r:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-focus-accent);
}

/* Form inputs - Already have good focus styles, enhance with outline */
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible,
input[type="number"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="url"]:focus-visible,
input[type="search"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

/* Checkbox and radio focus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-focus-accent);
}

/* Card links - Subtle focus for large interactive areas */
.horizontal-profile-card:focus-visible,
.model-card-image:focus-visible,
[role="article"]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-focus-accent);
}

/* Skip links for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus-visible {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: var(--space-3) var(--space-4);
    z-index: 9999;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Interactive dropdown items */
[role="option"]:focus-visible,
[role="menuitem"]:focus-visible,
[role="listbox"] > *:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    background-color: var(--color-bg-tertiary);
}

/* Tab navigation - Visible focus for tabindex elements */
[tabindex]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Image carousel dots - Enhanced focus */
.carousel-dot:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* View switcher buttons - Clear focus */
.view-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

/* Badge links - Visible focus */
.service-badge:focus-visible,
.physical-badge:focus-visible,
.rising-star-badge:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==============================================
   INTERACTIVE FEEDBACK STATES
   ============================================== */

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea,
[role="button"], [role="link"],
.card, .badge, .service-badge, .physical-badge {
    transition: all var(--duration-fast) ease;
}

/* Button hover states - Consistent across all buttons */
button:hover:not(:disabled),
[role="button"]:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
input[type="button"]:hover:not(:disabled),
input[type="reset"]:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Button active states - Pressed effect */
button:active:not(:disabled),
[role="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="button"]:active:not(:disabled),
input[type="reset"]:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Link hover states - Subtle underline */
a:hover:not(.no-underline) {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Link active state - Slightly darker */
a:active {
    opacity: 0.8;
}

/* Card hover states - Enhanced interaction */
.horizontal-profile-card:hover,
.card:hover,
[class*="card"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card active state - Pressed effect */
.horizontal-profile-card:active,
.card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Badge hover states */
.service-badge:hover,
.physical-badge:hover,
.badge:hover {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* Badge active state */
.service-badge:active,
.physical-badge:active,
.badge:active {
    transform: scale(1);
}

/* Icon button hover states */
button svg:hover,
[role="button"] svg:hover {
    transform: scale(1.1);
}

/* Icon button active state */
button:active svg,
[role="button"]:active svg {
    transform: scale(0.95);
}

/* Checkbox/Radio hover states */
input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
    border-color: var(--color-accent);
    cursor: pointer;
}

/* Checkbox/Radio active state */
input[type="checkbox"]:active:not(:disabled),
input[type="radio"]:active:not(:disabled) {
    transform: scale(0.95);
}

/* Select hover state - Subtle highlight */
select:hover:not(:disabled) {
    background-color: var(--color-bg-secondary);
    cursor: pointer;
}

/* Disabled states - Clear visual feedback */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[role="button"][aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading states - Subtle animation */
button.loading,
[role="button"].loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

button.loading::after,
[role="button"].loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Carousel navigation hover states */
.carousel-dot:hover {
    background: white;
    transform: scale(1.2);
    cursor: pointer;
}

.carousel-dot:active {
    transform: scale(1.1);
}

/* View switcher hover states */
.view-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--color-text-secondary);
}

.view-btn:active {
    transform: scale(0.98);
}

/* Contact button hover - Enhanced */
.contact-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Read more button hover */
.read-more-btn:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.read-more-btn:active {
    opacity: 0.8;
}

/* Clear button (#city-clear) enhanced interaction */
#city-clear:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

#city-clear:active {
    transform: scale(1.05);
}

/* Dropdown option hover states */
.city-search-option:hover {
    background-color: var(--color-bg-tertiary);
    cursor: pointer;
}

.city-search-option:active {
    background-color: var(--color-bg-muted);
}

/* Sortable photo hover states */
.sortable-photos .cursor-move:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    cursor: grab;
}

.sortable-photos .cursor-move:active {
    cursor: grabbing;
    transform: scale(1);
    opacity: 0.8;
}

/* Image hover states - Subtle zoom */
img.hover-zoom:hover {
    transform: scale(1.02);
    transition: transform var(--duration-slow) ease;
}

/* Form label hover - Show interactivity */
label:hover {
    cursor: pointer;
}

label:has(+ input:disabled):hover,
label:has(+ select:disabled):hover,
label:has(+ textarea:disabled):hover {
    cursor: not-allowed;
}

/* Mobile touch feedback - Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms on touch devices to prevent sticky states */
    *:hover {
        transform: none !important;
    }

    /* Keep active states for touch feedback */
    button:active:not(:disabled),
    a:active,
    .card:active {
        opacity: 0.8;
    }
}

/* Custom styles */

/* Alpine.js x-cloak - hide elements until Alpine initializes */
[x-cloak] {
    display: none !important;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Combobox styles */
[role="combobox"] {
    position: relative;
}

/* Smooth dropdown animation */
#city-results {
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    transform-origin: top;
}

#city-results.hidden {
    opacity: 0;
    transform: scaleY(0.95);
}

#city-results:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
}

/* Enhanced focus states for accessibility - Modern ring utility */
.city-search-option:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-focus-ring), inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Keyboard navigation highlight */
.city-search-option[aria-selected="true"] {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.city-search-option[aria-selected="true"] .text-gray-500 {
    color: var(--color-bg-muted);
}

/* Uppy Image Editor Styles */
.uppy-Dashboard-Item-action--edit {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.uppy-Dashboard-Item:hover .uppy-Dashboard-Item-action--edit {
    opacity: 1 !important;
}

/* Ensure edit button is visible on file cards */
.uppy-Dashboard-Item-actionWrapper {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force crop mode to be default in image editor */
.uppy-ImageEditor-cropperWrapper {
    display: block !important;
}

.uppy-ImageEditor-controls {
    display: flex !important;
}

/* Clear button hover state */
#city-clear:hover {
    transform: scale(1.1);
}

#city-clear {
    transition: all 0.15s ease-in-out;
}

/* Custom scrollbar for dropdown */
#city-results::-webkit-scrollbar {
    width: 6px;
}

#city-results::-webkit-scrollbar-track {
    background: var(--color-bg-tertiary);
}

#city-results::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius-sm);
}

#city-results::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-input);
}

/* Make drag-and-drop photos more obvious */
.sortable-photos .cursor-move:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.sortable-photos .cursor-move:active {
    cursor: grabbing;
}

/* Sortable ghost class */
.sortable-photos .opacity-50 {
    opacity: 0.5;
}

/* Ensure Uppy Dashboard is visible */
.uppy-Dashboard {
    min-height: 300px;
    width: 100% !important;
}

/* Banner uploader specific styles */
#banner-uppy-dashboard .uppy-Dashboard-Item-previewImg {
    width: 468px !important;
    height: 60px !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
}

#banner-uppy-dashboard .uppy-Dashboard-Item-preview {
    width: 468px !important;
    height: 60px !important;
}

#banner-uppy-dashboard .uppy-Dashboard-files {
    padding: 10px !important;
}

#banner-uppy-dashboard .uppy-Dashboard-Item {
    margin: 0 auto !important;
    width: fit-content !important;
}

/* Fix for portrait images in grid */
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* Hover effects for photo cards */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:bg-opacity-50 {
    background-opacity: 0.5;
}

/* Model card image container */
.model-card-image {
    height: 300px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Ensure images fill the container */
.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================================
   HORIZONTAL PROFILE CARDS
   ============================================== */

/* Horizontal card container */
.horizontal-profile-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.horizontal-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

/* Image carousel container */
.horizontal-card-image {
    position: relative;
    width: 224px; /* w-56 */
    height: 240px; /* Adjusted for better proportions */
    overflow: hidden;
    border-radius: 0.75rem 0 0 0.75rem; /* rounded-l-xl */
}

/* Carousel navigation dots */
.carousel-dots {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-lg);
}

.carousel-dot {
    width: var(--space-2);
    height: var(--space-2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: all var(--duration-normal) ease;
    cursor: pointer;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Image transitions */
.carousel-main img {
    transition: all 0.3s ease-in-out;
}

/* Content section styling */
.horizontal-card-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 256px; /* Match image height */
}

/* Badge positioning for horizontal cards */
.horizontal-card-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
}

/* Rating stars container */
.rating-stars {
    display: flex;
    align-items: center;
}

/* Service badges styling */
.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1-5);
    margin-top: var(--space-2);
}

.service-badge {
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    padding: var(--space-1) var(--space-2-5);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) ease;
}

.service-badge:hover {
    background: var(--color-accent-light);
    filter: brightness(0.95);
    transform: scale(1.05);
}

/* Physical attribute badges */
.physical-badge {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    padding: var(--space-1) var(--space-2-5);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) ease;
}

.physical-badge.gender {
    background: var(--color-info-light);
    color: var(--color-info);
}

.physical-badge.age {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
}

.physical-badge.body-type {
    background: var(--color-success-light);
    color: var(--color-success);
}

/* Contact button styling */
.contact-btn {
    background: var(--color-accent);
    transition: all var(--duration-slow) ease;
}

.contact-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Photo count badge */
.photo-count-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

/* Description text styling */
.description-preview {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.read-more-btn {
    color: var(--color-accent);
    font-weight: var(--font-medium);
    transition: color var(--duration-normal) ease;
}

.read-more-btn:hover {
    color: var(--color-accent-hover);
}

/* Footer section */
.horizontal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.media-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.media-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .horizontal-card-image {
        width: 160px; /* w-40 */
        height: 200px; /* Adjusted for wider image */
    }
    
    .horizontal-card-content {
        padding: var(--space-3);
        min-height: 160px;
    }
    
    /* Limit text on mobile to prevent tall cards */
    .horizontal-profile-card .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .horizontal-profile-card .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .service-badges {
        gap: var(--space-1);
    }

    .service-badge {
        font-size: 0.625rem;
        padding: var(--space-0-5) var(--space-1-5);
    }

    .media-info {
        font-size: var(--text-xs);
        gap: var(--space-2);
    }

    .contact-btn {
        padding: var(--space-1-5) var(--space-3);
        font-size: var(--text-xs);
    }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) {
    .horizontal-card-image {
        width: 192px; /* w-48 */
        height: 220px; /* Adjusted for wider image */
    }
    
    .horizontal-card-content {
        min-height: 200px;
        padding: var(--space-5);
    }
}

/* Small tablet adjustments */
@media (min-width: 640px) and (max-width: 768px) {
    .horizontal-profile-card .sm\:line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Full text on desktop */
@media (min-width: 768px) {
    .horizontal-profile-card .md\:line-clamp-none {
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
    }
}

/* Animation for image carousel */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-main.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* VIP glow effect for horizontal cards */
.horizontal-card-vip-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    opacity: 0.2;
    filter: blur(16px);
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 50%, #e9d5ff 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.horizontal-profile-card:hover .horizontal-card-vip-glow {
    opacity: 0.3;
}

/* View Switcher Styles */
.view-switcher {
    background-color: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--duration-normal) ease;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--color-text-tertiary);
}

.view-btn:hover {
    color: var(--color-text-secondary);
}

.view-btn.active {
    background-color: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

/* Layout View States */
#grid-view {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#list-view {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.view-hidden {
    display: none !important;
}

.view-visible {
    display: block;
}

/* Grid view specific styles */
#grid-view.view-visible {
    display: grid;
}

/* List view specific styles */
#list-view.view-visible {
    display: block;
}
/* Rising Star Badge - For profiles with VIP + Auto-Raise */
.rising-star-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2-5);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) ease;
    cursor: help;
    position: relative;
}

.rising-star-badge:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.rising-star-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    animation: sparkle 2s ease-in-out infinite;
}

.rising-star-text {
    white-space: nowrap;
}

/* Sparkle animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .rising-star-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .rising-star-icon {
        width: 12px;
        height: 12px;
    }
}

/* Badge container for multiple badges */
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1-5);
    margin-top: var(--space-2);
}

/* Ensure badges work well together */
.profile-badges .rising-star-badge,
.profile-badges .vip-badge {
    margin: 0;
}

/* ==============================================
   FORM FIELD IMPROVEMENTS - Better Visibility
   ============================================== */

/* Enhanced base styles for all form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
    border: 1px solid var(--color-border-input) !important;
    background-color: var(--color-bg);
    transition: all var(--duration-normal) ease;
}

/* Enhanced focus state - Modern ring utility style */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent) !important;
    outline: none;
    box-shadow: 0 0 0 3px var(--color-focus-accent), 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    background-color: var(--color-bg);
}

/* Hover state for better interactivity feedback */
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
input[type="url"]:hover:not(:focus),
input[type="search"]:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--color-border-strong) !important;
}

/* Disabled state */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--color-bg-tertiary) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text-muted) !important;
    cursor: not-allowed;
}

/* Select dropdown arrow enhancement */
select {
    appearance: none; /* Remove default browser arrow */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Ensure arrow icon doesn't get overridden */
select::-ms-expand {
    display: none; /* Remove default arrow in IE/Edge */
}

/* Placeholder text visibility */
input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}

/* Required field indicator */
.required-field::after {
    content: " *";
    color: var(--color-error);
    font-weight: var(--font-semibold);
}

/* Error state styling */
input.error,
select.error,
textarea.error {
    border-color: var(--color-error) !important;
    background-color: var(--color-error-light) !important;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Success state styling */
input.success,
select.success,
textarea.success {
    border-color: var(--color-success) !important;
    background-color: var(--color-success-light) !important;
}

/*
 * DARK MODE DISABLED - Always use light mode for forms
 * Browser dark mode causes unreadable form inputs (dark bg + dark text)
 * Force light color scheme for all form inputs regardless of system preference
 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="checkbox"],
input[type="radio"],
select,
textarea {
    color-scheme: light !important;
    color: var(--color-text) !important;
    background-color: var(--color-bg) !important;
}

/* Ensure select keeps custom arrow visible */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
}

/* ==============================================
   MOBILE TOUCH OPTIMIZATION - Task 7.1
   44px minimum touch target, tap highlights
   ============================================== */

/* Disable default tap highlights (we'll add our own) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure all interactive elements meet 44px minimum touch target */
button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.btn {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    position: relative;
}

/* Custom tap highlight for buttons and links */
button:active,
a:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
[role="button"]:active,
.btn:active {
    background-color: var(--tap-highlight-primary);
}

/* Accent buttons tap highlight */
.bg-pink-600:active,
.contact-btn:active,
button.bg-pink-600:active,
a.bg-pink-600:active {
    filter: brightness(0.95);
}

/* Touch targets for small icon buttons */
.icon-btn,
button[aria-label],
a[aria-label] {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
}

/* Profile card touch optimization */
.horizontal-profile-card,
.model-card,
.profile-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.horizontal-profile-card:active,
.model-card:active,
.profile-card:active {
    opacity: 0.95;
}

/* Navigation menu items */
nav a,
.nav-link,
.menu-item {
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
}

nav a:active,
.nav-link:active,
.menu-item:active {
    background-color: var(--tap-highlight-primary);
}

/* Checkbox and radio button touch targets */
input[type="checkbox"],
input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

/* Expand touch area for checkboxes/radios with labels */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    cursor: pointer;
    padding: var(--space-2);
    margin: calc(var(--space-2) * -1);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--touch-target-min);
}

/* Form control touch optimization */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
    min-height: var(--touch-target-min);
}

/* Carousel navigation dots */
.carousel-dot {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    padding: var(--space-2);
    cursor: pointer;
}

.carousel-dot:active {
    background-color: var(--tap-highlight-info);
}

/* View switcher buttons */
.view-btn {
    min-height: var(--touch-target-min);
}

.view-btn:active {
    background-color: var(--tap-highlight-primary);
}

/* Service badges - make clickable ones larger */
.service-badge[role="button"],
.service-badge.clickable {
    min-height: var(--space-9); /* 36px */
    padding: var(--space-2) var(--space-4);
}

/* Mobile-specific touch optimizations */
@media (max-width: 768px) {
    /* Increase tap targets on small screens */
    button,
    a,
    .btn {
        min-height: 48px; /* Slightly larger on mobile */
    }

    /* Larger checkboxes on mobile */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }

    /* Navigation items - more spacing */
    nav a,
    .nav-link,
    .menu-item {
        min-height: 48px;
        padding: var(--space-3) var(--space-4);
    }

    /* Floating action buttons - ensure touch target */
    .floating-save-btn {
        min-height: 56px;
        min-width: 56px;
    }
}

/* iOS specific optimizations */
@supports (-webkit-touch-callout: none) {
    /* Disable text selection on buttons */
    button,
    a,
    .btn {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Improve button active states */
    button:active,
    a:active,
    .btn:active {
        transition: none;
    }
}

/* Fix number input height to match other inputs - CRITICAL for consistent form appearance */
input[type="number"] {
    min-height: 3rem !important; /* Slightly taller for better spacing */
    font-size: var(--text-base) !important; /* Match text-base (16px) */
    line-height: var(--leading-normal) !important; /* Match text-base line height */
    padding: var(--space-3) var(--space-4) !important; /* Match py-3 px-4 */
}

/* Ensure select dropdowns match the same height */
select {
    min-height: 3rem !important;
    font-size: var(--text-base) !important; /* Match text-base (16px) */
    line-height: var(--leading-normal) !important;
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-4) !important; /* py-3 px-4, extra right padding for arrow */
}

/* ==============================================
   ELEVATION SYSTEM - Consistent Depth Hierarchy
   ============================================== */

/* Elevation Levels - Use these classes or CSS variables for consistent depth
   Level 0 (Flat): No shadow - Default state
   Level 1 (Raised): --shadow-sm - Subtle lift for cards/buttons
   Level 2 (Floating): --shadow-md - Interactive elements, hover states
   Level 3 (Overlay): --shadow-lg - Dropdowns, modals, tooltips
   Level 4 (Modal): --shadow-xl - Important overlays, dialogs
   Level 5 (Pop-out): --shadow-2xl - Emphasized modals, focus states
*/

/* Base elevation utilities */
.elevation-0 {
    box-shadow: none;
}

.elevation-1 {
    box-shadow: var(--shadow-sm);
}

.elevation-2 {
    box-shadow: var(--shadow-md);
}

.elevation-3 {
    box-shadow: var(--shadow-lg);
}

.elevation-4 {
    box-shadow: var(--shadow-xl);
}

/* Hover elevation transitions */
.hover-elevation-1:hover {
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration-normal) ease;
}

.hover-elevation-2:hover {
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--duration-normal) ease;
}

.hover-elevation-3:hover {
    box-shadow: var(--shadow-lg);
    transition: box-shadow var(--duration-normal) ease;
}

/* Component-specific elevation examples */
.card-elevated {
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) ease;
}

.card-elevated:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dropdown-elevated {
    box-shadow: var(--shadow-lg);
}

.modal-elevated {
    box-shadow: var(--shadow-xl);
}

/* ==============================================
   POLISHED COMPONENTS - Design Refresh 2025
   ============================================== */

/* ==============================================
   BADGE SYSTEM - Unified & Minimal Design
   ============================================== */

/* VIP/Premium Badge Polish - More subtle */
.badge-vip,
.bg-gradient-to-r.from-purple-600.to-pink-600 {
    background: var(--color-vip) !important;
    box-shadow: 0 1px 2px rgba(124, 58, 237, 0.15);
}

.badge-verified,
.bg-blue-600 {
    background: var(--color-info) !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
}

/* Polish Rising Star badge - less aggressive */
.rising-star-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    box-shadow: 0 1px 2px rgba(251, 191, 36, 0.2) !important;
    animation: none !important; /* Remove sparkle animation */
}

.rising-star-badge:hover {
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Remove excessive animations */
.animate-pulse {
    animation: none !important;
}

/* ==============================================
   BUTTON SYSTEM - More Subtle
   ============================================== */

/* Primary buttons - Less heavy gradients */
.bg-pink-600:not(.hover\:bg-pink-700),
button.bg-pink-600,
a.bg-pink-600 {
    background: var(--color-accent) !important;
    box-shadow: 0 1px 2px rgba(190, 24, 93, 0.1);
    transition: all var(--duration-normal) ease;
}

.bg-pink-600:hover,
button.bg-pink-600:hover,
a.bg-pink-600:hover {
    background: var(--color-accent-hover) !important;
    box-shadow: 0 2px 4px rgba(190, 24, 93, 0.15);
    transform: translateY(-1px);
}

/* Gradient buttons - Tone down */
.bg-gradient-to-r {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.bg-gradient-to-r:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

/* Secondary/outline buttons - Clean borders */
.border-pink-600:not(.bg-pink-600) {
    border-color: var(--color-accent) !important;
    border-width: 1px !important;
    color: var(--color-accent) !important;
}

.border-pink-600:not(.bg-pink-600):hover {
    background-color: var(--color-accent-light) !important;
    border-color: var(--color-accent-hover) !important;
}

.border-blue-600:not(.bg-blue-600) {
    border-color: var(--color-info) !important;
    border-width: 1px !important;
    color: var(--color-info) !important;
}

.border-blue-600:not(.bg-blue-600):hover {
    background-color: var(--color-info-light) !important;
    border-color: #1d4ed8 !important;
}

/* ==============================================
   PROFILE CARD POLISH
   ============================================== */

/* Reduce card shadows - more subtle */
.shadow-md {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg,
.hover\:shadow-lg:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-xl,
.hover\:shadow-xl:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.shadow-2xl,
.hover\:shadow-2xl:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Profile card borders - more subtle */
.ring-2 {
    ring-opacity: 0.4 !important;
}

.ring-2:hover,
.hover\:ring-opacity-100:hover {
    ring-opacity: 0.7 !important;
}

/* VIP glow effect - more subtle */
.horizontal-card-vip-glow,
.bg-gradient-to-r.from-purple-600.to-pink-600[class*="blur"] {
    opacity: 0.1 !important;
}

.horizontal-profile-card:hover .horizontal-card-vip-glow {
    opacity: 0.15 !important;
}

/* Service badges - Lighter colors */
.service-badge,
.bg-pink-100 {
    background-color: var(--color-accent-light) !important;
    color: var(--color-accent) !important;
    font-weight: var(--font-medium) !important;
}

/* Physical attribute badges - Softer colors */
.physical-badge.gender,
.bg-blue-100 {
    background-color: var(--color-info-light) !important;
    color: var(--color-info) !important;
}

.physical-badge.age,
.bg-gray-100 {
    background-color: var(--color-bg-tertiary) !important;
    color: var(--color-text-secondary) !important;
}

.physical-badge.body-type,
.bg-green-100 {
    background-color: var(--color-success-light) !important;
    color: var(--color-success) !important;
}

/* ==============================================
   LOADING STATES & SKELETON LOADERS - Task 7.2
   Pulse animations, button spinners, HTMX states
   ============================================== */

/* Enhanced skeleton loader with smooth pulse animation */
.skeleton,
.skeleton-text,
.skeleton-avatar,
.skeleton-button {
    background: linear-gradient(
        90deg,
        var(--color-bg-tertiary) 0%,
        var(--color-bg-muted) 50%,
        var(--color-bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton text variations */
.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-2);
}

.skeleton-text-sm {
    height: 0.875rem;
}

.skeleton-text-lg {
    height: 1.25rem;
}

/* Skeleton avatar */
.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

/* Skeleton button */
.skeleton-button {
    height: var(--touch-target-min);
    width: 120px;
}

/* Skeleton card */
.skeleton-card {
    padding: var(--space-6);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

/* CSS-based loading spinner for buttons */
.btn-loading,
button.loading,
.loading-spinner {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after,
button.loading::after,
.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate var(--duration-slow) linear infinite;
}

/* Primary button loading spinner (white) */
.bg-pink-600.btn-loading::after,
.bg-pink-600.loading::after,
button.bg-pink-600.loading::after {
    border-color: white;
    border-right-color: transparent;
}

/* Secondary button loading spinner (colored) */
.border-pink-600.btn-loading::after,
.border-pink-600.loading::after {
    border-color: var(--color-accent);
    border-right-color: transparent;
}

@keyframes spinner-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Larger spinner for standalone use */
.loading-spinner-lg::after {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border-width: 3px;
}

/* HTMX loading states */
.htmx-request,
.htmx-swapping {
    position: relative;
}

/* Show spinner during HTMX requests */
.htmx-request .htmx-indicator,
.htmx-swapping .htmx-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-accent);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate var(--duration-slow) linear infinite;
    margin-left: var(--space-2);
}

/* Fade in/out transitions for HTMX */
.htmx-settling {
    animation: fade-in var(--duration-fast) ease-in;
}

.htmx-swapping {
    opacity: 0.6;
    transition: opacity var(--duration-fast) ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form loading overlay */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.form-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    opacity: 0.5;
    border-radius: var(--radius-lg);
}

.form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--color-accent);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate var(--duration-slow) linear infinite;
    z-index: 1;
}

/* Loading state for profile cards */
.card-loading {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* Shimmer effect for images loading */
.img-loading {
    position: relative;
    background: var(--color-bg-tertiary);
}

.img-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Loading dots animation */
.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s steps(4, end) infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Pulse animation for notifications */
.pulse {
    animation: pulse-animation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-animation {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Progress bar animation */
.progress-bar-animated {
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        var(--color-accent-hover) 50%,
        var(--color-accent) 100%
    );
    background-size: 200% 100%;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Disabled state during loading */
.loading-disabled,
[disabled].loading {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Skeleton profile card */
.skeleton-profile-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.skeleton-profile-image {
    width: 224px;
    height: 240px;
    border-radius: var(--radius-lg);
    background: linear-gradient(
        90deg,
        var(--color-bg-tertiary) 0%,
        var(--color-bg-muted) 50%,
        var(--color-bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Mobile responsive loading states */
@media (max-width: 768px) {
    .skeleton-profile-card {
        flex-direction: column;
        padding: var(--space-4);
    }

    .skeleton-profile-image {
        width: 100%;
        height: 200px;
    }

    /* Smaller spinners on mobile */
    .btn-loading::after,
    button.loading::after {
        width: 14px;
        height: 14px;
        margin: -7px 0 0 -7px;
    }
}

/* ==============================================
   RESPONSIVE POLISH
   ============================================== */

@media (max-width: 640px) {
    /* Smaller shadows on mobile */
    .shadow-md {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    }

    .shadow-lg,
    .hover\:shadow-lg:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    }

    /* Reduce button padding on mobile */
    button,
    .btn {
        padding-top: 0.625rem !important;
        padding-bottom: 0.625rem !important;
    }
}

/* ==============================================
   EMPTY STATES & ERROR HANDLING UI - Task 7.5
   ============================================== */

/* Empty State Container */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-8);
    text-align: center;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    min-height: 300px;
}

.empty-state-icon {
    width: var(--space-16);
    height: var(--space-16);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    font-size: var(--text-base);
    color: var(--color-text-tertiary);
    max-width: 450px;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.empty-state-action {
    margin-top: var(--space-4);
}

/* Empty State Variants */
.empty-state-compact {
    padding: var(--space-8) var(--space-6);
    min-height: 200px;
}

.empty-state-compact .empty-state-icon {
    width: var(--space-12);
    height: var(--space-12);
}

.empty-state-compact .empty-state-title {
    font-size: var(--text-lg);
}

.empty-state-compact .empty-state-description {
    font-size: var(--text-sm);
}

/* Missing Image Placeholder */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-tertiary);
    border: 2px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    width: 100%;
    height: 100%;
    min-height: 200px;
    color: var(--color-text-muted);
    transition: all var(--duration-normal) ease;
}

.image-placeholder:hover {
    border-color: var(--color-border-input);
    background-color: var(--color-bg-muted);
}

.image-placeholder-icon {
    width: var(--space-12);
    height: var(--space-12);
    opacity: 0.5;
}

.image-placeholder-text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-top: var(--space-2);
    color: var(--color-text-tertiary);
}

/* Profile Card Missing Image */
.profile-card .image-placeholder {
    aspect-ratio: 3 / 4;
    min-height: 300px;
}

/* No Results State */
.no-results {
    padding: var(--space-12) var(--space-6);
    text-align: center;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
}

.no-results-icon {
    width: var(--space-16);
    height: var(--space-16);
    margin: 0 auto var(--space-4);
    color: var(--color-text-muted);
}

.no-results-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.no-results-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-suggestions {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.no-results-suggestions li {
    padding: var(--space-1) 0;
}

.no-results-suggestions li::before {
    content: "•";
    margin-right: var(--space-2);
    color: var(--color-accent);
}

/* Error State Container */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-6);
    background-color: var(--color-error-light);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
}

.error-state-icon {
    width: var(--space-12);
    height: var(--space-12);
    color: var(--color-error);
    margin-bottom: var(--space-3);
}

.error-state-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-error);
    margin-bottom: var(--space-2);
}

.error-state-message {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 400px;
}

/* Inline Error Messages */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-error-light);
    border-left: 3px solid var(--color-error);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-error);
}

.error-message-icon {
    flex-shrink: 0;
    width: var(--space-4);
    height: var(--space-4);
    margin-top: var(--space-0-5);
}

.error-message-text {
    flex: 1;
    line-height: var(--leading-normal);
}

/* Form Field Error State */
.form-field-error {
    margin-top: var(--space-1-5);
}

.form-field-error .error-message {
    margin-top: 0;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

/* Input validation error styling */
input.invalid,
select.invalid,
textarea.invalid,
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: var(--color-error) !important;
    background-color: var(--color-error-light) !important;
}

input.invalid:focus,
select.invalid:focus,
textarea.invalid:focus,
input:invalid:focus:not(:placeholder-shown),
select:invalid:focus:not(:placeholder-shown),
textarea:invalid:focus:not(:placeholder-shown) {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    border-color: var(--color-error) !important;
}

/* Success Message (for comparison/consistency) */
.success-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-success-light);
    border-left: 3px solid var(--color-success);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-success);
}

.success-message-icon {
    flex-shrink: 0;
    width: var(--space-4);
    height: var(--space-4);
    margin-top: var(--space-0-5);
}

.success-message-text {
    flex: 1;
    line-height: var(--leading-normal);
}

/* Warning Message */
.warning-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-warning-light);
    border-left: 3px solid var(--color-warning);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-warning);
}

.warning-message-icon {
    flex-shrink: 0;
    width: var(--space-4);
    height: var(--space-4);
    margin-top: var(--space-0-5);
}

.warning-message-text {
    flex: 1;
    line-height: var(--leading-normal);
}

/* Info Message */
.info-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-info-light);
    border-left: 3px solid var(--color-info);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-info);
}

.info-message-icon {
    flex-shrink: 0;
    width: var(--space-4);
    height: var(--space-4);
    margin-top: var(--space-0-5);
}

.info-message-text {
    flex: 1;
    line-height: var(--leading-normal);
}

/* Responsive adjustments for empty/error states */
@media (max-width: 640px) {
    .empty-state {
        padding: var(--space-8) var(--space-4);
        min-height: 250px;
    }

    .empty-state-icon {
        width: var(--space-12);
        height: var(--space-12);
    }

    .empty-state-title {
        font-size: var(--text-lg);
    }

    .empty-state-description {
        font-size: var(--text-sm);
    }

    .no-results {
        padding: var(--space-8) var(--space-4);
    }

    .no-results-icon {
        width: var(--space-12);
        height: var(--space-12);
    }

    .no-results-title {
        font-size: var(--text-xl);
    }

    .error-state {
        padding: var(--space-6) var(--space-4);
    }
}

/* ==============================================
   ACCESSIBILITY ENHANCEMENTS - Task 7.6
   ============================================== */

/* Visually Hidden - Screen reader only text */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focusable when navigated to via keyboard */
.visually-hidden:focus,
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: var(--space-2);
    z-index: 9999;
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-primary);
    color: var(--color-bg);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.skip-to-main:focus {
    left: var(--space-4);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Enhanced focus visible states for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Remove outline for mouse users (keeping it for keyboard) */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Accessible focus ring for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Ensure focus states don't break layouts */
img:focus-visible,
[role="img"]:focus-visible {
    outline-offset: 0;
}

/* High contrast focus for critical actions */
.btn-primary:focus-visible,
.btn-danger:focus-visible {
    outline-width: 3px;
    outline-offset: 3px;
}

/* ARIA live region styling (visually subtle) */
[aria-live="polite"],
[aria-live="assertive"] {
    position: relative;
}

/* Status indicators with ARIA support */
[role="status"],
[role="alert"] {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin: var(--space-2) 0;
}

[role="alert"] {
    background-color: var(--color-error-light);
    border-left: 3px solid var(--color-error);
    color: var(--color-error);
}

[role="status"] {
    background-color: var(--color-info-light);
    border-left: 3px solid var(--color-info);
    color: var(--color-info);
}

/* Accessible form labels */
label {
    display: block;
    font-weight: var(--font-medium);
    color: var(--color-text);
    margin-bottom: var(--space-2);
    cursor: pointer;
}

label.required::after {
    content: " *";
    color: var(--color-error);
    font-weight: var(--font-semibold);
}

/* Accessible error text for form fields */
.field-error,
[role="alert"].field-error {
    display: block;
    margin-top: var(--space-1-5);
    font-size: var(--text-sm);
    color: var(--color-error);
    font-weight: var(--font-medium);
}

/* Enhanced error visibility for inputs */
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--color-error) !important;
    background-color: var(--color-error-light) !important;
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* ARIA describedby hint text */
.field-hint,
[id$="-hint"],
[id$="-description"] {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    line-height: var(--leading-normal);
}

/* Accessible disabled states */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--color-bg-tertiary) !important;
}

button:disabled:hover,
[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
}

/* Keyboard navigation indicators */
.keyboard-focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Accessible tooltips */
[role="tooltip"],
.tooltip {
    position: absolute;
    z-index: 1000;
    padding: var(--space-2) var(--space-3);
    background-color: var(--color-primary);
    color: var(--color-bg);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 250px;
    word-wrap: break-word;
}

/* Loading indicators with ARIA */
[aria-busy="true"] {
    position: relative;
    cursor: wait;
}

[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: inherit;
    pointer-events: none;
}

/* Progress indicators */
[role="progressbar"] {
    height: var(--space-2);
    background-color: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

[role="progressbar"]::before {
    content: "";
    display: block;
    height: 100%;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) ease;
}

/* Accessible modals/dialogs */
[role="dialog"],
[role="alertdialog"] {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

[role="dialog"] [role="document"],
[role="alertdialog"] [role="document"] {
    padding: var(--space-6);
}

/* Accessible accordions */
[role="button"][aria-expanded] {
    cursor: pointer;
}

[role="button"][aria-expanded="false"] + * {
    display: none;
}

[role="button"][aria-expanded="true"] + * {
    display: block;
}

/* Accessible tabs */
[role="tablist"] {
    display: flex;
    gap: var(--space-2);
    border-bottom: 2px solid var(--color-border);
}

[role="tab"] {
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--duration-normal) ease;
}

[role="tab"]:hover {
    color: var(--color-text);
    background-color: var(--color-bg-secondary);
}

[role="tab"][aria-selected="true"] {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

[role="tabpanel"] {
    padding: var(--space-6) 0;
}

[role="tabpanel"][hidden] {
    display: none;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .skeleton {
        animation: none;
        background: var(--color-bg-tertiary);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000000;
        --color-border-strong: #000000;
        --color-text-tertiary: var(--color-text-secondary);
    }

    button,
    input,
    select,
    textarea {
        border-width: 2px !important;
    }

    *:focus-visible {
        outline-width: 3px;
    }
}

/* ========================================
   HOTFIXES - Design Refresh Issues
   ======================================== */

/* Fix: Popular Cities vs Popular Locations font size inconsistency
   Force all "Popular" headings to use same size (text-lg = 1.125rem) */

/* Target Popular Cities in sidebar (home page) */
aside h2.text-lg {
    font-size: var(--text-lg) !important;
}

/* Target Popular Locations on city pages - override text-2xl with text-lg */
.text-2xl.font-bold.mb-6 {
    font-size: var(--text-lg) !important;
}

/* More general fallback: All h2 headings in sidebars should use text-lg */
aside h2 {
    font-size: var(--text-lg) !important;
}

/* Pagination Readability Enhancement */
/* Target all pagination elements for better visibility */
.pagination,
[class*="pagination"],
nav[aria-label*="pagination" i],
nav[aria-label*="Pagination" i] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-6) 0;
}

.pagination a,
.pagination button,
.pagination span,
[class*="pagination"] a,
[class*="pagination"] button,
[class*="pagination"] span,
nav[aria-label*="pagination" i] a,
nav[aria-label*="pagination" i] button,
nav[aria-label*="pagination" i] span {
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text) !important;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}

.pagination a:hover,
[class*="pagination"] a:hover,
nav[aria-label*="pagination" i] a:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-border-strong);
    color: var(--color-primary) !important;
}

.pagination .active,
.pagination [aria-current="page"],
[class*="pagination"] .active,
[class*="pagination"] [aria-current="page"],
nav[aria-label*="pagination" i] .active,
nav[aria-label*="pagination" i] [aria-current="page"] {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-bg) !important;
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow-sm);
}

.pagination .disabled,
.pagination [aria-disabled="true"],
[class*="pagination"] .disabled,
[class*="pagination"] [aria-disabled="true"],
nav[aria-label*="pagination" i] .disabled,
nav[aria-label*="pagination" i] [aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile Menu Visibility Fix */
/* Ensure mobile menu is visible and has proper contrast */
@media (max-width: 1024px) {
    /* Mobile menu button - ensure it's always visible */
    button[aria-label*="menu" i],
    button[aria-label*="Menu" i],
    .mobile-menu-button,
    [class*="mobile-menu"] button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: var(--space-2);
        background-color: transparent;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        color: var(--color-text) !important;
        transition: all var(--duration-fast) ease;
    }

    button[aria-label*="menu" i]:hover,
    button[aria-label*="Menu" i]:hover,
    .mobile-menu-button:hover {
        background-color: var(--color-bg-secondary);
        border-color: var(--color-border-strong);
    }

    /* Mobile menu dropdown */
    nav[aria-label*="mobile" i],
    .mobile-menu,
    [class*="mobile-menu"] nav,
    [id*="mobile-menu"] {
        background-color: var(--color-bg) !important;
        border: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        z-index: 50;
    }

    /* Mobile menu items */
    nav[aria-label*="mobile" i] a,
    .mobile-menu a,
    [class*="mobile-menu"] a,
    [id*="mobile-menu"] a {
        display: block;
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-base);
        font-weight: var(--font-medium);
        color: var(--color-text) !important;
        text-decoration: none;
        border-bottom: 1px solid var(--color-border);
        transition: background-color var(--duration-fast) ease;
        min-height: 44px;
    }

    nav[aria-label*="mobile" i] a:hover,
    .mobile-menu a:hover,
    [class*="mobile-menu"] a:hover,
    [id*="mobile-menu"] a:hover {
        background-color: var(--color-bg-secondary);
        color: var(--color-primary) !important;
    }

    /* Ensure menu text is always visible */
    nav[aria-label*="mobile" i] *,
    .mobile-menu *,
    [class*="mobile-menu"] *,
    [id*="mobile-menu"] * {
        color: inherit !important;
    }
}

/* Mobile-specific pagination adjustments */
@media (max-width: 640px) {
    .pagination a,
    .pagination button,
    [class*="pagination"] a,
    [class*="pagination"] button,
    nav[aria-label*="pagination" i] a,
    nav[aria-label*="pagination" i] button {
        min-width: 40px;
        min-height: 40px;
        font-size: var(--text-sm);
        padding: var(--space-1) var(--space-2);
    }
}

/* Fix: Remove translateY hover effect from carousel/gallery arrow buttons
   Gallery arrows should not move up/down on hover - only opacity change */
button[class*="prev"]:hover,
button[class*="next"]:hover,
button[class*="arrow"]:hover,
button[aria-label*="previous" i]:hover,
button[aria-label*="next" i]:hover,
.carousel button:hover,
[class*="carousel"] button:hover,
[class*="gallery"] button:hover {
    transform: none !important;
}

/* Gallery arrows - only opacity feedback on hover */
button[class*="prev"],
button[class*="next"],
button[class*="arrow"],
button[aria-label*="previous" i],
button[aria-label*="next" i],
.carousel button,
[class*="carousel"] button,
[class*="gallery"] button {
    transition: opacity var(--duration-fast) ease;
}

button[class*="prev"]:hover,
button[class*="next"]:hover,
button[class*="arrow"]:hover,
button[aria-label*="previous" i]:hover,
button[aria-label*="next" i]:hover,
.carousel button:hover,
[class*="carousel"] button:hover,
[class*="gallery"] button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.95);
}

/* Fix: Pagination links also need transform override
   Pagination Previous/Next links should not jump on hover */
.pagination a:hover,
[class*="pagination"] a:hover,
nav[aria-label*="pagination" i] a:hover,
a.border.rounded:hover {
    transform: none !important;
}

/* ==============================================
   DASHBOARD SIDEBAR - User Navigation
   Task 41: Dashboard Sidebar Navigation
   ============================================== */

/* Dashboard wrapper - flex container for sidebar + content */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* Mobile header bar for dashboard - visible only on mobile */
.dashboard-mobile-header {
    display: none;
    position: fixed;
    top: 64px; /* Below main header */
    left: 0;
    right: 0;
    height: 48px;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 35;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.dashboard-mobile-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

/* Mobile toggle button styling */
.dashboard-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.dashboard-mobile-toggle:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text);
}

/* Show mobile header on smaller screens */
@media (max-width: 1023px) {
    .dashboard-mobile-header {
        display: flex;
    }

    .dashboard-mobile-toggle {
        display: flex;
    }

    /* Adjust main content to account for mobile header */
    .dashboard-main-content {
        margin-top: 48px !important;
    }
}

/* Sidebar container - Light theme */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 64px; /* Height of header (h-16 = 64px) */
    height: calc(100vh - 64px);
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-border);
    transition: width var(--duration-normal) ease-in-out;
    z-index: 40;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar expanded state */
.dashboard-sidebar.expanded {
    width: 256px;
}

/* Sidebar collapsed state */
.dashboard-sidebar.collapsed {
    width: 64px;
}

/* Sidebar hover expand when collapsed */
.dashboard-sidebar.collapsed.hover-expand {
    width: 256px;
    box-shadow: var(--shadow-lg);
}

/* Main content area with sidebar offset */
.dashboard-main-content {
    flex: 1;
    transition: margin-left var(--duration-normal) ease-in-out;
    padding: var(--space-4);
    max-width: 100%;
}

.dashboard-main-content.sidebar-expanded {
    margin-left: 256px;
}

.dashboard-main-content.sidebar-collapsed {
    margin-left: 64px;
}

/* Sidebar scrollbar styling */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--color-border-strong);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text-muted);
}

/* Sidebar header with toggle button */
.dashboard-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

/* Sidebar toggle button */
.dashboard-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--duration-fast) ease;
}

.dashboard-sidebar-toggle:hover {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text);
}

/* Sidebar coin balance widget */
.sidebar-balance-container {
    margin: var(--space-2) var(--space-3);
    padding: var(--space-2);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
}

.sidebar-balance-loading {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
    padding: var(--space-1) 0;
}

.sidebar-balance-widget {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
    text-decoration: none;
    padding: var(--space-1);
    border-radius: 6px;
    transition: background-color var(--duration-fast) ease;
}

.sidebar-balance-widget:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-balance-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.sidebar-balance-amount {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
}

.sidebar-balance-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Sidebar menu group header */
.dashboard-sidebar-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    user-select: none;
    border: none;
    background: transparent;
    transition: all var(--duration-fast) ease;
}

.dashboard-sidebar-group-header:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
}

/* Sidebar group icon */
.dashboard-sidebar-group-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
}

.dashboard-sidebar-group-header:hover .dashboard-sidebar-group-icon {
    color: var(--color-text-secondary);
}

/* Sidebar group label */
.dashboard-sidebar-group-label {
    margin-left: 12px;
    white-space: nowrap;
    overflow: hidden;
}

/* Sidebar group chevron */
.dashboard-sidebar-group-chevron {
    margin-left: auto;
    transition: transform var(--duration-fast) ease;
    color: var(--color-text-muted);
}

.dashboard-sidebar-group-chevron.rotated {
    transform: rotate(90deg);
}

/* Sidebar submenu container */
.dashboard-sidebar-submenu {
    background-color: var(--color-bg-secondary);
    overflow: hidden;
}

/* Sidebar menu item */
.dashboard-sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px 10px 48px;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--duration-fast) ease;
    white-space: nowrap;
}

.dashboard-sidebar-menu-item:hover {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text);
    text-decoration: none;
}

/* Active menu item */
.dashboard-sidebar-menu-item.active {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent);
    padding-left: 45px;
    font-weight: var(--font-medium);
}

/* Badge for menu items (notifications, counts) */
.dashboard-sidebar-badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    background-color: var(--color-accent);
    color: white;
    border-radius: 9999px;
}

/* Mobile hamburger toggle in header */
.dashboard-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--duration-fast) ease;
}

.dashboard-mobile-toggle:hover {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text);
}

/* Responsive: Mobile/Tablet styles */
@media (max-width: 1023px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
        width: 280px;
        box-shadow: var(--shadow-xl);
    }

    .dashboard-main-content.sidebar-expanded,
    .dashboard-main-content.sidebar-collapsed {
        margin-left: 0;
    }

    /* Mobile overlay backdrop */
    .dashboard-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        top: 64px;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 35;
    }

    .dashboard-sidebar-overlay.visible {
        display: block;
    }

    /* Show mobile toggle button */
    .dashboard-mobile-toggle {
        display: flex;
    }
}

/* Larger screens: always hide overlay */
@media (min-width: 1024px) {
    .dashboard-sidebar-overlay {
        display: none !important;
    }

    .dashboard-mobile-toggle {
        display: none !important;
    }
}

/* Collapsed sidebar: show only icons, expand on hover */
.dashboard-sidebar.collapsed .dashboard-sidebar-group-label,
.dashboard-sidebar.collapsed .dashboard-sidebar-group-chevron,
.dashboard-sidebar.collapsed .dashboard-sidebar-submenu {
    display: none;
}

.dashboard-sidebar.collapsed.hover-expand .dashboard-sidebar-group-label,
.dashboard-sidebar.collapsed.hover-expand .dashboard-sidebar-group-chevron,
.dashboard-sidebar.collapsed.hover-expand .dashboard-sidebar-submenu {
    display: block;
}

/* Tooltip for collapsed icons */
.dashboard-sidebar.collapsed:not(.hover-expand) .dashboard-sidebar-group-header {
    justify-content: center;
    padding: 12px;
}

.dashboard-sidebar.collapsed:not(.hover-expand) .dashboard-sidebar-group-icon {
    margin: 0;
}
