/*
Magic Nothing Platform - Optimized for Readability & Usability
Clean, accessible design prioritizing user experience
*/

/* Import Plus Jakarta Sans font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ========================================
   CSS VARIABLES - Single Source of Truth
   ======================================== */
:root {
    /* Brand Colors */
    --color-primary: #1a1a1a;        /* Black - primary brand color */
    --color-primary-hover: #000000;   /* Pure black for hover */
    --color-secondary: #ffffff;       /* White */
    --color-accent: #1a1a1a;         /* Accent color (matching primary) */
    
    /* Text Colors */
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-text-inverse: #ffffff;
    
    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9f9f9;
    --color-bg-hover: #f5f5f5;
    
    /* Button Styles */
    --btn-primary-bg: var(--color-primary);
    --btn-primary-text: var(--color-text-inverse);
    --btn-primary-border: var(--color-primary);
    --btn-primary-hover-bg: var(--color-primary-hover);
    
    --btn-outline-bg: transparent;
    --btn-outline-text: var(--color-primary);
    --btn-outline-border: var(--color-primary);
    --btn-outline-hover-bg: var(--color-primary);
    --btn-outline-hover-text: var(--color-text-inverse);
    
    /* Modal Dimensions */
    --modal-width: 500px;
    --modal-max-width: 90vw;
    --modal-padding: 2rem;
    --modal-border-radius: 12px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html, body {
    font-family: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    padding-top: 80px; /* More space for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Main content area - grows to push footer down */
.main-content {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 2rem; /* Ensure some space before footer */
}

/* Add breathing room to sections */
section {
    margin-bottom: 4rem;
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

p {
    margin-bottom: 20px;
    margin-top: 0;
    color: #444444;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

a {
    color: #5142f5; /* Vibrant purple for better visibility */
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: inherit;
    font-weight: 500;
}

a:hover {
    color: #3730a3;
    text-decoration: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem 2rem;
    z-index: 9998;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure full width */
    overflow-x: hidden; /* Prevent horizontal overflow in navbar */
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 50px; /* Fixed height to prevent shifting */
    width: 100%; /* Ensure full width */
}

/* Hamburger Menu */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent logo from shrinking */
    min-width: fit-content; /* Ensure consistent width */
}

.navbar-brand:hover {
    color: #3182ce;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block; /* Ensure consistent display */
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 40px; /* Ensure consistent height */
    flex-shrink: 0; /* Prevent shrinking */
    margin-left: auto; /* Push to right */
    position: relative; /* Ensure consistent positioning */
    width: auto; /* Allow natural width */
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
    min-height: 40px; /* Match navbar height */
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Prevent wrapping */
    position: relative; /* Ensure consistent positioning */
    min-width: fit-content; /* Prevent compression */
}

.navbar-credits {
    background-color: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.navbar-user-name {
    font-weight: 500;
    color: #2d3748;
}

.navbar-profile {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-profile:hover {
    background-color: #ebf8ff;
    color: #2c5aa0;
}

.navbar-logout {
    color: #718096;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Prevent text wrapping */
}

.navbar-logout:hover {
    background-color: #f7fafc;
    color: #e53e3e;
    text-decoration: none;
}

.navbar-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-height: 40px; /* Match navbar height */
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bio-form-container {
    max-width: 900px;
}

.bio-results-container {
    max-width: 1000px;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #718096;
}

/* ========================================
   BUTTON STYLES - Using CSS Variables
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
    letter-spacing: -0.02em;
    transition: all 0.2s ease;
}

/* btn-primary styles moved to unified button section below */

.btn-success {
    background-color: #48bb78;
    color: white;
    border-color: #48bb78;
}

.btn-success:hover {
    background-color: #38a169;
    border-color: #38a169;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
    color: white;
    text-decoration: none;
}

/* Generic .btn styles moved to unified button section below */

/* btn-outline styles moved to unified button section below */

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-full {
    width: 100%;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    color: #2d3748;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3182ce;
}

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

.help-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.form-help {
    font-size: 0.875rem;
    color: #666666;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Checkbox styling */
.legal-checkboxes {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.checkbox-label a {
    color: #5142f5;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #3730a3;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
    color: #666666;
    font-size: 0.9rem;
}

.form-footer a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: none;
}

.alert {
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: #666666;
    font-size: 0.9rem;
}

/* Password Reset Styles */
.reset-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 3rem;
    color: #48bb78;
    margin-bottom: 1rem;
}

.reset-success h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 500;
}

.reset-success p {
    color: #666666;
    line-height: 1.5;
}

.form-footer p {
    margin-bottom: 0.5rem;
}

.form-footer p:last-child {
    margin-bottom: 0;
}

.forgot-password-link {
    color: #1a1a1a !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.forgot-password-link:hover {
    text-decoration: none;
    color: #333333 !important;
}

.required {
    color: #e53e3e;
}

.error {
    background-color: #fed7d7;
    border: 2px solid #feb2b2;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Sections */
.section {
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section h2 {
    color: #2d3748;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}


/* Spotify Artist Selection */
.spotify-artist-card {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spotify-artist-card:hover {
    border-color: #3182ce;
}

.spotify-artist-card.selected {
    border-color: #3182ce;
    background-color: #f0f8ff;
}

.spotify-artist-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
}

.spotify-artist-info {
    flex: 1;
}

.spotify-artist-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.spotify-artist-meta {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.4;
}


/* Cards */
.card {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-dark {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: #3182ce;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.card-description {
    color: #4a5568;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Tool List */
.tool-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-item {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.tool-info {
    flex: 1;
}

.tool-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tool-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.tool-action {
    margin-left: 2rem;
}

/* Authentication */
.auth-buttons,
.user-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.token-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   MODAL STYLES - Using CSS Variables
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 2rem 0;
}

.modal-content {
    background-color: var(--color-bg-primary);
    border-radius: var(--modal-border-radius);
    margin: auto;
    padding: 0;
    width: var(--modal-width);
    max-width: var(--modal-max-width);
    max-height: calc(100vh - 4rem);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Center modal vertically when content is smaller than viewport */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"] {
    display: flex !important;
}

/* Modal close button - see MODAL SPECIFIC OVERRIDES section for current styles */

.modal-header {
    padding: 1.5rem 2rem 1rem;
    text-align: center;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--modal-padding);
    min-height: 0;
}

.modal-footer {
    padding: 1rem 2rem;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

/* ========================================
   MODAL SPECIFIC OVERRIDES
   ======================================== */
/* Consistent modal headers */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.modal-close {
    position: static !important;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

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

/* Auth modals (login/signup) specific */
#loginModal .modal-content,
#signupModal .modal-content {
    max-width: 420px;
}

.modal-footer-auth {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer-auth p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.modal-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.modal-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Token modal specific */
#tokenModal .modal-header h2 {
    font-size: 1.25rem;
}

.token-bundles-title {
    margin: 15px 0 8px;
    font-size: 16px;
}

.token-info {
    margin: 15px 0;
    background-color: var(--color-bg-secondary);
    padding: 12px;
    border-radius: 6px;
}

.token-stat {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 4px 0;
    font-size: 14px;
}

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

.token-stat .value {
    font-weight: bold;
    color: var(--color-text-primary);
}

.token-stat.needed {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

.token-stat.needed .value {
    color: #dc3545;
}

.token-bundles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    max-height: 200px;
    overflow-y: auto;
}

.bundle-option {
    display: block;
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all var(--transition-fast);
    background-color: var(--color-bg-secondary);
}

.bundle-option:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-hover);
}

.bundle-option input[type="radio"] {
    display: none;
}

.bundle-option input[type="radio"]:checked + .bundle-content {
    color: var(--color-primary);
    font-weight: 600;
}

.bundle-option:has(input[type="radio"]:checked) {
    border-color: var(--color-primary);
    background-color: var(--color-bg-hover);
    box-shadow: 0 0 0 1px var(--color-primary);
}

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

.bundle-tokens {
    font-weight: 500;
}

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

.bundle-discount {
    font-size: 11px;
    color: #28a745;
    margin-left: 6px;
}

.payment-form {
    display: none;
    margin-top: 20px;
}

#payment-element {
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: var(--color-bg-primary);
    min-height: 200px;
    margin-bottom: 1rem;
}

.purchase-status {
    margin-top: 10px;
    text-align: center;
}

/* Modal animations */
.modal {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Purchase Success Animation */
.purchase-success-animation {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.success-checkmark {
    width: 100%;
    height: 100%;
}

.success-checkmark-circle {
    stroke: #48bb78;
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: circle 0.6s ease-in-out;
}

.success-checkmark-check {
    stroke: #48bb78;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: check 0.3s ease-in-out 0.6s forwards;
}

@keyframes circle {
    from {
        stroke-dasharray: 0 150;
        stroke-dashoffset: 0;
    }
    to {
        stroke-dasharray: 150 150;
        stroke-dashoffset: 0;
    }
}

@keyframes check {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: 28px;
    color: var(--color-text-primary);
    margin: 0 0 20px 0;
    font-weight: 600;
}

.success-details {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.tokens-purchased {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 22px;
    color: #48bb78;
    font-weight: 600;
}

.tokens-purchased i {
    color: #f6ad55;
    font-size: 24px;
}

.new-balance {
    color: var(--color-text-secondary);
    font-size: 18px;
}

.new-balance strong {
    color: var(--color-text-primary);
    font-size: 20px;
}

/* Modal form adjustments */
.modal .form-group {
    margin-bottom: 1.25rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.modal .form-group input[type="text"],
.modal .form-group input[type="email"],
.modal .form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.modal .btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.modal .form-group:last-of-type {
    margin-bottom: 0;
}

.modal .form-group input {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
}

.modal .form-group label {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: #4a5568;
}

.modal-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal-footer p:first-child {
    margin-top: 0;
}

.modal-footer p:last-child {
    margin-bottom: 0;
}

.modal-link {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
}

.modal-link:hover {
    color: #333333;
    text-decoration: none;
}

/* Bio Specific Styles */
.artist-name {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
}

.bio-version {
    margin-bottom: 2rem;
}

.bio-version h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: capitalize;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2d3748;
}

.word-count {
    font-size: 0.875rem;
    color: #718096;
    font-weight: normal;
}

.bio-text {
    line-height: 1.7;
    font-size: 1rem;
    color: #2d3748;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    transform: scale(1.2);
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
}

.dynamic-item {
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background-color: #c53030;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

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

.info-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.info-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.info-value {
    color: #2d3748;
    font-size: 0.95rem;
}

.actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

/* Loading Indicator */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

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

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #4299e1);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.loading-steps {
    text-align: left;
}

.loading-step {
    padding: 0.75rem 0;
    color: #718096;
    font-size: 1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background-color: #e2e8f0;
    color: #718096;
    flex-shrink: 0;
}

.loading-step.active {
    color: #3182ce;
    opacity: 1;
    font-weight: 500;
}

.loading-step.active .loading-step-icon {
    background-color: #3182ce;
    color: white;
    animation: pulse 1.5s infinite;
}

.loading-step.completed {
    color: #48bb78;
    opacity: 1;
}

.loading-step.completed .loading-step-icon {
    background-color: #48bb78;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.ml-1 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.hidden { display: none !important; }

.flex-end {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.flex-1 {
    flex: 1;
}

/* API Info */
.api-info {
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.api-info h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.api-example {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin-top: 1rem;
    white-space: pre;
}

.no-tools {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.no-tools h2 {
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Show hamburger menu on mobile */
    .navbar-hamburger {
        display: flex;
    }
    
    /* Hide navbar nav by default on mobile */
    .navbar-nav {
        position: fixed;
        top: 80px; /* Below navbar */
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        display: none !important;
        z-index: 9999;
        width: 100vw;
        max-height: calc(100vh - 80px); /* Prevent overflow */
        overflow-y: auto; /* Allow scrolling if needed */
        margin-left: 0; /* Remove negative margin */
    }
    
    /* Show navbar nav when open */
    .navbar-nav.navbar-nav-open {
        display: flex !important;
    }
    
    /* Optional: Add backdrop when mobile nav is open */
    .navbar-nav.navbar-nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.1);
        z-index: -1;
    }
    
    .navbar-user {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }
    
    .navbar-auth {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .navbar-auth .btn {
        width: 100%;
        text-align: center;
    }
    
    .navbar-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e8e8e8;
        width: 100%;
        display: block;
    }
    
    .page-header {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tool-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tool-action {
        margin-left: 0;
    }
    
    .auth-buttons,
    .user-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .flex-end {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .modal {
        padding: 1rem 0;
    }
    
    .modal-content {
        width: 95%;
        max-height: calc(100vh - 2rem);
        margin: auto;
    }
    
    #tokenModal .modal-body {
        padding: 1rem;
    }
    
    #tokenModal .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .profile-overview {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
    }
    
    .token-balance {
        align-self: stretch;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .purchase-option {
        text-align: center;
    }
}

/* Profile Page Styles */
.profile-overview {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #4299e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

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

/* Avatar size variants */
.avatar-small {
    width: 34px;
    height: 34px;
}

.avatar-small .avatar-placeholder {
    font-size: 0.875rem;
}

.avatar-medium {
    width: 50px;
    height: 50px;
}

.avatar-medium .avatar-placeholder {
    font-size: 1.5rem;
}

.avatar-large {
    width: 120px;
    height: 120px;
}

.avatar-large .avatar-placeholder {
    font-size: 3rem;
}

/* Navbar avatar styling */
.navbar-avatar-link {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.2s ease;
    flex-shrink: 0; /* Prevent shrinking */
}

.navbar-avatar-link:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.navbar-avatar-link .avatar-container {
    margin-bottom: 0;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.navbar-avatar-link:hover .avatar-container {
    border-color: #cbd5e0;
}

.profile-info {
    flex: 1;
}

/* Creator Tools Section */
.creator-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.creator-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.creator-tool-header h3 {
    color: #2d3748;
    margin: 0;
    font-size: 1.25rem;
}

.creator-tool-badge {
    background: #e6fffa;
    color: #38a169;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.creator-tool-description {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

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

.creator-tool-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* Navbar Creator Menu */
.navbar-creator-menu {
    position: relative;
    display: inline-block;
}

.navbar-creator-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #718096;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-creator-toggle:hover {
    background-color: #f7fafc;
    color: #4a5568;
}

.creator-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.navbar-creator-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 120px;
    z-index: 1000;
    margin-top: 0.25rem;
}

.navbar-creator-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.navbar-creator-link:hover {
    background-color: #f7fafc;
    color: #2d3748;
    text-decoration: none;
}

/* Collapsible Profile Edit Section */
.profile-edit-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
    margin-top: 2rem;
}

.profile-edit-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    background: none;
    border: none;
    width: 100%;
}

.profile-edit-toggle::-webkit-details-marker {
    display: none;
}

.profile-edit-toggle h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #4a5568;
}

.profile-edit-section[open] .toggle-arrow {
    transform: rotate(180deg);
}

.profile-edit-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.profile-edit-toggle:hover {
    background-color: #f1f5f9;
}

.profile-edit-toggle:hover h3 {
    color: #2d3748;
}

/* Collapsible Password Section */
.password-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
    margin-top: 2rem;
}

.password-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    background: none;
    border: none;
    width: 100%;
}

.password-toggle::-webkit-details-marker {
    display: none;
}

.password-toggle h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #4a5568;
}

.toggle-arrow {
    font-size: 0.8rem;
    color: #718096;
    transition: transform 0.2s ease;
}

.password-section[open] .toggle-arrow {
    transform: rotate(180deg);
}

.password-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.password-toggle:hover {
    background-color: #f1f5f9;
}

.password-toggle:hover h3 {
    color: #2d3748;
}

/* Privacy Section */
.privacy-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
    margin-top: 2rem;
}

.privacy-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.5rem;
}

.privacy-toggle h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #4a5568;
}

.privacy-section[open] .toggle-arrow {
    transform: rotate(180deg);
}

.privacy-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.privacy-toggle:hover {
    background-color: #f1f5f9;
}

.privacy-toggle:hover h3 {
    color: #2d3748;
}

.privacy-info h4 {
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.privacy-info ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    color: #4a5568;
}

.privacy-info ul li {
    margin-bottom: 0.5rem;
}

.privacy-actions {
    margin-top: 2rem;
}

.privacy-request-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.privacy-request-info .info-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem;
}

.privacy-request-info .info-box h5 {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.privacy-request-info .info-box h5 i {
    margin-right: 0.5rem;
    color: #5142f5;
}

.privacy-request-info .info-box p {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
}

.privacy-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.privacy-links .btn-outline {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.privacy-links .btn-outline:hover {
    border-color: #5142f5;
    color: #5142f5;
}

.privacy-links .btn-outline i {
    margin-right: 0.5rem;
}

/* Submissions Section */
.submissions-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
    margin-top: 2rem;
}

.submissions-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    background: none;
    border: none;
    width: 100%;
}

.submissions-toggle::-webkit-details-marker {
    display: none;
}

.submissions-toggle h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #4a5568;
}

.submissions-section[open] .toggle-arrow {
    transform: rotate(180deg);
}

.submissions-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.submissions-toggle:hover {
    background-color: #f1f5f9;
}

.submissions-toggle:hover h3 {
    color: #2d3748;
}

/* Submissions to Review Section */
.submissions-review-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
    margin-top: 2rem;
}

.submissions-review-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    background: none;
    border: none;
    width: 100%;
}

.submissions-review-toggle::-webkit-details-marker {
    display: none;
}

.submissions-review-toggle h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #4a5568;
}

.submissions-review-section[open] .toggle-arrow {
    transform: rotate(180deg);
}

.submissions-review-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.submissions-review-toggle:hover {
    background-color: #f1f5f9;
}

.submissions-review-toggle:hover h3 {
    color: #2d3748;
}


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

.token-balance-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f9ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.token-balance-display .token-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0369a1;
}

.token-balance-display .token-label {
    color: #0369a1;
    font-size: 0.9rem;
}

.token-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.token-package {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.token-package-popular {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
}

.package-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #3182ce;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-header {
    margin-bottom: 0.75rem;
}

.package-header h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.original-price {
    font-size: 0.9rem;
    color: #718096;
    text-decoration: line-through;
    font-weight: 400;
}

.package-tokens {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3182ce;
    margin-bottom: 0.5rem;
}

.package-description {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.token-usage-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.token-usage-info h4 {
    margin: 0 0 0.75rem 0;
    color: #2d3748;
    font-size: 1rem;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.usage-feature {
    color: #4a5568;
    font-size: 0.9rem;
}

.usage-cost {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9rem;
}

.beta-note {
    color: #718096;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.profile-info h2 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.username {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.email {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.member-since {
    color: #718096;
    font-size: 0.9rem;
}

.token-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    min-width: 200px;
}

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

.token-number {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a1a1a;
    display: block;
    line-height: 1.2;
}

.token-label {
    color: #666666;
    font-size: 0.875rem;
    letter-spacing: 0;
    font-weight: 400;
}

.token-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.buy-tokens-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-tokens-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    transform: translateY(-2px);
}

.buy-tokens-btn i {
    color: #f6e05e;
    font-size: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.token-info {
    margin-bottom: 2rem;
}

.token-info ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.token-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.token-info li:last-child {
    border-bottom: none;
}

.token-purchase {
    display: flex;
    justify-content: center;
}

.purchase-option {
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 300px;
}

.purchase-option h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.price {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.description {
    color: #718096;
    margin-bottom: 1.5rem;
}

.note {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 1rem;
    font-style: italic;
}

/* Message Styles */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message-success {
    background-color: #e8f5e8;
    color: #2d5a2d;
    border: 2px solid #48bb78;
    font-weight: 600;
    font-size: 1rem;
}

.message-success a {
    color: #2d5a2d;
    text-decoration: none;
    font-weight: 700;
}

.message-success a:hover {
    color: #1a4d1a;
}

.message-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.message-info {
    background-color: #ebf8ff;
    color: #2a69ac;
    border: 1px solid #90cdf4;
}

/* Navbar Updates */
.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-link:hover {
    background-color: #f7fafc;
    color: #3182ce;
    text-decoration: none;
}

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

/* Homepage Styles */
.hero-section {
    background: white;
    color: #000000;
    padding: 4rem 2rem;
    text-align: center;
    margin: -20px -20px 3rem -20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    white-space: nowrap;
    overflow: visible;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 1;
    line-height: 1.6;
    color: #000000;
}

.hero-sub-subtitle {
    font-size: 1rem;
    opacity: 1;
    line-height: 1.6;
    color: #000000;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mission-section {
    background-color: #f7fafc;
    padding: 4rem 2rem;
    margin: 0 -20px 3rem -20px;
    text-align: center;
}

.mission-title {
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.mission-statement {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #4a5568;
    line-height: 1.7;
}

.components-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

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

.component-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.component-card:hover {
    border-color: #3182ce;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.component-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.component-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.component-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.component-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.component-link:hover {
    color: #2c5aa0;
}

.featured-section {
    background-color: #f7fafc;
    padding: 4rem 2rem;
    margin: 0 -20px 3rem -20px;
}

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

.tool-highlight {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.tool-highlight h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.tool-highlight p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 -20px -20px -20px;
    border-radius: 12px 12px 0 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Track details and clickable rows */
.song-row-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.song-row-link:hover .song-row {
    background: #f8f9fa;
    transform: translateX(5px);
}

.song-row {
    transition: all 0.2s ease;
    position: relative;
}

.song-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.song-row-link:hover .song-arrow {
    opacity: 1;
}

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

.dashboard-actions .inline-form {
    display: inline-block;
}

/* Landing Page Styles */
.landing-page-form {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.link-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.link-item .form-group {
    margin-bottom: 0;
}

.landing-page-preview {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #0a0a0a;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.landing-page-preview.hidden {
    display: none;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-image img {
    max-width: 200px;
    border-radius: 8px;
}

.preview-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.preview-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.featured-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tool-actions .btn {
    flex: 1;
    text-align: center;
}

/* Component Page Styles */
.content-sections {
    max-width: 1000px;
    margin: 0 auto;
}

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

.principle-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.principle-card h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.principle-card p {
    color: #4a5568;
    font-size: 0.9rem;
}

.learning-path {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.path-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3182ce;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

.path-step h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.path-step p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.status {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.resource-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.resource-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.resource-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.newsletter-section {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

/* Messages */
.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid;
}

.message-success {
    background-color: #f0fff4;
    border-color: #48bb78;
    color: #22543d;
}

.message-error {
    background-color: #fed7d7;
    border-color: #e53e3e;
    color: #742a2a;
}

.message-info {
    background-color: #ebf8ff;
    border-color: #3182ce;
    color: #2b6cb0;
}

.message-warning {
    background-color: #fefcbf;
    border-color: #d69e2e;
    color: #744210;
}

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

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

/* Legacy form-control styles removed - now using unified form system */

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Cards */
.card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h2 {
    margin-bottom: 0;
    color: #2d3748;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f7fafc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

.badge-success {
    background-color: #48bb78;
    color: white;
}

/* Spotify Import V2 Styles */
.spotify-import-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.import-header-v2 {
    text-align: center;
    margin-bottom: 30px;
}

.import-header-v2 h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #1a202c;
}

.import-header-v2 .subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 20px;
}

.quick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-actions .btn-outline {
    border: 1px solid #cbd5e0;
    background: white;
    color: #4a5568;
    padding: 8px 16px;
    font-size: 14px;
}

.quick-actions .btn-outline:hover {
    background: #f7fafc;
    border-color: #1db954;
    color: #1db954;
}

/* Control Bar */
.control-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sort-controls,
.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-bar label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.form-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.search-control {
    flex: 1;
    position: relative;
    margin-left: auto;
}

.search-control i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-control input {
    width: 100%;
    padding: 6px 12px 6px 36px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

.import-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.selected-count {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.btn-success {
    background: #48bb78 !important;
    border-color: #48bb78 !important;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #718096;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Compact Playlists Grid */
.playlists-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.playlist-card-compact {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.15s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.playlist-card-compact:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.playlist-card-compact.imported {
    opacity: 0.6;
    pointer-events: none;
}

/* Checkbox overlay */
.playlist-select-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0;
}

.playlist-select-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 9;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.9);
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.playlist-select-checkbox:checked + .playlist-select-label {
    background: #1db954;
    border-color: #1db954;
}

.playlist-select-checkbox:checked + .playlist-select-label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Square image */
.playlist-image-square {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.playlist-image-square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-image-square .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.imported-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

/* Content section */
.playlist-content {
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-content:hover {
    background: rgba(29, 185, 84, 0.05);
}

.playlist-link {
    display: block;
    text-decoration: none;
}

.playlist-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    min-height: 36px;
}

.playlist-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #718096;
}

.meta-primary strong {
    color: #2d3748;
    font-weight: 600;
}

.meta-badge {
    background: #e2e8f0;
    color: #4a5568;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.playlist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #a0aec0;
}

.track-count {
    color: #718096;
}

.quality-indicator {
    font-size: 14px;
}

.spotify-icon-link {
    color: #1db954;
    font-size: 16px;
    transition: transform 0.2s;
    text-decoration: none;
}

.spotify-icon-link:hover {
    transform: scale(1.2);
    color: #1ed760;
}

/* Pagination V2 */
.pagination-v2 {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
    background: #f7fafc;
    border-color: #1db954;
    color: #1db954;
}

.page-btn.active {
    background: #1db954;
    color: white;
    border-color: #1db954;
}

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

/* Import Panel V2 */
.import-panel-v2 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.import-panel-v2:has(.playlist-checkbox:checked) {
    transform: translateY(0);
}

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

.selected-count {
    font-weight: 600;
    color: #2d3748;
}

.import-settings {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.price-setting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-select-sm {
    padding: 4px 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.import-progress {
    display: none;
    margin-top: 15px;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #1db954;
    width: 0;
    transition: width 0.3s;
}

.progress-text {
    font-size: 13px;
    color: #718096;
    text-align: center;
}

/* Error and Empty States */
.error-state,
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.error-state i,
.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #cbd5e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .control-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-control {
        width: 100%;
        margin-left: 0;
    }
    
    .playlists-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .import-settings {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .playlists-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .playlist-title {
        font-size: 13px;
    }
    
    .playlist-meta {
        font-size: 11px;
    }
}

.badge-danger {
    background-color: #e53e3e;
    color: white;
}

.badge-warning {
    background-color: #ed8936;
    color: white;
}

.badge-secondary {
    background-color: #718096;
    color: white;
}

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

.text-muted {
    color: #718096;
}

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

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

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

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

.d-flex {
    display: flex;
}

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

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

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

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 0.5rem;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .components-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-path {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===================================
   UNDERGROUND MUSIC AESTHETIC REDESIGN
   Raw, minimal, professional
   ================================== */

/* Updated Base Styles - Underground Aesthetic */
/* Base styles are defined at the top of the file */

/* Typography styles are defined at the top of the file */

/* Updated Navigation - Raw & Minimal */
.navbar {
    background-color: #fefefe;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.25rem 2rem;
    box-shadow: none;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.navbar-brand:hover {
    color: #1a1a1a;
    opacity: 0.7;
}

.navbar-logo {
    height: 26px;
    width: auto;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.15s ease;
}

.navbar-logo:hover {
    filter: grayscale(80%) contrast(1.1);
}

.navbar-auth {
    gap: 0.75rem;
    display: flex;
    align-items: center;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-user-name {
    color: #1a1a1a;
    font-size: 0.9375rem;
    font-weight: 400;
}

.navbar-profile,
.navbar-logout,
.navbar-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.15s ease;
}

.navbar-profile:hover,
.navbar-logout:hover,
.navbar-link:hover {
    opacity: 0.7;
    color: #666666;
}

/* Underground Button System - Uniform Sizing */
.btn-primary, .btn, .btn-outline, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    min-width: 120px;
    line-height: 1.2;
}

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

.btn-primary:hover {
    background-color: var(--btn-primary-hover-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-hover-bg);
    opacity: 1;
}

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

.btn-secondary:hover, .btn-outline:hover {
    background-color: var(--btn-outline-hover-bg);
    color: var(--btn-outline-hover-text);
    border-color: #1a1a1a;
    opacity: 1;
}

/* Removed problematic !important declarations - see unified button styles below */

/* Button sizing modifiers */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    min-width: 100px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    min-width: 140px;
}

.btn-full {
    width: 100%;
    min-width: auto;
}

/* Hero Section - Underground Minimal */
.hero {
    text-align: center;
    padding: 4rem 0 5rem 0;
    margin-bottom: 2rem;
}

.hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #666666;
    font-weight: 400;
    margin-bottom: 0;
}

/* Pillars Section - Learn/Earn/Burn */
.pillars-section {
    padding: 3rem 0 4rem 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pillar-card {
    text-align: left;
}

.pillar-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.pillar-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

.pillar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.pillar-actions .btn-primary,
.pillar-actions .btn-secondary {
    width: auto;
    display: inline-block;
}

/* Disabled/Coming Soon Buttons */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.btn-disabled:hover {
    background-color: transparent;
    color: #1a1a1a;
    border-color: #d0d0d0;
}

.coming-soon {
    font-size: 0.75rem;
    font-style: italic;
    margin-left: 0.5rem;
    opacity: 0.7;
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .pillar-title {
        font-size: 1.75rem;
    }
    
    .pillar-description {
        font-size: 0.95rem;
    }
    
    .pillar-actions .btn-primary,
    .pillar-actions .btn-secondary {
        font-size: 0.875rem;
        padding: 0.7rem 1.25rem;
    }
}

/* Small screens breakpoint for better mobile experience */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-sub-subtitle {
        font-size: 0.85rem;
    }
    
    .pillars-section {
        padding: 1.5rem 0 2.5rem 0;
    }
    
    .pillars-grid {
        padding: 0 0.75rem;
    }
    
    .pillar-title {
        font-size: 1.25rem;
    }
    
    .pillar-description {
        font-size: 0.9rem;
    }
    
    .pillar-actions .btn-primary,
    .pillar-actions .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Tools Grid - Uniform Cards with Proper Alignment */
.tools-section {
    padding: 2rem 0 4rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    min-height: 200px; /* Ensures uniform card height */
}

.tool-card:hover {
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.tool-card-header {
    padding: 2rem 2rem 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-card-actions {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: auto; /* Pushes buttons to bottom */
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.tool-description {
    color: #666666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1; /* Takes up available space */
}

/* ========================================
   UNIFIED CARD SYSTEM
   ======================================== */

/* Base card styling - foundation for all cards */
.card-base {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    min-height: 120px;
}

.card-base:hover {
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

/* Card sections */
.card-header-base {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content-base {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-actions-base {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: auto;
}

.card-footer-base {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Card typography */
.card-title-base {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-description-base {
    color: #666666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

.card-subtitle-base {
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.card-meta-base {
    color: #999999;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* Card with image support */
.card-image-header {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.card-image-placeholder {
    font-size: 3rem;
    color: #6c757d;
}

/* Card action buttons */
.card-actions-base .btn {
    flex: 1;
    min-width: 85px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Stats section for cards */
.card-stats-base {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.card-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.card-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .card-actions-base {
        flex-direction: column;
    }
    
    .card-actions-base .btn {
        flex: none;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .card-header-base,
    .card-content-base {
        padding: 1.25rem;
    }
    
    .card-actions-base {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

/* Legacy support for existing tool-actions class */
.tool-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ===================================
   UNIFIED FORM SYSTEM - Underground Aesthetic
   All forms use consistent styling
   ================================== */

/* Form Groups & Labels */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0;
}

/* Universal Input Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select,
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 400;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Focus States */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
.form-control:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder {
    color: #666666;
    font-style: normal;
    opacity: 1;
}

/* Textarea Specific */
textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* Select Specific */
select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Checkbox & Radio Styling */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    transform: scale(1.1);
    accent-color: #1a1a1a;
}

/* Form Text & Helper Text */
.form-text {
    font-size: 0.8125rem;
    color: #666666;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Form Check Items */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9375rem;
    color: #1a1a1a;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    transform: scale(1.1);
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9375rem;
    text-transform: none;
}

/* Form Layout Utilities */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.form-section h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 400;
}

/* Dynamic Form Items (Add/Remove functionality) */
.dynamic-item {
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 400;
    transition: opacity 0.15s ease;
}

.remove-btn:hover {
    opacity: 0.7;
}

/* Responsive Form Layout */
@media (max-width: 768px) {
    .form-row,
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row .form-group,
    .form-grid .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Card Components - Minimal Underground */
.card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 0;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fafafa;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e8e8e8;
    background-color: #fafafa;
}

/* Modal Updates - Underground Style */
/* NOTE: Commented out to use CSS variables from main modal styles above
.modal-content {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}
*/

/* Modal header override for legacy modals */
.modal-header:not(#tokenModal .modal-header) {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Status Badges - Underground Minimal */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    border-radius: 0;
    border: 1px solid;
}

.badge.bg-success {
    background-color: #ffffff;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.badge.bg-warning {
    background-color: #ffffff;
    color: #666666;
    border-color: #d0d0d0;
}

.badge.bg-danger {
    background-color: #ffffff;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Table Improvements */
.table {
    border-collapse: collapse;
    width: 100%;
}

.table th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.875rem;
    font-weight: 400;
    color: #666666;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9375rem;
}

/* Flash Messages - Underground Style */
.message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
    background-color: #ffffff;
}

.message-success {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.message-error {
    border-color: #d0d0d0;
    color: #1a1a1a;
}

.message-info {
    border-color: #d0d0d0;
    color: #666666;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-sub-subtitle {
        font-size: 0.9rem;
    }
    
    .pillars-section {
        padding: 2rem 0 3rem 0;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }
    
    .pillar-card {
        padding-bottom: 2.5rem;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .pillar-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .pillar-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .pillar-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    .pillar-actions {
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .pillar-actions .btn-primary,
    .pillar-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-disabled {
        font-size: 0.85rem;
    }
    
    .coming-soon {
        display: block;
        font-size: 0.7rem;
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card-content {
        padding: 1.5rem;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .tool-actions .btn-primary,
    .tool-actions .btn-secondary {
        text-align: center;
    }
    
    body {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
}

/* Utility Classes - Underground Aesthetic */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

/* Admin Dashboard - Underground Aesthetic */
.admin-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.25rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.admin-subtitle {
    color: #666666;
    font-size: 1rem;
    font-weight: 400;
}

.admin-section {
    margin-bottom: 4rem;
}

.admin-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

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

.admin-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    transition: border-color 0.2s ease;
}

.admin-card:hover {
    border-color: #d0d0d0;
}

.admin-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-badge {
    background-color: #ffffff;
    color: #666666;
    border: 1px solid #d0d0d0;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    border-radius: 0;
}

.admin-badge-success {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.admin-badge-warning {
    color: #ff9800;
    border-color: #ff9800;
}

.admin-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.admin-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.admin-item-name {
    font-weight: 400;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

.admin-item-date {
    font-size: 0.8125rem;
    color: #666666;
}

.admin-item-email {
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.admin-item-bio {
    color: #4a4a4a;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.admin-item-actions {
    margin-top: 0.75rem;
}

.admin-empty {
    color: #666666;
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9375rem;
}

/* Admin Detail Pages */
.admin-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.admin-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e8e8e8;
}

.admin-detail-title h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.admin-detail-subtitle {
    color: #666666;
    font-size: 0.9375rem;
    font-weight: 400;
    margin: 0;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-detail-sidebar {
    /* Styles for sidebar */
}

.admin-detail-main {
    /* Styles for main content */
}

.admin-info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.admin-info-item.admin-info-bio {
    flex-direction: column;
    align-items: flex-start;
}

.admin-info-label {
    font-size: 0.8125rem;
    color: #666666;
    font-weight: 400;
}

.admin-info-value {
    color: #1a1a1a;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.admin-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.admin-link:hover {
    opacity: 0.7;
}

.admin-badge-warning {
    color: #666666;
    border-color: #d0d0d0;
}

.admin-badge-danger {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Admin Tables */
.admin-table-container {
    overflow-x: auto;
}

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

.admin-table th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #666666;
    background-color: #fafafa;
}

.admin-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
    vertical-align: top;
}

.admin-course-title {
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.admin-course-description {
    color: #666666;
    font-size: 0.8125rem;
    line-height: 1.4;
}

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

.admin-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.admin-empty-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.admin-empty-subtitle {
    color: #666666;
    font-size: 0.9375rem;
}

/* Admin Statistics */
.admin-stats {
    margin-top: 3rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.admin-stat {
    padding: 1.5rem;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.admin-stat-label {
    color: #666666;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Responsive Admin Layout */
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .admin-card-header {
        padding: 1rem;
    }
    
    .admin-card-body {
        padding: 1rem;
    }
    
    .admin-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .admin-detail-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .admin-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-table-container {
        font-size: 0.8125rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Bio Generator - Underground Aesthetic */
.bio-generator {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Bio header styles - now using standard .page-header class */
/* 
.bio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bio-header h1 {
    font-size: 2.25rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.bio-subtitle {
    color: #666666;
    font-size: 1rem;
    font-weight: 400;
}
*/

.bio-form {
    /* Form container styles */
}

.bio-dev-section {
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.bio-dev-title {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.bio-dev-note {
    font-size: 0.875rem;
    color: #666666;
    margin-top: 0.75rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.bio-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.bio-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.bio-section-description {
    color: #666666;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.bio-spotify-search {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.bio-search-input {
    flex: 1;
}

.bio-search-button {
    flex-shrink: 0;
}

/* Bio form elements now use the unified form system */

/* Bio Token Cost Styling */
.token-cost-info {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
}

.token-cost {
    color: #666666;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.token-balance {
    font-size: 0.875rem;
    color: #666666;
}

/* Bio Results Page */
.bio-results {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.bio-results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bio-results-header h1 {
    font-size: 2.25rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.bio-artist-name {
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 0;
}

.bio-info-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.bio-info-section h3 {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.bio-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.bio-info-item {
    padding: 1rem;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
}

.bio-info-label {
    font-size: 0.8125rem;
    color: #666666;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.bio-info-value {
    color: #1a1a1a;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.bio-version-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.bio-version-section:last-of-type {
    border-bottom: none;
}

.bio-version-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.bio-version-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
}

.bio-word-count {
    font-size: 0.8125rem;
    color: #666666;
    font-weight: 400;
}

.bio-text-container {
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    color: #1a1a1a;
}

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

.bio-final-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.bio-final-actions .btn-primary,
.bio-final-actions .btn-secondary {
    margin: 0 0.375rem;
}

/* Bio Copy Button States */
.btn-primary.copied,
.btn-secondary.copied {
    background-color: #48bb78;
    color: #ffffff;
    border-color: #48bb78;
}

/* Print Styles for Bio Results */
@media print {
    .bio-results {
        max-width: none;
        padding: 0;
    }
    
    .bio-actions,
    .bio-final-actions {
        display: none;
    }
    
    .bio-version-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .bio-text-container {
        background: white;
        border: 1px solid #ccc;
    }
}

/* Responsive Bio Layout */
@media (max-width: 768px) {
    .bio-generator {
        padding: 1.5rem 0;
    }
    
    /* .bio-header h1 {
        font-size: 2rem;
    } */
    
    .bio-spotify-search {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .bio-dev-section {
        padding: 1rem;
    }
}

/* Focus States for Accessibility */
button:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Playlist Cards - Matching site aesthetic */
.playlist-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%; /* let the grid define actual width */
  margin: 0 auto;
  padding: 1rem;

  /* style */
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.playlist-card:hover {
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.playlist-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

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

.playlist-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #666666;
}

.playlist-image-placeholder i {
    font-size: 3rem;
}

.playlist-private-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.playlist-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.playlist-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-curator {
    font-size: 0.8125rem;
    color: #666666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-verified-badge {
    color: #4a90e2;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-verified-badge:hover {
    color: #357abd;
    transform: translateY(-1px);
}

.playlist-description {
    display: none;
}

.playlist-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.playlist-stat {
    color: #999999;
}

.playlist-stat strong {
    color: #666666;
    font-weight: 600;
    font-size: 0.875rem;
}

.playlist-genres {
    margin-bottom: 0.5rem;
    min-height: auto;
}

.playlist-genre-badge {
    display: inline-block;
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.6rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    border-radius: 12px;
    font-weight: 400;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.playlist-genre-badge:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}


.genre-secondary {
    opacity: 0.7;
    font-size: 0.75rem;
}

/* Clean unified genre display with subtle trust differentiation */
.genre-clean {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
    font-weight: 400;
}

/* Subtle visual differentiation by trust level */


/* Unified clean genre styling - all genres same appearance, ordered by relevance */

/* Verification badge */
.playlist-verification-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    color: #155724;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.playlist-verification-badge i {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.playlist-verification-badge-small {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    color: #155724;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.playlist-verification-badge-small i {
    font-size: 0.6rem;
    margin-right: 0.2rem;
}

/* Spotify Analyzed Badge */
.spotify-analyzed-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: #17a2b8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotify-analyzed-badge:hover {
    transform: scale(1.1);
}

/* Playlist Level Display */
/* Playlist quality level display */
.playlist-level {
    font-size: 0.875rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: inherit; /* Use standard text color */
}

.playlist-level-value {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
    opacity: 0.9;
}

.playlist-level-value:hover {
    opacity: 1;
    text-decoration-style: solid;
}

/* Quality info popup */
.quality-info-popup {
    position: fixed;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.quality-info-content {
    padding: 1.25rem;
    position: relative;
}

.quality-info-content h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.quality-info-content p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

.quality-info-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #666;
}

.quality-info-content li {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.quality-info-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-info-close:hover {
    color: #333;
}

/* Level Slider Styles */
.level-slider-container {
    padding: 1rem 0.5rem;
}

.level-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.level-slider-value {
    font-weight: 600;
    color: #333;
}

.level-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #dc3545, #ffc107, #007bff, #28a745, #6f42c1);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.level-slider:hover {
    opacity: 1;
}

.level-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #333;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.level-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #333;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.level-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #999;
}

/* Tier Badge Styles - Reusable from manage.html */
.tier-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.625rem;
    display: inline-block;
}

.tier-entry {
    background: #f8d7da;
    color: #721c24;
}

.tier-starter {
    background: #fff3cd;
    color: #856404;
}

.tier-standard {
    background: #cce5ff;
    color: #004085;
}

.tier-premium {
    background: #d4edda;
    color: #155724;
}

.tier-elite {
    background: linear-gradient(135deg, #e7e3fc 0%, #d4c5f9 100%);
    color: #4a148c;
    font-weight: 700;
}


/* Badge Popover */
.badge-popover {
    position: fixed;
    z-index: 1050;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 280px;
    padding: 1rem;
    animation: popoverFadeIn 0.2s ease-out;
    pointer-events: auto;
}

@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popover-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.15);
    transform: rotate(45deg);
    top: -6px;
    left: 50%;
    margin-left: -5px;
    border-right: none;
    border-bottom: none;
}

.popover-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popover-close:hover {
    color: #495057;
}

.popover-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.popover-text {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Health Score Popover */
.health-score-popover {
    max-width: 320px;
}

.score-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.score-component {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.score-component-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    flex: 1;
}

.score-component-value {
    font-weight: 600;
    color: #212529;
    min-width: 50px;
    text-align: right;
}

.score-component-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
}

.score-component-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.health-score-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 2px solid #212529;
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
}

/* Mobile adjustments for popover */
@media (max-width: 767px) {
    .badge-popover {
        max-width: calc(100vw - 20px);
        font-size: 0.9rem;
    }
    
    .popover-title {
        font-size: 0.9rem;
    }
    
    .popover-text {
        font-size: 0.8rem;
    }
}

/* Clickable badge styles */
.clickable-badge {
    cursor: pointer;
    position: relative;
}

.clickable-badge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(0, 0, 0, 0.05);
}

.clickable-badge:hover::after {
    opacity: 1;
}

.playlist-genre-more {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    color: #999;
    font-size: 0.75rem;
    font-style: italic;
}

.playlist-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.playlist-actions .btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    text-align: center;
}

/* Spotify badge style */
.btn-spotify {
    background-color: #f8f9fa;
    color: #1a1a1a;
    border: 1px solid #e8e8e8;
}

.btn-spotify:hover {
    background-color: #e8e8e8;
    color: #1a1a1a;
}

/* Responsive playlist grid */
@media (max-width: 768px) {
    .playlist-content {
        padding: 1.25rem;
    }
    
    .playlist-actions {
        flex-direction: column;
    }
    
    .playlist-actions .btn {
        width: 100%;
    }
}

/* Submission Cards */
.submission-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.submission-track-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

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

.submission-track-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submission-track-artist {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submission-playlist {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

.submission-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.submission-date {
    font-size: 0.8125rem;
    color: #666;
}
.submission-time {
    font-size: 0.8125rem;
    color: #e53e3e;
    white-space: nowrap;
}
.submission-time i {
    margin-right: 0.25rem;
}

.submission-feedback {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

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

.submission-actions .btn {
    flex: 1;
}

/* Track Preview in Submit Form */
.track-preview-section {
    margin-top: 1rem;
}

.track-preview-card {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.track-preview-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
}

/* Standardized Recent Submissions Panel */
.recent-submissions-panel {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 1.5rem;
}

.recent-submissions-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.submission-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}

.submission-row:last-child {
    border-bottom: none;
}

.submission-track-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

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

.track-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-artist {
    display: block;
    font-size: 0.8125rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-popularity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.popularity-score {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.popularity-label {
    font-size: 0.75rem;
    color: #999;
}

.submission-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
    align-items: flex-start;
}

.submission-playlist {
    font-size: 0.875rem;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submission-playlist i {
    color: #999;
    margin-right: 0.25rem;
}

.submission-date {
    font-size: 0.75rem;
    color: #999;
}

.submission-actions {
    display: flex;
    align-items: center;
}

.spotify-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #1DB954;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.spotify-link:hover {
    background-color: #1DB954;
    color: white;
    border-color: #1DB954;
    transform: none;
}
.review-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #48bb78;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}
.review-link:hover {
    transform: scale(1.1);
    color: #38a169;
}

.view-all-link {
    margin-top: 1rem;
    text-align: center;
}

.no-submissions-message {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    margin: 2rem 0;
}

/* Responsive submissions */
@media (max-width: 768px) {
    .submission-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .submission-track-details {
        width: 100%;
    }
    
    .submission-meta {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
    }
}

/* Submissions to Review Panel for Curators */
.submissions-review-panel {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 1.5rem;
}

.submissions-review-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.submissions-review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.review-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

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

.review-track-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-track-artist {
    font-size: 0.9375rem;
    color: #666;
    margin: 0 0 0.25rem 0;
}

.review-track-album {
    font-size: 0.8125rem;
    color: #999;
    margin: 0;
    font-style: italic;
}

.review-track-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.submission-time-left {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.time-remaining {
    font-size: 1.125rem;
    font-weight: 700;
    color: #e53e3e;
}

.time-label {
    font-size: 0.75rem;
    color: #999;
}

.review-submission-details {
    margin-bottom: 1rem;
}

.submission-artist-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.artist-label,
.playlist-label {
    color: #999;
}

.artist-name {
    color: #495057;
    font-weight: 500;
}

.submission-date {
    color: #999;
    margin-left: auto;
}

.artist-message {
    background: white;
    border: 1px solid #e8e8e8;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0;
}

.message-label {
    font-size: 0.8125rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.message-content {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

.review-playlist-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.playlist-name {
    color: #495057;
    font-weight: 500;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-actions .btn {
    flex: 1;
}

/* Responsive review cards */
@media (max-width: 768px) {
    .review-card-header {
        flex-direction: column;
    }
    
    .review-track-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .submission-artist-info {
        flex-wrap: wrap;
    }
    
    .submission-date {
        margin-left: 0;
        width: 100%;
    }
}

/* Submission Status Card */
.submission-status-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.submission-details {
    font-size: 0.9rem;
}

.submission-details span:first-child {
    font-weight: 500;
}

/* Submissions Page Redesign */
.submissions-page-container {
    max-width: 900px;
    margin: 0 auto;
}

.submission-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0;
}

.filter-tab {
    background: none;
    border: none;
    padding: 0.75rem 0;
    margin-bottom: -1px;
    color: #666666;
    font-size: 0.9375rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: #1a1a1a;
}

.filter-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 500;
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.submission-list-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.submission-list-item:hover {
    border-color: #d4d4d4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.submission-track-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.track-details h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
}

.track-details .track-artist {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
}

.submission-playlist-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.submission-playlist-info .playlist-name {
    color: #495057;
    font-weight: 500;
}

.submission-playlist-info .playlist-name i {
    color: #999;
    margin-right: 0.375rem;
}

.submission-playlist-info .submission-date {
    color: #999;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0;
    font-weight: 500;
}

.status-badge i {
    font-size: 0.875rem;
}

.status-badge.status-submitted {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-accepted {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-declined {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-expired {
    background: #f3f4f6;
    color: #4b5563;
}

.time-remaining {
    font-weight: 400;
    opacity: 0.8;
}

.submission-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-details {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    font-size: 0.875rem;
}

.btn-details:hover {
    background: #f8f9fa;
    border-color: #d4d4d4;
    color: #1a1a1a;
}

.btn-details i {
    font-size: 0.875rem;
    display: inline-block;
}

/* Ensure Font Awesome icons are visible */
.fa, .fas, .fab, .far {
    display: inline-block;
}

.spotify-link i {
    font-size: 1rem;
    display: inline-block;
}

.submission-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.curator-feedback {
    margin-bottom: 1rem;
}

.curator-feedback h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.curator-feedback p {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.5;
    margin: 0;
}

.response-info {
    font-size: 0.8125rem;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: #e8e8e8;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #666666;
    margin-bottom: 2rem;
}

/* Responsive submissions page */
@media (max-width: 768px) {
    .submission-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }
    
    .filter-tab {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    
    .submission-track-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .track-popularity {
        align-self: flex-start;
    }
}

/* ========================================
   NOTIFICATION STYLES
   ======================================== */

/* Notification icon in navbar */
.navbar-notifications {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 0.75rem; /* Space before avatar */
}

.notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    padding: 0.25rem;
    width: 34px; /* Match avatar size */
    height: 34px;
    border-radius: 6px;
}

.notification-icon:hover {
    background-color: #f7fafc;
    color: #1a1a1a;
}

/* Notification badge */
.notification-badge {
    background-color: #48bb78; /* Soft green color */
    color: #ffffff;
    border-radius: 9999px;
    padding: 0 5px;
    font-size: 0.625rem; /* Smaller font size */
    font-weight: 600;
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff;
    line-height: 1;
}

.notification-badge.hidden {
    display: none;
}

/* Token balance in navbar */
.navbar-tokens {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #666666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background-color: #f7fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    margin-right: 0.75rem;
}

.navbar-tokens:hover {
    background-color: #edf2f7;
    color: #1a1a1a;
    border-color: #cbd5e0;
    text-decoration: none;
}

.navbar-tokens i {
    color: #f6ad55; /* Orange/gold color for coins */
    font-size: 0.875rem;
}

#navbar-token-balance {
    font-weight: 600;
}

/* Alternative color options - uncomment to try */
/* 
Soft blue: #4299e1
Soft purple: #805ad5
Soft orange: #ed8936
Soft teal: #38b2ac
*/

/* ========================================
   BETA BANNER STYLES
   ======================================== */
.beta-banner {
    background-color: #fef3c7; /* bg-yellow-100 equivalent */
    padding: 0.5rem 1rem; /* py-2 px-4 */
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.beta-banner-content {
    color: #92400e; /* text-yellow-900 equivalent */
    font-size: 0.875rem; /* text-sm */
    max-width: 800px;
    margin: 0 auto;
}

.beta-link {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.beta-link:hover {
    opacity: 0.8;
}

.beta-links {
    white-space: nowrap;
}

/* Submission Status Badge Styles for Recent Submissions */
.submission-meta .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    margin-top: 0.25rem;
}

/* Ensure badge colors are visible */
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
    border-color: #ffc107 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
}

/* CC Verified badge with tooltip */
.badge.bg-success[data-bs-toggle="tooltip"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge.bg-success[data-bs-toggle="tooltip"]:hover {
    background-color: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
}

/* ========================================
   FOOTER STYLES - Compact Design
   ======================================== */

.site-footer {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0 1.25rem;
    margin-top: auto; /* Push to bottom */
    flex-shrink: 0; /* Prevent shrinking */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Newsletter Section */
.footer-newsletter {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.footer-newsletter h4 {
    font-size: 1.125rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-newsletter p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .email-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: #ffffff;
    color: #2d3748;
    transition: all 0.2s ease;
}

.newsletter-form .email-input::placeholder {
    color: #a0aec0;
}

.newsletter-form .email-input:focus {
    outline: none;
    border-color: #5142f5;
    box-shadow: 0 0 0 2px rgba(81, 66, 245, 0.1);
}

.newsletter-form .submit-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.newsletter-form .submit-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Main Footer Section */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-brand h3 {
    font-size: 1.125rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.footer-brand p {
    color: #6b7280;
    font-size: 0.8125rem;
    max-width: 250px;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
}

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

.social-link {
    color: #6b7280;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.2s;
    padding: 0.125rem 0;
}

.footer-column a:hover {
    color: #5142f5;
    transform: translateX(2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 2rem;
        padding: 1.5rem 0 1rem;
    }
    
    .footer-newsletter {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-form .email-input,
    .newsletter-form .submit-btn {
        width: 100%;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-brand {
        text-align: center;
        width: 100%;
    }
    
    .footer-brand p {
        max-width: none;
        margin: 0 auto 0.75rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-around;
        gap: 2rem;
    }
    
    .footer-column {
        min-width: 0;
        flex: 1;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
}

/* ========================================
   PROFILE STYLES
   ======================================== */

/* Profile Header */
.profile-header {
    margin-bottom: 3rem;
}

.profile-banner {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.profile-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #5142f5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    border: 3px solid #e9ecef;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.profile-username {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #495057;
}

.profile-location {
    color: #6c757d;
    margin-bottom: 1rem;
}

.profile-location i {
    margin-right: 0.5rem;
}

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

/* Profile Links */
.profile-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
}

.profile-link:hover {
    background: #f8f9fa;
    border-color: #5142f5;
    color: #5142f5;
}

.profile-link i {
    font-size: 1.2rem;
}

.profile-link-spotify:hover {
    border-color: #1db954;
    color: #1db954;
}

.profile-link-instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
}

.profile-link-bandcamp:hover {
    border-color: #629aa9;
    color: #629aa9;
}

.profile-link-soundcloud:hover {
    border-color: #ff3300;
    color: #ff3300;
}

.profile-link-youtube:hover {
    border-color: #ff0000;
    color: #ff0000;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 3rem;
}

.profile-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #495057;
}

.working-on-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    line-height: 1.6;
}

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

.playlist-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.playlist-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.playlist-image-placeholder {
    width: 100%;
    height: 100%;
    background: #5142f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.playlist-info {
    padding: 1rem;
}

.playlist-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.playlist-info p {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.playlist-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
}

.playlist-badge.accepting {
    background: #d4edda;
    color: #155724;
}

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

.release-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.release-link-card {
    padding: 1.5rem;
    text-align: center;
}

.release-link-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Profile Username Row */
.profile-username-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.profile-username {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-badge.curator {
    background: #ffeaa7;
    color: #d68910;
}

.profile-badge.instructor {
    background: #e7f5ff;
    color: #1971c2;
}

/* Unified Card System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-image-link {
    display: block;
    text-decoration: none;
}

.card-image {
    width: 100%;
    aspect-ratio: 1; /* Square for playlists */
    overflow: hidden;
    background-color: #f8f9fa;
}

.card-image-wide {
    aspect-ratio: 16/9; /* Wide for courses */
}

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e0;
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.card-title a:hover {
    color: #5142f5;
}

.card-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.card-subtitle a {
    color: inherit;
    text-decoration: none;
}

.card-subtitle a:hover {
    color: #5142f5;
}

.card-description {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.status-badge.accepting {
    background: #d3f9d8;
    color: #2b8a3e;
}

.status-badge.closed {
    background: #ffe3e3;
    color: #c92a2a;
}

.meta-price,
.meta-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.meta-price {
    color: #e67700;
    font-weight: 500;
}

.meta-duration {
    color: #666;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.card-actions .btn {
    flex: 1;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-username-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Remove old creator status section - badges now in profile header */

/* Inspirations */
.inspiration-search {
    position: relative;
    margin-bottom: 2rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none; /* Hidden by default */
}

.search-results.has-results {
    display: block;
    border: 1px solid #e8e8e8;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result:hover {
    background-color: #f8f9fa;
}

.search-result img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8e8e8;
}

.artist-info h5 {
    margin: 0;
    font-size: 1rem;
    color: #1a1a1a;
}

.artist-info .genres {
    font-size: 0.85rem;
    color: #666;
}

.inspirations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.inspiration-card {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: move;
}

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

.inspiration-card .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    color: #666;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inspiration-card:hover .remove-btn {
    opacity: 1;
}

.inspiration-card .remove-btn:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
    transform: scale(1.1);
}

.inspiration-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    background: #e8e8e8;
}

.inspiration-card h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.inspiration-note {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.8rem;
    resize: none;
    background: white;
}

.inspirations-count {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Sortable ghost */
.sortable-ghost {
    opacity: 0.4;
}

/* ===================================
   ENHANCED PROFILE EDIT UX
   Principal-level design improvements
   ================================== */

/* Profile Edit Container */
.profile-edit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 120px;
}

.profile-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-edit-header .header-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-edit-header .header-content p {
    color: #666;
    font-size: 1.1rem;
}

/* Section Navigation */
.profile-sections-nav {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-sections-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.profile-sections-nav .nav-item:hover {
    background: #f0f0f0;
    color: #333;
    transform: translateY(-1px);
}

.profile-sections-nav .nav-item.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.profile-sections-nav .nav-icon {
    font-size: 1.1rem;
}

/* Enhanced Form Sections */
.form-section[data-section] {
    scroll-margin-top: 140px;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: #666;
    font-size: 1rem;
}

/* Form Layout Improvements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.focused {
    position: relative;
}

.form-group.focused::before {
    content: '';
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: -0.5rem;
    bottom: -0.5rem;
    background: #f0f4ff;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
}

/* Enhanced Form Controls */
.form-control {
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #666;
}

/* Google OAuth Sign-In */
.google-signin-btn {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.google-signin-btn .google-icon {
    flex-shrink: 0;
}

/* OAuth Divider */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider span {
    background: var(--bg-primary);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.form-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4a90e2;
}

/* Textarea with character counter */
.textarea-wrapper {
    position: relative;
}

.character-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: #999;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.character-counter.near-limit {
    color: #ff6b6b;
    font-weight: 600;
}

/* Enhanced Image Upload */
.profile-image-section {
    margin-top: 2rem;
}

.profile-image-section label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.image-upload-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.current-image-box {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.current-image-box img,
.current-image-box .profile-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.current-image-box:hover .image-overlay {
    opacity: 1;
}

.image-upload-label {
    color: white;
    text-align: center;
    cursor: pointer;
    padding: 1rem;
}

.image-upload-label i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-info {
    flex: 1;
}

.image-help {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.remove-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #dc3545;
    text-decoration: none;
    font-size: 0.875rem;
}

.remove-image-btn:hover {
    text-decoration: underline;
}

.marked-for-removal {
    opacity: 0.5;
}

/* Links Section */
.links-grid {
    display: grid;
    gap: 1rem;
}

.link-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-icon-preview {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 1.25rem;
    color: #666;
    transition: all 0.2s ease;
}

.link-input {
    flex: 1;
}

/* Content Section */
.content-section .form-group {
    margin-bottom: 2rem;
}

.markdown-enabled {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

.markdown-toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.toolbar-btn {
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #f0f0f0;
}

/* Featured Content Blocks */
.featured-content-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.featured-content-block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Featured playlists now use dynamic-item styles */

.select-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
}

/* Featured Releases - cleaned up, using dynamic-item styles */

/* Floating Actions Bar */
.floating-actions-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 0;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.floating-actions-bar .actions-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.save-status {
    margin-left: auto;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-status.editing {
    color: #666;
}

.save-status.unsaved {
    color: #ff6b6b;
}

.save-status.saving {
    color: #4a90e2;
}

.save-status.saved {
    color: #51cf66;
}

/* Dynamic Items Container */
.dynamic-items-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dynamic-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dynamic-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.item-handle {
    cursor: grab;
    color: #999;
    padding: 0.5rem;
}

.item-handle:active {
    cursor: grabbing;
}

.dynamic-item.sortable-ghost {
    opacity: 0.4;
    background: #f0f0f0;
}

.btn-icon {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.btn-icon:hover {
    background: #f0f0f0;
    color: #dc3545;
}

.remove-item-btn {
    margin-left: auto;
}

.add-item-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dynamic Playlist Items */
.playlist-item .playlist-select {
    flex: 1;
}

/* Dynamic Release Items */
.release-item {
    position: relative;
}

.release-item .release-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inspiration-search-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.artist-search-input {
    padding-left: 2.75rem;
}

.artist-search-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.search-disabled-msg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #ff6b6b;
}

.inspirations-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.drag-hint {
    font-size: 0.875rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-info {
    border-left: 4px solid #4a90e2;
}

.notification-error {
    border-left: 4px solid #ff6b6b;
}

.notification-success {
    border-left: 4px solid #51cf66;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-sections-nav {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .profile-sections-nav .nav-label {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .image-upload-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .featured-playlists-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-actions-bar .actions-container {
        padding: 0 1rem;
    }
}

/* Profile View - Inspirations Display */
.profile-section.inspirations-section {
    margin: 3rem 0;
}

.inspirations-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-style: italic;
}

.inspirations-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

.inspiration-display-card {
    text-align: center;
}

.inspiration-display-card a {
    text-decoration: none;
    color: inherit;
}

.inspiration-display-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
    background: #e8e8e8;
    display: block;
}

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

.inspiration-display-card h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.inspiration-display-note {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    font-style: italic;
}

/* Spotify Artist Metrics Section */
.spotify-metrics-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.spotify-metrics-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spotify-metrics-section h2 .fa-spotify {
    color: #1db954;
}

.artist-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-context {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.artist-genres {
    margin-bottom: 2rem;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.genre-tag {
    background: #1db954;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.top-tracks {
    margin-bottom: 2rem;
}

.tracks-list {
    margin-top: 1rem;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.track-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: #999;
    min-width: 30px;
}

.track-info {
    flex: 1;
}

.track-name {
    font-weight: 600;
    color: #1a1a1a;
}

.track-album {
    font-size: 0.85rem;
    color: #666;
}

.track-popularity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popularity-bar {
    width: 100px;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.popularity-fill {
    height: 100%;
    background: linear-gradient(90deg, #1db954, #1ed760);
    transition: width 0.3s ease;
}

/* Generate classes for popularity widths (0-100) */
.popularity-0 { width: 0%; }
.popularity-10 { width: 10%; }
.popularity-20 { width: 20%; }
.popularity-30 { width: 30%; }
.popularity-40 { width: 40%; }
.popularity-50 { width: 50%; }
.popularity-60 { width: 60%; }
.popularity-70 { width: 70%; }
.popularity-80 { width: 80%; }
.popularity-90 { width: 90%; }
.popularity-100 { width: 100%; }

.popularity-value {
    font-size: 0.85rem;
    color: #666;
    min-width: 25px;
}

.spotify-discography h4 {
    margin: 2rem 0 1rem;
}

.releases-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spotify-release-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

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

.release-artwork {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.release-details {
    flex: 1;
}

.release-details h5 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.release-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.release-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    background: #f0f0f0;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.release-date {
    font-size: 0.85rem;
    color: #666;
}

.release-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.audio-features-mini {
    margin-top: 0.5rem;
}

.feature-bar {
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    margin-bottom: 4px;
    overflow: hidden;
}

.feature-fill {
    height: 100%;
}

.feature-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.feature-fill.energy {
    background: #ff6b6b;
}

.feature-fill.danceability {
    background: #4ecdc4;
}

/* Energy feature widths */
.energy-0 { width: 0%; }
.energy-10 { width: 10%; }
.energy-20 { width: 20%; }
.energy-30 { width: 30%; }
.energy-40 { width: 40%; }
.energy-50 { width: 50%; }
.energy-60 { width: 60%; }
.energy-70 { width: 70%; }
.energy-80 { width: 80%; }
.energy-90 { width: 90%; }
.energy-100 { width: 100%; }

/* Danceability feature widths */
.dance-0 { width: 0%; }
.dance-10 { width: 10%; }
.dance-20 { width: 20%; }
.dance-30 { width: 30%; }
.dance-40 { width: 40%; }
.dance-50 { width: 50%; }
.dance-60 { width: 60%; }
.dance-70 { width: 70%; }
.dance-80 { width: 80%; }
.dance-90 { width: 90%; }
.dance-100 { width: 100%; }

.release-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #1db954;
    font-size: 1.25rem;
}

.related-artists {
    margin-top: 2rem;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-artist-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

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

.artist-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.artist-popularity {
    font-size: 0.75rem;
    color: #666;
}

.spotify-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.view-insights {
    text-align: center;
    margin-top: 2rem;
}

/* Spotify Connect Section in Edit Profile */
.spotify-connect-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.spotify-connect-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spotify-connected {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.spotify-not-connected p {
    margin-bottom: 1rem;
    color: #666;
}

.btn-spotify {
    background: #1db954;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-spotify:hover {
    background: #1ed760;
    color: white;
}

.section-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e8e8e8;
}

.inline-form {
    display: inline-block;
}


/* Artist Dashboard Styles - Clean & Focused */
.dashboard-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.artist-core-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

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

.core-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1db954;
}

.core-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Genres Section */
.genres-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.genres-section h2 {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1rem;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.genre-tag {
    background: #1db954;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Songs Ranking Section */
.songs-ranking-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.songs-ranking-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.songs-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.song-row {
    display: grid;
    grid-template-columns: 50px 1fr 150px;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.song-row:hover {
    background: #f9f9f9;
}

.song-row:last-child {
    border-bottom: none;
}

.song-rank {
    font-size: 1.25rem;
    font-weight: 700;
    color: #999;
    text-align: center;
}

.song-row:nth-child(1) .song-rank { color: #FFD700; }
.song-row:nth-child(2) .song-rank { color: #C0C0C0; }
.song-row:nth-child(3) .song-rank { color: #CD7F32; }

.song-info {
    padding: 0 1rem;
}

.song-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.song-name .track-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.song-name .track-link:hover {
    color: #1db954;
}

.top-track-badge {
    display: inline-block;
    background: #1db954;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 700;
}

.song-album {
    font-size: 0.9rem;
    color: #666;
}

.song-popularity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popularity-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 40px;
    text-align: right;
}

.popularity-bar-mini {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.popularity-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #1db954, #1ed760);
    transition: width 0.3s ease;
}

/* Styles for unknown/NULL popularity */
.popularity-unknown {
    color: #9CA3AF;
}

.popularity-number.popularity-unknown {
    opacity: 0.6;
    font-style: italic;
}

.popularity-fill-unknown,
.popularity-fill-mini.popularity-fill-unknown {
    background: #E5E7EB;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.dashboard-footer {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    font-size: 0.9rem;
}

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

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

.spotify-connect-cta {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.spotify-connect-cta p {
    margin: 1rem 0 2rem;
    color: #666;
    font-size: 1.1rem;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.feedback-date {
    color: #999;
    font-size: 0.85rem;
}

.feedback-content {
    color: #333;
    line-height: 1.5;
}

.feedback-rating {
    margin-top: 0.5rem;
    color: #ffa500;
}

.featured-playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.playlist-card-link {
    text-decoration: none;
    color: inherit;
}

.playlist-card:hover {
    transform: translateY(-2px);
}

.playlist-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.playlist-image-placeholder {
    width: 100%;
    height: 150px;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 3rem;
    color: #999;
}

.navbar-dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #333 !important;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-dashboard-link:hover {
    color: #1db954 !important;
}

.navbar-dashboard-link i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .inspirations-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .inspiration-image {
        width: 80px;
        height: 80px;
    }
    
    .spotify-metrics-section {
        padding: 1rem;
    }
    
    .artist-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .releases-timeline {
        grid-template-columns: 1fr;
    }
    
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .inspirations-display {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.5rem;
    }
}
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #5142f5;
}

.beta-badge {
    background: #ffd700;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 25px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Profile Edit Form */
.profile-edit-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #5142f5;
    box-shadow: 0 0 0 2px rgba(81, 66, 245, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.image-upload-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

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

.profile-image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.image-upload-controls {
    flex: 1;
}

.hidden-input {
    display: none;
}

.release-input-group {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-image,
    .profile-image-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .profile-links {
        justify-content: center;
    }
    
    .playlist-grid,
    .releases-grid {
        grid-template-columns: 1fr;
    }
    
    .image-upload-container {
        flex-direction: column;
        align-items: center;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

/* Account Center Improvements */
.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.page-header-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-spotify {
    background: #1db954;
    color: white !important;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-spotify:hover {
    background: #1ed760;
    color: white !important;
    text-decoration: none;
}

/* ========================================
   SPOTIFY AUTH STYLES - REFINED UI/UX
   ======================================== */

/* Hero Spotify button - Primary CTA */
.btn-spotify-hero {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(29, 185, 84, 0.2), 0 1px 3px rgba(29, 185, 84, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-spotify-hero:hover {
    background: linear-gradient(135deg, #1ed760 0%, #22e968 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(29, 185, 84, 0.35), 0 2px 4px rgba(29, 185, 84, 0.15);
    text-decoration: none;
}

.btn-spotify-hero:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.25);
}

.btn-spotify-hero i {
    font-size: 1.125rem;
}

.btn-spotify-hero .btn-text-primary {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-spotify-hero .btn-text-secondary {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 0.25rem;
}

/* Spotify Connect button for profile pages */
.btn-spotify-connect {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white !important;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.2);
    text-decoration: none;
}

.btn-spotify-connect:hover {
    background: linear-gradient(135deg, #1ed760 0%, #22e968 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(29, 185, 84, 0.3);
    text-decoration: none;
}

.btn-spotify-connect i {
    font-size: 1.125rem;
}

/* Small variant for settings panel */
.btn-spotify-connect-sm {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white !important;
    border: none;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(29, 185, 84, 0.2);
    text-decoration: none;
}

.btn-spotify-connect-sm:hover {
    background: linear-gradient(135deg, #1ed760 0%, #22e968 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(29, 185, 84, 0.3);
    text-decoration: none;
}

.btn-spotify-connect-sm i {
    font-size: 0.875rem;
}

/* Keep old class for backward compatibility */
.btn-spotify-large {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.btn-spotify-large:hover {
    background: linear-gradient(135deg, #1ed760 0%, #22e968 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
    text-decoration: none;
}

.btn-spotify-large i {
    font-size: 1.5rem;
}

/* Refined Auth Modal Sections */
.modal-content-auth {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%;
}

.modal-body-auth {
    padding: 1.5rem 1.75rem 1.25rem;
}

.spotify-primary-section {
    margin-bottom: 1.25rem;
}

/* Improved divider design */
.auth-divider-section {
    display: flex;
    align-items: center;
    margin: 1.25rem 0 1rem;
    position: relative;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.auth-divider-text {
    padding: 0 1.25rem;
    color: #757575;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
}

/* Email form section */
.email-form-section {
    margin-top: 0;
}

.form-group-set {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-input:hover {
    border-color: #c0c0c0;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #1db954;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.form-input::placeholder {
    color: #9e9e9e;
    font-weight: 400;
}

/* Password helper text */
.form-helper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #757575;
}

.form-helper i {
    font-size: 0.6875rem;
    opacity: 0.7;
}

.form-helper-link {
    margin-top: 0.375rem;
    text-align: right;
}

.helper-link {
    font-size: 0.875rem;
    color: #1db954;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.helper-link:hover {
    color: #1ed760;
    text-decoration: underline;
}

/* Secondary action button */
.btn-secondary-action {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary-action:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary-action:active {
    transform: translateY(0);
}

/* Modal footer refinements */
.modal-footer-auth {
    padding: 1rem 1.75rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

.footer-text {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

.modal-link-subtle {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modal-link-subtle:hover {
    color: #1db954;
    text-decoration: underline;
}

/* Legacy classes for compatibility */
.spotify-auth-section {
    margin-bottom: 2rem;
}

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

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

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

.auth-hint {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.email-auth-form {
    opacity: 0.95;
}

/* Username selection styles */
.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.input-prefix {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-right: 1px solid #e8e8e8;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.input-with-prefix input {
    border: none;
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.input-with-prefix input:focus {
    outline: none;
    box-shadow: none;
}

.username-availability {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
}

.username-availability .text-success {
    color: #1db954;
}

.username-availability .text-error {
    color: #dc3545;
}

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

.page-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

#username-preview {
    font-weight: 600;
    color: var(--color-primary);
}

/* Account linking styles */
.input-disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.form-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}


.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

.profile-bio-preview {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    font-style: italic;
}

.profile-actions-inline {
    margin-top: 1rem;
}

/* Profile Status Section removed - redundant with header actions */

/* Responsive Account Center */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header-actions {
        width: 100%;
    }
    
    .page-header-actions .btn {
        width: 100%;
        text-align: center;
    }
    
}

/* Admin Application Review Page - Clean Layout */
/* Ensure proper spacing and prevent footer overlap */
.admin-review-page {
    padding-bottom: 3rem;
}

/* Prevent Bootstrap row from stretching cards */
.admin-review-page .row {
    align-items: flex-start !important;
}

/* Sidebar column styling */
.admin-review-sidebar {
    /* Ensure sidebar doesn't use flexbox stretch */
    display: block !important;
}

.admin-review-sidebar .card {
    margin-bottom: 1.5rem;
    /* Ensure cards don't stretch */
    height: auto !important;
    min-height: auto !important;
}

.admin-review-sidebar .card:last-child {
    margin-bottom: 0;
}

/* Compact OCR form to save vertical space */
.admin-ocr-correction {
    /* Remove any inherited min-height */
    min-height: auto !important;
}

.admin-ocr-correction .card-body {
    /* Remove any default padding that might be too large */
    padding: 1rem !important;
    /* Ensure no min-height is inherited */
    min-height: auto !important;
}

.admin-ocr-correction .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.admin-ocr-correction .form-control {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.admin-ocr-correction .mb-2 {
    margin-bottom: 0.75rem !important;
}

/* Remove any extra bottom margin on the last form group */
.admin-ocr-correction .mb-2:last-of-type {
    margin-bottom: 0.5rem !important;
}

/* Reasonable screenshot sizes */
.screenshot-container img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Stack everything vertically on small screens */
@media (max-width: 767px) {
    .admin-review-sidebar {
        margin-top: 2rem;
    }
}

/* Application Status Page - Fix stretched cards */
.application-status-page .row {
    align-items: flex-start !important;
}

/* Ensure cards don't stretch vertically */
.application-status-page .card {
    height: auto !important;
    min-height: auto !important;
}

/* Add reasonable spacing at bottom */
.application-status-page {
    padding-bottom: 2rem;
}

/* Username input with @ prefix */
.input-group {
    display: flex;
    align-items: center;
}

.input-group-prepend {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    font-weight: 500;
}
