/* Mobil — kompakt, VIP, dokunmaya uygun, dolgun tipografi */

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    html:not(.ios-app-shell):not(.ios-auth-shell) body:not(.msg-thread-page) {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        min-height: 100dvh;
        overscroll-behavior-y: none;
        background-color: var(--bg);
    }

    body {
        -webkit-font-smoothing: antialiased;
        letter-spacing: 0.01em;
    }

    .btn {
        min-height: 44px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .btn-primary {
        box-shadow: 0 3px 12px rgba(212, 168, 83, 0.26);
    }

    .page-actions .btn-primary,
    .browse-create-bar .btn-primary {
        box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
    }

    .btn-sm {
        min-height: 38px;
        font-weight: 600;
    }

    .alert {
        padding: 0.75rem 0.9rem;
        font-size: 0.88rem;
        font-weight: 500;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    /* İlan kartları — telefon: 2 sütun kompakt kimlik kutusu */
    @media (max-width: 639px) {
        .job-list,
        .jobs-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.55rem;
        }
    }

    .job-id-card {
        padding: 0.65rem 0.7rem 0.6rem;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.03);
        background: var(--surface) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    }

    .job-id-card::before {
        background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.08), transparent);
    }

    .job-id-card:active {
        transform: scale(0.985);
        border-color: rgba(201, 162, 39, 0.25);
    }

    .job-id-avatar {
        width: 40px;
        height: 40px;
    }

    .job-id-venue {
        font-size: 0.8125rem;
        font-weight: var(--fw-bold);
        letter-spacing: -0.02em;
        color: var(--text);
    }

    .job-id-city {
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .job-id-listing {
        margin-top: 0.35rem;
        padding-top: 0.35rem;
    }

    .job-id-listing-label {
        font-size: 0.56rem;
    }

    .job-id-title {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text);
    }

    .job-id-excerpt {
        font-size: 0.6875rem;
        font-weight: 500;
        color: var(--text-muted);
    }

    .job-id-tags span {
        font-size: 0.625rem;
        font-weight: 600;
        padding: 0.14rem 0.38rem;
        background: #f5f5f7 !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        color: var(--text) !important;
    }

    .job-id-card-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        gap: 0.45rem;
    }

    .job-id-card-footer .btn {
        flex: 1;
        min-width: 0;
        font-weight: 700;
    }

    .badge {
        font-weight: 700;
        font-size: 0.72rem;
    }

    .empty-state {
        padding: 2.25rem 1.25rem;
    }

    .empty-state-icon {
        font-size: 2.25rem;
        filter: drop-shadow(0 4px 12px rgba(212, 168, 83, 0.2));
    }

    .empty-state p {
        font-weight: 500;
        font-size: 0.9rem;
    }
}

/* Panel header & sayfa iskeleti */
@media (max-width: 768px) {
    .app-logo {
        flex: 1;
        min-width: 0;
    }

    .menu-toggle {
        display: none !important;
    }

    .app-nav {
        display: none !important;
    }

    body:has(.mob-tabbar):not(.msg-thread-page) .app-header {
        display: none !important;
    }

    body:has(.mob-tabbar):not(.msg-thread-page) .app-main-inner,
    body:has(.mob-tabbar):not(.msg-thread-page) .dashboard-content,
    body:has(.mob-tabbar):not(.msg-thread-page) .page-content {
        padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
    }

    .app-header {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.85rem 0.55rem;
        gap: 0.5rem;
        background: var(--surface);
        border-bottom: 1px solid var(--separator);
        box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04);
    }

    .app-logo a {
        font-size: 1.22rem;
        font-weight: var(--fw-bold);
        letter-spacing: -0.03em;
    }

    .app-header-tools {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        order: 2;
    }

    .nav-profile-btn {
        padding: 0.2rem;
        border: 1px solid rgba(212, 168, 83, 0.28);
        background: rgba(212, 168, 83, 0.07);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .nav-profile-avatar {
        width: 38px;
        height: 38px;
        border: 2px solid rgba(212, 168, 83, 0.4);
    }

    .nav-profile-name,
    .nav-profile-chevron {
        display: none;
    }

    .nav-profile-menu a {
        font-weight: 600;
        font-size: 0.85rem;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .app-main {
        padding: 0;
        overflow-x: clip;
        overflow-y: visible;
        min-height: 0;
        flex: 1 1 auto;
    }

    .app-main-inner,
    .dashboard-content,
    .page-content {
        padding: 0.9rem 0.85rem 1.75rem;
        padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    }

    /* Fixed tabbar only — ios-app-shell uses in-flow tabbar (see ios-compat) */
    html:not(.ios-app-shell) body:has(.mob-tabbar) .app-main-inner,
    html:not(.ios-app-shell) body:has(.mob-tabbar) .dashboard-content,
    html:not(.ios-app-shell) body:has(.mob-tabbar) .page-content {
        padding-bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
    }

    /* Mesajlar inbox: tabbar flex akisinda — main icinde clearance yok */
    body.msg-page:has(.mob-tabbar) .app-main-inner {
        padding-bottom: 0;
    }

    body.browse-page .app-main-inner,
    body.listings-hub-page .app-main-inner,
    body.browse-page .dashboard-content,
    body.listings-hub-page .dashboard-content,
    body.browse-page .page-content,
    body.listings-hub-page .page-content {
        overflow: visible;
    }

    body.browse-page #listings-container,
    body.listings-hub-page #listings-container,
    body.browse-page .browse-list,
    body.listings-hub-page .browse-list {
        position: relative;
        z-index: 1;
        padding-bottom: 0.35rem;
    }

    body.browse-page .browse-filter-sticky,
    body.listings-hub-page .browse-filter-sticky {
        z-index: 40;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* ios-app-shell: tabbar in-flow — modest content breath only (all pages) */
    html.ios-app-shell body:has(.mob-tabbar) .app-main-inner,
    html.ios-app-shell body:has(.mob-tabbar) .dashboard-content,
    html.ios-app-shell body:has(.mob-tabbar) .page-content {
        padding-bottom: 0.85rem;
    }

    html.ios-app-shell body.msg-page:has(.mob-tabbar) .app-main-inner,
    html.ios-app-shell body.msg-page:has(.mob-tabbar) .dashboard-content,
    html.ios-app-shell body.msg-page:has(.mob-tabbar) .page-content {
        padding-bottom: 0;
    }

    html.ios-app-shell body:not(:has(.mob-tabbar)) .app-main-inner,
    html.ios-app-shell body:not(:has(.mob-tabbar)) .dashboard-content,
    html.ios-app-shell body:not(:has(.mob-tabbar)) .page-content {
        padding-bottom: 1rem;
    }

    .page-header {
        margin-bottom: 0.85rem;
    }

    .page-header h1,
    .browse-solo-title {
        font-size: 1.2rem;
        font-weight: var(--fw-bold);
        letter-spacing: -0.03em;
        color: var(--text);
    }

    .page-header p {
        font-size: 0.84rem;
        font-weight: 500;
    }

    .profile-card {
        padding: 1.15rem;
        border-color: rgba(212, 168, 83, 0.14);
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }

    .profile-card h2,
    .section-title {
        font-weight: 700;
    }

    .profile-card .form-group input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
    .profile-card .form-group select,
    .form-group textarea,
    .filter-bar .filter-field select {
        min-height: 44px;
        font-size: 1rem;
        font-weight: 500;
    }

    .form-group label {
        font-weight: 600;
        font-size: 0.8rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.8rem;
        background: linear-gradient(165deg, rgba(212, 168, 83, 0.04), var(--surface));
        border: 1px solid rgba(212, 168, 83, 0.12);
        border-radius: 13px;
    }

    .filter-bar .filter-field {
        min-width: 0;
    }

    .filter-bar .btn {
        width: 100%;
    }

    .browse-tabs {
        margin-bottom: 0.38rem;
        padding: 0.22rem;
        gap: 0.22rem;
        overflow: visible;
    }

    .browse-tab {
        padding: 0.38rem 0.42rem;
        min-width: 0;
        min-height: 2.45rem;
        border-radius: 8px;
    }

    .browse-tab-label {
        font-size: 0.66rem;
        letter-spacing: 0.01em;
    }

    .browse-tab.active {
        background: var(--surface);
        border: 1px solid rgba(201, 162, 39, 0.28);
        box-shadow: var(--shadow-sm);
    }

    .browse-tab.active .browse-tab-label {
        font-size: 0.8rem;
        font-weight: var(--fw-bold);
        color: var(--gold-700, #7a6118);
    }

    .venue-apps-tabs .venue-apps-tab.active[data-apps-tab="incoming"] .browse-tab-label {
        color: var(--venue-incoming) !important;
    }

    .venue-apps-tabs .venue-apps-tab.active[data-apps-tab="outgoing"] .browse-tab-label {
        color: var(--venue-outgoing) !important;
    }

    .job-id-card {
        height: 18.5rem;
        min-height: 18.5rem;
        max-height: 18.5rem;
    }

    .job-id-price-pill {
        min-width: 6.5rem;
        padding: 0.4rem 0.85rem;
    }

    .browse-create-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .browse-create-bar .btn {
        width: 100%;
    }

    /* Keşfet — mobil kompakt üst alan + filtre şeridi */
    body:has(.mob-tabbar) .listings-hub-header-wrap .page-header.listings-hub-header {
        display: none;
    }

    body:has(.mob-tabbar) .listings-hub-header-wrap {
        gap: 0.2rem;
        margin-bottom: 0.1rem;
    }

    body.browse-page .browse-filter-sticky,
    body.listings-hub-page .browse-filter-sticky {
        margin-bottom: 0.3rem;
    }

    body.browse-page .browse-filter-sticky .browse-filter-toolbar,
    body.listings-hub-page .browse-filter-sticky .browse-filter-toolbar {
        padding: 0.32rem 0.45rem 0.28rem;
    }

    body.browse-page .browse-filter-strip,
    body.listings-hub-page .browse-filter-strip {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.32rem;
        width: min(100%, 21.5rem);
        max-width: 100%;
        margin-inline: auto;
        overflow: visible;
        padding-bottom: 0;
    }

    body.browse-page #listings-container,
    body.listings-hub-page #listings-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    body.browse-page .browse-filter-meta,
    body.listings-hub-page .browse-filter-meta {
        padding: 0.22rem 0.45rem 0.32rem;
        border-top: 1px solid color-mix(in srgb, var(--primary) 8%, var(--separator));
        display: flex;
    }

    body.browse-page .browse-filter-summary,
    body.listings-hub-page .browse-filter-summary {
        font-size: 0.72rem;
        line-height: 1.35;
        white-space: normal;
    }

    body.browse-page .browse-filter-clear,
    body.listings-hub-page .browse-filter-clear {
        min-height: 2.75rem;
        padding: 0.38rem 0.55rem;
        font-size: 0.68rem;
        flex-shrink: 0;
    }

    body:has(.mob-tabbar) .browse-discover-toolbar .browse-tabs {
        margin-bottom: 0;
        padding: 0.22rem;
        gap: 0.22rem;
    }

    body:has(.mob-tabbar) .browse-discover-toolbar .browse-tab {
        padding: 0.42rem 0.38rem;
        min-width: 0;
        min-height: 2.75rem;
    }

    body:has(.mob-tabbar) .browse-discover-toolbar .browse-tab-label {
        font-size: 0.68rem;
        letter-spacing: 0.01em;
    }

    body:has(.mob-tabbar) .musician-subnav--listings-hub {
        margin-bottom: 0.25rem;
    }

    body:has(.mob-tabbar) .musician-subnav--listings-hub .browse-tab {
        padding: 0.4rem 0.35rem;
        min-width: 0;
    }

    body:has(.mob-tabbar) .musician-subnav--listings-hub .browse-tab-label {
        font-size: 0.66rem;
        white-space: nowrap;
    }

    .page-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-actions .btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    /* İlan detay & başvurular */
    .job-venue-banner {
        padding: 0.9rem;
        gap: 0.85rem;
        border-color: rgba(212, 168, 83, 0.18);
    }

    .job-venue-banner-logo {
        width: 50px;
        height: 50px;
        border-radius: 11px;
        border: 1px solid rgba(212, 168, 83, 0.15);
    }

    .job-venue-name {
        font-size: 1.15rem;
        font-weight: var(--fw-bold);
    }

    .job-detail-header h2 {
        font-size: 1.2rem;
        font-weight: var(--fw-bold);
    }

    .job-detail-desc {
        font-size: 0.92rem;
        font-weight: 500;
        line-height: 1.65;
    }

    .job-meta span {
        font-weight: 600;
        font-size: 0.76rem;
        background: rgba(212, 168, 83, 0.06);
        border: 1px solid rgba(212, 168, 83, 0.1);
    }

    .applicant-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0.95rem;
        border-color: rgba(212, 168, 83, 0.1);
    }

    .applicant-card > .applicant-avatar {
        width: 48px;
        height: 48px;
    }

    .applicant-name {
        font-size: 1.05rem;
        font-weight: var(--fw-bold);
    }

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

    .applicant-actions .btn {
        width: 100%;
        min-height: 42px;
        font-weight: 700;
    }
}

/* Panel dashboard mobil */
@media (max-width: 768px) {
    .dash-hero {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        border-color: rgba(212, 168, 83, 0.12);
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
    }

    .dash-avatar {
        width: 56px;
        height: 56px;
        border-color: rgba(212, 168, 83, 0.25);
    }

    .dash-progress {
        margin-top: 0;
        align-self: center;
    }

    .dash-name {
        font-size: 1.18rem;
        font-weight: var(--fw-bold);
    }

    .dash-meta {
        font-size: 0.78rem;
        font-weight: 600;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dash-stat {
        padding: 0.9rem 0.7rem;
        border-color: rgba(212, 168, 83, 0.12);
        background: linear-gradient(165deg, rgba(212, 168, 83, 0.05), transparent);
    }

    .dash-stat-value {
        font-size: 1.55rem;
        font-weight: var(--fw-semibold);
        color: var(--primary);
    }

    .dash-stat-label {
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .dash-action-row {
        padding: 0.9rem 0.95rem;
        border-color: rgba(212, 168, 83, 0.08);
    }

    .dash-action-title {
        font-size: 0.94rem;
        font-weight: 700;
    }

    .dash-action-desc {
        font-weight: 500;
    }

    .dash-action-icon {
        width: 42px;
        height: 42px;
        background: rgba(212, 168, 83, 0.09);
        border: 1px solid rgba(212, 168, 83, 0.14);
        border-radius: 12px;
    }
}

/* Profil sayfası mobil */
@media (max-width: 768px) {
    .profile-page-header h1 {
        font-size: 1.25rem;
        font-weight: var(--fw-bold);
    }

    .profile-identity-card {
        padding: 1.5rem 1.2rem;
        border-color: rgba(212, 168, 83, 0.18);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    }

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

    .profile-identity-name {
        font-size: 1.15rem;
        font-weight: var(--fw-bold);
    }

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

    .profile-form-actions .btn {
        width: 100%;
    }
}

/* Ana sayfa mobil */
@media (max-width: 768px) {
    .home-logo {
        flex: 1;
        min-width: 0;
    }

    .home-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.85rem 0.55rem;
        gap: 0.5rem;
        background: var(--surface);
        border-bottom: 1px solid var(--separator);
        box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04);
    }

    .home-logo a {
        font-size: 1.22rem;
        font-weight: var(--fw-bold);
    }

    .home-header-tools {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        order: 2;
        z-index: 210;
    }

    .home-nav {
        display: none !important;
    }

    .home-nav-guest {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .home-nav-guest a {
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
        color: var(--text-muted);
        padding: 0.4rem 0.55rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .home-nav-guest .btn-nav-primary {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        min-height: 44px;
        margin-left: 0;
    }

    .home-landing .stage-entry-btn {
        min-height: 44px;
    }

    body:has(.mob-tabbar) .home-footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .welcome-strip {
        padding: 0.75rem 0.85rem 0;
    }

    .welcome-strip-inner {
        padding: 0.8rem 0.95rem;
        border: 1px solid rgba(212, 168, 83, 0.12);
        background: linear-gradient(135deg, rgba(212, 168, 83, 0.06), transparent);
    }

    .welcome-strip h1 {
        font-size: 1.02rem;
        font-weight: var(--fw-bold);
    }

    .hero-compact {
        padding: 2rem 1rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        font-weight: var(--fw-bold);
        letter-spacing: -0.03em;
    }

    .hero p {
        font-weight: 500;
    }

    .home-section-compact {
        padding: 1rem 0.85rem 1.75rem;
    }

    .section-title-inline {
        font-size: 1.08rem;
        font-weight: var(--fw-bold);
    }

    .home-filter-compact {
        padding: 0.7rem;
        border-color: rgba(212, 168, 83, 0.1);
    }

    .stats-bar-compact {
        margin: 0.75rem 0.85rem 0;
        padding: 0.8rem 1rem;
        border: 1px solid rgba(212, 168, 83, 0.1);
        background: linear-gradient(165deg, rgba(212, 168, 83, 0.05), transparent);
    }

    .stat-number {
        font-size: 1.3rem;
        font-weight: var(--fw-bold);
        color: var(--primary);
    }

    .stat-label {
        font-weight: 600;
    }

    .home-footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Giriş / kayıt — auth.css ile uyumlu ince ayar */
@media (max-width: 768px) {
    .auth-page .alert {
        margin-bottom: 0.85rem;
        font-size: 0.875rem;
    }
}

/* Mesajlar */
@media (max-width: 768px) {
    .msg-page .app-main {
        padding: 0;
        max-width: none;
    }

    .msg-inbox-top {
        padding: 1.1rem 1rem 0.85rem;
    }

    .msg-inbox-top h1 {
        font-size: 1.45rem;
        font-weight: var(--fw-bold);
        letter-spacing: -0.04em;
    }

    .msg-inbox-top p {
        font-weight: 500;
    }

    .msg-row {
        padding: 0.95rem 1rem;
        min-height: 72px;
    }

    .msg-row-name {
        font-weight: 700;
        font-size: 0.98rem;
    }

    .msg-row-preview {
        font-weight: 500;
    }

    .msg-avatar {
        width: 48px;
        height: 48px;
        border: 2px solid rgba(212, 168, 83, 0.15);
    }

    .msg-empty-icon {
        background: rgba(212, 168, 83, 0.12);
    }

    .msg-empty h3 {
        font-weight: var(--fw-bold);
    }

    .msg-page:not(.msg-thread-page) .app-main-inner,
    .msg-page:not(.msg-thread-page) .dashboard-content {
        padding-bottom: 0;
    }

    .msg-back {
        width: 40px;
        height: 40px;
        font-weight: 400;
    }

    .msg-toolbar-name {
        font-weight: 700;
    }

    .msg-thread-page .msg-bubble {
        font-weight: 500;
    }

    .msg-thread-page .msg-bubble-wrap.mine .msg-bubble {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.88), rgba(99, 102, 241, 0.85));
        color: #f5f3ff;
        font-weight: 600;
    }
}

/* Mobil alt menü — hamburger yerine */
.mob-tabbar {
    display: none;
}

@media (max-width: 768px) {
    .mob-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        align-items: stretch;
        justify-content: space-around;
        gap: 0.1rem;
        padding: 0.35rem 0.35rem calc(0.38rem + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
        border-top: 1px solid var(--separator);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
        overflow: visible;
    }

    .mob-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-height: 46px;
        padding: 0.28rem 0.18rem;
        border-radius: 11px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        transition: color 0.2s, background 0.2s, box-shadow 0.2s;
        min-width: 0;
    }

    .mob-tab svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }





    /* Bildirim zili — sadece daire; arkada plaka/blur/gölge yok */
    #mob-notif-float,
    .mob-notif-float {
        position: fixed !important;
        right: calc(0.5rem + 0.45rem) !important;
        bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px) + 0.5rem) !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: 2.35rem !important;
        max-width: none !important;
        max-height: 2.35rem !important;
        min-width: 2.35rem !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        pointer-events: none;
        z-index: 8500 !important;
        background: transparent !important;
        background-image: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.4rem !important;
    }

    body.musician-mobile-sahne-page #mob-notif-float:has(.browse-filter-sticky--icon-rail),
    body.musician-mobile-sahne-page .mob-notif-float:has(.browse-filter-sticky--icon-rail) {
        left: 0.5rem !important;
        right: calc(0.5rem + 0.45rem) !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 2.35rem !important;
        max-width: none !important;
        align-items: center !important;
    }

    #mob-notif-float > .browse-filter-icon-rail,
    .mob-notif-float > .browse-filter-icon-rail {
        flex: 1 1 auto !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    #mob-notif-float > *,
    .mob-notif-float > * {
        pointer-events: auto;
        flex-shrink: 0;
    }

    #mob-notif-float::before,
    #mob-notif-float::after,
    .mob-notif-float::before,
    .mob-notif-float::after {
        content: none !important;
        display: none !important;
        background: none !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #mob-notif-float .mob-tab-notif-btn,
    .mob-notif-float .mob-tab-notif-btn {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 2.35rem !important;
        height: 2.35rem !important;
        max-width: 2.35rem !important;
        max-height: 2.35rem !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto;
        border-radius: 50% !important;
        background: var(--surface, #fff) !important;
        background-image: none !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
    }

    #mob-notif-float .mob-tab-notif-btn::before,
    #mob-notif-float .mob-tab-notif-btn::after,
    .mob-notif-float .mob-tab-notif-btn::before,
    .mob-notif-float .mob-tab-notif-btn::after {
        content: none !important;
        display: none !important;
    }

    .mob-tab-notif-btn {
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
        border-radius: 50%;
        background: var(--surface, #fff);
        color: var(--text-secondary);
        cursor: pointer;
        pointer-events: auto;
        z-index: 140;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        box-shadow: none;
        filter: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .mob-float-action {
        appearance: none;
        -webkit-appearance: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
        border-radius: 50%;
        background: var(--surface, #fff);
        color: var(--text-secondary);
        box-shadow: none;
        filter: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        text-decoration: none;
        cursor: pointer;
        pointer-events: auto;
        z-index: 136;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .mob-float-action__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .mob-float-action__icon svg {
        width: 17px;
        height: 17px;
    }

    .mob-float-action:active,
    .mob-tab-notif-btn:active {
        transform: scale(0.96);
    }

    .mob-float-action:hover,
    .mob-float-action:focus-visible {
        color: var(--primary);
        border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
    }

    .mob-tab-notif-btn.is-floating {
        position: relative !important;
        inset: auto !important;
    }

    .mob-tab-notif-btn:active {
        transform: scale(0.96);
    }

    .mob-tab-notif-btn.is-active,
    .mob-tab-notif-btn[aria-expanded="true"],
    #mob-notif-float .mob-tab-notif-btn.is-active,
    #mob-notif-float .mob-tab-notif-btn[aria-expanded="true"] {
        color: var(--primary);
        border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .mob-tab-notif-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .mob-tab-notif-icon svg {
        width: 17px;
        height: 17px;
    }

    .mob-tab-notif-btn .mob-tab-badge {
        top: -2px;
        right: -3px;
        min-width: 14px;
        height: 14px;
        font-size: 0.52rem;
        line-height: 14px;
    }

    .mob-tab-admin-exit {
        position: absolute;
        top: 0.2rem;
        right: 0.35rem;
        margin: 0;
        z-index: 140;
    }

    .mob-tabbar {
        overflow: visible;
        align-items: flex-end;
    }

    .mob-tab-icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mob-tab-badge {
        position: absolute;
        top: -5px;
        right: -9px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        background: var(--primary);
        color: #1a1408;
        font-size: 0.58rem;
        font-weight: var(--fw-bold);
        line-height: 16px;
        text-align: center;
        border-radius: 999px;
        box-shadow: 0 0 10px rgba(212, 168, 83, 0.45);
    }

    .mob-tab.active {
        color: var(--primary);
        background: linear-gradient(180deg, rgba(212, 168, 83, 0.14), rgba(212, 168, 83, 0.04));
        box-shadow: 0 0 16px rgba(212, 168, 83, 0.12);
    }

    .mob-tab:active {
        transform: scale(0.97);
    }

    .mob-tabbar-4 .mob-tab {
        padding: 0.3rem 0.12rem;
        font-size: 0.56rem;
        gap: 0.12rem;
    }

    .mob-tabbar-4 .mob-tab > span:last-child,
    .mob-tabbar-5 .mob-tab > span:last-child {
        display: block;
        max-width: 100%;
        line-height: 1.05;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mob-tabbar-4 .mob-tab svg {
        width: 20px;
        height: 20px;
    }

    .mob-tabbar-5 .mob-tab {
        padding: 0.28rem 0.1rem;
        font-size: 0.56rem;
        gap: 0.12rem;
    }

    .mob-tabbar-5 .mob-tab svg {
        width: 19px;
        height: 19px;
    }

    .mob-tabbar-6 .mob-tab {
        padding: 0.24rem 0.06rem;
        font-size: 0.5rem;
        gap: 0.1rem;
    }

    .mob-tabbar-6 .mob-tab svg {
        width: 18px;
        height: 18px;
    }

}


/* Mobile profile menu — bottom sheet */
@media (max-width: 768px) {
    body.profile-menu-open::before {
        display: block !important;
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.46);
        z-index: 14000;
        pointer-events: auto;
    }

    .nav-profile-menu {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 0.65rem 0.85rem calc(0.9rem + env(safe-area-inset-bottom, 0px)) !important;
        max-height: min(82vh, 560px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform-origin: bottom center;
        animation: nav-profile-sheet-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes nav-profile-sheet-in {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-profile-menu-head {
        text-align: center;
        padding-top: 0.35rem;
    }

    .nav-profile-menu-head::before {
        content: "";
        display: block;
        width: 2.4rem;
        height: 0.28rem;
        margin: 0 auto 0.65rem;
        border-radius: 999px;
        background: color-mix(in srgb, var(--text-muted) 35%, transparent);
    }

    .nav-profile-menu a {
        min-height: 48px;
        padding: 0.7rem 0.85rem;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    .nav-profile-menu-footer {
        margin-top: 0.55rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--separator);
    }

    .nav-profile-logout {
        min-height: 52px;
        justify-content: center;
        font-size: 0.96rem;
        font-weight: 700;
        border-radius: 14px;
        margin-top: 0;
        box-shadow: 0 10px 28px rgba(239, 68, 68, 0.14);
    }

    .account-settings-logout-btn {
        min-height: 52px;
        font-size: 0.96rem;
    }
}

/* Mobile account avatar — floating trigger (Instagram-style) */
@media (max-width: 768px) {
    .mob-account-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }

    .mob-account-btn__ring {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        padding: 2px;
        background: linear-gradient(135deg, rgba(212, 168, 83, 0.85), rgba(180, 130, 50, 0.55));
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
        transition: transform 0.15s ease;
    }

    .mob-account-btn:active .mob-account-btn__ring {
        transform: scale(0.93);
    }

    .mob-account-btn__avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        background: var(--surface-2, #1a1a2e);
        border: 2px solid var(--bg, #fff);
    }

    .mob-account-btn__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mob-account-btn__fallback {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--accent, #d4a853);
    }

    /* Profile tab — show user avatar instead of generic icon */
    .mob-tab--profile-anchor .mob-tab-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--surface-2, rgba(255,255,255,0.08));
    }

    .mob-tab--profile-anchor .mob-tab-avatar__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mob-tab--profile-anchor .mob-tab-avatar__fallback {
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--text-muted);
    }

    .mob-tab--profile-anchor.active .mob-tab-avatar {
        box-shadow: 0 0 0 2px var(--accent, #d4a853);
    }

    /* Profile page toolbar — settings gear */
    .myprof-toolbar__account {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--separator);
        border-radius: 12px;
        background: var(--surface-1, rgba(255,255,255,0.06));
        color: var(--text-muted);
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }

    .myprof-toolbar__account:active {
        background: var(--surface-2);
        color: var(--text);
    }

    .myprof-toolbar__actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        margin-left: auto;
    }
}

/* Logout confirmation sheet */
.logout-confirm {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.logout-confirm[hidden] {
    display: none !important;
}

body.logout-confirm-open {
    overflow: hidden;
    touch-action: none;
}

.logout-confirm__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(8, 10, 18, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

.logout-confirm__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    margin: 0 auto;
    padding: 0.45rem 0.95rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    background: var(--surface-elevated, #fff);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.14);
    animation: logout-confirm-in 0.2s ease-out;
}

:root[data-theme="dark"] .logout-confirm__panel {
    background: var(--surface-elevated, #1c1c1e);
}

.logout-confirm__handle {
    width: 2.2rem;
    height: 0.26rem;
    margin: 0.1rem auto 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-muted) 35%, transparent);
}

.logout-confirm__title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logout-confirm__text {
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.logout-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.logout-confirm__btn {
    min-height: 42px;
    justify-content: center;
    font-size: 0.88rem;
}

@keyframes logout-confirm-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
    .logout-confirm {
        align-items: center;
        padding: 1rem;
    }

    .logout-confirm__panel {
        border-radius: 16px;
        padding: 1rem 1.1rem;
    }
}
