/* Global CSS Variables and Design System */
:root {
    /* Colors */
    --primary: #9747FF;
    --secondary: #6B46FF;
    --success: #10B981;
    --error: #EF4444;
    --text-primary: #0F1724;
    --text-secondary: #64748B;
    --background: #FFFFFF;
    --background-alt: #F8FAFC;
    --border: #E2E8F0;
    --shadow: rgba(15, 23, 36, 0.06);

    /* Fluid Typography - Auto-scales between mobile and desktop */
    --font-body: Calibri, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --size-body: clamp(15px, 2.5vw, 16px);
    --size-h1: clamp(28px, 5vw, 34px);
    --size-h2: clamp(22px, 4vw, 26px);
    --size-h3: clamp(18px, 3vw, 20px);
    --size-caption: clamp(13px, 2vw, 14px);
    --size-small: clamp(11px, 1.8vw, 12px);

    /* Fluid Spacing - Auto-scales for balanced layouts */
    --radius: clamp(8px, 1.5vw, 10px);
    --spacing-xs: clamp(3px, 0.5vw, 4px);
    --spacing-sm: clamp(6px, 1vw, 8px);
    --spacing-md: clamp(12px, 2vw, 16px);
    --spacing-lg: clamp(18px, 3vw, 24px);
    --spacing-xl: clamp(24px, 4vw, 32px);
    --spacing-2xl: clamp(32px, 6vw, 48px);

    /* Shadows */
    --shadow-sm: 0 2px 8px var(--shadow);
    --shadow-md: 0 6px 18px var(--shadow);
    --shadow-lg: 0 12px 32px var(--shadow);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --background: #0F1724;
    --background-alt: #1E293B;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);

    /* Surface colors for cards and containers */
    --surface: #1E293B;
    --surface-hover: #334155;
}

/* Light Mode (explicit for better clarity) */
[data-theme="light"],
:root {
    --surface: #FFFFFF;
    --surface-hover: #F8FAFC;
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--size-body);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Smooth theme transitions for all elements */
*,
*::before,
*::after {
    transition: background-color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

/* Typography */
h1 {
    font-size: var(--size-h1);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h2 {
    font-size: var(--size-h2);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h3 {
    font-size: var(--size-h3);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.caption {
    font-size: var(--size-caption);
    color: var(--text-secondary);
}

.small-text {
    font-size: var(--size-small);
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: min(1200px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: var(--size-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-primary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: var(--size-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: var(--size-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    background: var(--background-alt);
}

.icon-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--background-alt);
}

.icon-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Top Navigation */
.top-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideDown var(--transition-base);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--error);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-sm) 0;
    z-index: 100;
    box-shadow: 0 -2px 8px var(--shadow);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    transition: all var(--transition-base);
    flex: 1;
    max-width: 100px;
    position: relative;
}

.nav-item span {
    font-size: var(--size-small);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active span {
    font-weight: 600;
}

/* Pill indicator under active nav item */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px 2px 0 0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-item:hover {
    background: var(--background-alt);
    transform: scale(1.05);
}

.nav-item:active {
    transform: scale(0.95);
}

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

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding-top: 72px;
    padding-bottom: 80px;
    animation: fadeIn var(--transition-base);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

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

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

/* Card Components */
.card {
    background: white;
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    max-width: 100%;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #9747FF 0%, #6B46FF 100%);
    padding: var(--spacing-2xl) var(--spacing-md);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-size: 42px;
    margin-bottom: var(--spacing-md);
    animation: slideUp var(--transition-slow);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    animation: slideUp var(--transition-slow) 0.1s;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp var(--transition-slow) 0.2s;
}

.hero-cta .btn-primary {
    background: white;
    color: var(--primary);
}

.hero-cta .btn-secondary {
    border-color: white;
    color: white;
}

.hero-cta .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Stats Ribbon */
.stats-ribbon {
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--background-alt);
    margin-top: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    animation: fadeInUp var(--transition-base);
}

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

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

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--size-caption);
    color: var(--text-secondary);
}

/* Section Headers */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: var(--size-h2);
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.see-all:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

/* Creator Cards */
.creators-carousel {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.creators-carousel::-webkit-scrollbar {
    display: none;
}

.creators-carousel .creator-card {
    min-width: 300px;
}

.creator-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.creator-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(151, 71, 255, 0.15);
}

.creator-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    transition: transform var(--transition-base);
}

.creator-card:hover .creator-image {
    transform: scale(1.08);
}

/* Share button removed from cards - only in profile pages */

.creator-info {
    padding: 20px;
}

.creator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.creator-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    line-height: 1;
}

.tier-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.creator-role {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.creator-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.creator-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
}

.star {
    display: inline-block;
}

.star.filled {
    color: #FFA500;
}

.star.half {
    background: linear-gradient(90deg, #FFA500 50%, #DDD 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star.empty {
    color: #DDD;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.creator-price {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.creator-actions {
    display: flex;
    gap: 10px;
}

.creator-actions .btn-primary,
.creator-actions .btn-secondary {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

.category-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.category-icon {
    font-size: 40px;
    margin-bottom: var(--spacing-sm);
}

.category-name {
    font-size: 18px;
    font-weight: 600;
}

.category-count {
    font-size: var(--size-caption);
    opacity: 0.9;
    margin-top: 4px;
}

/* Search Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: none;
    animation: fadeIn var(--transition-fast);
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: white;
    width: 100%;
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    animation: slideUp var(--transition-base);
}

.search-header {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--size-body);
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.1);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.tag {
    background: var(--background-alt);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--size-caption);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Discover Page */
.discover-header {
    background: var(--background-alt);
    padding: var(--spacing-lg) var(--spacing-md);
}

.search-bar {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.search-bar input {
    flex: 1;
}

.filters-row {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
}

.filter-chip {
    background: white;
    border: 2px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--size-caption);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-md);
}

@media (min-width: 768px) {
    .creators-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .creators-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-xs);
    }

    .creator-image {
        height: 200px;
    }

    .creator-info {
        padding: 16px;
    }

    .creator-name {
        font-size: 18px;
    }

    .creator-actions {
        gap: 8px;
    }

    .creator-actions button {
        padding: 11px 14px;
        font-size: 13px;
    }
}

/* Profile Page */
.profile-cover {
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
}

.profile-header {
    padding: 0 var(--spacing-md);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid white;
    background: white;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
}

.profile-info {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.profile-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.profile-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-md);
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Service Cards */
.services-list {
    display: grid;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-md);
}

.service-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    transition: all var(--transition-fast);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.service-duration {
    color: var(--text-secondary);
    font-size: var(--size-caption);
}

.service-deliverables {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.service-deliverables li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.service-deliverables li::before {
    content: '✓';
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: 600;
}

/* Standardized Modal System */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--background);
    border-radius: 20px;
    padding: var(--spacing-xl);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-header h2 {
    font-size: var(--size-h2);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--size-body);
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.1);
}

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

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.form-actions button {
    flex: 1;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    border-radius: var(--radius);
    height: 400px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }

    .main-content {
        padding-bottom: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    :root {
        --size-h1: 28px;
        --size-h2: 22px;
        --size-h3: 18px;
        --size-body: 15px;
    }

    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    .main-content {
        padding: var(--spacing-md);
        padding-bottom: 100px !important;
        margin-left: 0 !important;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .stats-ribbon {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

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

    .wallet-cards-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .profile-picture-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .balance-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .balance-amount {
        font-size: 36px;
    }

    .balance-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .balance-actions button {
        width: 100%;
    }

    .user-avatar-btn span {
        display: none;
    }

    .top-nav {
        padding: 12px 0;
    }

    .nav-content {
        padding: 0 var(--spacing-md);
        max-width: 100%;
    }

    .nav-content>div:first-child {
        gap: 8px !important;
    }

    .nav-actions {
        gap: 8px;
    }

    .logo {
        font-size: 18px;
    }

    .logo span {
        display: inline;
    }

    .logo img {
        height: 28px;
        max-width: 100px;
    }

    .icon-btn {
        padding: 8px;
        min-width: 36px;
        min-height: 36px;
    }

    #backBtn {
        padding: 6px;
    }

    #searchBtn {
        display: flex;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 10px 16px;
        white-space: nowrap;
    }

    .user-avatar-btn {
        padding: 4px;
    }

    .user-avatar-btn img {
        width: 32px;
        height: 32px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: var(--spacing-sm);
    }

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

    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .creator-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .creator-actions button {
        width: 100%;
    }

    .profile-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .profile-actions button {
        width: 100%;
    }

    /* Modal improvements for mobile */
    .modal-overlay {
        padding: var(--spacing-sm);
    }

    .modal {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: var(--radius);
    }

    .modal-content {
        padding: var(--spacing-md);
        max-height: calc(95vh - 120px);
        overflow-y: auto;
    }

    .modal-header {
        padding: var(--spacing-md);
    }

    .modal-footer {
        padding: var(--spacing-md);
        flex-direction: column-reverse;
        gap: var(--spacing-sm);
    }

    .modal-footer button {
        width: 100%;
    }

    /* Profile and settings */
    .profile-edit-section {
        padding: var(--spacing-lg);
    }

    .profile-picture-preview img {
        width: 100px;
        height: 100px;
    }

    /* Transaction list */
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .transaction-amount {
        align-self: flex-end;
    }

    /* Booking stepper */
    .booking-stepper {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .step-label {
        font-size: 11px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix grid overflow */
    .grid,
    [class*="grid"] {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    margin-bottom: var(--spacing-lg);
}

/* Success/Error Messages */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-md);
}

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

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

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

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--border);
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.user-avatar-btn:hover {
    border-color: var(--primary);
    background: var(--background-alt);
}

.user-avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    overflow: hidden;
    display: none;
    animation: slideDown var(--transition-fast);
    z-index: 150;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    background: var(--background-alt);
}

.user-dropdown-name {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: var(--size-body);
    font-family: var(--font-body);
}

.user-dropdown-item:hover {
    background: var(--background-alt);
}

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

.user-dropdown-item.danger {
    color: var(--error);
}

.user-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--spacing-xs) 0;
}

/* Wallet Card Styles */
.wallet-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

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

.wallet-card-item {
    background: white;
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    border: 2px solid var(--border);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.wallet-card-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.wallet-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--spacing-md);
}

.wallet-card-label {
    font-size: var(--size-caption);
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.wallet-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 640px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn:hover .quick-action-icon {
    transform: scale(1.1);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.quick-action-btn:hover .quick-action-icon {
    background: rgba(255, 255, 255, 0.2);
}

.quick-action-label {
    font-weight: 500;
    font-size: var(--size-caption);
}

/* Settings Page Styles */
.settings-section {
    background: white;
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border);
}

.settings-section-title {
    font-size: var(--size-h3);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

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

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

.settings-item-info {
    flex: 1;
}

.settings-item-label {
    font-weight: 500;
    margin-bottom: 4px;
}

.settings-item-description {
    font-size: var(--size-caption);
    color: var(--text-secondary);
}

.profile-edit-section {
    background: white;
    border-radius: var(--radius);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border);
}

.profile-picture-upload {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.profile-picture-preview {
    position: relative;
}

.profile-picture-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
}

.profile-picture-change {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-picture-change:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.cover-image-upload {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cover-image-upload:hover {
    opacity: 0.9;
}

.cover-image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.cover-image-upload:hover .cover-image-overlay {
    opacity: 1;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.toggle-switch.active .toggle-switch-slider {
    transform: translateX(24px);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(151, 71, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

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

.btn-primary.loading,
.btn-secondary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Disabled state */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Link hover */
a {
    transition: all var(--transition-fast);
}

/* Image loading placeholder */
img {
    max-width: 100%;
    height: auto;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

img.loaded {
    animation: none;
    background: none;
}

/* Better selection color */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* Fade in animation for cards */
.fade-in {
    animation: fadeInUp var(--transition-base) ease-out;
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Booking Flow Styles */
.booking-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.booking-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

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

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-fast);
}

.step.active .step-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step.completed .step-circle {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.step-label {
    font-size: var(--size-small);
    color: var(--text-secondary);
    text-align: center;
}

/* Wallet Styles */
.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
}

.balance-label {
    font-size: var(--size-caption);
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.balance-amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.balance-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.transaction-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: var(--size-small);
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 18px;
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--error);
}

/* Avatar System - Professional Fallbacks with Initials */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.avatar-medium {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.avatar-large {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.avatar-fallback {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    user-select: none;
}

.avatar-fallback span {
    text-transform: uppercase;
}

.user-avatar-btn img.avatar {
    width: 36px;
    height: 36px;
    margin-right: 8px;
}

.user-avatar-btn .avatar-fallback {
    margin-right: 8px;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   ENHANCED ANIMATIONS & UI IMPROVEMENTS
   ========================================== */

/* Toast Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Page Transition Animations */
.page-transition-enter {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Card Hover Effects with Image Zoom */
.creator-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.creator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(151, 71, 255, 0.1);
}

.creator-card img,
.portfolio-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.creator-card:hover img,
.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Button Ripple Effect */
.btn-primary,
.btn-secondary,
.btn-ghost {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before,
.btn-secondary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(151, 71, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg,
            var(--surface) 0%,
            rgba(151, 71, 255, 0.05) 50%,
            var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-card {
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.medium {
    width: 70%;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

/* Scroll Fade-in Animation */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Cards */
.creators-grid .creator-card {
    animation: fadeInStagger 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.creators-grid .creator-card:nth-child(1) {
    animation-delay: 0.05s;
}

.creators-grid .creator-card:nth-child(2) {
    animation-delay: 0.1s;
}

.creators-grid .creator-card:nth-child(3) {
    animation-delay: 0.15s;
}

.creators-grid .creator-card:nth-child(4) {
    animation-delay: 0.2s;
}

.creators-grid .creator-card:nth-child(5) {
    animation-delay: 0.25s;
}

.creators-grid .creator-card:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes fadeInStagger {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

/* Parallax Effect for Hero */
.hero-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}

/* Floating Animation for CTA Button */
.hero-cta button {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

/* Input Focus Effects */
.form-input:focus,
.form-select:focus,
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Enter/Exit Animations */
.modal {
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

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

/* Loading State with Pulse */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark-path {
    stroke-dasharray: 100;
    animation: checkmark 0.5s ease-in-out;
}

/* Number Count-Up Effect */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Badge Pulse Animation */
.notification-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Image Progressive Loading */
.progressive-image {
    filter: blur(10px);
    transition: filter 0.5s;
}

.progressive-image.loaded {
    filter: blur(0);
}

/* Dropdown Slide Animation */
.user-dropdown {
    transform-origin: top right;
    animation: dropdownSlide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

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

/* Hover Glow Effect for Cards */
.creator-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(151, 71, 255, 0.1),
            transparent 40%);
}

.creator-card:hover::after {
    opacity: 1;
}

/* Micro-interaction: Button Press */
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Category Chip Animations */
.filter-chip {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(151, 71, 255, 0.2);
}

.filter-chip.active {
    animation: chipPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

    50% {
        transform: scale(1.05);
    }

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

/* Enhanced Focus Ring */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}


/* Ripple Animation for Buttons */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* ==========================================
   MOBILE RESPONSIVENESS FIXES
   ========================================== */

/* Fix for mobile viewport issues */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all containers are mobile-friendly */
.container {
    max-width: 100%;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Fix cards on mobile */
@media (max-width: 768px) {

    .creator-card,
    .card,
    .modal-content {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Fix wallet page on mobile */
    .wallet-section,
    .bookings-section {
        padding: var(--spacing-md);
    }

    /* Ensure text doesn't overflow */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix buttons on mobile */
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        min-width: auto;
        padding: 12px 20px;
    }

    /* Fix form inputs on mobile */
    .form-input,
    .form-select,
    .form-textarea {
        max-width: 100%;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Fix hero section on mobile */
    .hero-section h1 {
        font-size: 32px !important;
    }

    /* Fix navigation on mobile */
    .nav-bar {
        max-width: 100%;
    }

    /* Fix toast notifications on mobile */
    .toast-notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        min-width: auto;
    }

    /* Fix modals on mobile */
    .modal {
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        margin: 20px 10px;
    }

    /* Fix profile cards on mobile */
    .profile-cover {
        height: 180px !important;
    }

    .profile-header {
        margin-top: -60px !important;
        padding: 0 16px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        text-align: left;
    }

    .profile-avatar {
        width: 100px !important;
        height: 100px !important;
        border: 4px solid white !important;
        flex-shrink: 0;
        margin-bottom: 16px !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .profile-info {
        width: 100%;
        padding: 16px !important;
        margin-top: 0 !important;
    }

    .profile-name-row {
        flex-direction: column;
        gap: 12px;
    }

    .profile-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .profile-actions button {
        width: 100% !important;
    }

    /* Fix grid layouts on mobile */
    .creators-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Fix category grid */
    .category-grid {
        grid-template-columns: 1fr !important;
    }

    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }

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

    /* Fix table overflow */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Extra small devices (phones, less than 376px) */
@media (max-width: 375px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-section h1 {
        font-size: 28px !important;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* ============================================
   2025 UI/UX ENHANCEMENTS
   ============================================ */

/* Animated Number Counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-counter {
    animation: countUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success Checkmark Animation */
@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

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

@keyframes checkmarkDraw {
    0% {
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.success-checkmark {
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-checkmark path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmarkDraw 0.5s ease-out 0.2s forwards;
}

/* Enhanced Shimmer Effect */
@keyframes shimmerEnhanced {
    0% {
        background-position: -1000px 0;
    }

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

.skeleton-enhanced {
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #f8f8f8 20%,
            #f0f0f0 40%,
            #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmerEnhanced 2s linear infinite;
    border-radius: var(--radius);
}

/* Pulse Glow Effect */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(151, 71, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(151, 71, 255, 0);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Better Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
    transition: outline 0.2s ease;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 0;
    border-color: var(--primary);
}

/* Scroll Fade-In Animations */
@keyframes scrollFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.scroll-fade-in {
    opacity: 0;
    animation: scrollFadeIn 0.6s ease-out forwards;
}

.scroll-fade-in-delay-1 {
    animation-delay: 0.1s;
}

.scroll-fade-in-delay-2 {
    animation-delay: 0.2s;
}

.scroll-fade-in-delay-3 {
    animation-delay: 0.3s;
}

/* Smooth Scale Hover */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Card Lift Effect */
.card-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading Dots Animation */
@keyframes loadingDots {

    0%,
    20% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.1);
    }

    60%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.loading-dots span {
    animation: loadingDots 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-text-animated {
    background: linear-gradient(45deg,
            var(--primary),
            var(--secondary),
            var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Toast Notification Improvements */
.toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Smooth Entrance for Cards */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.card-entrance {
    animation: cardEntrance 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger animation for grid items */
.grid-item-1 {
    animation-delay: 0.05s;
}

.grid-item-2 {
    animation-delay: 0.1s;
}

.grid-item-3 {
    animation-delay: 0.15s;
}

.grid-item-4 {
    animation-delay: 0.2s;
}

.grid-item-5 {
    animation-delay: 0.25s;
}

.grid-item-6 {
    animation-delay: 0.3s;
}

/* ===========================
   2025 MODERN DESIGN PATTERNS
   =========================== */

/* Modern Hero Section with Organic Shapes */
.hero-section-modern {
    position: relative;
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.95) 0%, rgba(107, 70, 255, 0.95) 100%),
        url('/image.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
}

/* Organic Shapes - 2025 Trend */
.organic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.organic-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.organic-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    bottom: -80px;
    right: -80px;
    animation-delay: -7s;
}

.organic-shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent);
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {

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

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Oversized Typography - 2025 Trend */
.hero-content-modern {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title-oversized {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
    letter-spacing: -0.02em;
    animation: slideUpFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-subtitle-modern {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 16px;
    opacity: 0;
    color: rgba(255, 255, 255, 0.95);
    animation: slideUpFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-tagline-modern {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    margin-bottom: 40px;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: slideUpFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero-cta-modern {
    opacity: 0;
    animation: slideUpFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.btn-cta-large {
    padding: 18px 48px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: white !important;
    color: var(--primary) !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-cta-large:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }

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

/* Bento Grid Layout - 2025 Trend */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.bento-item {
    background: var(--surface);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Bento Grid Sizes */
.bento-large {
    grid-column: span 7;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.05), rgba(107, 70, 255, 0.05));
}

.bento-medium {
    grid-column: span 5;
}

.bento-stats {
    grid-column: span 12;
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.03), rgba(107, 70, 255, 0.03));
}

/* Responsive Bento Grid */
@media (max-width: 768px) {
    .bento-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-medium,
    .bento-stats {
        grid-column: span 12 !important;
        grid-row: span 1 !important;
        padding: 28px 24px !important;
    }

    .bento-title {
        font-size: 20px !important;
    }

    .bento-description {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .bento-icon-large {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 20px !important;
    }

    .bento-icon-large svg {
        width: 48px !important;
        height: 48px !important;
    }

    .bento-icon {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 16px !important;
    }

    .bento-icon svg {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Bento Item Content */
.bento-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.1), rgba(107, 70, 255, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.bento-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.bento-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Dynamic Light Effects - 2025 Trend */
.dynamic-light {
    position: relative;
}

.dynamic-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(151, 71, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.dynamic-light:hover::before {
    opacity: 1;
}

.dynamic-light>* {
    position: relative;
    z-index: 2;
}

/* Creator cards need specific z-index layering */
.creator-card.dynamic-light .creator-image {
    position: relative;
    z-index: 0;
}

.creator-card.dynamic-light .creator-info {
    position: relative;
    z-index: 2;
}

/* Interactive Cursor - 2025 Trend */
@media (hover: hover) {

    .bento-item:hover,
    .creator-card:hover {
        cursor: pointer;
        border: 1px solid rgba(151, 71, 255, 0.2);
    }
}

/* Enhanced Card Lift with Light Effect */
.card-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(151, 71, 255, 0.1);
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition-property: transform, box-shadow, border-color;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preserve specific transitions */
.btn-primary,
.btn-secondary,
.nav-item,
.modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Hero Optimizations */
@media (max-width: 640px) {
    .hero-section-modern {
        min-height: 500px;
        padding: 40px 20px;
    }

    .organic-shape {
        filter: blur(60px);
    }

    .organic-shape-1 {
        width: 300px;
        height: 300px;
    }

    .organic-shape-2 {
        width: 200px;
        height: 200px;
    }

    .organic-shape-3 {
        width: 180px;
        height: 180px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.05) 0%, rgba(107, 70, 255, 0.05) 100%);
    padding: 40px 20px 30px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 24px 16px 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .hero-card {
        padding: 16px;
    }

    .hero-image {
        display: none;
    }
}


/* Project Card Responsive Layout */
@media (max-width: 768px) {
    .project-card.has-cover-image {
        display: flex !important;
        flex-direction: column !important;
    }

    .project-card.has-cover-image .project-cover-image {
        width: 100% !important;
        height: 180px !important;
        margin-bottom: 16px !important;
    }
}

/* ===================================
   Modern Crypto Wallet Styles
   =================================== */

.spot-balance-card {
    background: linear-gradient(135deg, #9747FF 0%, #6B46FF 100%);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    color: white;
    box-shadow: 0 8px 32px rgba(151, 71, 255, 0.25);
}

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

.balance-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.balance-main {
    margin-bottom: 28px;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.amount-value {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -2px;
}

.currency-symbol {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff !important;
    opacity: 1 !important;
    margin-right: 4px;
}

#withdrawMaxBtn {
    color: var(--primary) !important;
    font-weight: 700;
    background: none;
    border: none;
    text-decoration: underline;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
}

#withdrawMaxBtn:hover {
    color: var(--secondary) !important;
    transform: translateY(-1px);
}

.balance-usd {
    font-size: 16px;
    opacity: 0.8;
}

.balance-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

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

.action-btn.primary:hover {
    background: rgba(255, 255, 255, 0.92);
}

/* Crypto Assets Section */

.crypto-assets-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.crypto-asset-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s;
}

.crypto-asset-item:hover {
    background: var(--background-alt);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.asset-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background);
}

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

.asset-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-network {
    font-size: 13px;
    color: var(--text-secondary);
}

.asset-balance {
    text-align: right;
}

.asset-balance .balance-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-balance .balance-usd {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    opacity: 1;
}

/* Wallet Address Card */

.wallet-address-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}

.wallet-address-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.wallet-address-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 165, 0, 0.1);
    color: #FFA500;
}

.network-badge {
    background: rgba(151, 71, 255, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.wallet-address-display {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.wallet-address {
    flex: 1;
    background: var(--background);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.wallet-address-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Stats Grid */

.wallet-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.stat-card-content-with-icon {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper.earnings {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-icon-wrapper.pending {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.stat-icon-wrapper svg {
    stroke: currentColor;
}

.stat-details {
    flex: 1;
}

/* Responsive Design for Wallet */

@media (max-width: 768px) {
    .amount-value {
        font-size: 36px;
    }

    .currency-symbol {
        font-size: 20px;
    }

    .balance-actions {
        grid-template-columns: 1fr;
    }

    .crypto-asset-item {
        grid-template-columns: 40px 1fr;
    }

    .asset-balance {
        grid-column: 2;
        text-align: left;
        margin-top: 8px;
    }

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

    .spot-balance-card {
        padding: 20px;
    }
}

/* ===================================
   Modern Profile Page Styles
   =================================== */

.profile-hero-modern {
    position: relative;
    margin-bottom: 40px;
}

.profile-cover-modern {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
}

[data-theme="dark"] .profile-cover-modern::after {
    background: linear-gradient(to top, rgba(15, 23, 36, 1), transparent);
}

.profile-header-modern {
    position: relative;
    margin-top: -80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar-modern {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--background);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.verified-badge-modern {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    border: 3px solid var(--background);
}

.profile-info-modern {
    padding-top: 40px;
}

.profile-name-modern {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.profile-role-modern {
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.profile-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

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

.profile-meta-item svg {
    stroke: var(--text-secondary);
}

.verification-badges-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.achievement-badges-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-actions-modern {
    padding-top: 40px;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.profile-card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.card-title-modern {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.about-text-modern {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Performance Metrics Grid */

.metrics-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.metric-card-modern {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.metric-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.metric-label-modern {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.metric-value-modern {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Portfolio Grid */

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

.portfolio-item-modern {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.portfolio-item-modern:hover {
    transform: scale(1.02);
}

.portfolio-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay-modern {
    position: absolute;
    inset: 0;
    background: rgba(151, 71, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
}

.portfolio-item-modern:hover .portfolio-overlay-modern {
    opacity: 1;
}

/* Services Section */

.services-grid-modern {
    display: grid;
    gap: 24px;
}

.service-card-modern {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}

.service-card-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.service-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 16px;
    background: var(--surface);
}

.service-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.delete-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
}

.delete-image-btn:hover {
    background: rgba(239, 68, 68, 0.9);
}

.add-image-btn {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: 8px;
    background: var(--background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s;
}

.add-image-btn:hover {
    background: rgba(151, 71, 255, 0.05);
    border-color: var(--primary);
}

.upload-service-image-btn {
    width: 100%;
    padding: 40px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    transition: all 0.2s;
}

.upload-service-image-btn:hover {
    background: rgba(151, 71, 255, 0.05);
    border-color: var(--primary);
}

.service-content {
    padding: 20px;
}

.service-title-modern {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-description-modern {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.service-link-modern {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.service-link-modern:hover {
    text-decoration: underline;
}

.service-packages {
    margin-top: 16px;
}

.packages-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.package-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    background: var(--surface);
    transition: all 0.2s;
}

.package-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(151, 71, 255, 0.15);
}

.package-card.popular {
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.package-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.package-price {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.package-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.package-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.package-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.package-features svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--primary);
}

.service-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.service-actions button {
    flex: 1;
}

/* Reviews Section */

.reviews-summary-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.reviews-rating-modern {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars-modern {
    font-size: 24px;
    color: #FFA500;
}

.rating-number-modern {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Account Information */

.account-info-grid {
    display: grid;
    gap: 16px;
}

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

.account-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
}

.info-value {
    color: var(--text-secondary);
    text-align: right;
}

/* Empty State */

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

.empty-state-modern svg {
    opacity: 0.3;
    margin: 0 auto 16px;
}

.empty-state-modern h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

/* Responsive Design for Profile */

@media (max-width: 1024px) {
    .profile-header-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-avatar-modern {
        width: 96px;
        height: 96px;
    }

    .profile-info-modern,
    .profile-actions-modern {
        padding-top: 0;
    }

    .profile-actions-modern {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .profile-cover-modern {
        height: 180px;
    }

    .profile-header-modern {
        margin-top: -48px;
    }

    .profile-avatar-modern {
        width: 80px;
        height: 80px;
    }

    .profile-name-modern {
        font-size: 24px;
    }

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

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

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

    .profile-actions-modern {
        flex-direction: column;
    }

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

/* ===================================
   Enhanced Modern Styles for All Pages
   =================================== */

/* Modern Header Sections */
.discover-header {
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.05) 0%, rgba(107, 70, 255, 0.05) 100%);
    padding: 32px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--surface);
}

.search-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.1);
}

.filters-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.filter-chip:hover {
    border-color: var(--primary);
    background: rgba(151, 71, 255, 0.05);
}

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

/* Modern Form Elements */
.form-group {
    margin-bottom: 20px;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-select {
    cursor: pointer;
}

/* Profile Edit Sections */
.profile-edit-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.cover-image-upload {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 24px;
}

.cover-image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}

.cover-image-upload:hover .cover-image-overlay {
    opacity: 1;
}

.profile-picture-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.profile-picture-preview {
    position: relative;
}

.profile-picture-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.profile-picture-change {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: 3px solid var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.profile-picture-change:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Settings Sections */
.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

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

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

.settings-item-label {
    flex: 1;
}

.settings-item-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.settings-item-description {
    font-size: 13px;
    color: var(--text-secondary);
}

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

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 28px;
    transition: all 0.3s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

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

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

/* Modern Transaction/Booking Lists */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.transaction-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(151, 71, 255, 0.1);
    transform: translateY(-1px);
}

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

.transaction-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.transaction-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--error);
}

/* Status Tags */
.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Notification Cards */
.notification-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.notification-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(151, 71, 255, 0.1);
}

.notification-card.unread {
    background: rgba(151, 71, 255, 0.05);
    border-left: 4px solid var(--primary);
}

.notification-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Project Cards */
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(151, 71, 255, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-title-modern {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

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

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.favorite-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.favorite-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(151, 71, 255, 0.15);
    transform: translateY(-4px);
}

/* Section Headers with Actions */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Modal Enhancements */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in;
}

.modal-content {
    background: var(--background);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-meta {
        flex-direction: column;
        gap: 12px;
    }

    .profile-picture-upload {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .filter-chip {
        flex: 1;
        min-width: 140px;
        text-align: center;
    }
}

/* Dark Mode Enhancements */
[data-theme="dark"] .search-input,
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .notification-card.unread {
    background: rgba(151, 71, 255, 0.1);
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 16px;
}

.gap-lg {
    gap: 24px;
}

/* ===================================
   Modern Bookings Page Styles
   =================================== */

.bookings-header-modern {
    margin-bottom: 32px;
}

.page-title-modern {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.page-subtitle-modern {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Bookings Stats Grid */

.bookings-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card-booking {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.stat-card-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-card-booking .stat-icon-booking {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
}

.stat-card-booking .stat-icon-booking.total {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.stat-card-booking .stat-icon-booking.active {
    background: linear-gradient(135deg, #10B981, #059669);
}

.stat-card-booking .stat-icon-booking.completed {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.stat-card-booking .stat-icon-booking.earnings {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.stat-details-booking {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label-booking {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value-booking {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Bookings Filters */

.bookings-filters-modern {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-btn-booking {
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn-booking:hover {
    border-color: var(--primary);
    background: rgba(151, 71, 255, 0.05);
}

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

.filter-btn-booking .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.filter-btn-booking.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* Bookings Grid */

.bookings-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.booking-card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.booking-card-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(151, 71, 255, 0.12);
    transform: translateY(-2px);
}

/* Booking Card Header */

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.booking-user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.booking-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.booking-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.booking-role {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Booking Status Badges */

.booking-status-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.status-badge-modern {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-badge-modern.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.status-badge-modern.accepted {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.status-badge-modern.completed {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.status-badge-modern.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.status-badge-modern.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.payment-badge-modern {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.payment-badge-modern.paid {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.payment-badge-modern.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.payment-badge-modern.refunded {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

/* Booking Card Body */

.booking-card-body {
    margin-bottom: 16px;
}

.booking-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.booking-id {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.booking-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.booking-date svg {
    flex-shrink: 0;
    stroke: var(--text-secondary);
}

/* Booking Card Footer */

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

.booking-amount {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amount-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.amount-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.view-details-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-details-btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(151, 71, 255, 0.3);
}

/* Empty State */

.bookings-empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.bookings-empty-state svg {
    margin: 0 auto 20px;
    opacity: 0.3;
}

.bookings-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.bookings-empty-state p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design for Bookings */

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

    .bookings-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title-modern {
        font-size: 28px;
    }

    .bookings-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card-booking {
        padding: 20px;
    }

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

    .bookings-filters-modern {
        gap: 8px;
    }

    .filter-btn-booking {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }

    .bookings-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .booking-card-modern {
        padding: 16px;
    }

    .booking-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .booking-status-badges {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

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

    .booking-amount {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .view-details-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title-modern {
        font-size: 24px;
    }

    .page-subtitle-modern {
        font-size: 14px;
    }

    .bookings-stats-grid {
        gap: 12px;
    }

    .stat-card-booking {
        padding: 16px;
    }

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

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

    .amount-value {
        font-size: 20px;
    }
}

/* ===================================
   Modern Settings Page Styles
   =================================== */

.settings-header-modern {
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.05) 0%, rgba(107, 70, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.settings-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.settings-icon-modern {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.settings-title-modern {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.settings-subtitle-modern {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Section Header with Icon */

.section-header-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header-with-icon svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.section-header-with-icon h2,
.section-header-with-icon h3 {
    margin: 0;
}

/* Profile User Info Modern */

.profile-user-info-modern {
    flex: 1;
}

.profile-user-info-modern h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.user-email-modern {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.user-role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(151, 71, 255, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Settings Item with Icon */

.settings-item-with-icon {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.settings-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(151, 71, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-icon-wrapper svg {
    stroke: var(--primary);
}

.settings-icon-wrapper.danger {
    background: rgba(239, 68, 68, 0.1);
}

.settings-icon-wrapper.danger svg {
    stroke: var(--error);
}

/* Button Variants */

.btn-secondary-modern {
    padding: 10px 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-secondary-modern:hover {
    border-color: var(--primary);
    background: rgba(151, 71, 255, 0.05);
    color: var(--primary);
}

.btn-danger-modern {
    padding: 10px 20px;
    background: var(--surface);
    border: 2px solid var(--error);
    color: var(--error);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

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

.form-select-modern {
    padding: 10px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
}

.form-select-modern:hover {
    border-color: var(--primary);
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.1);
}

/* Danger Zone Section */

.settings-section.danger-zone {
    border: 2px solid var(--error);
    background: rgba(239, 68, 68, 0.02);
}

[data-theme="dark"] .settings-section.danger-zone {
    background: rgba(239, 68, 68, 0.05);
}

/* Responsive Settings */

@media (max-width: 768px) {
    .settings-header-modern {
        padding: 24px 20px;
    }

    .settings-header-content {
        gap: 16px;
    }

    .settings-icon-modern {
        width: 56px;
        height: 56px;
    }

    .settings-icon-modern svg {
        width: 28px;
        height: 28px;
    }

    .settings-title-modern {
        font-size: 24px;
    }

    .settings-subtitle-modern {
        font-size: 14px;
    }

    .settings-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .settings-item-with-icon {
        width: 100%;
    }

    .btn-secondary-modern,
    .btn-danger-modern,
    .form-select-modern {
        width: 100%;
    }

    .toggle-switch {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .settings-header-modern {
        padding: 20px 16px;
    }

    .settings-header-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .settings-icon-modern {
        width: 48px;
        height: 48px;
    }

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

    .settings-title-modern {
        font-size: 20px;
    }

    .section-header-with-icon {
        gap: 10px;
    }

    .section-header-with-icon svg {
        width: 18px;
        height: 18px;
    }

    .settings-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .settings-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }
}

/* ===================================
   Modern Projects Page Styles
   =================================== */

.projects-header-modern {
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.05) 0%, rgba(107, 70, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.projects-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.projects-icon-modern {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.projects-header-text {
    min-width: 0;
}

.projects-title-modern {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.projects-subtitle-modern {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.btn-primary-modern {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary-modern:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(151, 71, 255, 0.3);
}

/* Projects Stats Grid */

.projects-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card-project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-icon-project {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon-project.total {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.stat-icon-project.active {
    background: linear-gradient(135deg, #10B981, #059669);
}

.stat-icon-project.categories {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.stat-details-project {
    flex: 1;
}

.stat-label-project {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value-project {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Projects Filters Section */

.projects-filters-section {
    margin-bottom: 32px;
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.filter-label svg {
    stroke: var(--primary);
}

/* Projects Grid */

.projects-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.project-card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.project-card-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(151, 71, 255, 0.12);
    transform: translateY(-4px);
}

/* Project Cover */

.project-cover-modern {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-cover-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-type-badge-modern {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
    backdrop-filter: blur(8px);
}

/* Project Card Content */

.project-card-content {
    padding: 20px;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-client-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.project-client-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

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

.project-type-badge-inline {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
}

.project-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Skills */

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.skill-tag {
    padding: 6px 12px;
    background: rgba(151, 71, 255, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.skill-tag.more {
    background: var(--background);
    color: var(--text-secondary);
}

/* Project Card Footer */

.project-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-budget {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.project-budget svg {
    stroke: #10B981;
    flex-shrink: 0;
}

.budget-amount {
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
}

.project-meta-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-timeline,
.project-applications {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.project-timeline svg,
.project-applications svg {
    stroke: var(--text-secondary);
    flex-shrink: 0;
}

/* Responsive Design for Projects */

@media (max-width: 1024px) {
    .projects-header-content {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }

    .post-project-btn {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .projects-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-header-modern {
        padding: 24px 20px;
    }

    .projects-header-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .projects-icon-modern {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }

    .projects-title-modern {
        font-size: 24px;
    }

    .projects-subtitle-modern {
        font-size: 14px;
    }

    .projects-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .projects-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-type-badge-inline {
        align-self: flex-start;
    }

    .project-meta-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .projects-header-modern {
        padding: 20px 16px;
    }

    .projects-icon-modern {
        width: 48px;
        height: 48px;
    }

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

    .projects-title-modern {
        font-size: 20px;
    }

    .stat-card-project {
        padding: 16px;
    }

    .stat-icon-project {
        width: 40px;
        height: 40px;
    }

    .stat-icon-project svg {
        width: 20px;
        height: 20px;
    }

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

    .project-cover-modern {
        height: 160px;
    }
}

/* ===================================
   Modern Modal Styles
   =================================== */

.modal-close,
.icon-btn.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--background-alt);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Modal Elements */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(151, 71, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--background);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--surface);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--background);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

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

/* Modal Animations */

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

/* Modal Sizes */

.modal.modal-sm,
.modal-content.modal-sm {
    max-width: 400px;
}

.modal.modal-lg,
.modal-content.modal-lg {
    max-width: 800px;
}

.modal.modal-xl,
.modal-content.modal-xl {
    max-width: 1200px;
}

/* Loading Spinner Modal */

.modal.loading-modal {
    max-width: 300px;
    text-align: center;
}

.loading-modal .modal-body {
    padding: 40px;
}

.spinner-modern {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(151, 71, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

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

/* Modal Content Sections */

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title svg {
    stroke: var(--primary);
}

.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* Info Box in Modals */

.modal-info-box {
    padding: 16px;
    background: rgba(151, 71, 255, 0.05);
    border: 1px solid rgba(151, 71, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-info-box.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.modal-info-box.error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.modal-info-box.success {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.modal-info-box-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-info-box-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Modal */

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal,
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        animation: modalSlideUpMobile 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-header {
        padding: 20px 20px;
    }

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

    .modal-body {
        padding: 20px;
    }

    .modal-footer,
    .form-actions {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }

    .modal-footer button,
    .form-actions button {
        width: 100%;
    }
}

@keyframes modalSlideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ===================================
   Modern Navigation Bar Styles
   =================================== */

/* Top Navigation */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .top-nav {
    background: rgba(15, 23, 36, 0.95);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

/* Nav Actions */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.icon-btn:hover {
    background: var(--background-alt);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.icon-btn:active {
    transform: translateY(0);
}

/* Notification Badge */

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--background);
}

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

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--border);
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.user-avatar-btn:hover {
    border-color: var(--primary);
    background: var(--background-alt);
}

.user-avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    overflow: hidden;
    display: none;
    animation: slideDown var(--transition-fast);
    z-index: 150;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    background: var(--background-alt);
}

.user-dropdown-name {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: var(--size-body);
    font-family: var(--font-body);
}

.user-dropdown-item:hover {
    background: var(--background-alt);
}

.user-dropdown-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

.user-dropdown-item:hover svg {
    stroke: var(--primary);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Bottom Navigation (Mobile) */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    display: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(15, 23, 36, 0.95);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    border-radius: 12px;
    position: relative;
    min-width: 70px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s;
}

.nav-item.active::before {
    width: 40px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: all 0.2s;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(151, 71, 255, 0.08);
}

.nav-item:active {
    transform: scale(0.95);
}

/* Search Overlay */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.search-header .search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 16px;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.2s;
}

.search-header .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(151, 71, 255, 0.1);
}

.search-results {
    animation: fadeInUp 0.3s ease-out;
}

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

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

.recent-searches h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tags .tag {
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-tags .tag:hover {
    background: var(--background-alt);
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive Navigation */

@media (max-width: 768px) {
    .nav-content {
        padding: 12px 0;
    }

    .logo {
        font-size: 16px;
    }

    .logo img {
        height: 28px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .nav-actions {
        gap: 8px;
    }
}

/* ===================================
   Enhanced Button Styles
   =================================== */

/* Primary Button */

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(151, 71, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Button */

.btn-secondary {
    padding: 12px 24px;
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(151, 71, 255, 0.05);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Ghost Button */

.btn-ghost {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ghost:hover {
    background: var(--surface);
    color: var(--text-primary);
}

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

/* Button Sizes */

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

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

/* Icon Button Variations */

.icon-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
}

.icon-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(151, 71, 255, 0.3);
}

.icon-btn-success {
    background: #10B981;
    border-color: transparent;
    color: white;
}

.icon-btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.icon-btn-danger {
    background: var(--error);
    border-color: transparent;
    color: white;
}

.icon-btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* Button Group */

.btn-group {
    display: inline-flex;
    gap: 8px;
}

.btn-group button {
    margin: 0;
}

/* Loading Button */

.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 12px;
}

/* ===================================
   Enhanced Icon Styles
   =================================== */

/* Icon Wrapper */

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-wrapper-primary {
    background: rgba(151, 71, 255, 0.1);
    color: var(--primary);
}

.icon-wrapper-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.icon-wrapper-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

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

.icon-wrapper-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

/* Animated Icons */

.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

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

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

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.icon-rotate {
    animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Icon with Badge */

.icon-with-badge {
    position: relative;
}

.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--background);
}

/* ===================================
   Enhanced Dropdown Styles
   =================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    padding: 12px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-toggle:hover {
    border-color: var(--primary);
    background: rgba(151, 71, 255, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s;
    z-index: 100;
}

.dropdown-menu.active,
.dropdown.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item:hover {
    background: var(--surface);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.dropdown-item:hover svg {
    stroke: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-header {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Select Dropdown */

select.form-select,
select.form-select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

select.form-select:hover,
select.form-select-modern:hover {
    border-color: var(--primary);
}

/* ===================================
   Utility Classes
   =================================== */

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-md {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.shadow-lg {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.rounded-sm {
    border-radius: 8px;
}

.rounded-md {
    border-radius: 12px;
}

.rounded-lg {
    border-radius: 16px;
}

.rounded-xl {
    border-radius: 20px;
}

.rounded-full {
    border-radius: 9999px;
}