* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keep a single document scroller — never put overflow-x on body
   (it forces overflow-y:auto and creates a second scrollbar). */
html {
    overflow-x: clip;
}

@media (max-width: 809px) {
    html,
    body {
        touch-action: manipulation;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        overscroll-behavior: none;
    }
}

body {
    font-family: "Inter Tight", Inter, system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    color: #fff;
    overflow-x: visible;
    overflow-y: visible;
}

/* Header - 黑色背景；避开 iPhone 刘海 / 状态栏 */
.header {
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 80px;
}

/* 左侧：汉堡菜单 + Logo */
.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu i {
    color: white;
    font-size: 32px;
}

.hamburger-menu:hover i {
    color: #cccccc;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* EFOTUNE 文字品牌（替代圆形 logo 图） */
.brand-wordmark,
.logo-link--wordmark {
    font-family: "Syne", "Antonio", "Arial Narrow", sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    text-decoration: none;
}

.logo-link--wordmark {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.logo-link--wordmark:hover,
a.brand-wordmark:hover {
    color: #ffffff;
    opacity: 0.88;
}

.brand-wordmark--sidebar {
    display: block;
    text-align: center;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    padding: 20px 0;
}

.brand-wordmark--footer {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.logo-link img {
    height: 38px;
    width: auto;
}

/* 右侧：语言选择器 + 个人图标 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-btn i {
    font-size: 14px;
}

.language-btn .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

.current-language {
    font-weight: 600;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 16px;
    color: #d1d5db;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.language-option.selected {
    background: rgba(0, 212, 170, 0.14);
    color: #00d4aa;
    font-weight: 600;
}

/* 个人图标 - 缩小尺寸 */
.profile-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 170, 0.14);
    border: 1px solid rgba(0, 212, 170, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.18);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.profile-icon::before {
    display: none;
}

.profile-icon:hover {
    transform: scale(1.05);
    background: rgba(0, 212, 170, 0.22);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.28);
}

.profile-icon i {
    color: #00d4aa;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.profile-icon--notify {
    overflow: visible;
    margin-right: 8px;
}

.nav-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #00d4aa;
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    z-index: 2;
}

.nav-notify-badge.is-soft {
    background: rgba(0, 212, 170, 0.55);
    color: #0a0a0a;
}

.nav-notify-badge.is-urgent {
    background: #ff6b6b;
    color: #fff;
}

.nav-bottom-item--badge {
    position: relative;
}

.sidebar-notify-badge {
    top: 6px;
    right: 10px;
}

.menu-title-with-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.menu-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    flex: 0 0 auto;
}

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

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
}

/* ===== Sidebar — studio theme ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 20%, rgba(0, 212, 170, 0.12), transparent 55%),
        rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    --sb-accent: #00d4aa;
    --sb-line: rgba(255, 255, 255, 0.12);
    --sb-muted: rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: -100%;
    width: min(360px, 92vw);
    height: 100vh;
    height: 100dvh;
    z-index: 1999;
    overflow: hidden !important;
    transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
    color: #fff;
    font-family: "Inter Tight", Inter, system-ui, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 212, 170, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(124, 92, 255, 0.1), transparent 50%),
        #0a0a0a;
    border-right: 1px solid var(--sb-line);
}

.sidebar-content::-webkit-scrollbar {
    width: 3px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.45);
    border-radius: 10px;
}

.sidebar.active {
    left: 0;
}

.close-btn {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--sb-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.close-btn:hover {
    color: var(--sb-accent);
    border-color: rgba(0, 212, 170, 0.45);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(28px + env(safe-area-inset-top, 0px)) 22px calc(28px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.sidebar-logo,
.sidebar-logo-img {
    display: flex;
    justify-content: center;
    padding: 8px 0 0;
}

.sidebar-logo .brand-wordmark--sidebar,
.sidebar-logo-img .brand-wordmark--sidebar {
    padding: 8px 0 0;
    font-size: clamp(1.6rem, 5vw, 2rem);
}

.sb-kicker {
    margin: 8px 0 18px;
    text-align: center;
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sb-accent);
}

.sidebar-login {
    padding: 0 0 18px;
    display: flex;
    justify-content: center;
}

.sidebar-login .sidebar-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    padding: 0 1.6rem;
    border: 0 !important;
    border-radius: 999px !important;
    background: #00d4aa !important;
    color: #0a0a0a !important;
    font-family: "Inter Tight", Inter, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 212, 170, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sidebar-login .sidebar-login-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.35);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px 6px;
}

.user-id-display {
    margin-bottom: 6px;
    color: #fff;
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.user-referral {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--sb-muted);
    font-family: "Antonio", "Arial Narrow", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.user-referral--link {
    text-decoration: none;
    color: inherit;
}
.user-referral--link:hover {
    color: var(--sb-accent);
}

.copy-icon {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease;
}

.copy-icon:hover {
    color: var(--sb-accent);
}

.user-level-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 500;
}

.user-level-text strong {
    color: var(--sb-accent);
    font-weight: 700;
}

.user-balance-card {
    width: 100%;
    margin: 14px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--sb-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
}

.balance-label {
    margin-bottom: 6px;
    color: var(--sb-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.balance-amount {
    color: #fff;
    font-family: "Antonio", "Arial Narrow", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.sb-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 0;
}

.remittance-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    margin: 0 !important;
    min-height: 46px;
    padding: 0 1.2rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    font-family: "Inter Tight", Inter, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border: 1px solid var(--sb-line) !important;
    box-shadow: none !important;
}

.remittance-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 170, 0.45) !important;
    color: var(--sb-accent) !important;
    box-shadow: none !important;
}

.review-music-sidebar-btn {
    position: relative !important;
    background: #00d4aa !important;
    border-color: #00d4aa !important;
    color: #0a0a0a !important;
    box-shadow: 0 10px 28px rgba(0, 212, 170, 0.25) !important;
    gap: 8px !important;
}

.sb-left-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #0a0a0a;
    color: #00d4aa;
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-style: normal;
}

.sb-left-badge[hidden] {
    display: none !important;
}

.remittance-btn--ghost {
    background: transparent !important;
}

.review-music-sidebar-btn:hover {
    filter: brightness(1.05);
    color: #0a0a0a !important;
    border-color: #00d4aa !important;
}

.sidebar-nav-bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 18px 0 0;
    padding: 14px 0;
    border-top: 1px solid var(--sb-line);
    border-bottom: 1px solid var(--sb-line);
    background: transparent;
}

.nav-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-bottom-item i {
    font-size: 1rem;
    color: var(--sb-accent);
}

.nav-bottom-item.disabled {
    opacity: 0.35;
}

.nav-bottom-item:not(.disabled):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-menu-list {
    flex: 1 1 auto;
    margin: 10px 0 0;
    padding: 0;
}

.menu-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item:last-child {
    border-bottom: 0;
}

.menu-title,
.menu-title-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.menu-title:hover,
.menu-title-link:hover {
    color: var(--sb-accent);
    background: transparent;
}

.menu-title i,
.menu-title-link i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.menu-title-link:hover i {
    color: var(--sb-accent);
}

.menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 12px;
}

.menu-content.active {
    max-height: 300px;
    padding: 8px 12px 12px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0 0;
    min-height: 46px;
    padding: 0 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.logout-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 12px;
        height: 56px;
        gap: 8px;
    }

    .header-left {
        gap: 6px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .header-right {
        gap: 6px;
        flex: 0 0 auto;
    }

    .hamburger-menu {
        flex-shrink: 0;
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }

    .hamburger-menu i {
        font-size: 22px;
    }

    .logo-link--wordmark {
        font-size: 1rem;
        letter-spacing: -0.03em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .logo-link img {
        height: 30px;
    }

    /* Compact language control: globe icon only — no EN pill overlapping brand */
    .language-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        gap: 0;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.16);
    }

    .language-btn .current-language,
    .language-btn .fa-chevron-down {
        display: none;
    }

    .language-btn i.fa-globe {
        font-size: 15px;
        margin: 0;
    }

    .profile-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        box-shadow: none;
    }

    .profile-icon i {
        font-size: 15px;
    }

    .profile-icon--notify {
        margin-right: 0;
    }

    .sidebar {
        width: min(340px, 92vw);
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }

    .logo-link--wordmark {
        font-size: 0.95rem;
    }

    .sidebar {
        width: min(100%, 100vw);
    }

    .sidebar-content {
        padding: calc(24px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
    }
}

/* Studio guided empty / error sheet */
.studio-guide {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(8px);
}

.studio-guide[hidden] {
    display: none !important;
}

.studio-guide__panel {
    width: min(420px, 100%);
    padding: 28px 24px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111;
    color: #fff;
    font-family: "Inter Tight", system-ui, sans-serif;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.studio-guide__kicker {
    margin: 0 0 8px;
    color: #00d4aa;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.studio-guide__title {
    margin: 0;
    font-family: "Syne", "Antonio", sans-serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.studio-guide__body {
    margin: 12px 0 0;
    color: rgb(170, 170, 170);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.4;
}

.studio-guide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.studio-guide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #fff;
    font-family: "Antonio", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.studio-guide__btn--primary {
    background: #00d4aa;
    border-color: #00d4aa;
    color: #0a0a0a;
}

.studio-guide__dismiss {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: rgb(140, 140, 140);
    font-family: "Inter Tight", system-ui, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.studio-guide__dismiss:hover {
    color: #fff;
}

/* Footer 样式 */
.footer {
    background: #000;
    padding: 20px;
    width: 100%;
    margin: 0;
    display: block;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
}

/* Override legacy min CSS (35×35 logo box) — wordmark needs auto size */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto !important;
    height: auto !important;
    overflow: visible;
}

.footer-logo .brand-wordmark--footer {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.footer-copyright {
    color: #fff;
    font-size: 13px;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.footer-text {
    color: #fff;
    font-size: 13px;
}

.footer-btn {
    display: inline;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-btn:hover {
    background: none;
    border: 0;
    color: #00d4aa;
}

.footer-content .separator {
    color: rgba(255, 255, 255, 0.22);
    margin: 0 2px;
    font-weight: 400;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.studio-a2hs {
    --a2hs-pad: env(safe-area-inset-bottom, 0px);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    padding: 12px 16px calc(12px + var(--a2hs-pad));
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: rgba(8, 8, 8, 0.98);
    color: #fff;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.4);
}
.studio-a2hs[hidden] { display: none !important; }
.studio-a2hs p {
    margin: 0;
    flex: 1 1 180px;
    font-size: 0.9rem;
    line-height: 1.35;
}
.studio-a2hs__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
.studio-a2hs__actions button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}
#studioA2HSInstall { background: #00d4aa; color: #0a0a0a; }
#studioA2HSInstall[hidden] { display: none !important; }
#studioA2HSDismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff;
}
.studio-a2hs--ios #studioA2HSDismiss {
    background: #00d4aa;
    border-color: transparent !important;
    color: #0a0a0a;
}
/* Tab bar height = content + iPhone home-indicator safe area */
:root {
    --studio-tabbar-h: calc(58px + env(safe-area-inset-bottom, 0px));
}

/* Lift mobile tab bar above the install strip when it is open */
body.a2hs-open .studio-tabbar {
    bottom: var(--a2hs-height, 72px);
}
body.a2hs-open:has(.studio-tabbar) .main-content {
    padding-bottom: calc(var(--studio-tabbar-h) + 24px + var(--a2hs-height, 72px));
}
body.a2hs-open:has(.studio-tabbar) .footer {
    margin-bottom: calc(var(--studio-tabbar-h) + 16px + var(--a2hs-height, 72px));
    padding-bottom: 12px;
}

/* Mobile studio tab bar */
.studio-tabbar {
    display: none;
}
@media (max-width: 820px) {
    /* Keep page + footer clear of fixed tab bar (incl. home indicator) */
    body:has(.studio-tabbar) .main-content {
        padding-bottom: calc(var(--studio-tabbar-h) + 24px);
    }
    body:has(.studio-tabbar) .footer {
        margin-bottom: calc(var(--studio-tabbar-h) + 16px);
        padding-bottom: 12px;
    }
    .studio-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1400;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        min-height: 58px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(10, 10, 10, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .studio-tabbar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 48px;
        color: rgba(255, 255, 255, 0.62);
        text-decoration: none;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        border-radius: 10px;
    }
    .studio-tabbar__item i { font-size: 1.05rem; }
    .studio-tabbar__item.is-active,
    .studio-tabbar__item:hover {
        color: #00d4aa;
        background: rgba(0, 212, 170, 0.08);
    }
    .studio-tabbar__item:focus-visible {
        outline: 2px solid #00d4aa;
        outline-offset: 2px;
    }
}

/* Global touch / focus helpers for studio */
button,
a.remittance-btn,
.studio-home__btn,
.submit-btn {
    min-height: 44px;
}
:focus-visible {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* Footer 响应式 */
@media (max-width: 768px) {
    .footer {
        padding: 15px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 8px;
    }

    .footer-logo {
        width: auto !important;
        height: auto !important;
    }

    .footer-copyright,
    .footer-text {
        font-size: 11px;
    }

    .separator {
        font-size: 11px;
    }
}

/* Pull-to-refresh indicator */
.studio-ptr {
    --ptr: 0;
    position: fixed;
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 50%;
    z-index: 1600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8rem;
    transform: translate(-50%, calc(-120% + (var(--ptr) * 56px)));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.studio-ptr.is-show { opacity: 1; }
.studio-ptr.is-ready { border-color: rgba(0, 212, 170, 0.55); color: #00d4aa; }
.studio-ptr.is-loading .studio-ptr__spinner {
    animation: studioPtrSpin 0.7s linear infinite;
}
.studio-ptr__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #00d4aa;
    border-radius: 50%;
}
@keyframes studioPtrSpin { to { transform: rotate(360deg); } }

/* Soft keyboard avoid */
body.kb-open .main-content,
body.kb-open .withdraw-page,
body.kb-open .bind-account-container {
    padding-bottom: calc(24px + var(--kb-offset, 0px)) !important;
}
body.kb-open {
    padding-bottom: var(--kb-offset, 0px);
}

/* Review swipe flash */
.opt-swipe-flash {
    position: fixed;
    top: 42%;
    left: 50%;
    z-index: 1700;
    padding: 14px 28px;
    border-radius: 16px;
    font-family: "Syne", "Antonio", sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.opt-swipe-flash.is-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.opt-swipe-flash.is-left {
    color: #0a0a0a;
    background: rgba(255, 255, 255, 0.9);
}
.opt-swipe-flash.is-right {
    color: #0a0a0a;
    background: #00d4aa;
}


