/* ============================================
   WE ÖTZI - Artist Dashboard Styles
   Bauhaus-inspired modular grid layout
   ============================================ */

/* ============================================
   DASHBOARD GRID LAYOUT
   ============================================ */

/* Override body styles for dashboard - sticky footer layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0; /* Full width layout, padding handled by children */
}

/* ============================================
   DASHBOARD NAVIGATION MENU
   ============================================ */

.nav-col-dashboard-links {
    margin-right: 0.35rem;
}

.dashboard-quick-nav {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 2px solid var(--fg);
    background: var(--bg);
}

.dashboard-quick-link {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    border-right: 2px solid var(--fg);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fg);
    background: var(--bg);
    transition: background 0.18s ease, color 0.18s ease;
}

.dashboard-quick-link:last-child {
    border-right: none;
}

.dashboard-quick-link:hover {
    background: var(--fg);
    color: var(--bg);
}

.dashboard-quick-link-job-board:hover {
    background: var(--primary-red);
    color: var(--bg);
}

.mobile-menu-toggle {
    display: none;
}

.dashboard-mobile-menu {
    display: none;
}

.dashboard-mobile-menu[hidden] {
    display: none !important;
}

@keyframes dashboard-menu-reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 340px 1fr 380px;
    grid-template-areas:
        "identity  quotes    profile"
        "identity  gallery   profile"
        "about     gallery   profile"
        "actions   gallery   profile";
    gap: 0;
    width: calc(100% - 4rem);
    max-width: 1400px;
    margin: 55px auto 40px;
    align-items: stretch;
    background: var(--fg);
    border: 3px solid var(--fg);
}

.dashboard-sidebar {
    display: contents; /* fallback if wrapper remains */
}

.dashboard-main-content {
    display: contents; /* fallback if wrapper remains */
}

.dashboard-card {
    background: var(--bg);
    border: none;
    border-radius: 0; /* Bauhaus sharp corners */
    box-shadow: none;
    /* Inner spacing via the 3px gap painted by bg(--fg) of parent */
}

/* Hide old display:none .dashboard-grid class if any */
.dashboard-grid-old {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    width: calc(100% - 4rem); /* Maintain side spacing */
    max-width: 1400px;
    margin: 80px auto 40px; /* Space for fixed header and footer gap */
    flex: 1;
    border: var(--border-width) solid var(--fg);
    border-bottom: none; /* Connects with footer visually if they meet */
    background: var(--bg);
    gap: 0;
}

/* Footer override for dashboard - full width, part of document flow */
.bauhaus-footer {
    position: relative;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    border: none;
    border-top: var(--border-width) solid var(--fg);
}

/* ============================================
   VERIFICATION PENDING BANNER
   ============================================ */

.verification-pending-banner {
    width: calc(100% - 4rem);
    max-width: 1400px;
    margin: 105px auto 0;
    padding: 0.875rem 1.25rem;
    background: var(--primary-yellow);
    border: var(--border-width) solid var(--fg);
}

.banner-shell {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.banner-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.banner-notice-switch {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--fg);
    min-width: 0;
    overflow: hidden;
}

.banner-switch-btn {
    border: none;
    background: transparent;
    color: var(--text-on-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.banner-switch-btn + .banner-switch-btn {
    border-left: 2px solid var(--fg);
}

.banner-switch-btn.is-active {
    background: var(--fg);
    color: var(--primary-yellow);
}

.banner-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.banner-nav-btn,
.banner-toggle-btn {
    border: 2px solid var(--fg);
    background: transparent;
    color: var(--text-on-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 32px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.banner-nav-btn {
    width: 32px;
    padding: 0;
}

.banner-toggle-btn {
    padding: 0 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.banner-nav-btn:hover,
.banner-toggle-btn:hover {
    background: var(--fg);
    color: var(--primary-yellow);
}

.banner-toggle-icon {
    transition: transform 0.22s ease;
}

.banner-shell[data-expanded="true"] .banner-toggle-icon {
    transform: rotate(180deg);
}

.banner-summary {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.banner-summary-title {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-on-light);
}

.banner-summary-meta {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-on-light);
    opacity: 0.85;
}

.banner-summary-note {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-on-light);
    opacity: 0.86;
    line-height: 1.45;
}

.banner-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(10, 10, 10, 0.18);
    border: 1px solid rgba(10, 10, 10, 0.25);
    overflow: hidden;
}

.banner-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--fg);
    transition: width 0.32s ease;
}

.banner-shell.is-verification .banner-progress-track {
    display: none;
}

.banner-shell.is-verification .banner-summary-note {
    display: none;
}

.banner-expanded-content {
    border-top: 1px solid rgba(10, 10, 10, 0.25);
    padding-top: 0.625rem;
    animation: banner-panel-reveal 0.2s ease;
}

.banner-expanded-content[hidden] {
    display: none !important;
}

@keyframes banner-panel-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-panel {
    display: block;
}

.banner-panel[hidden] {
    display: none !important;
}

.banner-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.banner-checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.125rem;
    border-bottom: 1px dashed rgba(10, 10, 10, 0.18);
}

.banner-checklist-item:last-child {
    border-bottom: none;
    padding-bottom: 0.2rem;
}

.banner-checklist-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-on-light);
}

.banner-check-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
    color: var(--text-on-light);
    background: transparent;
}

.banner-checklist-item.is-completed .banner-check-indicator {
    background: var(--fg);
    color: var(--primary-yellow);
}

.banner-verification-text {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-on-light);
    line-height: 1.5;
}

/* ============================================
   IDENTITY BLOCK - Avatar & Name
   ============================================ */

.block-identity {
    grid-area: identity;
    background: var(--primary-red);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 2rem 1.5rem;
    position: relative;
    gap: 0.9rem;
}

.identity-main-row {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 1.15rem;
}

.identity-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding-top: 0.2rem;
}

.identity-status-row {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.45rem;
}

.identity-status-row .verification-badge,
.identity-status-row .artist-level-badge,
.identity-status-row .embajador-badge {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0.3rem 0.6rem;
    border: 3px solid var(--bg);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 1;
    letter-spacing: 0.07em;
    text-align: center;
    white-space: nowrap;
}

.identity-status-row .verification-badge svg,
.identity-status-row .embajador-badge svg {
    flex-shrink: 0;
}

.identity-status-row .verification-badge {
    gap: 0;
}

.identity-status-row .verification-badge svg {
    display: none;
}

.avatar-container {
    position: relative;
    margin-bottom: 0;
    width: 140px;
    height: 140px;
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border: 4px solid var(--bg);
    background: var(--bg);
    overflow: hidden;
}

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

.avatar-image.loaded {
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fg);
    color: var(--bg);
}

.avatar-image.loaded + .avatar-placeholder {
    display: none;
}

.avatar-upload-btn {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 40px;
    height: 40px;
    background: var(--fg);
    color: var(--bg);
    border: 3px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
}

.avatar-upload-btn:hover {
    background: var(--primary-yellow);
    color: var(--text-on-light);
    transform: scale(1.1);
}

.avatar-upload-btn:active {
    transform: scale(0.95);
}

.avatar-ai-btn {
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 40px;
    height: 40px;
    background: var(--fg);
    color: var(--bg);
    border: 3px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
}

.avatar-ai-btn:hover {
    background: var(--primary-blue);
    color: var(--bg);
    transform: scale(1.1);
}

.avatar-ai-btn:active {
    transform: scale(0.95);
}

.avatar-ai-btn svg {
    color: currentColor;
    transition: color 0.2s ease;
}

.avatar-ai-btn:hover svg {
    color: currentColor;
}

.avatar-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.avatar-loading.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.artist-name {
    font-weight: 900;
    font-size: clamp(1.9rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--bg);
    margin: 0;
    padding: 0;
    line-height: 1.03;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Desktop fine-tune: avoid overflow in long artistic names */
@media (min-width: 1201px) {
    .artist-name {
        font-size: clamp(1.35rem, 2.2vw, 2.25rem);
        padding: 0;
        line-height: 1.02;
        white-space: normal;
    }
}

.artist-username {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--bg);
    opacity: 0.9;
    margin: 0;
    width: 100%;
    text-align: left;
}

.artist-location {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--bg);
    opacity: 0.8;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.artist-location svg {
    flex-shrink: 0;
}

.artist-location-link {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(242, 240, 233, 0.45);
    text-underline-offset: 2px;
}

.artist-location-link:hover {
    color: var(--bg);
    text-decoration-color: var(--bg);
}

.artist-location-link.is-empty {
    text-decoration: none;
    pointer-events: none;
}

.tattoo-presence {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.2rem;
}

.tattoo-presence-group {
    border-top: 1px solid rgba(242, 240, 233, 0.3);
    padding-top: 0.6rem;
}

.tattoo-presence-title {
    margin: 0 0 0.45rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bg);
    opacity: 0.8;
}

.tattoo-presence-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tattoo-presence-item {
    background: rgba(242, 240, 233, 0.08);
    border: 1px solid rgba(242, 240, 233, 0.28);
    padding: 0.55rem 0.6rem;
}

.tattoo-presence-line {
    margin: 0;
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    line-height: 1.45;
    text-transform: uppercase;
    color: var(--bg);
}

.tattoo-presence-line + .tattoo-presence-line {
    margin-top: 0.15rem;
}

.tattoo-presence-key {
    opacity: 0.65;
}

.tattoo-presence-value {
    font-weight: 700;
}

.tattoo-presence-empty {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--bg);
    opacity: 0.75;
}

.artist-social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.artist-compact-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(242, 240, 233, 0.3);
    width: 100%;
    justify-content: flex-start;
}

.compact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compact-stat-value {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--bg);
}

.compact-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--bg);
    opacity: 0.7;
}

.social-link-btn {
    width: 40px;
    height: 40px;
    background: var(--bg);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link-btn:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
}

.copy-btn {
    cursor: pointer;
    border: none;
}

.copy-btn.copied {
    background: #4CAF50;
    color: var(--bg);
}

.copy-btn.copied svg {
    stroke: var(--bg);
}

.embajador-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    padding: 0.5rem 1rem;
    background: var(--primary-yellow);
    color: var(--text-on-light);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ============================================
   ARTIST LEVEL BADGE
   ============================================ */

.artist-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.4rem 1.2rem;
    background: var(--primary-blue);
    border: 3px solid var(--primary-blue);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg);
    transition: all 0.3s ease;
}

.artist-level-badge[data-level="Nuevo"] {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--bg);
}

.artist-level-badge[data-level="Nivel 1"] {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--text-on-light);
}

.artist-level-badge[data-level="Nivel 2"] {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--bg);
}

.artist-level-badge[data-level="Pro"] {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--primary-yellow);
    box-shadow: 0 0 0 2px var(--primary-yellow);
}

/* Share Profile Button */
.share-btn {
    cursor: pointer;
    border: none;
}

.share-btn:hover {
    background: var(--primary-blue);
}

.share-btn.shared {
    background: #4CAF50;
    color: var(--bg);
}

/* Desktop identity relayout (desktop-only) */
@media (min-width: 1201px) {
    .block-identity {
        align-items: center;
        text-align: center;
        padding: 2.8rem 1.8rem 3rem;
        gap: 1.2rem;
    }

    .identity-main-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .avatar-container {
        order: 1;
    }

    .identity-copy {
        order: 2;
        width: 100%;
        align-items: center;
        gap: 0.7rem;
        padding-top: 0;
    }

    .artist-name,
    .artist-username {
        text-align: center;
    }

    .identity-status-row {
        order: 3;
        justify-content: center;
        width: 100%;
        max-width: 460px;
        margin-top: 0.35rem;
    }

    .artist-location {
        order: 4;
        justify-content: center;
        text-align: center;
        margin-top: 0.35rem;
    }

    .tattoo-presence {
        order: 5;
        max-width: 460px;
        margin-top: 0.2rem;
    }

    .artist-social-links {
        order: 6;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 1.35rem;
    }

    #share-profile-btn {
        order: 1;
    }

    #instagram-link {
        order: 2;
    }

    #whatsapp-link {
        order: 3;
    }

    #qr-profile-btn {
        order: 4;
    }

    #copy-whatsapp-btn {
        order: 5;
    }

    .artist-compact-stats {
        order: 7;
        justify-content: center;
        width: 100%;
        margin-top: 2.1rem;
        padding-top: 2rem;
    }
}

/* ============================================
   QUOTES BLOCK - New Quotes Section
   ============================================ */

.block-quotes {
    grid-area: quotes;
    background: var(--primary-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
}

.quotes-title {
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.quotes-stats {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 1rem;
}

.quote-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quote-stat-value {
    font-weight: 900;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--fg);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.quote-stat-value.highlight-red {
    color: var(--primary-red);
}

.quote-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0.7;
}

.quotes-admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--fg);
    color: var(--bg);
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.quotes-admin-btn:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 4px 0 var(--fg);
}

.quotes-admin-btn svg {
    transition: transform 0.2s ease;
}

.quotes-admin-btn:hover svg {
    transform: translateX(3px);
}

.quotes-admin-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

/* ============================================
   INFO PANEL BLOCK - Bio & Portfolio
   ============================================ */

.block-info-panel {
    grid-area: about;
    background: var(--bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--fg);
}

.info-title {
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.edit-btn {
    background: transparent;
    border: 2px solid var(--fg);
    color: var(--fg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

.bio-content {
    flex: 1;
    overflow-y: auto;
}

.bio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--fg);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bio-text a {
    color: var(--primary-blue, #1565C0);
    text-decoration: underline;
}

.bio-text div,
.bio-text p {
    margin: 0;
    min-height: 1.2em;
}

.bio-text ul,
.bio-text ol {
    margin: 0.5em 0 0.5em 1.25em;
    padding: 0;
}

.bio-edit-mode {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bio-editor-wrapper--dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--fg);
}

.bio-editor-wrapper--dashboard .bio-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(128,128,128,0.25);
    flex-wrap: wrap;
}

.bio-editor-wrapper--dashboard .toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--fg);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.85rem;
    position: relative;
}

.bio-editor-wrapper--dashboard .toolbar-btn:hover {
    background: rgba(128,128,128,0.15);
}

.bio-editor-wrapper--dashboard .toolbar-separator {
    width: 1px;
    height: 20px;
    background: rgba(128,128,128,0.25);
    margin: 0 2px;
}

.bio-editor-wrapper--dashboard .color-btn {
    overflow: visible;
}

.bio-editor-wrapper--dashboard .color-picker {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.bio-editor-wrapper--dashboard .color-icon {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.bio-editor-wrapper--dashboard .color-icon.text-color {
    background: #E53935;
}

.bio-editor-wrapper--dashboard .color-icon.bg-color {
    background: #FFEB3B;
}

.bio-editor-wrapper--dashboard .bio-editor {
    flex: 1;
    min-height: 120px;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--fg);
    outline: none;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bio-editor-wrapper--dashboard .bio-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(128,128,128,0.5);
    pointer-events: none;
}

.bio-editor-wrapper--dashboard .bio-editor:focus {
    outline: none;
}

.bio-textarea {
    flex: 1;
    width: 100%;
    min-height: 120px;
    background: transparent;
    border: 2px solid var(--fg);
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--fg);
    resize: none;
    outline: none;
}

.bio-textarea:focus {
    border-color: var(--primary-blue);
}

.edit-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.portfolio-link {
    margin-top: auto;
    padding-top: 1rem;
}

.portfolio-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.portfolio-link a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

/* ============================================
   PROFILE BLOCK - Editable Fields
   ============================================ */

.block-profile {
    grid-area: profile;
    background: var(--bg);
    padding: 2rem;
    overflow-y: auto;
    max-height: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: var(--border-width) solid var(--fg);
}

.profile-title {
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.profile-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-gallery-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-yellow);
    color: var(--text-on-light);
    border: 3px solid var(--fg);
    padding: 0.45rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-gallery-upload-btn:hover {
    background: var(--fg);
    color: var(--primary-yellow);
    transform: translateY(-2px);
}

.profile-header-actions .edit-toggle-btn,
.profile-gallery-upload-btn {
    min-height: 44px;
}

.edit-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--fg);
    color: var(--bg);
    border: none;
    padding: 0.6rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-toggle-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.edit-toggle-btn.active {
    background: var(--primary-red);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-row {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--fg);
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.form-label-note {
    font-weight: 400;
    font-size: 0.6rem;
    color: var(--primary-blue);
    text-transform: none;
    margin-left: 0.5rem;
}

.form-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--fg);
    text-transform: uppercase;
    word-break: break-word;
}

.form-value-readonly {
    opacity: 0.5;
}

.styles-value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.style-tag {
    display: inline-block;
    background: var(--primary-red);
    color: var(--bg);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.tattoo-locations-editor {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.tattoo-editor-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tattoo-editor-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tattoo-editor-add-btn {
    border: 2px solid var(--fg);
    background: transparent;
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tattoo-editor-add-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

.tattoo-location-form-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tattoo-location-editor-item {
    border: 2px solid rgba(10, 10, 10, 0.35);
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tattoo-location-editor-item-upcoming {
    gap: 0.65rem;
}

.tattoo-upcoming-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 0.7rem;
}

.tattoo-upcoming-cell {
    min-width: 0;
}

.tattoo-upcoming-key {
    margin: 0 0 0.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.65;
}

.tattoo-upcoming-value {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tattoo-upcoming-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tattoo-upcoming-action-btn {
    border: 2px solid var(--fg);
    background: transparent;
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.3rem 0.55rem;
}

.tattoo-upcoming-action-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

.tattoo-location-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 0.65rem;
}

.tattoo-location-editor-grid.tattoo-location-editor-grid-upcoming {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
}

.tattoo-location-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.current-location-autocomplete {
    position: relative;
}

.current-location-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 2px solid var(--fg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 90;
    box-shadow: 3px 3px 0 var(--fg);
}

.current-location-suggestions.visible {
    display: block;
}

.current-location-suggestion-item {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.current-location-suggestion-item:last-child {
    border-bottom: none;
}

.current-location-suggestion-item:hover {
    background: var(--primary-blue);
    color: var(--bg);
}

.current-location-suggestion-item.suggestion-custom {
    font-style: italic;
    opacity: 0.85;
}

.tattoo-location-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.65;
}

.tattoo-location-field-range {
    min-width: 0;
}

.tattoo-date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.35rem;
    align-items: center;
}

.tattoo-date-separator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    text-transform: uppercase;
    opacity: 0.65;
}

.tattoo-location-editor-item .form-input-dashboard,
.tattoo-location-editor-item .form-select-dashboard {
    font-size: 0.86rem;
    padding: 0.45rem 0;
    margin: 0;
}

.tattoo-location-editor-item .form-input-dashboard {
    text-transform: none;
}

.tattoo-location-editor-item input[type="date"].form-input-dashboard {
    text-transform: uppercase;
}

.tattoo-location-remove-btn {
    align-self: flex-start;
    border: none;
    background: transparent;
    color: var(--primary-red);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}

.tattoo-location-remove-btn:hover {
    text-decoration: underline;
}

.tattoo-location-editor-empty {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    opacity: 0.65;
}

@media (max-width: 900px) {
    .tattoo-location-editor-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tattoo-location-editor-grid.tattoo-location-editor-grid-upcoming {
        grid-template-columns: minmax(0, 1fr);
    }

    .tattoo-date-range {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
    }

    .tattoo-date-separator {
        display: none;
    }

    .tattoo-upcoming-summary-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem;
    }

    .tattoo-upcoming-value {
        white-space: normal;
        overflow: visible;
    }
}

/* ============================================
   STYLES EDIT TRIGGER BUTTON
   ============================================ */

.styles-edit-trigger {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--fg);
    padding: 0.4rem 0;
    cursor: pointer;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    color: var(--fg);
    transition: border-color 0.2s ease;
}

.styles-edit-trigger:hover {
    border-color: var(--primary-red);
}

.styles-trigger-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex: 1;
    min-height: 1.5rem;
    align-items: center;
}

.styles-trigger-placeholder {
    opacity: 0.4;
    font-size: 0.8rem;
}

.styles-trigger-icon {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ============================================
   STYLES SELECTOR MODAL
   ============================================ */

.styles-modal-container {
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
}

.dashboard-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.dashboard-style-btn {
    background: transparent;
    border: 2px solid var(--fg);
    padding: 0.75rem 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fg);
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.dashboard-style-btn:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translateY(-2px);
}

.dashboard-style-btn.selected {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--bg);
}

.dashboard-style-btn.selected:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.dashboard-style-custom {
    border-style: dashed;
}

.dashboard-custom-style-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-custom-style-row .modal-input {
    flex: 1;
    margin: 0;
}

.dashboard-custom-style-add-btn {
    background: var(--fg);
    color: var(--bg);
    border: 2px solid var(--fg);
    width: 2.5rem;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.dashboard-custom-style-add-btn:hover {
    opacity: 0.7;
}

.styles-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--fg);
}

.styles-modal-btn {
    padding: 0.6rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid var(--fg);
    transition: all 0.2s ease;
}

.styles-modal-btn-cancel {
    background: transparent;
    color: var(--fg);
}

.styles-modal-btn-cancel:hover {
    background: var(--fg);
    color: var(--bg);
}

.styles-modal-btn-confirm {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--bg);
}

.styles-modal-btn-confirm:hover {
    opacity: 0.85;
}

/* ============================================
   RESPONSIVE STYLES MODAL
   ============================================ */

@media (max-width: 480px) {
    .dashboard-styles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .dashboard-style-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.65rem;
    }

    .styles-modal-actions {
        flex-direction: column;
    }

    .styles-modal-btn {
        width: 100%;
        text-align: center;
    }
}

.form-input-dashboard,
.form-select-dashboard {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--fg);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 0;
    color: var(--fg);
    outline: none;
    text-transform: uppercase;
    transition: border-color 0.2s ease;
}

.form-input-dashboard::placeholder {
    color: var(--fg);
    opacity: 0.3;
    text-transform: uppercase;
}

.form-input-dashboard:focus,
.form-select-dashboard:focus {
    border-color: var(--primary-blue);
}

.form-select-dashboard {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230A0A0A' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}

.dark-mode .form-select-dashboard {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F2F0E9' stroke-width='2'/%3E%3C/svg%3E");
}

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

.price-input-group .form-input-dashboard {
    flex: 1;
}

.price-input-group .currency-select {
    width: 100px;
    flex-shrink: 0;
}

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

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fg);
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: var(--bg);
    transition: 0.3s;
}

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

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

/* ============================================
   GALLERY EDIT SECTION (Edit Mode)
   ============================================ */

.gallery-edit-section {
    border-bottom: 1px solid var(--fg);
    padding-bottom: 1.5rem;
}

.gallery-edit-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-edit-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--fg);
    opacity: 0.7;
    margin: 0;
}

.gallery-edit-preview {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
}

.gallery-edit-preview::-webkit-scrollbar {
    width: 4px;
}

.gallery-edit-preview::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-edit-preview::-webkit-scrollbar-thumb {
    background: var(--fg);
}

.gallery-edit-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid var(--fg);
}

.gallery-edit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-edit-thumb-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary-red);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-edit-thumb:hover .gallery-edit-thumb-delete {
    opacity: 1;
}

.gallery-edit-thumb-delete:hover {
    background: var(--fg);
}

.gallery-edit-thumb-delete svg {
    width: 10px;
    height: 10px;
}

.gallery-edit-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--primary-blue);
    color: var(--bg);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.gallery-edit-upload-btn:hover {
    background: var(--fg);
    color: var(--primary-blue);
}

.gallery-edit-category-select {
    width: 100%;
    min-height: 38px;
    border: 2px solid var(--fg);
    background: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.55rem;
}

.gallery-edit-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--fg);
    opacity: 0.6;
}

.gallery-edit-empty {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--fg);
    opacity: 0.5;
    text-align: center;
    padding: 1rem;
    border: 2px dashed var(--fg);
    opacity: 0.3;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--fg);
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-cancel:hover {
    background: var(--fg);
    color: var(--bg);
}

.btn-save {
    background: var(--primary-blue);
    color: var(--bg);
    border: none;
}

.btn-save:hover {
    background: var(--fg);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--primary-blue);
}

.status-message {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.5rem;
}

.status-message.success {
    color: #4CAF50;
}

.status-message.error {
    color: var(--primary-red);
}

/* ============================================
   ACTIONS BLOCK - Logout, Password, etc
   ============================================ */

.block-actions {
    grid-area: actions;
    background: var(--primary-blue);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.actions-title {
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--bg);
    margin-bottom: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg);
    color: var(--fg);
    border: 2px solid var(--bg);
    padding: 1rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translateX(5px);
}

.action-btn-danger {
    background: transparent;
    color: var(--bg);
    border-color: var(--bg);
}

.action-btn-danger:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--bg);
}

/* Preview Profile Button */
.action-btn-preview {
    background: var(--primary-yellow);
    color: var(--text-on-light);
    border: 2px solid var(--primary-yellow);
}

.action-btn-preview:hover {
    background: var(--fg);
    color: var(--primary-yellow);
    border-color: var(--fg);
}

/* ============================================
   GALLERY ADMIN BLOCK
   ============================================ */

.block-gallery-admin {
    grid-area: gallery;
    background: var(--bg);
    padding: 1.5rem;
    border: none;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.gallery-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-admin-title {
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin: 0;
    flex: 1 1 220px;
}

.gallery-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-yellow);
    color: var(--text-on-light);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    border: 3px solid var(--fg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-upload-btn:hover {
    background: var(--fg);
    color: var(--primary-yellow);
}

.gallery-category-select {
    min-height: 38px;
    border: 2px solid var(--fg);
    background: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.55rem;
}

.gallery-admin-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--fg);
    opacity: 0.7;
    margin: 0;
}

.gallery-admin-grid {
    --gallery-admin-columns: 3;
    --gallery-admin-rows: 4;
    display: grid;
    grid-template-columns: repeat(var(--gallery-admin-columns), minmax(0, 1fr));
    grid-template-rows: repeat(var(--gallery-admin-rows), minmax(0, 1fr));
    row-gap: 0.5rem;
    column-gap: 0.6rem;
    padding-inline: 0.2rem;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    align-content: stretch;
    align-items: stretch;
    justify-items: stretch;
    box-sizing: border-box;
}

.gallery-admin-grid::-webkit-scrollbar {
    width: 6px;
}

.gallery-admin-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-admin-grid::-webkit-scrollbar-thumb {
    background: var(--fg);
}

.gallery-empty {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    min-height: 100%;
    color: var(--fg);
    opacity: 0.5;
}

.gallery-empty svg {
    opacity: 0.5;
}

.gallery-empty p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin: 0;
}

.gallery-item {
    position: relative;
    grid-column: auto / span 1;
    grid-row: auto / span 1;
    width: 100%;
    min-height: 0;
    min-width: 0;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border: 2px solid var(--fg);
    box-sizing: border-box;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-slot {
    grid-column: auto / span 1;
    grid-row: auto / span 1;
    width: 100%;
    min-height: 0;
    min-width: 0;
    height: 100%;
    aspect-ratio: auto;
    border: 2px solid rgba(10, 10, 10, 0.18);
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.04), rgba(10, 10, 10, 0.01)),
        rgba(255, 255, 255, 0.22);
    box-sizing: border-box;
}

.gallery-item-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-item-delete {
    opacity: 1;
}

.gallery-item-delete:hover {
    background: var(--fg);
}

.gallery-video-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #E23E28;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 5px;
    pointer-events: none;
    z-index: 2;
}

.gallery-category-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(10, 10, 10, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 4px;
    pointer-events: none;
    z-index: 2;
}

.gallery-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 1;
}

.gallery-admin-loading {
    padding: 1rem 0 0.5rem;
}

.gallery-edit-loading {
    width: 100%;
    margin: 0.5rem 0;
}

.gallery-upload-progress {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.gallery-upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg);
}

.gallery-progress-track {
    width: 100%;
    height: 3px;
    background-color: rgba(10, 10, 10, 0.15);
    position: relative;
    overflow: hidden;
}

.dark-mode .gallery-progress-track {
    background-color: rgba(242, 240, 233, 0.15);
}

.gallery-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--primary-yellow, #F5C518);
    -webkit-transition: width 0.35s ease;
    transition: width 0.35s ease;
}

/* ============================================
   DASHBOARD GALLERY LIGHTBOX
   ============================================ */

.dashboard-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.94);
}

.dashboard-gallery-lightbox.active {
    display: flex;
}

.dashboard-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 12002;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dashboard-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
}

.dashboard-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12002;
    border: 2px solid rgba(255, 255, 255, 0.26);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    width: 48px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dashboard-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.46);
}

.dashboard-lightbox-prev {
    left: 1.25rem;
}

.dashboard-lightbox-next {
    right: 1.25rem;
}

.dashboard-lightbox-content {
    width: min(92vw, 1300px);
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.38);
}

.dashboard-lightbox-content img,
.dashboard-lightbox-content video {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dashboard-lightbox-content video {
    display: none;
    background: #000;
    outline: none;
}

.dashboard-lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.48);
}

/* ============================================
   MILESTONES & TROPHIES BLOCK
   ============================================ */

.block-milestones {
    grid-area: milestones;
    background: var(--fg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestones-title {
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--bg);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    flex: 1;
}

.milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: rgba(242, 240, 233, 0.1);
    border: 2px solid transparent;
    opacity: 0.4;
    transition: all 0.3s ease;
    position: relative;
}

.milestone-item.completed {
    opacity: 1;
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.milestone-item.completed .milestone-icon {
    color: var(--fg);
}

.milestone-item.completed .milestone-label {
    color: var(--fg);
}

.milestone-item.completed .milestone-check {
    opacity: 1;
}

.milestone-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
}

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

.milestone-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.55rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--bg);
    line-height: 1.2;
    max-width: 100%;
}

.milestone-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.milestone-check svg {
    color: var(--primary-yellow);
}

/* Hover effect for incomplete milestones */
.milestone-item:not(.completed):hover {
    opacity: 0.6;
    border-color: rgba(242, 240, 233, 0.3);
}

/* Decorative shapes - keeping for backward compatibility but hidden */
.block-shape-dashboard {
    display: none;
}

.shape-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-red);
    transition: transform 0.3s ease;
}

.shape-square {
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* ============================================
   PASSWORD MODAL STYLES
   Uses existing modal styles from style.css
   ============================================ */

#password-modal .modal-container {
    max-width: 420px;
}

#password-message {
    min-height: 1.2rem;
}

/* ============================================
   QR MODAL STYLES
   ============================================ */

#qr-modal .qr-modal-container {
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.qr-modal-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.qr-destination-tabs {
    display: flex;
    width: 100%;
    border: var(--border-width) solid var(--fg);
}

.qr-tab {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem;
    background: transparent;
    color: var(--fg);
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.qr-tab + .qr-tab {
    border-left: var(--border-width) solid var(--fg);
}

.qr-tab:hover:not(.active) {
    /* color-mix es compatible con Chrome 111+, Firefox 113+, Safari 16.2+ */
    background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.qr-tab.active {
    background: var(--fg);
    color: var(--bg);
}

.qr-canvas-wrapper {
    border: var(--border-width) solid var(--fg);
    padding: 1rem;
    background: #ffffff; /* Forzado blanco — el QR requiere contraste claro/oscuro */
    line-height: 0; /* Elimina espacio extra bajo el canvas */
}

.qr-canvas-wrapper canvas {
    display: block;
}

.qr-url-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    line-height: 1.5;
    color: var(--fg);
    opacity: 0.5;
    text-align: center;
    word-break: break-all;
    margin: 0;
    max-width: 100%;
}

.qr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

.qr-action-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 0.75rem;
    border: var(--border-width) solid var(--fg);
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.qr-action-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

.qr-action-primary,
.qr-action-share {
    grid-column: 1 / -1;
    background: var(--fg);
    color: var(--bg);
}

.qr-action-primary:hover,
.qr-action-share:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

@media (max-width: 480px) {
    #qr-modal .qr-modal-container {
        max-width: 95%;
        padding: 2rem 1.25rem;
    }

    .qr-modal-title {
        font-size: 0.75rem;
    }

    .qr-action-btn {
        font-size: 0.6rem;
        padding: 0.5rem;
    }
}

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */

/* Tablet View */
@media (max-width: 1200px) {
    .dashboard-quick-link {
        padding: 0 0.62rem;
        font-size: 0.56rem;
    }

    .nav-col-dashboard-links {
        margin-right: 0.15rem;
    }

    .dashboard-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "identity  quotes"
            "about     gallery"
            "actions   gallery"
            "actions   profile"
            "actions   profile";
    }

    .block-identity {
        padding: 2rem 1.5rem;
    }

    .identity-main-row {
        column-gap: 1rem;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
    }

    .artist-name {
        font-size: clamp(1.7rem, 3.4vw, 2.2rem);
        margin: 0;
        padding: 0;
    }

    .artist-level-badge {
        font-size: 0.65rem;
        padding: 0.35rem 1rem;
    }

    .embajador-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

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

/* ============================================
   LOCATION INPUT GROUP (Dashboard Edit Mode)
   ============================================ */

.dashboard-location-group {
    display: none; /* controlled by toggleEditMode */
    flex-direction: column;
    gap: 0.5rem;
}

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

.dashboard-location-wrapper .form-input-dashboard {
    flex: 1;
    min-width: 0;
}

.dashboard-geolocation-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: transparent;
    color: var(--fg);
    border: none;
    border-bottom: 3px solid var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.dashboard-geolocation-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.dashboard-geolocation-btn.loading {
    animation: dashboard-pulse 1s ease-in-out infinite;
}

@keyframes dashboard-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dashboard-geolocation-btn svg {
    pointer-events: none;
}

.dashboard-location-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--fg);
    opacity: 0.7;
    min-height: 1.2em;
    transition: all 0.3s ease;
}

/* Mobile View */
@media (max-width: 768px) {
    html {
        font-size: 112% !important;
    }

    .artist-dashboard-page .nav-row {
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        border-left: 3px solid var(--fg);
        border-right: 3px solid var(--fg);
    }

    .artist-dashboard-page .nav-col {
        min-width: 0;
    }

    .artist-dashboard-page .nav-row .login-toggle {
        font-size: 14px !important;
        letter-spacing: 0.12em !important;
        font-weight: 800 !important;
    }

    .nav-col-dashboard-links {
        margin-right: 0;
    }

    .dashboard-quick-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 100% !important;
        height: 100% !important;
        align-items: center;
        justify-content: center;
        border: none !important;
        background: var(--bg) !important;
        color: var(--fg) !important;
        font-family: 'JetBrains Mono', monospace;
        font-size: 14px !important;
        letter-spacing: 0.11em !important;
        text-transform: uppercase;
        font-weight: 800;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle[aria-expanded="true"] {
        background: var(--primary-yellow) !important;
        color: var(--text-on-light) !important;
    }

    .dashboard-mobile-menu {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(60px + env(safe-area-inset-bottom));
        z-index: 1100;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border: 3px solid var(--fg);
        background: var(--fg);
        animation: dashboard-menu-reveal 0.2s ease;
    }

    .dashboard-mobile-menu-link {
        min-height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-family: 'JetBrains Mono', monospace;
        font-size: 14px !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--fg);
        background: var(--bg);
        border-right: 2px solid var(--fg);
        border-bottom: 2px solid var(--fg);
        transition: background 0.16s ease, color 0.16s ease;
    }

    .dashboard-mobile-menu-link:nth-child(2n) {
        border-right: none;
    }

    .dashboard-mobile-menu-link:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .dashboard-mobile-menu-link:hover {
        background: var(--fg);
        color: var(--bg);
    }

    .dashboard-mobile-menu-link-job-board {
        background: var(--primary-red);
        color: var(--bg);
    }

    body {
        padding: 0;
    }

    .verification-pending-banner {
        width: calc(100% - 1.5rem);
        margin: 49px auto 0;
        padding: 0.7rem 0.75rem;
        border-width: 2px;
    }

    .banner-top-row {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .banner-notice-switch {
        flex: 1 1 auto;
        min-width: 0;
    }

    .banner-switch-btn {
        flex: 1 1 0;
        font-size: 0.61rem;
        padding: 0.35rem 0.55rem;
        justify-content: center;
        text-align: center;
    }

    .banner-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .banner-nav-btn,
    .banner-toggle-btn {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .banner-toggle-btn {
        width: auto;
        padding: 0 0.5rem;
        font-size: 0.6rem;
    }

    .banner-summary-title {
        font-size: 0.72rem;
    }

    .banner-summary-meta {
        font-size: 0.6rem;
    }

    .banner-summary-note {
        font-size: 0.56rem;
        line-height: 1.4;
    }

    .banner-checklist-label,
    .banner-verification-text {
        font-size: 0.62rem;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "identity"
            "quotes"
            "about"
            "gallery"
            "profile"
            "actions";
        width: calc(100% - 1.5rem);
        margin: 49px auto 40px;
    }

    .block:last-child {
        border-bottom: none;
    }

    .block-identity {
        padding: 2rem 1.5rem;
    }

    .identity-main-row {
        column-gap: 0.85rem;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
    }

    .avatar-upload-btn {
        width: 32px;
        height: 32px;
        bottom: -4px;
        right: -4px;
    }

    .avatar-ai-btn {
        width: 32px;
        height: 32px;
        bottom: -4px;
        left: -4px;
    }

    .avatar-placeholder svg {
        width: 36px;
        height: 36px;
    }

    .artist-name {
        font-size: clamp(1.65rem, 5vw, 2rem);
        margin: 0;
        padding: 0;
    }

    .artist-username {
        font-size: 0.85rem;
    }

    .artist-social-links {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }

    .social-link-btn {
        width: 36px;
        height: 36px;
    }

    .embajador-badge {
        margin-top: 0;
        padding: 0.35rem 0.75rem;
        font-size: 0.65rem;
    }

    .block-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-item {
        min-width: calc(33% - 1rem);
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .block-info-panel {
        padding: 1.5rem;
    }

    .info-title {
        font-size: 1.1rem;
    }

    .bio-text {
        font-size: 0.9rem;
    }

    .block-profile {
        padding: 1.5rem;
        max-height: none;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profile-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

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

    .profile-gallery-upload-btn,
    .edit-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        padding: 0.75rem 0;
    }

    .form-label {
        font-size: 0.65rem;
    }

    .form-value {
        font-size: 0.9rem;
    }

    .form-input-dashboard,
    .form-select-dashboard {
        font-size: 0.9rem;
    }

    .price-input-group {
        flex-direction: column;
    }

    .price-input-group .currency-select {
        width: 100%;
    }

    .gallery-admin-grid {
        column-gap: 0.5rem;
        row-gap: 0.5rem;
        padding-inline: 0.1rem;
        min-height: 0;
    }

    .dashboard-lightbox-nav {
        width: 42px;
        height: 54px;
    }

    .dashboard-lightbox-prev {
        left: 0.7rem;
    }

    .dashboard-lightbox-next {
        right: 0.7rem;
    }

    .dashboard-lightbox-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
    }

    .dashboard-lightbox-content {
        width: min(94vw, 1100px);
        max-height: 80vh;
    }

    .dashboard-lightbox-content img,
    .dashboard-lightbox-content video {
        max-height: 80vh;
    }

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

    .btn-cancel,
    .btn-save {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .block-actions {
        padding: 1.5rem;
    }

    .actions-title {
        font-size: 1.1rem;
    }

    .action-btn {
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
    }

    .block-shape-dashboard {
        display: none;
    }

    .block-milestones {
        padding: 1.25rem;
    }

    .milestones-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .milestone-item {
        padding: 0.6rem 0.4rem;
    }

    .milestone-icon {
        width: 32px;
        height: 32px;
    }

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

    .milestone-label {
        font-size: 0.5rem;
    }

    .milestone-check {
        width: 16px;
        height: 16px;
        top: 2px;
        right: 2px;
    }

    .milestone-check svg {
        width: 12px;
        height: 12px;
    }

    .artist-level-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.9rem;
        margin-top: 0.75rem;
    }

    .theme-toggle {
        display: flex;
    }

    .zoom-controls {
        display: flex;
    }

    .zoom-btn {
        width: 32px;
        height: 32px;
    }

    /* Modal responsive */
    .modal-container {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    /* Gallery edit section responsive */
    .gallery-edit-preview {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-edit-upload-btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-location-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-geolocation-btn {
        width: 100%;
        height: 44px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 108% !important;
    }

    .artist-dashboard-page .nav-row {
        left: 0.5rem !important;
        right: 0.5rem !important;
    }

    .artist-dashboard-page .nav-row .login-toggle {
        font-size: 13px !important;
    }

    .mobile-menu-toggle {
        font-size: 13px !important;
        letter-spacing: 0.09em !important;
    }

    .dashboard-mobile-menu {
        left: 0.5rem;
        right: 0.5rem;
    }

    .dashboard-mobile-menu-link {
        min-height: 52px;
        font-size: 13px !important;
        letter-spacing: 0.07em !important;
    }

    body {
        padding: 0;
    }

    .verification-pending-banner {
        width: calc(100% - 1rem);
        margin: 42px auto 0;
        padding: 0.58rem 0.65rem;
    }

    .banner-switch-btn {
        font-size: 0.56rem;
        padding: 0.34rem 0.4rem;
    }

    .banner-nav-btn {
        width: 28px;
        height: 28px;
    }

    .banner-toggle-btn {
        height: 28px;
        font-size: 0.56rem;
        padding: 0 0.45rem;
    }

    .banner-summary-title {
        font-size: 0.66rem;
    }

    .banner-summary-meta {
        font-size: 0.56rem;
    }

    .banner-summary-note {
        font-size: 0.52rem;
    }

    .banner-checklist-item {
        gap: 0.55rem;
        padding: 0.46rem 0.08rem;
    }

    .banner-checklist-label,
    .banner-verification-text {
        font-size: 0.58rem;
        line-height: 1.42;
    }

    .banner-check-indicator {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .dashboard-layout {
        width: calc(100% - 1rem);
        margin: 42px auto 40px;
    }

    .block {
        border-bottom-width: 2px;
    }

    .block-identity {
        padding: 1.5rem 1rem;
    }

    .identity-main-row {
        column-gap: 0.7rem;
    }

    .avatar-container {
        width: 80px;
        height: 80px;
    }

    .avatar-wrapper {
        border-width: 3px;
    }

    .avatar-upload-btn {
        width: 28px;
        height: 28px;
        border-width: 2px;
        bottom: -3px;
        right: -3px;
    }

    .avatar-ai-btn {
        width: 28px;
        height: 28px;
        border-width: 2px;
        bottom: -3px;
        left: -3px;
    }

    .avatar-ai-btn svg {
        width: 14px;
        height: 14px;
    }

    .avatar-placeholder svg {
        width: 28px;
        height: 28px;
    }

    .stat-item {
        min-width: calc(50% - 1rem);
    }

    .artist-name {
        font-size: clamp(1.45rem, 6.4vw, 1.7rem);
        margin: 0;
        padding: 0;
    }

    .artist-username {
        font-size: 0.8rem;
    }

    .artist-location {
        font-size: 0.68rem;
        padding: 0;
    }

    .social-link-btn {
        width: 32px;
        height: 32px;
    }

    .social-link-btn svg {
        width: 14px;
        height: 14px;
    }

    .embajador-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
    }

    .block-stats {
        padding: 1rem;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .block-info-panel,
    .block-profile,
    .block-actions {
        padding: 1rem;
    }

    .profile-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .form-row {
        padding: 0.6rem 0;
    }

    .form-label {
        font-size: 0.6rem;
        margin-bottom: 0.35rem;
    }

    .form-value {
        font-size: 0.85rem;
    }

    .style-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    .form-input-dashboard,
    .form-select-dashboard {
        font-size: 0.85rem;
        padding: 0.6rem 0;
        border-bottom-width: 2px;
    }

    .action-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .block-milestones {
        padding: 1rem;
    }

    .milestones-title {
        font-size: 0.85rem;
    }

    .milestones-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }

    .milestone-item {
        padding: 0.5rem 0.3rem;
    }

    .milestone-icon {
        width: 28px;
        height: 28px;
    }

    .milestone-icon svg {
        width: 18px;
        height: 18px;
    }

    .milestone-label {
        font-size: 0.45rem;
    }

    .artist-level-badge {
        font-size: 0.55rem;
        padding: 0.25rem 0.75rem;
        border-width: 2px;
    }

    .theme-toggle {
        display: flex;
    }

    .zoom-controls {
        display: flex;
    }

    .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    /* Gallery edit section responsive - small screens */
    .gallery-edit-preview {
        grid-template-columns: repeat(3, 1fr);
        max-height: 90px;
    }

    .gallery-edit-thumb-delete {
        width: 16px;
        height: 16px;
        opacity: 1; /* Always visible on mobile */
    }

    .gallery-edit-upload-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
    }

    .gallery-admin-grid {
        --gallery-admin-columns: 2;
        --gallery-admin-rows: 6;
        column-gap: 0.45rem;
        row-gap: 0.45rem;
        padding-inline: 0.08rem;
        min-height: 0;
    }

    .dashboard-lightbox-nav {
        width: 36px;
        height: 46px;
    }

    .dashboard-lightbox-prev {
        left: 0.45rem;
    }

    .dashboard-lightbox-next {
        right: 0.45rem;
    }

    .dashboard-lightbox-close {
        top: 0.55rem;
        right: 0.55rem;
        width: 34px;
        height: 34px;
    }

    .dashboard-lightbox-counter {
        bottom: 0.65rem;
        font-size: 0.62rem;
        padding: 0.3rem 0.55rem;
    }
}

/* ============================================
   ZOOM CONTROLS ADJUSTMENT - Removed conflicting fixed positions
   ============================================ */


/* ============================================
   VERIFICATION BADGE & BUTTON STYLES
   ============================================ */

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.35rem 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

/* Verification States */
.verification-badge[data-state="No"] {
    background: rgba(242, 240, 233, 0.2);
    color: var(--bg);
    border: 2px dashed var(--bg);
}

.verification-badge[data-state="Requested"] {
    background: var(--primary-yellow);
    color: var(--text-on-light);
    border: 2px solid var(--primary-yellow);
}

.verification-badge[data-state="In Progress"],
.verification-badge[data-state="In Analysis"] {
    background: var(--primary-blue);
    color: var(--bg);
    border: 2px solid var(--primary-blue);
    animation: pulse-verification 2s infinite;
}

.verification-badge[data-state="verified"],
.verification-badge[data-state="Yes"] {
    background: #14884d;
    border-color: #fff;
    color: #fff;
}

.verification-badge[data-state="Denied"],
.verification-badge[data-state="Canceled"] {
    background: transparent;
    color: var(--bg);
    border: 2px solid var(--bg);
    opacity: 0.6;
}

@keyframes pulse-verification {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Verification Button in Actions */
.action-btn-verify {
    background: var(--primary-yellow);
    color: var(--text-on-light);
    border: 2px solid var(--primary-yellow);
}

.action-btn-verify:hover {
    background: var(--fg);
    color: var(--primary-yellow);
    border-color: var(--fg);
}

.action-btn-verify.verified {
    background: #4CAF50;
    color: var(--bg);
    border-color: #4CAF50;
    cursor: default;
}

.action-btn-verify.requested,
.action-btn-verify.in-progress {
    background: transparent;
    color: var(--bg);
    border-color: var(--bg);
    cursor: default;
    opacity: 0.8;
}

/* ============================================
   VERIFICATION MODAL STYLES
   ============================================ */

.verification-modal-container {
    max-width: 480px;
}

.verification-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-yellow);
    color: var(--text-on-light);
}

.verification-modal-icon svg {
    width: 48px;
    height: 48px;
}

.verification-benefits,
.verification-requirements {
    margin: 1.5rem 0;
    text-align: left;
}

.verification-benefits h4,
.verification-requirements h4 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

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

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--fg);
}

.benefits-list li svg {
    flex-shrink: 0;
    color: #4CAF50;
}

.requirements-list {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0;
}

.requirements-list li {
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--fg);
    opacity: 0.8;
}

.verification-requirements p {
    font-size: 0.85rem;
    color: var(--fg);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.verification-process {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(244, 185, 66, 0.1);
    border-left: 4px solid var(--primary-yellow);
}

.process-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fg);
    margin: 0;
}

.process-note svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--primary-yellow);
}

/* ============================================
   UPCOMING TRAVEL MODAL
   ============================================ */

.upcoming-travel-modal-container {
    max-width: 620px;
}

.upcoming-travel-dates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.upcoming-travel-autocomplete {
    position: relative;
}

.upcoming-travel-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 2px solid var(--fg);
    max-height: 220px;
    overflow-y: auto;
    z-index: 3200;
    box-shadow: 4px 4px 0 var(--fg);
}

.upcoming-travel-suggestions.visible {
    display: block;
}

.upcoming-travel-suggestion-item {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upcoming-travel-suggestion-item:last-child {
    border-bottom: none;
}

.upcoming-travel-suggestion-item:hover,
.upcoming-travel-suggestion-item.active {
    background: var(--primary-blue);
    color: var(--bg);
}

.upcoming-travel-suggestion-item.suggestion-custom {
    font-style: italic;
    opacity: 0.85;
}

.btn-verification-submit {
    background: var(--primary-yellow);
    color: var(--text-on-light);
    width: 100%;
    margin-top: 1rem;
}

.btn-verification-submit:hover {
    background: var(--fg);
    color: var(--primary-yellow);
}

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

/* Responsive adjustments for verification */
@media (max-width: 768px) {
    .identity-status-row .verification-badge,
    .identity-status-row .artist-level-badge,
    .identity-status-row .embajador-badge {
        width: auto;
        min-height: 36px;
        height: 36px;
        font-size: 0.62rem;
        padding: 0.24rem 0.5rem;
    }

    .verification-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.75rem;
    }

    .verification-modal-container {
        max-width: 95%;
    }

    .upcoming-travel-modal-container {
        max-width: 95%;
    }

    .upcoming-travel-dates-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .verification-modal-icon {
        width: 64px;
        height: 64px;
    }

    .verification-modal-icon svg {
        width: 36px;
        height: 36px;
    }

    .benefits-list li {
        font-size: 0.85rem;
    }

    .requirements-list li {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .verification-badge {
        font-size: 0.55rem;
        padding: 0.25rem 0.6rem;
        gap: 0.3rem;
    }

    .verification-badge svg {
        width: 12px;
        height: 12px;
    }

    .verification-modal-icon {
        width: 56px;
        height: 56px;
    }

    .verification-modal-icon svg {
        width: 32px;
        height: 32px;
    }

    .verification-benefits,
    .verification-requirements {
        margin: 1rem 0;
    }

    .verification-process {
        padding: 0.75rem;
    }

    .tattoo-upcoming-actions {
        flex-wrap: wrap;
    }

    .process-note {
        font-size: 0.8rem;
    }
}

/* Header Logout Button - Bauhaus Style */
.login-toggle {
    background: transparent;
    color: var(--fg);
    border: 2px solid var(--fg);
    padding: 0.6rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.login-toggle:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translateY(-2px);
}

.dark-mode .login-toggle {
    border-color: var(--fg);
    color: var(--fg);
}

.dark-mode .login-toggle:hover {
    background: var(--fg);
    color: var(--bg);
}

/* Estilos móviles de login-toggle manejados por landing-style.css bottom nav */

/* ============================================
   DASHBOARD STUDIO AUTOCOMPLETE
   ============================================ */

.dashboard-studio-autocomplete {
    width: 100%;
}

.dashboard-studio-autocomplete .studio-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 2px solid var(--fg);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 4px 4px 0 var(--fg);
}

.dashboard-studio-autocomplete .studio-suggestions.visible {
    display: block;
}

.dashboard-studio-autocomplete .studio-suggestion-item {
    padding: 0.6rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--fg);
    cursor: pointer;
    border-bottom: 1px solid var(--fg);
    transition: all 0.15s ease;
}

.dashboard-studio-autocomplete .studio-suggestion-item:last-child {
    border-bottom: none;
}

.dashboard-studio-autocomplete .studio-suggestion-item:hover,
.dashboard-studio-autocomplete .studio-suggestion-item.active {
    background: var(--primary-blue);
    color: var(--bg);
}

.dashboard-studio-autocomplete .studio-suggestion-new {
    font-style: italic;
    opacity: 0.8;
}

/* ============================================
   GOOGLE PLACES AUTOCOMPLETE DROPDOWN
   Compatible with Bauhaus light/dark theme
   ============================================ */

.pac-container {
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--fg);
    box-shadow: none;
    border-radius: 0;
    background-color: var(--bg);
}

.pac-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--fg);
    border-top: 1px solid var(--fg);
    opacity: 0.85;
}

.pac-item:hover,
.pac-item-selected {
    background-color: var(--fg);
    color: var(--bg);
    opacity: 1;
}

.pac-item-query {
    font-size: 0.875rem;
    color: var(--fg);
}

.pac-matched {
    font-weight: 700;
}

/* ============================================
   VISITORS MAP — Real-time visitor dashboard
   Populated by visitors-map.js (Supabase Realtime)
   ============================================ */

.block-visitors-map {
    max-width: 1400px;
    width: calc(100% - 4rem);
    margin: 0 auto 40px;
    padding: 24px;
    border: 3px solid var(--fg);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visitors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid var(--fg);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.visitors-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 28px;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.visitors-period-tabs {
    display: flex;
    gap: 0;
}

.visitors-period-btn {
    padding: 8px 16px;
    border: 2px solid var(--fg);
    border-right-width: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}
.visitors-period-btn:last-child { border-right-width: 2px; }
.visitors-period-btn:hover { background: var(--primary-yellow); }
.visitors-period-btn.is-active {
    background: var(--fg);
    color: var(--bg);
}

.visitors-live-indicator {
    color: #3ecf8e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: visitors-pulse-green 2s infinite;
}
.visitors-live-indicator.is-offline {
    color: var(--primary-red, #d22);
    animation: none;
}

.visitors-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    background: var(--fg);
    border: 3px solid var(--fg);
}

.visitor-stat {
    background: var(--bg);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.15s ease;
}
.visitor-stat:hover { background: var(--primary-yellow); }

.visitor-stat-value {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1;
}

.visitor-stat-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg);
    opacity: 0.7;
}

.visitors-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3px;
    background: var(--fg);
    border: 3px solid var(--fg);
    min-height: 420px;
}

.visitors-map-canvas {
    background: #f3f3f3;
    min-height: 420px;
    width: 100%;
}

.visitors-live-list {
    background: var(--bg);
    padding: 16px;
    overflow-y: auto;
    max-height: 420px;
    display: flex;
    flex-direction: column;
}

.visitors-live-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fg);
}

.visitors-live-feed {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visitor-feed-item {
    border-left: 3px solid var(--fg);
    padding: 8px 12px;
    background: var(--bg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    animation: visitors-feed-in 0.4s ease-out;
}
.visitor-feed-item:hover { border-left-color: #3ecf8e; }

.visitor-feed-place {
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 2px;
}

.visitor-feed-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--fg);
    opacity: 0.65;
    font-size: 11px;
}

.visitor-feed-when {
    font-weight: 700;
    opacity: 0.8;
}

.visitors-empty {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    opacity: 0.6;
    text-align: center;
    margin: 24px 0;
}

.visitors-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: var(--fg);
    border: 3px solid var(--fg);
}

.visitors-chart-wrap,
.visitors-tops {
    background: var(--bg);
    padding: 16px;
}

.visitors-chart-wrap {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}
.visitors-chart-wrap canvas {
    flex: 1;
    min-height: 220px;
    max-height: 260px;
}

.visitors-tops {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.visitors-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--fg);
}

.visitors-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    counter-reset: top-counter;
}
.visitors-top-list li {
    counter-increment: top-counter;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--fg);
}
.visitors-top-list li:last-child { border-bottom: none; }
.visitors-top-list li::before {
    content: counter(top-counter, decimal-leading-zero) ".";
    font-weight: 900;
    opacity: 0.5;
    margin-right: 8px;
    flex-shrink: 0;
}
.visitors-top-list .top-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.visitors-top-list .top-count {
    font-weight: 900;
    background: var(--fg);
    color: var(--bg);
    padding: 2px 8px;
    font-size: 11px;
}
.visitors-top-list .top-empty {
    opacity: 0.5;
    justify-content: center;
}
.visitors-top-list .top-empty::before { content: none; }

@keyframes visitors-feed-in {
    from { transform: translateY(-6px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes visitors-pulse-green {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

@media (max-width: 900px) {
    .block-visitors-map {
        width: calc(100% - 2rem);
        padding: 16px;
    }
    .visitors-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .visitors-main-grid,
    .visitors-bottom-grid,
    .visitors-tops {
        grid-template-columns: 1fr;
    }
    .visitors-map-canvas { min-height: 320px; }
    .visitors-live-list { max-height: 300px; }
    .visitor-stat-value { font-size: 26px; }
    .visitors-title { font-size: 22px; }
}
