/* -------------------------------------------------------------
 * GigMatch - Premium CSS Stylesheet
 * Brand: Obsidian dark background, Glassmorphism, Neon highlights
 * ------------------------------------------------------------- */

/* Root variables defining the Design System */
:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-glass-focus: rgba(124, 58, 237, 0.4);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dark: #ffffff;
    
    --grad-primary: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    --grad-secondary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --grad-danger: linear-gradient(135deg, #ef4444 0%, #ff7878 100%);
    --grad-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --grad-dark: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    
    --color-cyan: #2563eb;
    --color-purple: #7c3aed;
    --color-green: #10b981;
    --color-red: #ef4444;
    
    --shadow-neon-cyan: 0 0 15px rgba(124, 58, 237, 0.15);
    --shadow-neon-purple: 0 0 15px rgba(223, 159, 21, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    /* Soft background glowing spots */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(177, 0, 255, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* App Container Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Header & Navigation: Sticky white header bar with GigConnAct logo across all app pages */
.app-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 50px !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.transparent-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 50px !important;
    z-index: 1000 !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    align-items: center !important;
}

.header-container {
    width: 100% !important;
    max-width: 1520px !important;
    margin: 0 auto !important;
    padding: 0.2rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* Internal pages: Centered GigConnAct Logo */
.app-header:not(.transparent-header) .header-container {
    justify-content: center !important;
    position: relative !important;
}
.app-header:not(.transparent-header) .logo-area {
    margin: 0 auto !important;
}
.app-header:not(.transparent-header) .main-nav,
.app-header:not(.transparent-header) .auth-area {
    display: none !important;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.65rem;
    transition: var(--transition-fast);
}

.logo-area:hover {
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 1.8rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.3));
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text .slogan {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: var(--bg-card);
}

.nav-link.active {
    border-bottom: 2px solid var(--color-cyan);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: rgba(255, 255, 255, 0.02);
}

.main-nav.nav-blue .nav-link.active {
    border-bottom-color: var(--color-cyan) !important;
    color: var(--color-cyan) !important;
}
.main-nav.nav-blue .nav-link:hover {
    color: var(--color-cyan) !important;
}

.main-nav.nav-purple .nav-link.active {
    border-bottom-color: var(--color-purple) !important;
    color: var(--color-purple) !important;
}
.main-nav.nav-purple .nav-link:hover {
    color: var(--color-purple) !important;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Content Area */
.app-main {
    flex: 1;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Landing Page Hero */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    margin: auto 0;
    animation: fadeIn 0.8s ease;
}

.hero-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--color-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-neon-cyan);
}

.hero-section h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section h2 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Glassmorphism Buttons */
.btn {
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), opacity var(--transition-smooth), filter var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: var(--grad-secondary);
    color: #fff;
    box-shadow: var(--shadow-neon-purple);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.5);
}

.btn-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Feature stats cards on Landing Page */
.landing-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    width: 100%;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 242, 254, 0.15);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
    opacity: 0;
    transition: var(--transition-fast);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-icon {
    font-size: 2rem;
    color: var(--color-cyan);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Public and Logged-In Markets Layout */
.market-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    animation: fadeIn 0.4s ease;
    align-items: start;
}

/* Responsive sidebar filters */
.filter-sidebar {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

/* Custom Scrollbar for sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}
.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.filter-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cyan);
}

.filter-group {
    margin-bottom: 1.2rem;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Listings Grid */
.listings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.market-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Listing Cards */
.listing-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: start;
    transition: var(--transition-smooth);
    position: relative;
}

.listing-thumbnail-wrapper {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.listing-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.expandable-card:hover .listing-thumbnail-img {
    transform: scale(1.08);
}

.listing-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-glass);
}

/* Left part of the card */
.listing-main-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.listing-top-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.listing-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.listing-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-organizer {
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-cyan);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-musician {
    background: rgba(223, 159, 21, 0.1);
    color: var(--color-purple);
    border: 1px solid rgba(223, 159, 21, 0.2);
}

.listing-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item i {
    color: var(--color-cyan);
    width: 16px;
}

.listing-card.musician-card .detail-item i {
    color: var(--color-purple);
}

.listing-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d1d5db;
    margin-top: 0.3rem;
}

.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Right part of card: Score and Actions */
.listing-actions-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    min-width: 140px;
}

/* Circular Score Visualizer */
.match-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.match-dial-svg {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.dial-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.dial-progress {
    fill: none;
    stroke: url(#cyan-purple-grad);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 170; /* Circle circumference is roughly 2 * pi * 27 = 170 */
    stroke-dashoffset: 170;
    transition: stroke-dashoffset 1s ease-in-out;
}

.match-score-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.match-score-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Expandable card styles */
.expandable-card {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.expandable-card:hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: var(--shadow-glow-purple) !important;
}

.expandable-card .hidden-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.expandable-card.expanded .hidden-details {
    max-height: 1500px;
    opacity: 1;
    margin-top: 1rem;
}

.expandable-card .collapsed-tags {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.expandable-card.expanded .collapsed-tags {
    display: none;
}

.expand-icon-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, color 0.2s ease;
}

.expandable-card:hover .expand-icon-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-purple);
}

/* Contact display block in Private view */
.contact-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.contact-details-box .contact-line {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details-box .contact-line:last-child {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-btn {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-btn:hover {
    color: var(--color-cyan);
    transform: translateY(-2px);
}

/* Modals System styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: #0f1322;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    background: #0f1322;
    z-index: 10;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: absolute;
    right: 2rem;
}

.close-modal-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #0f1322;
}

/* Forms design */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"],
#reg-privacy-consent-container input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    margin-top: 0.1rem !important;
    cursor: pointer !important;
}

/* Authentication Tab Headers in Login modal */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.auth-tab-btn.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
}

/* Selection for Registration Roles */
.role-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 20px !important;
    padding: 1.5rem 1.25rem !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff !important;
    opacity: 0.7;
    box-sizing: border-box !important;
    width: 100% !important;
    transform: none !important;
}

.role-card-badge-free {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #10b981;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    line-height: 1;
}

.role-card i {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: #ffffff !important;
}

.role-card p {
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap !important;
}

.role-card h4 {
    color: #ffffff !important;
}

/* Inactive Musiker role: slightly stronger background and border */
.role-card.musician-role {
    background: rgba(124, 58, 237, 0.35) !important;
    border: 2px solid rgba(168, 85, 247, 0.45) !important;
}

/* Inactive Organizer role: slightly stronger background and border */
.role-card.organizer-role {
    background: rgba(30, 64, 175, 0.35) !important;
    border: 2px solid rgba(96, 165, 250, 0.45) !important;
}

.role-card.musician-role:hover,
.role-card.organizer-role:hover {
    opacity: 0.85;
    transform: none !important;
}

/* Selected state: full opacity, solid background and border, no scale (to keep them equal size) */
.role-card.musician-role.active {
    opacity: 1 !important;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border: 2px solid #a855f7 !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45) !important;
    transform: none !important;
}

.role-card.organizer-role.active {
    opacity: 1 !important;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border: 2px solid #60a5fa !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
    transform: none !important;
}

.role-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.role-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Weekly Availability Calendar grid select */
.calendar-container {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: rgba(0,0,0,0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-slot-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.5rem 0.2rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-slot-btn:hover {
    background: var(--bg-card-hover);
}

.calendar-slot-btn.selected {
    background: var(--grad-primary);
    color: var(--bg-dark);
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

/* SEPA Mandate Panel */
.sepa-panel {
    background: rgba(0, 242, 254, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.sepa-panel h5 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Logged-In User Interface - Portal Dashboard */
.portal-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.4s ease;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.stat-card-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
}

.stat-card.musician-stat .stat-card-icon {
    color: var(--color-purple);
}

.stat-card-data h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-card-data .stat-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

/* Gig confirmation box on dashboard */
.gig-action-box {
    background: rgba(56, 239, 125, 0.04);
    border: 1px solid rgba(56, 239, 125, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gig-action-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--color-green);
}

.gig-action-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Postbox/Messaging Layout */
.postbox-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.inbox-sidebar {
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.15);
}

.inbox-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-glass);
}

.inbox-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.conversation-item.active {
    background: rgba(0, 242, 254, 0.05);
    border-left: 3px solid var(--color-cyan);
}

.conversation-item.system-notif {
    background: rgba(177, 0, 255, 0.03);
}

.conversation-item.system-notif.active {
    background: rgba(177, 0, 255, 0.06);
    border-left: 3px solid var(--color-purple);
}

.conv-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.conv-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.conv-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    background: var(--color-cyan);
    color: var(--bg-dark);
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-weight: 700;
}

.conversation-item.system-notif .conv-badge {
    background: var(--color-purple);
    color: white;
}

/* Chat Pane */
.chat-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.1);
}

.chat-partner-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-partner-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.chat-messages-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-bubble {
    max-width: 70%;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    line-height: 1.4;
    font-size: 0.9rem;
}

.message-bubble.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-top-left-radius: 2px;
}

.message-bubble.outgoing {
    align-self: flex-end;
    background: var(--grad-secondary);
    color: white;
    border-top-right-radius: 2px;
    box-shadow: var(--shadow-neon-purple);
}

.message-bubble.system {
    align-self: center;
    max-width: 90%;
    background: rgba(177, 0, 255, 0.05);
    border: 1px solid rgba(177, 0, 255, 0.2);
    color: var(--text-main);
    border-radius: var(--radius-md);
    text-align: center;
}

.message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    margin-top: 0.3rem;
}

.message-bubble.incoming .message-time {
    color: var(--text-muted);
}

.chat-input-area {
    padding: 1.2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 0.8rem;
    background: rgba(0,0,0,0.15);
}

.chat-input-area input {
    flex: 1;
}

/* Profile Form styling */
.profile-section-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-section-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    color: var(--color-cyan);
}

.profile-section-card.musician-profile h3 {
    color: var(--color-purple);
}

/* Media Uploader Box */
.media-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.media-upload-item {
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.media-upload-item:hover {
    border-color: var(--color-purple);
    background: rgba(177, 0, 255, 0.02);
}

.media-upload-item i {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.media-upload-item:hover i {
    color: var(--color-purple);
}

.media-upload-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.media-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-audio-player {
    width: 90%;
    margin-top: 0.5rem;
}

.media-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 78, 80, 0.8);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.media-delete-btn:hover {
    background: rgb(255, 78, 80);
    transform: scale(1.1);
}

/* User Toasts */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 30000;
}

.toast {
    background: rgba(15, 19, 34, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(177, 0, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), var(--shadow-neon-purple);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    max-width: 450px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toast:hover {
    transform: translateX(-5px);
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--color-purple);
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Empty markets or list states */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.empty-state h4 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Subscribed / Active Banner */
.premium-status-bar {
    background: linear-gradient(90deg, rgba(177, 0, 255, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.premium-status-bar span {
    font-weight: 500;
}

.premium-status-bar strong {
    color: var(--color-cyan);
}

/* Footer layout */
.app-footer {
    display: none !important;
}

.premium-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--color-cyan);
    font-weight: 600;
}

/* Animations definition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

.text-cyan { color: var(--color-cyan) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-green { color: var(--color-green) !important; }
.text-red { color: var(--color-red) !important; }

/* Responsive adjustments */
@media(max-width: 900px) {
    .market-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        position: static;
    }
    .postbox-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .inbox-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        height: 250px;
    }
    .chat-pane {
        height: 400px;
    }
    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.65rem 1rem !important;
        gap: 0.5rem;
    }
    .logo-title-nav {
        font-size: 1.25rem !important;
    }
    .logo-underline-connector-nav {
        display: none !important;
    }
    .logo-area svg {
        width: 32px !important;
        height: 32px !important;
    }
    .nav-icon-btn, .profile-avatar-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.15rem !important;
    }
    .auth-area .btn:not(.feedback-trigger-btn):not(.profile-avatar-btn), 
    .auth-area button:not(.feedback-trigger-btn):not(.profile-avatar-btn), 
    .btn-sm {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
    }
    .main-nav {
        display: none !important;
    }
    .app-header {
        border-bottom: none !important;
    }
}
@media(max-width: 600px) {
    .hero-section h2 {
        font-size: 2.3rem;
    }
    .listing-card {
        grid-template-columns: 1fr;
    }
    .listing-thumbnail-wrapper {
        width: 100%;
        height: 180px;
    }
    .listing-actions-panel {
        align-items: flex-start;
        flex-direction: row;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 1rem;
    }
}

/* Scrollable Multi-select Checkbox Lists */
.checkbox-filter-list {
    max-height: 140px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    margin-top: 0.3rem;
}

/* Custom Scrollbar for list */
.checkbox-filter-list::-webkit-scrollbar {
    width: 6px;
}
.checkbox-filter-list::-webkit-scrollbar-track {
    background: transparent;
}
.checkbox-filter-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.checkbox-filter-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.form-checkbox-inline:hover {
    color: var(--text-main);
}

.form-checkbox-inline input[type="checkbox"] {
    accent-color: var(--color-purple);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

@keyframes pulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(177, 0, 255, 0.15);
    }
    to {
        transform: scale(1.03);
        box-shadow: 0 0 35px rgba(177, 0, 255, 0.35);
    }
}

.landing-info-row {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
}

@media (max-width: 800px) {
    .landing-info-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Custom Autocomplete Suggestions Dropdown */
.autocomplete-suggestions {
    position: absolute;
    background: rgba(15, 19, 34, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.2);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    margin-top: 4px;
    left: 0;
    top: 100%;
}

.autocomplete-suggestions.hidden {
    display: none !important;
}

.autocomplete-suggestion {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.autocomplete-suggestion.active,
.autocomplete-suggestion:hover {
    background: rgba(0, 242, 254, 0.15) !important;
    color: var(--text-main) !important;
}

.autocomplete-suggestion i {
    color: var(--color-cyan);
    font-size: 0.8rem;
    width: 12px;
}

/* Custom logo design styles for GetYourGig */
.logo-getyourgig-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
}

.logo-title-nav {
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.35;
    padding: 0.15rem 0;
    overflow: visible;
    font-family: var(--font-heading);
}

.logo-underline-connector-nav {
    display: flex;
    align-items: center;
    width: 100%;
    align-self: stretch;
    margin-top: 0.25rem;
    gap: 0.3rem;
}

.logo-underline-connector-nav .connector-line-nav {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-cyan) 100%);
    border-radius: 1px;
}

.logo-underline-connector-nav .logo-sub-icon-nav {
    font-size: 0.65rem;
}

.logo-underline-connector-nav .music-sub {
    color: var(--color-purple);
}

.logo-underline-connector-nav .event-sub {
    color: var(--color-cyan);
}

/* Hero Centered Logo */
.logo-getyourgig {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    width: max-content;
}

.logo-underline-connector {
    display: flex;
    align-items: center;
    width: 100%;
    align-self: stretch;
    margin-top: 0.4rem;
    gap: 0.5rem;
}

.logo-underline-connector .connector-line {
    flex: 1;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-cyan) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.logo-underline-connector .logo-sub-icon {
    font-size: 0.85rem;
}

.logo-underline-connector .music-sub {
    color: var(--color-purple);
    transform: rotate(-10deg);
}

.logo-underline-connector .event-sub {
    color: var(--color-cyan);
}

/* Profile Dropdown Menu styling */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

/* Musicians: Profile avatar button is blue */
.profile-avatar-btn.profile-avatar-blue {
    background: rgba(37, 99, 235, 0.06) !important;
    color: #3b82f6 !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}
.profile-avatar-btn.profile-avatar-blue:hover,
.profile-avatar-btn.profile-avatar-blue.active {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3) !important;
}

/* Organizers: Profile avatar button is purple/lila */
.profile-avatar-btn.profile-avatar-purple {
    background: rgba(168, 85, 247, 0.06) !important;
    color: #a855f7 !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
}
.profile-avatar-btn.profile-avatar-purple:hover,
.profile-avatar-btn.profile-avatar-purple.active {
    background: rgba(168, 85, 247, 0.12) !important;
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3) !important;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.profile-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.profile-dropdown-item i {
    width: 1.25rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}

.profile-dropdown-item.profile-dropdown-blue {
    color: var(--color-cyan) !important;
}

.profile-dropdown-item.profile-dropdown-purple {
    color: var(--color-purple) !important;
}

.profile-dropdown-item.profile-dropdown-blue:hover,
.profile-dropdown-item.profile-dropdown-blue.active {
    color: var(--color-cyan) !important;
}

.profile-dropdown-item.profile-dropdown-purple:hover,
.profile-dropdown-item.profile-dropdown-purple.active {
    color: var(--color-purple) !important;
}

.profile-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 0.4rem 0;
}

.profile-dropdown-item.logout-item {
    color: var(--text-main) !important;
}

.profile-dropdown-item.logout-item:hover {
    background: rgba(255, 78, 80, 0.05);
    color: var(--color-red) !important;
}

/* -------------------------------------------------------------
 * Light Mode Theme Overrides
 * ------------------------------------------------------------- */
.app-header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.logo-area {
    color: var(--text-main) !important;
}

.nav-link {
    color: var(--text-muted) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

.profile-avatar-btn {
    background: rgba(15, 23, 42, 0.05) !important;
    color: var(--text-main) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.profile-dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.profile-dropdown-item {
    color: var(--text-main) !important;
}

.profile-dropdown-item.profile-dropdown-blue {
    color: var(--color-cyan) !important;
}

.profile-dropdown-item.profile-dropdown-purple {
    color: var(--color-purple) !important;
}

.profile-dropdown-item:hover {
    background: rgba(15, 23, 42, 0.04) !important;
}

.profile-dropdown-divider {
    background: rgba(15, 23, 42, 0.08) !important;
}

.input-field {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: var(--text-main) !important;
}

.input-field:focus {
    border-color: var(--color-cyan) !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2) !important;
}

.listing-card:hover {
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
}

.listing-thumbnail-wrapper {
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.tag {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    color: var(--text-muted) !important;
}

.expand-icon-badge {
    background: rgba(15, 23, 42, 0.03) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    color: var(--text-muted) !important;
}

.expandable-card:hover .expand-icon-badge {
    background: rgba(124, 58, 237, 0.08) !important;
    color: var(--color-purple) !important;
}

.contact-details-box {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

.calendar-container {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.availability-day-times input[type="time"] {
    background: #ffffff !important;
    border: 1.5px solid rgba(15, 23, 42, 0.15) !important;
    color: var(--text-main) !important;
}

.availability-day-row {
    background: rgba(15, 23, 42, 0.02) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}


.calendar-slot-btn {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: var(--text-main) !important;
}

.calendar-slot-btn.selected {
    background: var(--grad-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
    border-color: transparent !important;
}

.modal-overlay {
    background: rgba(15, 23, 42, 0.75) !important;
}

.modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15) !important;
    color: var(--text-main) !important;
}

.modal-header {
    background: #ffffff !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

.modal-footer {
    background: #f8fafc !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
}

.postbox-layout {
    background: var(--bg-card) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.inbox-sidebar {
    background: rgba(15, 23, 42, 0.01) !important;
    border-right-color: rgba(15, 23, 42, 0.08) !important;
}

.inbox-header {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

.conversation-item {
    border-bottom-color: rgba(15, 23, 42, 0.03) !important;
}

.conversation-item:hover {
    background: rgba(15, 23, 42, 0.02) !important;
}

.conversation-item.active {
    background: rgba(2, 132, 199, 0.06) !important;
}

.conversation-item.system-notif {
    background: rgba(124, 58, 237, 0.03) !important;
}

.conversation-item.system-notif.active {
    background: rgba(124, 58, 237, 0.06) !important;
}

.chat-pane {
    background: rgba(15, 23, 42, 0.02) !important;
}

.chat-header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

.chat-input-area {
    background: rgba(255, 255, 255, 0.9) !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
}

.message-bubble.incoming {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--text-main) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.message-bubble.outgoing {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15) !important;
}

.message-bubble.system {
    background: rgba(124, 58, 237, 0.05) !important;
    border-color: rgba(124, 58, 237, 0.15) !important;
    color: var(--text-main) !important;
}

.toast {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(124, 58, 237, 0.15) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    color: var(--text-main) !important;
}



.media-upload-item {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.media-upload-item:hover {
    background: rgba(124, 58, 237, 0.03) !important;
    border-color: var(--color-purple) !important;
}

.listing-description {
    color: var(--text-muted) !important;
}

.hero-subtitle {
    color: var(--text-muted) !important;
}

.feature-grid .feature-card {
    background: var(--bg-card) !important;
    border-color: var(--border-glass) !important;
}

/* -------------------------------------------------------------
 * Clean Human-Crafted Platform Styles (Less AI/Glow)
 * ------------------------------------------------------------- */
body {
    background-image: linear-gradient(to right, #eddffd 0%, #e0e7ff 50%, #bae6fd 100%) !important;
    background-attachment: fixed !important;
}

.btn-primary {
    background: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15) !important;
    transform: none !important;
    filter: brightness(1.1);
}

.btn-secondary {
    background: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(223, 159, 21, 0.15) !important;
    transform: none !important;
    filter: brightness(1.1);
}

.btn-glass:hover {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    transform: none !important;
}

.expandable-card:hover {
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
}

.toast {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
}

.listing-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.listing-card:hover {
    background: #ffffff !important;
}

.profile-section-card {
    background: #ffffff !important;
    border: 1.5px solid rgba(203, 213, 225, 0.85) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    padding: 2rem 2.2rem !important;
    margin-bottom: 2.5rem !important;
    box-sizing: border-box !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.profile-page.theme-musician .profile-section-card {
    border: 1.5px solid rgba(124, 58, 237, 0.2) !important;
    box-shadow: 0 12px 30px -4px rgba(124, 58, 237, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
}

.profile-page.theme-organizer .profile-section-card {
    border: 1.5px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.profile-section-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.profile-section-title-group h3 {
    margin: 0 !important;
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
    line-height: 1.25 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.profile-section-title-group p {
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.84rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.profile-section-card,
.profile-section-card.musician-profile,
.profile-section-card.contact-details,
.profile-section-card.subscription-manage,
.profile-section-card.privacy-manage,
.profile-page .profile-section-card,
.profile-page .portal-card,
.profile-page .card {
    outline: none !important;
}

.profile-page .portal-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
}

.filter-sidebar {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.postbox-layout {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.message-bubble.outgoing {
    background: #7c3aed !important;
    box-shadow: none !important;
}

/* Landing page 4-column grids showcase */
.landing-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

@media (max-width: 768px) {
    .landing-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .landing-showcase-grid {
        grid-template-columns: 1fr;
    }
}


/* Calendar Widget Styles */
.calendar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem;
}
.calendar-day-header-cell {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.25rem 0;
}
.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    user-select: none;
}
.calendar-day-cell.available {
    background-color: #7c3aed; /* Match purple theme color */
    color: #ffffff;
    font-weight: 600;
}
.calendar-day-cell.available:hover {
    background-color: #6d28d9;
}
.calendar-day-cell.unavailable {
    background-color: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.calendar-day-cell.unavailable:hover {
    background-color: #e2e8f0;
}
.calendar-day-cell.past {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border: 1px solid transparent;
}
.calendar-day-cell.empty {
    cursor: default;
    background: transparent;
    border: none;
}

/* Badge for New Listings */
.badge-new-listing {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
    animation: newBadgePulse 2s infinite alternate;
    height: 18px;
    line-height: 1;
}

@keyframes newBadgePulse {
    0% { transform: scale(1); opacity: 0.95; }
    100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 14px rgba(236, 72, 153, 0.8); }
}

/* Perfect Match styling in listing cards */
.perfect-match-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(59, 130, 246, 0.15)) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #22c55e !important;
    font-weight: 700;
}

/* Cosmos Interactive Illustration Styles */
.cosmos-container {
    position: relative;
    width: 100%;
    height: 520px;
    background: radial-gradient(circle at 30% 50%, rgba(223, 159, 21, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
                rgba(15, 23, 42, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 5rem;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.01), var(--shadow-glass);
}

.cosmos-center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, rgba(223, 159, 21, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: cosmosPulse 4s infinite alternate ease-in-out;
}

.cosmos-main-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.03), inset 0 0 20px rgba(255,255,255,0.01);
    z-index: 2;
    pointer-events: none;
}

.cosmos-handshake-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04), 0 0 30px rgba(124, 58, 237, 0.08);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.cosmos-handshake-wrapper:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 20px 45px rgba(0,0,0,0.06), 
                0 0 40px rgba(223, 159, 21, 0.15),
                0 0 40px rgba(124, 58, 237, 0.15);
}

.cosmos-musician-label {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-purple);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(223, 159, 21, 0.15);
    z-index: 10;
}

.cosmos-organizer-label {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-cyan);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
    z-index: 10;
}

.cosmos-tile {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.65rem;
    box-shadow: var(--shadow-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    z-index: 5;
    min-width: 90px;
    text-align: center;
}

.cosmos-tile.mus-theme i {
    color: var(--color-purple); /* Orange icon */
}
.cosmos-tile.org-theme i {
    color: var(--color-cyan); /* Purple icon */
}

.cosmos-tile:hover {
    transform: scale(1.08) !important;
    z-index: 20;
}

.cosmos-tile.mus-theme:hover {
    box-shadow: 0 10px 20px rgba(223, 159, 21, 0.15);
    border-color: rgba(223, 159, 21, 0.4);
}

.cosmos-tile.org-theme:hover {
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
}

.cosmos-tile h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.cosmos-tile p {
    margin: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Float Animations */
@keyframes cosmosPulse {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

@keyframes float1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(12px, -12px); }
}
@keyframes float2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-14px, 10px); }
}
@keyframes float3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 14px); }
}
@keyframes float4 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-12px, -10px); }
}
@keyframes float5 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(8px, -15px); }
}
@keyframes float6 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10px, 12px); }
}


/* Left Sidebar Filter Layout */
.market-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    column-gap: 3rem;
    row-gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .market-layout-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
}

/* -------------------------------------------------------------
 * Infinite Auto-Scrolling Marquee Animations (v3500)
 * ------------------------------------------------------------- */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track-musicians {
    display: flex;
    width: max-content;
    animation: marquee-scroll-left-musicians 32s linear infinite;
}

.marquee-track-events {
    display: flex;
    width: max-content;
    animation: marquee-scroll-left-events 32s linear infinite;
}

.marquee-content-musicians,
.marquee-content-events {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

.marquee-content-musicians .market-tile-card,
.marquee-content-events .market-tile-card {
    flex-shrink: 0;
    width: 350px;
}

/* Pause scroll animation on hover so details can be read/clicked easily */
.marquee-wrapper:hover .marquee-track-musicians,
.marquee-wrapper:hover .marquee-track-events {
    animation-play-state: paused;
}

@keyframes marquee-scroll-left-musicians {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-left-events {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* -------------------------------------------------------------
 * Responsive Carousel Slider Styles (v3600)
 * ------------------------------------------------------------- */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0.5rem 0 1rem;
    padding: 0 10px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
    padding: 0.5rem 0;
}

.carousel-track .market-tile-card {
    flex-shrink: 0;
    width: calc((100% - 4rem) / 3) !important;
}

@media (max-width: 900px) {
    .carousel-track .market-tile-card {
        width: calc((100% - 2rem) / 2) !important;
    }
}

@media (max-width: 600px) {
    .carousel-track {
        gap: 0px !important;
    }
    .carousel-track .market-tile-card {
        width: 100% !important;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.carousel-btn:hover {
    background: var(--color-purple);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev-btn {
    left: -22px;
}

.carousel-btn.next-btn {
    right: -22px;
}

@media (max-width: 768px) {
    .carousel-btn.prev-btn {
        left: 5px;
    }
    .carousel-btn.next-btn {
        right: 5px;
    }
}

/* -------------------------------------------------------------
 * Responsive Carousel Slider Styles (v3700)
 * ------------------------------------------------------------- */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0.5rem 0 1rem;
    padding: 0;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
    padding: 0.5rem 0;
}

.carousel-track .market-tile-card {
    flex-shrink: 0;
    width: calc((100% - 4rem) / 3) !important;
}

@media (max-width: 900px) {
    .carousel-track .market-tile-card {
        width: calc((100% - 2rem) / 2) !important;
    }
}

@media (max-width: 600px) {
    .carousel-track {
        gap: 0px !important;
    }
    .carousel-track .market-tile-card {
        width: 100% !important;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.carousel-btn:hover {
    background: var(--color-purple);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev-btn {
    left: -80px;
}

.carousel-btn.next-btn {
    right: -80px;
}

@media (max-width: 1540px) {
    .carousel-btn.prev-btn {
        left: -35px;
    }
    .carousel-btn.next-btn {
        right: -35px;
    }
}

@media (max-width: 1400px) {
    .carousel-btn.prev-btn {
        left: -20px;
    }
    .carousel-btn.next-btn {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .carousel-btn.prev-btn {
        left: -20px;
    }
    .carousel-btn.next-btn {
        right: -20px;
    }
}

/* -------------------------------------------------------------

/* -------------------------------------------------------------
 * Hero CTA Buttons & Benefits Optimization (v4800 - Cleaned)
 * ------------------------------------------------------------- */
@keyframes pulseGlowMusician {
    0% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.45), 0 10px 30px rgba(124, 58, 237, 0.45);
        transform: translateY(0) scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.85), 0 10px 30px rgba(124, 58, 237, 0.65);
        transform: translateY(-4px) scale(1.02);
    }
    100% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.45), 0 10px 30px rgba(124, 58, 237, 0.45);
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlowOrganizer {
    0% {
        box-shadow: 0 0 10px rgba(96, 165, 250, 0.45), 0 10px 30px rgba(37, 99, 235, 0.45);
        transform: translateY(0) scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(96, 165, 250, 0.85), 0 10px 30px rgba(37, 99, 235, 0.65);
        transform: translateY(-4px) scale(1.02);
    }
    100% {
        box-shadow: 0 0 10px rgba(96, 165, 250, 0.45), 0 10px 30px rgba(37, 99, 235, 0.45);
        transform: translateY(0) scale(1);
    }
}

.hero-cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-cta-buttons .btn,
.hero-cta-card-btn {
    white-space: normal !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.hero-cta-title {
    font-size: clamp(1.85rem, 4.4vw, 2.45rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.15 !important;
}

#btn-hero-musician {
    animation: pulseGlowMusician 3s infinite ease-in-out;
}

#btn-hero-organizer {
    animation: pulseGlowOrganizer 3s infinite ease-in-out;
}

/* Specific ID override to enforce lila-to-blue gradient for top right and bottom login triggers */
#btn-login-trigger, #btn-bottom-login-trigger {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25) !important;
}

#btn-login-trigger:hover, #btn-bottom-login-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35) !important;
}

.hero-feature-pill {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@supports not (backdrop-filter: blur(8px)) {
    .hero-feature-pill {
        background: rgba(15, 23, 42, 0.85) !important;
    }
}

.hero-benefits-box {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    .hero-benefits-box {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Single-Screen App Experience for Landing Page (Option 3 - No Scroll) */
.landing-active-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

.landing-active-main ~ .app-footer,
body.landing-page-active .app-footer,
html.landing-page-active .app-footer {
    display: none !important;
}

body.landing-page-active,
html.landing-page-active {
    overflow: hidden !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.landing-page-active .app-container,
body.landing-page-active #app-main,
body.landing-page-active .landing-active-main,
body.landing-page-active .landing-page-wrapper {
    background-color: #0d0e12 !important;
    background-image: none !important;
    background: #0d0e12 !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.landing-page-active .landing-hero {
    background-color: #0d0e12 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100% !important;
    width: 100% !important;
    flex: 1 1 auto !important;
}

@media (max-height: 580px) {
    body.landing-page-active,
    html.landing-page-active,
    body.landing-page-active .app-container,
    body.landing-page-active .app-main,
    .landing-active-main,
    body.landing-page-active .landing-page-wrapper {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
    body.landing-page-active .landing-hero {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
}

.transparent-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (max-width: 600px) {
    .hero-cta-buttons {
        gap: 0.65rem !important;
        padding: 0 0.3rem !important;
        width: 100% !important;
        max-width: 540px !important;
        flex-wrap: nowrap !important;
    }
    
    .hero-cta-buttons .btn {
        padding: 1.25rem 0.4rem 1.15rem !important;
        border-radius: 18px !important;
        min-width: 0 !important;
        width: 0 !important;
        flex: 1 1 0px !important;
        min-height: 168px !important;
        max-height: 210px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-cta-buttons .btn i {
        font-size: 1.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .hero-cta-buttons .btn .hero-cta-title,
    .hero-cta-title {
        font-family: var(--font-heading) !important;
        font-size: clamp(1.4rem, 4.4vw, 1.85rem) !important;
        line-height: 1.15 !important;
        font-weight: 900 !important;
        text-align: center !important;
    }

    .hero-cta-buttons .btn .hero-cta-subtitle {
        font-size: clamp(0.78rem, 2.5vw, 0.9rem) !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
        margin-top: 0.35rem !important;
    }
    
    .hero-benefits-box {
        padding: 1rem 0.8rem !important;
    }
    
    .hero-benefit-cards {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .hero-benefit-cards > div {
        padding: 1rem !important;
    }
}

/* Premium Musician Registration Elements */
.checkbox-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}

.tag-pill-checkbox {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-main);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    max-width: 100%;
    box-sizing: border-box;
}

.tag-pill-checkbox span {
    white-space: normal;
    word-break: break-word;
    text-align: center;
    pointer-events: none;
}

.tag-pill-checkbox input[type="checkbox"],
.tag-pill-checkbox input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.tag-pill-checkbox:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.tag-pill-checkbox.active {
    background: rgba(var(--market-primary-rgb), 0.15) !important;
    border-color: var(--market-primary) !important;
    color: var(--market-primary) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(var(--market-primary-rgb), 0.15);
}

/* Dual Range Slider styling */
.slider-value-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.slider-value-display span {
    color: var(--market-primary);
}

.dual-range-slider {
    position: relative;
    width: 100%;
    height: 24px;
    margin: 8px 0 12px;
}

.dual-range-track {
    position: absolute;
    height: 6px;
    width: 100%;
    background: rgba(15, 23, 42, 0.1);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.dual-range-active-track {
    position: absolute;
    height: 6px;
    background: var(--market-primary);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    margin: 0;
    z-index: 3;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--market-primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(var(--market-primary-rgb), 0.5);
    transition: transform 0.1s ease;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--market-primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(var(--market-primary-rgb), 0.5);
    transition: transform 0.1s ease;
}

/* Availability Week Scheduler */
.availability-week-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.5rem;
}

.availability-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.availability-day-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}

.availability-day-info label {
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.availability-day-info input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #a855f7;
    cursor: pointer;
}

.availability-day-times {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.availability-day-times input[type="time"] {
    background: rgba(15, 23, 42, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    width: 90px;
}

.availability-day-times input[type="time"]:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Subscription Model Cards */
.subscription-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 1.8rem !important;
}

.subscription-card {
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 1.2rem 1rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.85);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.subscription-card.active {
    border-color: #7c3aed !important;
    background: #7c3aed !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4) !important;
    color: #ffffff !important;
}
.subscription-card.active h5,
.subscription-card.active .price,
.subscription-card.active .price span,
.subscription-card.active .plan-features li,
.subscription-card.active .plan-features li i {
    color: #ffffff !important;
}
.subscription-card.active .subscription-gift-box {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.subscription-card.active .subscription-gift-box i,
.subscription-card.active .subscription-gift-box .gift-title {
    color: #ffffff !important;
}

.subscription-card h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 0.25rem;
    color: var(--text-main);
}

.subscription-card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #7c3aed;
    margin: 0.25rem 0;
}

.subscription-card .meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.subscription-card .selected-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
    .subscription-cards {
        grid-template-columns: 1fr !important;
    }
}

#auth-register-form .form-group label:not(.tag-pill-checkbox),
#auth-register-form .slider-value-display label,
#musician-editor-form .form-group label:not(.tag-pill-checkbox),
#musician-editor-form .slider-value-display label {
    color: var(--color-purple) !important;
    font-weight: 800 !important;
}

/* Selected checkboxes in musician registration and editor should be purple */
#auth-register-form .tag-pill-checkbox.active,
#musician-editor-form .tag-pill-checkbox.active {
    background: rgba(124, 58, 237, 0.1) !important;
    border-color: #7c3aed !important;
    color: #7c3aed !important;
    font-weight: 700 !important;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.25) !important;
}
#auth-register-form .tag-pill-checkbox:hover,
#musician-editor-form .tag-pill-checkbox:hover {
    border-color: rgba(124, 58, 237, 0.5) !important;
}

/* Enforce bold headings inside modal content */
.modal-content h3, .modal-content h4, .modal-content h5 {
    font-weight: 900 !important;
}

/* Plan features styling inside subscription cards */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem auto;
    text-align: left;
    font-size: 0.76rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.subscription-card .btn-sub-select-wrapper,
.subscription-card > div:last-child {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--text-muted);
    line-height: 1.35;
    font-weight: 500;
}

.plan-features li i {
    color: #7c3aed;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.subscription-card.active .plan-features li {
    color: var(--text-main);
}

.subscription-card.active .plan-features li i {
    color: #7c3aed;
}

/* Organizer Theme: Blue styling for subscription management */
.theme-organizer .subscription-card {
    border-color: rgba(37, 99, 235, 0.4) !important;
}
.theme-organizer .subscription-card:hover {
    border-color: rgba(37, 99, 235, 0.85) !important;
    background: rgba(37, 99, 235, 0.05) !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.35) !important;
}
.theme-organizer .subscription-card.active {
    border-color: #2563eb !important;
    background: #2563eb !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4) !important;
    color: #ffffff !important;
}
.theme-organizer .subscription-card:not(.active) .price {
    color: #2563eb !important;
}
.theme-organizer .subscription-card.active .price,
.theme-organizer .subscription-card.active .price span,
.subscription-card.active .price,
.subscription-card.active .price span,
#auth-register-form.role-organizer-active .subscription-card.active .price,
#auth-register-form.role-organizer-active .subscription-card.active .price span {
    color: #ffffff !important;
}
.theme-organizer .subscription-card:not(.active) .plan-features li i,
.theme-organizer .plan-features li i {
    color: #2563eb !important;
}
.theme-organizer .subscription-card.active .plan-features li,
.theme-organizer .subscription-card.active .plan-features li span,
.theme-organizer .subscription-card.active .plan-features li i {
    color: #ffffff !important;
}
.theme-organizer #profile-promo-code-box {
    background: rgba(37, 99, 235, 0.05) !important;
    border-color: #2563eb !important;
}
.theme-organizer #profile-promo-code-box h5 {
    color: #2563eb !important;
}
.theme-organizer #btn-prof-apply-promo {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

#auth-register-form.role-musician-active {
    --market-primary: #7c3aed;
    --market-primary-rgb: 124, 58, 237;
}

#auth-register-form.role-organizer-active {
    --market-primary: #2563eb;
    --market-primary-rgb: 37, 99, 235;
}

#musician-editor-form {
    --market-primary: #7c3aed;
    --market-primary-rgb: 124, 58, 237;
}

#event-editor-form {
    --market-primary: #2563eb;
    --market-primary-rgb: 37, 99, 235;
}

/* Card layout for criteria form groups inside the registration form */
#auth-register-form .form-group,
#musician-editor-form .form-group {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(168, 85, 247, 0.15); /* Subtle purple border */
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#auth-register-form .form-group:focus-within,
#musician-editor-form .form-group:focus-within {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.2);
}

/* Organizer Active Theme styling overrides */
#auth-register-form.role-organizer-active .form-group,
#event-editor-form .form-group {
    border-color: rgba(96, 165, 250, 0.15); /* blue border */
}

#auth-register-form.role-organizer-active .form-group:focus-within,
#event-editor-form .form-group:focus-within {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 4px 18px rgba(96, 165, 250, 0.2);
}

#auth-register-form.role-organizer-active .form-group label:not(.tag-pill-checkbox),
#auth-register-form.role-organizer-active .slider-value-display label,
#event-editor-form .form-group label:not(.tag-pill-checkbox),
#event-editor-form .slider-value-display label {
    color: #2563eb !important; /* dunkelblau text instead of light blue */
}

/* Make slider labels color follow active mode */
#auth-register-form.role-organizer-active .slider-value-display span,
#event-editor-form .slider-value-display span {
    color: #2563eb !important;
}

/* Checkboxes in organizer grid should match blue color on active */
#auth-register-form.role-organizer-active .tag-pill-checkbox.active,
#event-editor-form .tag-pill-checkbox.active {
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: #2563eb !important;
    color: #2563eb !important; /* dark blue text */
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.35) !important;
}

#auth-register-form.role-organizer-active .tag-pill-checkbox:hover,
#event-editor-form .tag-pill-checkbox:hover {
    border-color: rgba(37, 99, 235, 0.5) !important;
}

/* Submit button in organizer mode should be dark blue */
#auth-register-form.role-organizer-active button[type="submit"] {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s ease !important;
}

#auth-register-form.role-organizer-active button[type="submit"]:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Double slider tracks in organizer active mode */
#auth-register-form.role-organizer-active .dual-slider-track-highlight,
#event-editor-form .dual-slider-track-highlight {
    background: #60a5fa !important;
}

#auth-register-form.role-organizer-active input[type="range"]::-webkit-slider-thumb,
#event-editor-form input[type="range"]::-webkit-slider-thumb {
    background: #60a5fa !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5) !important;
}

#auth-register-form.role-organizer-active input[type="range"]::-moz-range-thumb,
#event-editor-form input[type="range"]::-moz-range-thumb {
    background: #60a5fa !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5) !important;
}

/* Organizer Input Focus Blue Highlight */
#auth-register-form.role-organizer-active input[type="text"]:focus,
#auth-register-form.role-organizer-active input[type="email"]:focus,
#auth-register-form.role-organizer-active textarea:focus,
#event-editor-form input[type="text"]:focus,
#event-editor-form textarea:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3) !important;
}

/* Calendar styling */
.org-calendar-widget {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    user-select: none;
}

.org-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.org-calendar-header span {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.org-calendar-header button {
    background: transparent;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.org-calendar-header button:hover {
    background: rgba(37, 99, 235, 0.15);
}

.org-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.org-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.org-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
    font-weight: 500;
}

.org-cal-day:not(.empty):hover {
    background: rgba(37, 99, 235, 0.25);
    color: white;
}

.org-cal-day.selected {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.org-cal-day.empty {
    cursor: default;
    background: transparent !important;
}

.org-cal-day.past {
    cursor: not-allowed !important;
    opacity: 0.25 !important;
    background: transparent !important;
    text-decoration: line-through !important;
    pointer-events: none !important;
}

.org-selected-dates-preview {
    font-size: 0.72rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Custom role-specific autocomplete colors */
.autocomplete-suggestions.musician-suggestions .autocomplete-suggestion {
    color: #a855f7 !important;
}
.autocomplete-suggestions.musician-suggestions .autocomplete-suggestion i {
    color: #a855f7 !important;
}
.autocomplete-suggestions.musician-suggestions .autocomplete-suggestion.active,
.autocomplete-suggestions.musician-suggestions .autocomplete-suggestion:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    color: #7c3aed !important;
}

.autocomplete-suggestions.organizer-suggestions .autocomplete-suggestion {
    color: #2563eb !important;
}
.autocomplete-suggestions.organizer-suggestions .autocomplete-suggestion i {
    color: #2563eb !important;
}
.autocomplete-suggestions.organizer-suggestions .autocomplete-suggestion.active,
.autocomplete-suggestions.organizer-suggestions .autocomplete-suggestion:hover {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #1d4ed8 !important;
}

/* -------------------------------------------------------------
 * Responsive Market Filter Styles (Collapsible on Mobile)
 * ------------------------------------------------------------- */
.theme-musician {
    --market-primary: #7c3aed;
    --market-primary-rgb: 124, 58, 237;
    --market-accent: #a855f7;
    --market-arrow-svg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237c3aed' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.theme-organizer {
    --market-primary: #2563eb;
    --market-primary-rgb: 37, 99, 235;
    --market-accent: #3b82f6;
    --market-arrow-svg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}


.market-controls-row #market-title-label {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

@media (max-width: 600px) {
    .market-controls-row #market-title-label {
        display: inline-block !important;
        font-size: 1.05rem !important;
    }
}

.market-filter-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.45rem 1.05rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    color: var(--market-accent);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(var(--market-primary-rgb), 0.04);
    white-space: nowrap;
}

.market-filter-mobile-toggle:hover {
    background: rgba(var(--market-primary-rgb), 0.15);
    border-color: rgba(var(--market-primary-rgb), 0.45);
    color: var(--market-accent);
    box-shadow: 0 4px 18px rgba(var(--market-primary-rgb), 0.12);
}

.market-filter-mobile-toggle.active,
.market-filter-mobile-toggle.has-active-filters {
    background: rgba(34, 197, 94, 0.22) !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.45) !important;
}

.market-filter-mobile-toggle.active *,
.market-filter-mobile-toggle.has-active-filters * {
    color: #22c55e !important;
}

.market-filter-mobile-toggle.active:hover,
.market-filter-mobile-toggle.has-active-filters:hover {
    background: rgba(34, 197, 94, 0.32) !important;
    border-color: #22c55e !important;
}

.market-sort-container {
    margin-left: auto; /* Pushes it to the right on desktop */
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 0.6rem 2.2rem 0.6rem 1rem;
    border-radius: 10px;
    border: 1.5px solid rgba(var(--market-primary-rgb), 0.25);
    background: #ffffff var(--market-arrow-svg) no-repeat right 0.85rem center/10px 10px;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.sort-select:hover {
    border-color: rgba(var(--market-primary-rgb), 0.5);
    box-shadow: 0 4px 12px rgba(var(--market-primary-rgb), 0.08);
}

.sort-select:focus {
    border-color: var(--market-primary);
    box-shadow: 0 0 0 3px rgba(var(--market-primary-rgb), 0.15);
}

.market-filter-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-md);
    padding: 0 !important; /* edge-to-edge header */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                margin 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

/* Style wrapper container inside the white filter card to pad all categories globally */
.market-filter-card > div:not(.filter-header-sticky) {
    padding: 0 1.4rem 1.4rem 1.4rem !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

/* Modern clean background for inner filter category blocks globally */
.market-filter-card div[style*="background"] {
    background: #f8fafc !important; /* soft white-blue background */
    border: 1px solid #e2e8f0 !important; /* clean light border */
    border-radius: 12px !important;
}

/* Force dark text and theme-based headings inside the white filter card globally */
.theme-organizer .market-filter-card label {
    color: #2563eb !important; /* Lighter blue */
    font-weight: 900 !important;
    display: block;
    font-size: 0.85rem;
}
.theme-musician .market-filter-card label {
    color: #7c3aed !important; /* Lighter purple */
    font-weight: 900 !important;
    display: block;
    font-size: 0.85rem;
}

.market-filter-card p,
.market-filter-card h1,
.market-filter-card h2,
.market-filter-card h3,
.market-filter-card h4 {
    color: #0f172a !important;
}

/* Specific slider value display spans in theme colors */
.theme-organizer .market-filter-card .slider-value-display span {
    color: #2563eb !important;
}
.theme-musician .market-filter-card .slider-value-display span {
    color: #7c3aed !important;
}

/* Force Max. Umkreis and filter toggle links to purple in musician filter */
.market-filter-card #val-filter-radius-m,
.market-filter-card #val-filter-radius,
#val-filter-radius-m,
#val-filter-radius {
    color: #7c3aed !important;
}

.market-filter-card #input-filter-radius-m,
.market-filter-card #input-filter-radius,
#input-filter-radius-m,
#input-filter-radius {
    accent-color: #7c3aed !important;
}

.market-filter-card [onclick*="toggleAllFilterCheckboxes"] {
    color: #7c3aed !important;
}
.theme-organizer .market-filter-card [onclick*="toggleAllFilterCheckboxes"],
body.theme-organizer .market-filter-card [onclick*="toggleAllFilterCheckboxes"] {
    color: #2563eb !important;
}

/* Keep tag pills looking great on white background globally (White inactive background) */
.market-filter-card .tag-pill-checkbox {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
.market-filter-card .tag-pill-checkbox span {
    color: #334155 !important;
}
.market-filter-card .tag-pill-checkbox:hover {
    background: #f8fafc !important;
}
.market-filter-card .tag-pill-checkbox.active {
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: #7c3aed !important;
    color: #7c3aed !important;
}
.market-filter-card .tag-pill-checkbox.active span {
    color: #7c3aed !important;
}
.theme-organizer .market-filter-card .tag-pill-checkbox.active,
body.theme-organizer .market-filter-card .tag-pill-checkbox.active {
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}
.theme-organizer .market-filter-card .tag-pill-checkbox.active span,
body.theme-organizer .market-filter-card .tag-pill-checkbox.active span {
    color: #2563eb !important;
}

/* Style dual range slider tracks globally to stand out on white bg */
.market-filter-card .dual-range-track {
    background: #cbd5e1 !important;
}

@media (max-width: 900px) {
    .market-filter-mobile-toggle {
        display: flex; /* Show on mobile */
    }
    
    .market-filter-card {
        position: fixed !important;
        top: 130px !important;
        left: 5% !important;
        width: 90% !important;
        height: auto !important;
        max-height: 70vh !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow-y: auto !important;
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-color: transparent !important;
        pointer-events: none;
        box-sizing: border-box !important;
        z-index: 1001 !important; /* sit strictly on top of header (1000) and overlay (950) */
        background: #ffffff !important;
        backdrop-filter: none !important;
        border-radius: var(--radius-md) !important;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .market-filter-card.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }

    /* Compress padding of inner filter category cards on mobile */
    .market-filter-card div[style*="padding: 0.8rem"],
    .market-filter-card div[style*="padding:0.8rem"] {
        padding: 0.5rem !important;
    }

    /* Prevent tag pills from stretching the filter card on mobile */
    .market-filter-card .tag-pill-checkbox {
        padding: 0.2rem 0.45rem !important;
        font-size: 0.72rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-all !important;
        word-wrap: break-word !important;
    }

    .market-filter-card .tag-pill-checkbox span {
        white-space: normal !important;
        word-break: break-all !important;
        word-wrap: break-word !important;
    }

    /* strict box constraints for all input elements inside filters */
    .market-filter-card input,
    .market-filter-card select,
    .market-filter-card button,
    .market-filter-card div {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .market-controls-row,
    .matches-controls-row,
    .profile-controls-row,
    .postbox-controls-row {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        min-height: 58px !important;
        border-radius: 0 !important;
    }

    .controls-row-inner,
    .market-controls-inner,
    .matches-controls-inner,
    .profile-controls-inner,
    .postbox-controls-inner {
        padding: 0.4rem 0.75rem !important;
        gap: 0.5rem !important;
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .market-filter-mobile-toggle {
        font-size: 0.88rem !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .market-sort-container {
        max-width: 50% !important;
        box-sizing: border-box !important;
    }

    .sort-select {
        padding: 0.45rem 1.6rem 0.45rem 0.6rem !important;
        font-size: 0.78rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force 1 column grid layout for items on mobile to prevent stretching */
    #market-items-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Responsive container adjustments to shift higher and prevent horizontal clipping */
@media (max-width: 900px) {
    .app-main {
        padding: 0 !important;
    }
    
    .market-page,
    .matches-page,
    .profile-page,
    .postbox-page {
        padding: 0 0 3rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .profile-section-card {
        padding: 1.5rem 1.15rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Specific theme overrides to bust global !important styles */
.theme-musician .btn-primary,
.theme-musician .btn-secondary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

.theme-musician .btn-primary:hover,
.theme-musician .btn-secondary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
    filter: brightness(1.1);
}

.theme-organizer .btn-primary,
.theme-organizer .btn-secondary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.theme-organizer .btn-primary:hover,
.theme-organizer .btn-secondary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    filter: brightness(1.1);
}

/* Card slider height adjustments (reverted from contain to cover for unzoomed clean look) */
.tile-fullwidth-photo-slider {
    height: 180px !important;
    background: #0f172a !important;
    cursor: grab;
}
.tile-fullwidth-photo-slider:active {
    cursor: grabbing;
}

.tile-fullwidth-photo-slider img,
.tile-fullwidth-photo-slider video,
.detail-hero-banner img {
    object-fit: cover !important;
}

@media (max-width: 900px) {
    .tile-fullwidth-photo-slider {
        height: 155px !important;
    }
}

/* Fullscreen Gallery Lightbox Animations */
@keyframes fadeInGallery {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fadeOutGallery {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.97); }
}

/* Prevent horizontal scroll globally on iOS and android */
html {
    overflow-x: visible;
    max-width: 100%;
}



/* Enforce strict styling and appearance resets on all input elements inside filters to avoid mobile/Safari layout issues */
.market-filter-card input[type="date"],
.market-filter-card input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Sticky Filter Header styling (glowing blue capsule globally!) */
.filter-header-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 1.2rem) !important;
    padding: 0.8rem 1.4rem !important; /* shifted inwards! */
    margin: 0.6rem 0.6rem 1rem 0.6rem !important; /* floated/rounded capsule look */
    box-sizing: border-box !important;
    border-radius: 12px !important;
    color: #ffffff !important;
}

.theme-musician .filter-header-sticky,
.filter-header-sticky {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border: 2px solid rgba(196, 181, 253, 0.45) !important;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35) !important;
}

.theme-organizer .filter-header-sticky {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border: 2px solid rgba(147, 197, 253, 0.45) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35) !important;
}

.filter-header-title, .filter-header-title i {
    color: #ffffff !important;
}

.btn-reset-round {
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    line-height: 1;
    transition: background 0.2s, transform 0.1s;
}

.btn-reset-round:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
}

.filter-header-close-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

.btn-close-filters-m,
#btn-close-filters-m,
#btn-close-filters-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    font-size: 1.35rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: background 0.2s, transform 0.1s !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.btn-close-filters-m i,
#btn-close-filters-m i,
#btn-close-filters-top i {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-close-filters-m:hover,
#btn-close-filters-m:hover,
#btn-close-filters-top:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.06) !important;
}

.theme-organizer .btn-close-filters-bottom,
.theme-organizer #btn-close-filters-bottom {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    color: #ffffff !important;
}

.theme-organizer .btn-close-filters-bottom:hover,
.theme-organizer #btn-close-filters-bottom:hover,
.theme-organizer .btn-close-filters-bottom:active,
.theme-organizer #btn-close-filters-bottom:active,
.theme-organizer .btn-close-filters-bottom:focus,
.theme-organizer #btn-close-filters-bottom:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
    color: #ffffff !important;
}

.theme-musician .btn-close-filters-bottom,
.theme-musician #btn-close-filters-bottom {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border-color: #7c3aed !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
    color: #ffffff !important;
}

.theme-musician .btn-close-filters-bottom:hover,
.theme-musician #btn-close-filters-bottom:hover,
.theme-musician .btn-close-filters-bottom:active,
.theme-musician #btn-close-filters-bottom:active,
.theme-musician .btn-close-filters-bottom:focus,
.theme-musician #btn-close-filters-bottom:focus {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    border-color: #6d28d9 !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45) !important;
    color: #ffffff !important;
}

.market-filter-card .market-filter-bottom-actions,
.market-filter-card.open .market-filter-bottom-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.4rem 1.2rem 0.8rem !important;
    margin-top: -0.4rem !important;
    background: transparent !important;
    border: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: static !important;
    box-shadow: none !important;
}

.btn-close-filters-bottom {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    width: 100% !important;
    min-height: 50px !important;
    padding: 0.95rem 1.5rem !important;
    border-radius: 12px !important;
    font-family: var(--font-heading) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

@media (max-width: 900px) {
    .btn-reset-round:hover {
        transform: scale(1.05) !important;
    }
}

/* Ensure calendar widget days are clickable on mobile Safari/iOS */
.org-cal-day {
    cursor: pointer !important;
}
.org-cal-day.empty {
    cursor: default !important;
}

/* Fix registration range input background and borders to make thumbs visible */
input[type="range"].input-field {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Circular Sort container with overlay select */
.market-sort-container-round {
    position: relative;
    width: 42px !important;
    height: 42px !important;
    margin: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
}

.market-sort-container-round:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
}

.theme-musician .market-sort-container-round {
    background: rgba(124, 58, 237, 0.08) !important;
    border: 1.5px solid rgba(124, 58, 237, 0.25) !important;
}
.theme-organizer .market-sort-container-round {
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1.5px solid rgba(37, 99, 235, 0.25) !important;
}

.filter-header-sticky .market-sort-container-round {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.filter-header-sticky .market-sort-container-round:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Backdrop blur overlay for mobile filters drawer */
.market-filters-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 950 !important; /* sits behind the filter card (which is 1000) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

@media (max-width: 900px) {
    .market-filter-card.open ~ .market-filters-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* Custom styling for the filter calendar days */
.filter-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
    background: transparent;
    user-select: none;
}

.filter-cal-day:hover:not(.empty):not(.selected) {
    background: #f1f5f9;
    color: #0f172a;
}

/* Event-Markt uses theme-musician (purple), Musiker-Markt uses theme-organizer (blue) */
.theme-musician .filter-cal-day.selected {
    background: #7c3aed !important;
    color: #ffffff !important;
}

.theme-organizer .filter-cal-day.selected {
    background: #2563eb !important;
    color: #ffffff !important;
}

.filter-cal-day.empty {
    cursor: default;
    pointer-events: none;
}

.filter-calendar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

/* Zero out app-main padding on the landing/home page and info pages to allow full screen width elements */
.app-main.page-landing {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.info-page-container.theme-musician {
    background: linear-gradient(180deg, #f6f0ff 0%, #ede0fd 28%, #f8f3ff 60%, #ffffff 100%) !important;
}

.info-page-container.theme-organizer {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 28%, #f0f7ff 60%, #ffffff 100%) !important;
}

@keyframes heroCtaFlyInRight {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroCtaFlyInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-cta-fly-in-right {
    animation: heroCtaFlyInRight 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta-fly-in-left {
    animation: heroCtaFlyInLeft 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta-card-btn {
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.15s ease, filter 0.15s ease !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}
@media (hover: hover) and (pointer: fine) {
    .hero-cta-card-btn:hover {
        transform: translateY(-3px) scale(1.02) !important;
        filter: brightness(1.06);
    }
}
.hero-cta-card-btn:active {
    transform: translateY(2px) scale(0.96) !important;
    filter: brightness(0.92);
}

@keyframes infoHeadlineFlyOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    80% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 0;
        transform: translateX(-60px);
        visibility: hidden;
        display: none;
    }
}

@keyframes infoToggleFlyIn {
    0% {
        opacity: 0;
        transform: translateX(60px);
        pointer-events: none;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
}

@keyframes infoStepBannerReveal {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes infoCardReveal {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Split benefits layout on laptop screens */
.benefits-container-split {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .benefits-container-split {
        flex-direction: row;
        gap: 4rem;
        justify-content: center;
        align-items: stretch;
    }
    .benefits-container-split > div {
        flex: 1;
        max-width: 600px;
        min-width: 320px;
    }
}

/* Ensure benefits tiles in the vertical stack have the exact same height and are generally narrow */
.benefits-vertical-stack {
    max-width: 460px !important;
    margin: 0 auto;
}

.benefits-vertical-stack .market-tile-card {
    height: 105px !important;
    padding: 0.8rem 1rem !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Infinite Scrolling Logo Marquee */
.logo-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}

.partner-logo-badge i {
    font-size: 1.05rem;
}

.theme-musicians-marquee .partner-logo-badge {
    border-color: rgba(124, 58, 237, 0.2);
}
.theme-musicians-marquee .partner-logo-badge:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.7);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.35);
    transform: scale(1.05);
    cursor: default;
}

.theme-events-marquee .partner-logo-badge {
    border-color: rgba(37, 99, 235, 0.2);
}
.theme-events-marquee .partner-logo-badge:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
    transform: scale(1.05);
    cursor: default;
}

.marquee-item-glass {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: clamp(0.85rem, 2vw, 1.05rem) !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    transition: transform 0.2s, background-color 0.2s !important;
    user-select: none !important;
}

.marquee-item-glass:hover {
    transform: scale(1.05) !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Homepage Benefits Market Buttons */
.btn-homepage-market {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-homepage-market:hover {
    transform: translateY(-2px) scale(1.02);
}
.btn-homepage-market:active {
    transform: translateY(0) scale(1);
}
.btn-homepage-market.theme-musician {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5), 0 4px 20px rgba(124, 58, 237, 0.3);
    animation: purpleGlowPulse 3s infinite alternate;
}
.btn-homepage-market.theme-musician:hover {
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.8), 0 6px 30px rgba(124, 58, 237, 0.6) !important;
    animation: none;
}
.btn-homepage-market.theme-organizer {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.7), 0 4px 25px rgba(59, 130, 246, 0.45);
    animation: blueGlowPulse 3s infinite alternate;
}
.btn-homepage-market.theme-organizer:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.95), 0 6px 35px rgba(59, 130, 246, 0.75) !important;
    animation: none;
}

@keyframes purpleGlowPulse {
    0% { box-shadow: 0 0 12px rgba(124, 58, 237, 0.4), 0 4px 15px rgba(124, 58, 237, 0.2); }
    100% { box-shadow: 0 0 22px rgba(124, 58, 237, 0.7), 0 4px 25px rgba(124, 58, 237, 0.45); }
}

@keyframes blueGlowPulse {
    0% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.55), 0 4px 18px rgba(59, 130, 246, 0.35); }
    100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.9), 0 4px 30px rgba(59, 130, 246, 0.55); }
}

/* Paler benefits cards */
.benefit-card-musician {
    background: rgba(124, 58, 237, 0.12) !important;
    border: 2px solid rgba(168, 85, 247, 0.28) !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    backdrop-filter: blur(8px) !important;
}

.benefit-card-organizer {
    background: rgba(30, 64, 175, 0.12) !important;
    border: 2px solid rgba(96, 165, 250, 0.28) !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    backdrop-filter: blur(8px) !important;
}

/* -------------------------------------------------------------
 * New Custom Responsive and Themed Layout Adjustments
 * ------------------------------------------------------------- */

/* App container overflow fix to restore sticky headers on mobile */
.app-container {
    overflow-x: clip !important;
}

/* Header Login Button Styling */
.header-login-btn, #btn-login-trigger, .header-dashboard-btn, #btn-hero-dashboard {
    white-space: nowrap !important;
    line-height: 1.0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35) !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
}

.header-login-btn:hover, #btn-login-trigger:hover, .header-dashboard-btn:hover, #btn-hero-dashboard:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45) !important;
    transform: scale(1.04);
}

.header-login-btn .header-login-icon, #btn-login-trigger .header-login-icon, .header-dashboard-btn .header-login-icon, #btn-hero-dashboard .header-login-icon {
    font-size: 1.25rem !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    flex-shrink: 0 !important;
}

/* Mobile responsive styles for the Header Login Button */
@media (max-width: 768px) {
    .header-login-btn, #btn-login-trigger, .header-dashboard-btn, #btn-hero-dashboard {
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
    }
    .header-login-btn .header-login-icon, #btn-login-trigger .header-login-icon, .header-dashboard-btn .header-login-icon, #btn-hero-dashboard .header-login-icon {
        font-size: 1.15rem !important;
    }
}
@media (max-width: 380px) {
    .header-login-btn, #btn-login-trigger, .header-dashboard-btn, #btn-hero-dashboard {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
    }
    .header-login-btn .header-login-icon, #btn-login-trigger .header-login-icon, .header-dashboard-btn .header-login-icon, #btn-hero-dashboard .header-login-icon {
        font-size: 1.05rem !important;
    }
}

/* Default styling for control toggles (no inline styles) */
.market-control-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* Market controls toolbar / bar - legacy gradient bars hidden */
.market-controls-row,
.matches-controls-row,
.profile-controls-row,
.postbox-controls-row {
    display: none !important;
}

/* Sub-header bars between white sticky header and cards */
.market-sub-header-bar,
.matches-sub-header-bar,
.postbox-sub-header-bar {
    width: 100%;
    max-width: 1520px;
    margin: 1.25rem auto 1rem;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    text-align: center;
}

.market-sub-header-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.market-sub-header-title,
.matches-sub-header-title,
.postbox-sub-header-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5.5vw, 2.85rem) !important;
    font-weight: 900;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    white-space: nowrap;
}

.market-sub-header-title #market-results-count,
.market-sub-header-title #market-title-label,
.market-sub-header-title span,
.matches-sub-header-title span,
.postbox-sub-header-title span {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
    display: inline !important;
}

/* Theme colors for sub-header titles: Purple for musician mode / Blue for organizer mode */
.theme-musician .market-sub-header-title,
.theme-musician .matches-sub-header-title,
.theme-musician .postbox-sub-header-title,
.market-page.theme-musician .market-sub-header-title,
.matches-page.theme-musician .matches-sub-header-title,
.postbox-page.theme-musician .postbox-sub-header-title {
    color: #7c3aed !important;
}

.theme-organizer .market-sub-header-title,
.theme-organizer .matches-sub-header-title,
.theme-organizer .postbox-sub-header-title,
.market-page.theme-organizer .market-sub-header-title,
.matches-page.theme-organizer .matches-sub-header-title,
.postbox-page.theme-organizer .postbox-sub-header-title {
    color: #2563eb !important;
}

.market-filter-action-area {
    position: absolute !important;
    right: 1.2rem !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
    z-index: 5;
}

@media (max-width: 600px) {
    .market-filter-action-area {
        right: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .market-sub-header-title {
        font-size: clamp(1.4rem, 5.2vw, 1.85rem) !important;
    }
    .market-inline-filter-btn {
        padding: 0.38rem 0.8rem !important;
        font-size: 0.85rem !important;
        gap: 0.35rem !important;
    }
}

/* Filter Button and matching Action Buttons (Weitere Ergebnisse, Filter zurücksetzen) */
.market-inline-filter-btn,
.market-bottom-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    white-space: nowrap;
    user-select: none;
    text-align: center;
}

.theme-musician .market-inline-filter-btn,
.theme-musician .market-bottom-pill-btn {
    border: 1.5px solid #7c3aed;
    color: #7c3aed;
}
.theme-musician .market-inline-filter-btn:hover,
.theme-musician .market-bottom-pill-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}
.theme-musician .market-inline-filter-btn:hover i,
.theme-musician .market-bottom-pill-btn:hover i {
    color: #ffffff !important;
}

.theme-organizer .market-inline-filter-btn,
.theme-organizer .market-bottom-pill-btn {
    border: 1.5px solid #2563eb;
    color: #2563eb;
}
.theme-organizer .market-inline-filter-btn:hover,
.theme-organizer .market-bottom-pill-btn:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}
.theme-organizer .market-inline-filter-btn:hover i,
.theme-organizer .market-bottom-pill-btn:hover i {
    color: #ffffff !important;
}

.market-inline-filter-btn.has-active-filters {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.08) !important;
    color: #15803d !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25) !important;
}
.market-inline-filter-btn.has-active-filters i {
    color: #22c55e !important;
}

/* Green dot indicator is removed */
.filter-active-indicator,
#market-filter-active-dot,
#floating-filter-active-dot {
    display: none !important;
}

@media (max-width: 650px) {
    .market-sub-header-bar {
        position: relative !important;
        flex-direction: row !important;
        padding: 0 0.8rem !important;
        margin: 1rem auto 0.75rem;
    }
    .market-filter-action-area {
        position: absolute !important;
        right: 0.8rem !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }
    .market-sub-header-title,
    .matches-sub-header-title,
    .postbox-sub-header-title {
        font-size: clamp(1.75rem, 6.5vw, 2.3rem) !important;
    }
    .market-inline-filter-btn,
    .market-bottom-pill-btn {
        padding: 0.45rem 0.95rem;
        font-size: 0.88rem;
        border-radius: 10px;
    }
}

/* Controls Bar Logo Branding & Responsive Typography */
.controls-logo-link {
    transition: transform 0.2s ease, opacity 0.2s ease;
    user-select: none;
}
.controls-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

@media (max-width: 540px) {
    .controls-logo-text {
        display: none !important;
    }
    .profile-logout-text {
        display: none !important;
    }
    #btn-profile-logout {
        padding: 0 0.65rem !important;
    }
}

/* Side-by-side bottom market action buttons */
.market-bottom-actions-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 420px) {
    .market-bottom-actions-row button {
        font-size: 0.82rem !important;
        padding: 0.65rem 0.5rem !important;
        gap: 4px !important;
    }
}

/* No icons in title of top navigation bars */
.market-controls-title i,
.matches-controls-title i,
.profile-controls-title i,
.postbox-controls-title i {
    display: none !important;
}

#btn-profile-logout i,
.switcher-caret {
    display: inline-block !important;
}

.controls-row-inner,
.market-controls-inner,
.matches-controls-inner,
.profile-controls-inner,
.postbox-controls-inner {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0.65rem 1.2rem;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    box-sizing: border-box !important;
    gap: 0.5rem;
}

.market-controls-spacer,
.matches-controls-spacer,
.profile-controls-spacer,
.postbox-controls-spacer {
    grid-column: 1 !important;
    min-width: 0 !important;
}

#market-results-header,
.matches-controls-title,
.profile-controls-title,
.postbox-controls-title {
    grid-column: 2 !important;
    justify-self: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.market-controls-actions,
.matches-controls-actions,
.profile-controls-actions,
.postbox-controls-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.market-content-wrapper,
.matches-content-wrapper,
.profile-content-wrapper,
.postbox-content-wrapper {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 1.2rem 5rem;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .market-content-wrapper,
    .matches-content-wrapper,
    .profile-content-wrapper,
    .postbox-content-wrapper {
        padding: 0 0.8rem 4rem !important;
    }
}

.market-controls-row.favorites-mode {
    min-height: 58px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Actions Container on the right */
.market-controls-actions,
.postbox-controls-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

/* Hide all actions (Filter, Reset, Sort) and sidebar in Favoriten */
.market-page.favorites-mode .market-controls-actions,
.market-controls-row.favorites-mode .market-controls-actions,
.market-controls-actions.hidden,
.market-page.favorites-mode #market-filters-wrapper,
.market-layout-container.no-filters #market-filters-wrapper {
    display: none !important;
}

/* Icon Buttons on the Market Bar (Reset & Sort) */
.market-bar-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.market-bar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.market-bar-icon-btn:active {
    transform: translateY(0);
}

.market-bar-icon-btn i {
    color: #ffffff !important;
    font-size: 0.95rem !important;
}

/* Market Filter Mobile Toggle Button */
.market-filter-mobile-toggle, #btn-toggle-mobile-filters {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0 0.45rem !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .market-filter-mobile-toggle, #btn-toggle-mobile-filters,
    .theme-musician .market-filter-mobile-toggle,
    .theme-organizer .market-filter-mobile-toggle {
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 0.35rem !important;
        font-size: 0.88rem !important;
        border-radius: 10px !important;
    }
}
@media (max-width: 380px) {
    .market-filter-mobile-toggle, #btn-toggle-mobile-filters,
    .theme-musician .market-filter-mobile-toggle,
    .theme-organizer .market-filter-mobile-toggle {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 0.25rem !important;
        font-size: 0.82rem !important;
        border-radius: 8px !important;
    }
}

.market-filter-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.market-filter-mobile-toggle i,
.market-filter-mobile-toggle #mobile-filter-icon,
.market-filter-mobile-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease, stroke 0.3s ease, text-shadow 0.3s ease !important;
}

.market-filter-mobile-toggle span {
    color: #ffffff !important;
    transition: color 0.3s ease !important;
}

/* When drawer is open: subtle highlight, NEVER solid white */
.market-filter-mobile-toggle.active {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3) !important;
}
.market-filter-mobile-toggle.active i,
.market-filter-mobile-toggle.active span,
.market-filter-mobile-toggle.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* When filter is active: Icon + "Filter" text MUST be green */
.market-filter-mobile-toggle.has-active-filters,
.market-filter-mobile-toggle.has-active-filters.active {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.22) !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.45) !important;
    color: #22c55e !important;
}

.market-filter-mobile-toggle.has-active-filters i,
.market-filter-mobile-toggle.has-active-filters #mobile-filter-icon,
.market-filter-mobile-toggle.has-active-filters svg,
.market-filter-mobile-toggle.has-active-filters.active i,
.market-filter-mobile-toggle.has-active-filters.active #mobile-filter-icon,
.market-filter-mobile-toggle.has-active-filters.active svg {
    color: #22c55e !important;
    stroke: #22c55e !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.8) !important;
}

.market-filter-mobile-toggle.has-active-filters span,
.market-filter-mobile-toggle.has-active-filters.active span {
    color: #22c55e !important;
}

/* ==========================================================================
   Floating Market Filter Pill Button (Option 4 - Airbnb Style)
   ========================================================================== */

.market-floating-filter-pill {
    position: fixed;
    bottom: calc(92px + 18px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1.45rem;
    min-width: 124px;
    height: 46px;
    box-sizing: border-box;
    border-radius: 9999px;
    background: #ffffff;
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

body:not(.has-bottom-bar) .market-floating-filter-pill {
    bottom: 24px;
}

.market-floating-filter-pill:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.market-floating-filter-pill:active {
    transform: translateX(-50%) scale(0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.market-floating-filter-pill .floating-filter-icon {
    font-size: 1.05rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.market-floating-filter-pill.theme-musician .floating-filter-icon {
    color: #7c3aed;
}

.market-floating-filter-pill.theme-organizer .floating-filter-icon {
    color: #2563eb;
}

.market-floating-filter-pill .floating-filter-text {
    letter-spacing: -0.2px;
}

.market-floating-filter-pill .floating-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    margin-left: 0.1rem;
    flex-shrink: 0;
}

.market-floating-filter-pill.has-active-filters {
    border-color: #22c55e !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.market-floating-filter-pill.has-active-filters .floating-filter-icon {
    color: #22c55e !important;
}

/* Hide when drawer or overlay is open, or in favorites/top-matches modes */
.market-floating-filter-pill.drawer-open,
.market-filters-overlay.open ~ .market-floating-filter-pill,
.market-page.filters-open .market-floating-filter-pill,
.market-page.favorites-mode .market-floating-filter-pill,
.market-page.top-matches-mode .market-floating-filter-pill,
.market-controls-row.favorites-mode ~ .market-floating-filter-pill,
.market-controls-row.top-matches-mode ~ .market-floating-filter-pill,
.market-floating-filter-pill.hidden-mode,
.matches-page .market-floating-filter-pill,
.postbox-page .market-floating-filter-pill,
.profile-page .market-floating-filter-pill {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(25px) scale(0.9) !important;
}

/* Favorites mode: Guarantee no reset filters button anywhere in favorites */
.favorites-mode #btn-market-bottom-reset,
.market-page.favorites-mode #btn-market-bottom-reset,
.market-page.favorites-mode #btn-reset-filters,
.market-page.favorites-mode .btn-reset-round,
body[data-page="favorites"] #btn-market-bottom-reset {
    display: none !important;
}

@media (max-width: 480px) {
    .market-floating-filter-pill {
        height: 42px;
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Profile Top Actions Bar (über der Kachel "Meine Musiker/Events") */
.profile-top-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.2rem;
    box-sizing: border-box;
}

.profile-switcher-action-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-glass);
    border-radius: 14px;
    padding: 0.55rem 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    min-width: 220px;
    max-width: 100%;
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.profile-switcher-action-box:hover {
    border-color: rgba(124, 58, 237, 0.35);
}

@media (max-width: 520px) {
    .profile-top-actions-bar {
        gap: 0.7rem;
    }
    .profile-switcher-action-box {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        padding: 0.45rem 0.8rem !important;
    }
}

/* Grid layout with filters hidden (e.g. favorites) */
.market-layout-container.no-filters,
.market-page.favorites-mode .market-layout-container {
    grid-template-columns: 1fr !important;
}

/* Ensure favorites cards match the exact width of market cards */
.market-page.favorites-mode #market-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 388px)) !important;
    gap: 2rem !important;
    width: 100% !important;
}

.market-page.favorites-mode #market-items-grid .market-tile-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .market-page.favorites-mode #market-items-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Musician Theme (Lila Leiste): Event-Markt, Matches, Profile, Postbox */
.theme-musician .market-controls-row,
.theme-musician .matches-controls-row,
.theme-musician .profile-controls-row,
.theme-musician .postbox-controls-row {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.96) 0%, rgba(79, 70, 229, 0.96) 50%, rgba(37, 99, 235, 0.96) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    box-shadow: 0 6px 28px rgba(79, 70, 229, 0.35) !important;
}

.theme-musician .market-controls-row #market-results-count {
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
}

.theme-musician .market-controls-row #market-title-label,
.theme-musician .matches-controls-row #top-matches-label,
.theme-musician .profile-controls-row #profile-title-label,
.theme-musician .postbox-controls-row #postbox-title-label {
    color: rgba(255, 255, 255, 0.92) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
}

.theme-musician .market-filter-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0 0.45rem !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.theme-musician .market-filter-mobile-toggle i,
.theme-musician .market-filter-mobile-toggle span,
.theme-musician .market-filter-mobile-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.theme-musician .market-filter-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Never turn white when drawer is opened */
.theme-musician .market-filter-mobile-toggle.active {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3) !important;
}

.theme-musician .market-filter-mobile-toggle.active i,
.theme-musician .market-filter-mobile-toggle.active span,
.theme-musician .market-filter-mobile-toggle.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* When filters are active in Musician theme: Must be vibrant glowing green */
.theme-musician .market-filter-mobile-toggle.has-active-filters,
.theme-musician .market-filter-mobile-toggle.has-active-filters.active {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.22) !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.45) !important;
    color: #22c55e !important;
}

.theme-musician .market-filter-mobile-toggle.has-active-filters i,
.theme-musician .market-filter-mobile-toggle.has-active-filters #mobile-filter-icon,
.theme-musician .market-filter-mobile-toggle.has-active-filters svg,
.theme-musician .market-filter-mobile-toggle.has-active-filters.active i,
.theme-musician .market-filter-mobile-toggle.has-active-filters.active #mobile-filter-icon,
.theme-musician .market-filter-mobile-toggle.has-active-filters.active svg {
    color: #22c55e !important;
    stroke: #22c55e !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.8) !important;
}

.theme-musician .market-filter-mobile-toggle.has-active-filters span,
.theme-musician .market-filter-mobile-toggle.has-active-filters.active span {
    color: #22c55e !important;
}


/* Organizer Theme (Blaue Leiste): Musiker-Markt, Matches, Profile, Postbox */
.theme-organizer .market-controls-row,
.theme-organizer .matches-controls-row,
.theme-organizer .profile-controls-row,
.theme-organizer .postbox-controls-row {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.96) 0%, rgba(79, 70, 229, 0.96) 50%, rgba(37, 99, 235, 0.96) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    box-shadow: 0 6px 28px rgba(79, 70, 229, 0.35) !important;
}

.theme-organizer .market-controls-row #market-results-count {
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
}

.theme-organizer .market-controls-row #market-title-label,
.theme-organizer .matches-controls-row #top-matches-label,
.theme-organizer .profile-controls-row #profile-title-label,
.theme-organizer .postbox-controls-row #postbox-title-label {
    color: rgba(255, 255, 255, 0.92) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
}

.theme-organizer .market-filter-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0 0.45rem !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.theme-organizer .market-filter-mobile-toggle i,
.theme-organizer .market-filter-mobile-toggle span,
.theme-organizer .market-filter-mobile-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.theme-organizer .market-filter-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Never turn white when drawer is opened */
.theme-organizer .market-filter-mobile-toggle.active {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3) !important;
}

.theme-organizer .market-filter-mobile-toggle.active i,
.theme-organizer .market-filter-mobile-toggle.active span,
.theme-organizer .market-filter-mobile-toggle.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* When filters are active in Organizer theme: Must be vibrant glowing green */
.theme-organizer .market-filter-mobile-toggle.has-active-filters,
.theme-organizer .market-filter-mobile-toggle.has-active-filters.active {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.22) !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.45) !important;
    color: #22c55e !important;
}

.theme-organizer .market-filter-mobile-toggle.has-active-filters i,
.theme-organizer .market-filter-mobile-toggle.has-active-filters #mobile-filter-icon,
.theme-organizer .market-filter-mobile-toggle.has-active-filters svg,
.theme-organizer .market-filter-mobile-toggle.has-active-filters.active i,
.theme-organizer .market-filter-mobile-toggle.has-active-filters.active #mobile-filter-icon,
.theme-organizer .market-filter-mobile-toggle.has-active-filters.active svg {
    color: #22c55e !important;
    stroke: #22c55e !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.8) !important;
}

.theme-organizer .market-filter-mobile-toggle.has-active-filters span,
.theme-organizer .market-filter-mobile-toggle.has-active-filters.active span {
    color: #22c55e !important;
}

/* Fallback default market controls (scoped to controls row) */
.market-controls-row #market-results-count {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
}
.market-controls-row #market-title-label {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
}


.theme-musician .matches-controls-row h2,
.theme-organizer .matches-controls-row h2,
.matches-controls-row h2 {
    color: #ffffff !important;
}

.theme-musician .matches-controls-row #top-matches-count,
.theme-organizer .matches-controls-row #top-matches-count,
.matches-controls-row #top-matches-count {
    color: rgba(255, 255, 255, 0.92) !important;
}

.matches-select-wrapper {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.matches-select-wrapper:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.matches-select-wrapper label,
.matches-select-wrapper select,
.matches-select-wrapper i {
    color: #ffffff !important;
}

.matches-select-wrapper select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

@media (max-width: 767px) {
    .matches-controls-row {
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
}

/* Feedback button header styles */
.feedback-trigger-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.05rem;
    cursor: pointer;
    border: 1px solid var(--border-glass) !important;
}

/* Musicians feedback button is blue */
.feedback-trigger-btn.feedback-blue {
    background: rgba(37, 99, 235, 0.1) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    color: #3b82f6 !important;
}
.feedback-trigger-btn.feedback-blue:hover {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #2563eb !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.25) !important;
    transform: translateY(-1px);
}

/* Organizers feedback button is purple/lila */
.feedback-trigger-btn.feedback-purple {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: #a855f7 !important;
}
.feedback-trigger-btn.feedback-purple:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    color: #8b5cf6 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25) !important;
    transform: translateY(-1px);
}

/* Modal Submit Buttons: Swapped colors */
.btn-submit-feedback.feedback-blue-btn {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
.btn-submit-feedback.feedback-blue-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.btn-submit-feedback.feedback-purple-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}
.btn-submit-feedback.feedback-purple-btn:hover {
    background: #6d28d9 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
}

/* Navigation icon buttons in header (next to profile) */
.nav-icon-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid var(--border-glass) !important;
    text-decoration: none;
    position: relative;
}

.nav-icon-btn.btn-blue {
    background: rgba(37, 99, 235, 0.1) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    color: #3b82f6 !important;
}
.nav-icon-btn.btn-blue:hover,
.nav-icon-btn.btn-blue.active {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #2563eb !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.25) !important;
    transform: translateY(-1px);
}

.nav-icon-btn.btn-purple {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: #a855f7 !important;
}
.nav-icon-btn.btn-purple:hover,
.nav-icon-btn.btn-purple.active {
    background: rgba(168, 85, 247, 0.2) !important;
    color: #8b5cf6 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25) !important;
    transform: translateY(-1px);
}

/* Event Types Section styling */
.event-types-grid {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.event-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass) !important;
    border-radius: 18px;
    padding: 1.8rem 1rem;
    width: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
}

.event-type-card:hover {
    transform: translateY(-5px);
}

.event-type-card.card-purple:hover {
    border-color: rgba(167, 139, 250, 0.6) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.event-type-card.card-blue:hover {
    border-color: rgba(96, 165, 250, 0.6) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.event-type-card.card-gray:hover {
    border-color: rgba(148, 163, 184, 0.6) !important;
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.15);
}

/* Split benefits layout cards */
.benefit-split-card {
    border-radius: 28px;
    padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 3.5vw, 2.2rem) !important;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    box-sizing: border-box;
}

.benefit-split-card.card-musician {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(109, 40, 217, 0.01) 100%);
    border: 2.5px solid rgba(167, 139, 250, 0.45) !important;
}

.benefit-split-card.card-organizer {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(30, 58, 138, 0.01) 100%);
    border: 2.5px solid rgba(96, 165, 250, 0.45) !important;
}

/* Custom Smaller and Themed Carousel Navigation Buttons */
.carousel-btn.btn-musicians {
    width: 36px !important;
    height: 36px !important;
    background: rgba(124, 58, 237, 0.08) !important;
    border: 1.5px solid rgba(167, 139, 250, 0.45) !important;
    color: #7c3aed !important;
}
.carousel-btn.btn-musicians i {
    font-size: 0.85rem !important;
}
.carousel-btn.btn-musicians:hover {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
}

.carousel-btn.btn-events {
    width: 36px !important;
    height: 36px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1.5px solid rgba(96, 165, 250, 0.45) !important;
    color: #2563eb !important;
}
.carousel-btn.btn-events i {
    font-size: 0.85rem !important;
}
.carousel-btn.btn-events:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Styled contact circular buttons in action row */
.market-contact-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 0;
}
.market-contact-btn i {
    font-size: 1.05rem !important;
    color: #ffffff !important;
}
.market-contact-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}
.market-contact-btn.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.market-contact-btn.active i {
    color: #0f172a !important;
}

/* Market card contact details accordion panel */
.btn-toggle-contact-details {
    transition: all 0.2s ease-in-out;
}
.btn-toggle-contact-details:hover {
    transform: translateY(-1px);
}
.market-contact-details-panel {
    transition: all 0.25s ease-in-out;
}

/* Mobile responsiveness for weekly availability grid */
@media (max-width: 480px) {
    .availability-day-times input[type="time"] {
        width: 80px;
    }
    .availability-day-row {
        gap: 6px;
        padding: 0.4rem 0.5rem;
    }
    .availability-day-times {
        gap: 4px;
    }
}
/* Helper styles for new subscription cards */
.subscription-gift-box {
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.6rem auto 0 auto;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}
.subscription-gift-box i {
    font-size: 1rem;
    color: #7c3aed;
}
.subscription-gift-box .gift-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #7c3aed;
}
.subscription-gift-box .gift-sub {
    font-size: 0.58rem;
    color: var(--text-muted);
}
.btn-sub-select {
    transition: all 0.2s ease;
}

/* Pale style for non-active card buttons */
.subscription-card .btn-sub-select {
    background: rgba(109, 40, 217, 0.08) !important;
    border-color: rgba(109, 40, 217, 0.15) !important;
    color: #6d28d9 !important;
    box-shadow: none !important;
}
.subscription-card .btn-sub-select:hover {
    background: rgba(109, 40, 217, 0.14) !important;
    border-color: rgba(109, 40, 217, 0.25) !important;
    transform: translateY(-1px);
}

/* Active card button style (full purple) */
.subscription-card.active .btn-sub-select {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #7c3aed !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
.subscription-card.active .btn-sub-select:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Organizer Theme: Blue style for subscription tariff buttons */
.theme-organizer .subscription-card .btn-sub-select,
#auth-register-form.role-organizer-active .subscription-card .btn-sub-select {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    color: #2563eb !important;
    box-shadow: none !important;
}
.theme-organizer .subscription-card .btn-sub-select:hover,
#auth-register-form.role-organizer-active .subscription-card .btn-sub-select:hover {
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
}
.theme-organizer .subscription-card.active .btn-sub-select,
#auth-register-form.role-organizer-active .subscription-card.active .btn-sub-select {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
.theme-organizer .subscription-card.active .btn-sub-select:hover,
#auth-register-form.role-organizer-active .subscription-card.active .btn-sub-select:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Sidebar filter header alignment and spacing overrides for desktop vs mobile */
.filter-header-title {
    flex: 0 0 auto !important;
}

.filter-header-controls {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.filter-header-close-wrapper {
    display: none !important;
}

@media (max-width: 900px) {
    .filter-header-title {
        flex: 1 !important;
    }
    .filter-header-controls {
        flex: 1 !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }
    .filter-header-close-wrapper {
        display: flex !important;
        flex: 1 !important;
    }
}

/* -------------------------------------------------------------
 * Custom First Visit Animations & Spinning Disco Ball
 * ------------------------------------------------------------- */
@keyframes shrinkDiscoBall {
    0% {
        transform: translate(clamp(4rem, 10vw, 6.5rem), 0) scale(5.5);
        filter: drop-shadow(0 0 35px rgba(124, 58, 237, 0.9));
    }
    60% {
        transform: translate(clamp(4rem, 10vw, 6.5rem), 0) scale(5.5);
        filter: drop-shadow(0 0 35px rgba(124, 58, 237, 0.9));
    }
    100% {
        transform: translate(0, 0) scale(1);
        filter: drop-shadow(0 2px 6px rgba(124,58,237,0.15));
    }
}

.first-visit-disco {
    animation: shrinkDiscoBall 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center center;
    z-index: 10;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.first-visit-text {
    opacity: 0;
    animation: fadeInText 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.2s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning-disco-ball {
    animation: spin 12s linear infinite;
    transform-origin: 50px 50px;
}

@keyframes sparkleAnim {
    0%, 100% {
        transform: scale(0.6) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 1;
    }
}

.sparkle-1 {
    animation: sparkleAnim 3s ease-in-out infinite;
    transform-origin: 0px 0px;
}
.sparkle-2 {
    animation: sparkleAnim 4s ease-in-out infinite;
    animation-delay: 0.8s;
    transform-origin: 0px 0px;
}
.sparkle-3 {
    animation: sparkleAnim 3.5s ease-in-out infinite;
    animation-delay: 1.5s;
    transform-origin: 0px 0px;
}

/* Disable pointer cursor on all tile cards as detail modals are disabled */
.market-tile-card {
    cursor: default !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
}

/* Hide gallery counter / badge in the bottom-left of cards */
.tile-gallery-counter {
    display: none !important;
}

/* Hero Logo Animations for subsequent visits */
@keyframes heroLogoSpinIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    60% {
        transform: scale(1.1) rotate(20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes heroLogoTextReveal {
    0% {
        opacity: 0;
        letter-spacing: -6px;
        transform: translateY(8px);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        letter-spacing: -1.5px;
        transform: translateY(0);
    }
}

.animate-hero-logo {
    transform-origin: center;
    animation: heroLogoSpinIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-hero-text {
    animation: heroLogoTextReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Prevent iOS auto-zoom on input focus on mobile screens */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    select,
    textarea,
    .input-field,
    .form-input {
        font-size: 16px !important;
    }
}

/* Avoid excessively wide cards on mobile screens */
@media (max-width: 767px) {
    #market-items-grid .market-tile-card,
    #top-matches-grid .market-tile-card {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Form Validation Error feedback */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    outline: none !important;
}

.checkbox-group-error {
    border: 1px solid #ef4444 !important;
    border-radius: 12px;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    padding: 0.5rem !important;
}

@media (max-width: 768px) {
    .market-ill-desktop {
        display: none !important;
    }
}

/* Homepage Carousel Pagination Dots styling */
.carousel-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff !important;
    opacity: 0.95 !important;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-dot:hover {
    transform: scale(1.2);
    background: #f8fafc !important;
}
/* Active states for events (purple) and musicians (blue) */
#carousel-dots-events .carousel-dot.active {
    background: #7c3aed !important;
    opacity: 1 !important;
    transform: scale(1.35);
    border-color: #7c3aed;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}
#carousel-dots-musicians .carousel-dot.active {
    background: #2563eb !important;
    opacity: 1 !important;
    transform: scale(1.35);
    border-color: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* Recommendation Page layout & mobile header clearance */
.recommendation-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem 5rem;
    font-family: var(--font-body);
}

@media (max-width: 900px) {
    .recommendation-page-container {
        padding-top: 3.5rem !important;
        margin-top: 0.5rem !important;
    }
}

/* ==========================================================================
   Universal Bottom Navigation Bar (Gig-Markt / Act-Markt, Favoriten, Top-Matches, Postfach, Profil)
   ========================================================================== */

.app-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, opacity 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
    padding: 0;
    margin: 0;
}

.app-bottom-bar.hidden,
body.landing-page-active #app-bottom-bar,
.landing-active-main ~ #app-bottom-bar {
    display: none !important;
}

.bottom-bar-nav {
    width: 100%;
    min-height: 58px;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.98) 0%, rgba(79, 70, 229, 0.98) 50%, rgba(37, 99, 235, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.bottom-bar-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 680px;
    height: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.bottom-bar-logo-strip {
    display: none !important;
}

.bottom-bar-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: visible;
}

.bottom-bar-logo-link span {
    overflow: visible;
    line-height: 1.35;
    display: inline-flex;
    padding-bottom: 2px;
}

.bottom-bar-logo-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    position: relative;
    border: none;
    background: transparent;
    padding: 0.25rem 0.2rem;
    box-sizing: border-box;
    outline: none;
    border-radius: 8px;
}

.bottom-bar-item:hover {
    color: #ffffff;
}

.bottom-bar-item:active {
    transform: scale(0.94);
}

.bottom-bar-item.active {
    color: #ffffff;
    font-weight: 800;
}

.bottom-bar-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.bottom-bar-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    font-size: 1.18rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-bar-item.active .bottom-bar-icon-wrapper {
    transform: translateY(-2px);
}

/* Active Icon Colors by Context */
.bottom-bar-item.active.tab-market {
    color: #ffffff;
}
.bottom-bar-item.active.tab-market.theme-purple .bottom-bar-icon-wrapper i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
}
.bottom-bar-item.active.tab-market.theme-blue .bottom-bar-icon-wrapper i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
}

.bottom-bar-item.active.tab-favorites .bottom-bar-icon-wrapper i {
    color: #ff6b81 !important;
    filter: drop-shadow(0 0 8px rgba(255, 107, 129, 0.85));
}

.bottom-bar-item.active.tab-matches .bottom-bar-icon-wrapper i {
    color: #facc15 !important;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.85));
}

.bottom-bar-item.active.tab-postbox .bottom-bar-icon-wrapper i {
    color: #67e8f9 !important;
    filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.85));
}

.bottom-bar-item.active.tab-profile .bottom-bar-icon-wrapper i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
}

.bottom-bar-label {
    font-size: 0.68rem;
    font-family: var(--font-heading);
    letter-spacing: -0.1px;
    white-space: nowrap;
    line-height: 1;
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.2s ease;
}

.bottom-bar-item.active .bottom-bar-label {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.bottom-bar-badge {
    position: absolute;
    top: -3px;
    right: -7px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    font-family: var(--font-heading);
    min-width: 15px;
    height: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    line-height: 1;
}

/* Page bottom padding compensation when bottom bar is active */
body.has-bottom-bar #app-main {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
}

body.has-bottom-bar .app-footer {
    margin-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Floating Action / Chat Box offset when bottom bar is present */
body.has-bottom-bar .toast-container {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Star badge: static display only, never clickable */
.tile-top-match-badge {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important;
}

/* Legal Pages (Datenschutz & Impressum) Responsive Containment */
.legal-page-container {
    max-width: 800px;
    width: 100%;
    margin: 2rem auto 4rem;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto;
}

@media (max-width: 768px) {
    .legal-page-container {
        margin: 1rem auto 3rem !important;
        padding: 1.5rem 1rem !important;
        border-radius: 12px !important;
    }

    .legal-page-container h1 {
        font-size: 1.5rem !important;
    }

    .legal-page-container h2 {
        font-size: 1.15rem !important;
    }

    .legal-page-container h3 {
        font-size: 1rem !important;
    }
}

/* Event submission button styling */
#btn-submit-event,
.btn-event-submit {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

#btn-submit-event:hover,
.btn-event-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    filter: brightness(1.1);
}

/* Demo text display */
.tile-demo-text {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 800 !important;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 0.2px;
    white-space: nowrap !important;
    text-overflow: clip !important;
    user-select: none;
    flex-shrink: 0;
}


/* =============================================================
 * Market Background: Transparent to show body gradient (Purple/Blue)
 * ============================================================= */
.market-page {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* =============================================================
 * Market Cards: High-Contrast Crisp White with Themed Glow & Depth
 * ============================================================= */
.market-tile-card {
    background: #ffffff !important;
    border: 1.5px solid rgba(203, 213, 225, 0.9) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

/* Event Cards: Ambient Violet / Purple Glow & High-Contrast Border */
.market-tile-card.event-card,
.theme-musician .market-tile-card,
.marquee-content-events .market-tile-card,
body[data-page="events"] .market-tile-card {
    border: 1.5px solid rgba(124, 58, 237, 0.24) !important;
    box-shadow: 0 12px 30px -4px rgba(124, 58, 237, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
}

.market-tile-card.event-card:hover,
.theme-musician .market-tile-card:hover,
.marquee-content-events .market-tile-card:hover,
body[data-page="events"] .market-tile-card:hover {
    border-color: rgba(124, 58, 237, 0.45) !important;
    box-shadow: 0 18px 40px -4px rgba(124, 58, 237, 0.28), 0 6px 16px -2px rgba(15, 23, 42, 0.10) !important;
    transform: translateY(-4px) !important;
}

/* Musician Cards: Ambient Royal Blue Glow & High-Contrast Border */
.market-tile-card.musician-card,
.theme-organizer .market-tile-card,
.marquee-content-musicians .market-tile-card,
body[data-page="musicians"] .market-tile-card {
    border: 1.5px solid rgba(37, 99, 235, 0.24) !important;
    box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
}

.market-tile-card.musician-card:hover,
.theme-organizer .market-tile-card:hover,
.marquee-content-musicians .market-tile-card:hover,
body[data-page="musicians"] .market-tile-card:hover {
    border-color: rgba(37, 99, 235, 0.45) !important;
    box-shadow: 0 18px 40px -4px rgba(37, 99, 235, 0.28), 0 6px 16px -2px rgba(15, 23, 42, 0.10) !important;
    transform: translateY(-4px) !important;
}

/* Profile Action Bar & Profile Switcher (Guaranteed Single Line & Truncation) */
.profile-top-actions-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

.profile-switcher-action-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 135px) !important;
    box-sizing: border-box !important;
}

#profile-page-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

#btn-profile-logout {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* "Meine Musiker" / "Meine Events" Section Card & Item Styling */
.profile-section-card.my-items-section-card {
    min-height: auto !important;
    padding: 2rem 2.2rem !important;
    box-sizing: border-box !important;
}

.my-events-list .market-tile-card,
.my-musicians-list .market-tile-card {
    min-height: auto !important;
}

/* =============================================================
 * Header Profile Switcher Button: Lila (Musiker) / Blau (Veranstalter)
 * ============================================================= */
.profile-switcher-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    border-radius: 20px !important;
    padding: 0.3rem 0.85rem !important;
    margin: 0 !important;
    max-width: 180px !important;
    height: 36px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    font-family: var(--font-heading) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.profile-switcher-wrapper.role-musician {
    background: #7c3aed !important;
    border: 1.5px solid #6d28d9 !important;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35) !important;
    color: #ffffff !important;
}

.profile-switcher-wrapper.role-musician:hover {
    background: #6d28d9 !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45) !important;
}

.profile-switcher-wrapper.role-organizer {
    background: #2563eb !important;
    border: 1.5px solid #1d4ed8 !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35) !important;
    color: #ffffff !important;
}

.profile-switcher-wrapper.role-organizer:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

.profile-switcher-wrapper select {
    width: 100% !important;
    height: 100% !important;
    padding: 0 0.2rem !important;
    font-size: 0.82rem !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.profile-switcher-wrapper select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

.profile-switcher-wrapper .switcher-caret {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.72rem !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}

/* =============================================================
 * Postbox Mobile Chat Responsive Layout
 * ============================================================= */
@media (max-width: 900px) {
    .postbox-page .portal-layout {
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .postbox-page .postbox-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        flex-shrink: 1 !important;
        box-sizing: border-box !important;
    }
    .postbox-page .postbox-chat-detail {
        display: none !important;
    }
    .postbox-page .mobile-chat-accordion {
        display: block !important;
    }
}

@media (min-width: 901px) {
    .postbox-page .mobile-chat-accordion {
        display: none !important;
    }
}

/* Header Login Button */
.header-login-btn {
    transition: all 0.2s ease !important;
}
.header-login-btn:hover {
    filter: brightness(1.12) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45) !important;
}

/* =============================================================
 * Market Tile Card Title Clamping (1 line initially, 2 on details expand)
 * ============================================================= */
.tile-card-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    overflow: hidden !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
    min-height: 0 !important;
    transition: all 0.2s ease !important;
}

.tile-card-title.expanded {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* =============================================================
 * Market Tile Card Type Preview Row Clamping (strictly 1 line collapsed)
 * ============================================================= */
.tile-details-toggle-row {
    flex-wrap: nowrap !important;
}

.tile-details-toggle-row.expanded {
    flex-wrap: wrap !important;
}

.tile-type-preview-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.35 !important;
}

.tile-type-preview-text.expanded {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
}

/* =============================================================
 * Top Gradient Controls Bar (Market, Matches, Postbox, Profile)
 * ============================================================= */
.market-controls-row,
.matches-controls-row,
.postbox-controls-row,
.profile-controls-row {
    min-height: 58px !important;
    padding: 0 !important;
}

/* =============================================================
 * Hero Sub-Slogan (Strictly single-line responsive)
 * ============================================================= */
.hero-sub-slogan {
    white-space: nowrap !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

@media (max-width: 480px) {
    .hero-sub-slogan {
        font-size: clamp(0.68rem, 3.6vw, 0.92rem) !important;
        letter-spacing: -0.15px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 360px) {
    .hero-sub-slogan {
        font-size: 0.65rem !important;
        letter-spacing: -0.25px !important;
        white-space: nowrap !important;
    }
}

/* =============================================================
 * Tile Type Flag: Musiker-Typ / Event-Typ Tag on cards
 * Lila für Musiker-Account, Blau für Veranstalter-Account
 * ============================================================= */
.tile-type-flag {
    background: #ffffff !important;
    border: 1.5px solid #7c3aed !important;
    border-radius: 8px !important;
    padding: 0.22rem 0.62rem !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.12) !important;
}

.tile-type-flag span,
.tile-type-flag span[style*="color"] {
    color: #7c3aed !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    font-family: var(--font-heading) !important;
}

/* Theme Organizer overrides: Musiker-Typ / Event-Typ Tag in Blau (#2563eb) */
.theme-organizer .tile-type-flag,
body.theme-organizer .tile-type-flag,
.theme-organizer .tag-pill-checkbox.tile-type-flag {
    background: #ffffff !important;
    border: 1.5px solid #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15) !important;
}

.theme-organizer .tile-type-flag span,
.theme-organizer .tile-type-flag span[style*="color"],
body.theme-organizer .tile-type-flag span,
body.theme-organizer .tile-type-flag span[style*="color"],
.theme-organizer .tag-pill-checkbox.tile-type-flag span {
    color: #2563eb !important;
}

/* =============================================================
 * Persistent Match Score Badge on Cards
 * ============================================================= */
.tile-match-score-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 25 !important;
    pointer-events: none !important;
    transform: translateZ(10px) !important;
    will-change: transform !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* =============================================================
 * Top-Matches Grid: Harmonized with Favorites and Market
 * ============================================================= */
#top-matches-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 388px)) !important;
    gap: 2rem !important;
    width: 100% !important;
}

#top-matches-grid .market-tile-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    #top-matches-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* =============================================================
 * Profile Page: Position 'Meine Musiker/Events' Higher Up
 * ============================================================= */
.profile-page .profile-content-wrapper {
    margin: 0.35rem auto 0 !important;
    padding-top: 0 !important;
}

.profile-page > .profile-content-wrapper > .portal-layout {
    gap: 0.85rem !important;
}

.profile-page .profile-top-actions-bar {
    margin: 0 0 0.25rem 0 !important;
}

#profile-my-items-container {
    margin-top: 0 !important;
}

#profile-my-items-container > .portal-layout {
    gap: 1.5rem !important;
}

#profile-my-items-container .profile-section-card {
    margin-top: 0 !important;
}

@media (max-width: 600px) {
    .profile-page .profile-content-wrapper {
        margin: 0.2rem auto 0 !important;
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }
}



