u878978476_payment:root {
    --blue: #007AFF;
    --bg-color: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --text-main: #000000;
    --text-secondary: #8E8E93;
    --separator: #E5E5EA;
    --tab-bg: #F8F8F8;
    --tab-inactive: #999999;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    user-select: none;
    overflow: hidden; /* App-like feel */
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    overflow-y: auto;
    padding-bottom: 50px; /* Safe area for tabbar */
}

/* Navbar */
.navbar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.nav-btn {
    color: var(--blue);
    font-size: 17px;
    cursor: pointer;
}

.bold-btn {
    font-weight: 600;
}

.has-underline {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.icon-back {
    width: 22px;
    height: 22px;
    margin-right: -4px; /* Move chevron closer to text */
}

.nav-title {
    flex: 2;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
}

/* Toolbar */
.toolbar {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 12px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--separator);
    position: sticky;
    top: 44px;
    z-index: 10;
}

.tb-left, .tb-right {
    display: flex;
    align-items: center;
}

.tb-center {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.sort-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sort-item.active {
    color: var(--blue);
}

.icon-search {
    width: 20px;
    height: 20px;
    color: var(--text-main);
}

.icon-sort {
    width: 14px;
    height: 14px;
}

.sort-item.active .icon-sort {
    color: var(--blue);
}

.icon-back-small {
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.icon-grid {
    width: 22px;
    height: 22px;
    color: var(--text-main);
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    height: 60px;
    align-items: center;
    padding-left: 16px;
    cursor: pointer;
}

.list-item:active {
    background-color: #E5E5EA; /* iOS click feedback */
}

.item-icon {
    width: 40px;
    height: 40px;
    margin-right: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon svg {
    width: 32px;
    height: 38px;
}

.folder-icon svg {
    width: 38px;
    height: 38px;
}

.ipa-icon {
    width: 36px;
    height: 36px;
    background-color: #007AFF; /* App store blue background */
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-top: 2px;
}

.app-store-logo {
    width: 100%;
    height: 100%;
    transform: scale(1.1) translateY(-2px);
}

.ipa-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--blue);
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    height: 12px;
    line-height: 12px;
}

.item-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    border-bottom: 1px solid var(--separator);
    padding-right: 16px;
}

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

.item-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.folder-col {
    justify-content: center; /* purely center for folders */
}

.item-name {
    font-size: 17px;
    color: var(--text-main);
}

.item-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.item-extra-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-size {
    font-size: 13px;
    color: var(--text-secondary);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-info {
    width: 22px;
    height: 22px;
    color: var(--blue);
}

.icon-chevron {
    width: 20px;
    height: 20px;
    color: #C6C6C8;
}

/* Bottom Stats */
.bottom-stats {
    text-align: right;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-link {
    color: var(--text-secondary);
    text-decoration: underline;
    margin-right: 8px;
}

.stat-value {
    margin-left: 8px;
}

/* Tabbar Spacer */
.tabbar-spacer {
    height: 50px;
}

/* Tabbar */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--tab-bg);
    border-top: 1px solid var(--separator);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 20;
}

.tab-item {
    color: var(--tab-inactive);
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
}

.tab-item svg {
    width: 26px;
    height: 26px;
}

/* --- View File Info --- */
.section-title {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 24px 16px 8px 16px;
}

.info-block {
    background-color: var(--bg-color);
    border-top: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-main);
}

.action-btn {
    background-color: var(--bg-color);
    border-top: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 17px;
    color: var(--text-main);
    cursor: pointer;
}

.action-btn:active {
    background-color: #E5E5EA;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.glass-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 101;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 85%;
    max-width: 360px;
    padding: 24px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.glass-modal h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.glass-modal p {
    font-size: 15px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 24px;
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--blue);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

.modal-btn.pro-btn {
    background: linear-gradient(135deg, #007AFF, #00C6FF);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    animation: pulse 2s infinite;
}

.modal-btn.cancel-btn {
    background: transparent;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
}

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

.package-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.package-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.package-card:active {
    transform: scale(0.98);
}

.package-card.featured {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
}

.package-card.premium {
    border-color: #FF2D55;
    background: rgba(255, 45, 85, 0.05);
}

.pkg-price {
    font-size: 24px;
    font-weight: bold;
    width: 60px;
    color: var(--text-main);
    text-align: center;
}

.package-card.featured .pkg-price { color: #007AFF; }
.package-card.premium .pkg-price { color: #FF2D55; }

.pkg-features {
    margin: 0;
    padding-left: 12px;
    font-size: 13px;
    color: #444;
    border-left: 1px solid rgba(0,0,0,0.1);
    flex: 1;
}

.package-card.featured .pkg-features { border-left-color: rgba(0, 122, 255, 0.2); }
.package-card.premium .pkg-features { border-left-color: rgba(255, 45, 85, 0.2); }

.pkg-features li {
    margin-bottom: 4px;
}
.pkg-features li:last-child {
    margin-bottom: 0;
}

/* --- New UI Elements --- */
.close-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
}

.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--separator);
    font-size: 15px;
    background: #f9f9f9;
}

.box-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--blue);
    background: transparent;
    color: var(--blue);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--separator);
    background: white;
    font-size: 17px;
    color: var(--text-main);
    cursor: pointer;
}
.settings-row:active {
    background: #F2F2F7;
}
.settings-row:last-child {
    border-bottom: none;
}
.center-add svg {
    width: 32px;
    height: 32px;
}
