:root {
    --bg-color: #1c1c1e;
    --text-color: #ffffff;
    --hint-color: #8e8e93;
    --button-color: #0A84FF;
    --secondary-bg: #2c2c2e;
    --card-bg: #2c2c2e;
    --nav-bg: #1c1c1e;
    --accent: #0A84FF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

body.wallet-theme {
    background: #0f0f0f;
}

/* ========== NOTIFICATION BANNER ========== */
.notif-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 8px 16px;
    background: linear-gradient(135deg, rgba(10,132,255,0.15), rgba(52,199,89,0.1));
    border: 1px solid rgba(10,132,255,0.3);
    border-radius: 14px;
    cursor: pointer;
    animation: slideDown 0.4s ease;
}

.notif-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.notif-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

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

/* ========== TOP HEADER ========== */
.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A84FF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}
.header-avatar i { width: 20px; height: 20px; }

/* ========== WALLET INFO ========== */
.wallet-info {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.wallet-address {
    font-size: 13px;
    color: var(--hint-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    cursor: pointer;
}
.icon-sm { width: 14px; height: 14px; }

.wallet-balance {
    font-size: 48px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.icon-star-big { width: 32px; height: 32px; color: #ffaa00; }

.balance-pulse {
    animation: balancePulse 0.6s ease;
}

@keyframes balancePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: #34c759; }
    100% { transform: scale(1); }
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 30px;
}

.action-btn {
    background: #1c1c1e;
    border-radius: 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
}
.action-btn:active { transform: scale(0.92); }
.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #2c2c2e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-icon i { width: 22px; height: 22px; color: white; }
.action-text { font-size: 12px; font-weight: 600; color: var(--hint-color); }

/* ========== MAIN CONTENT ========== */
.content-scroll { padding: 0 16px; }

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active { display: block; }

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

/* ========== LISTS ========== */
.list-container {
    background: #1a1a1c;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.list-header {
    padding: 16px 20px 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hint-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-list { display: flex; flex-direction: column; }

.list-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    animation: itemAppear 0.3s ease both;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: rgba(255,255,255,0.05); }

@keyframes itemAppear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.item-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #007aff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}
.item-icon-box i { width: 22px; height: 22px; color: white; }

.item-info { flex: 1; }
.item-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.item-subtitle { font-size: 12px; color: var(--hint-color); }

.item-right { text-align: right; }
.item-price-val {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.item-price-val i { width: 14px; height: 14px; }
.item-fiat { font-size: 12px; color: var(--hint-color); margin-top: 2px; }

/* ========== LOADING PLACEHOLDER ========== */
.loading-placeholder {
    padding: 40px;
    display: flex;
    justify-content: center;
}
.loader-dots { display: flex; gap: 6px; }
.loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hint-color);
    animation: dotBounce 1.4s infinite ease-in-out both;
}
.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ========== BOTTOM NAV ========== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 16px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--hint-color);
    flex: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-item i { width: 24px; height: 24px; }
.nav-item span { font-size: 11px; font-weight: 500; }
.nav-item.active { color: var(--accent); }

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    align-items: flex-end;
}
.modal.active { display: flex; }
.modal-content {
    width: 100%;
    background: #1a1a1c;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transform: translateY(100%);
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 92vh;
    overflow-y: auto;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h3 { font-size: 20px; font-weight: 700; }
.close-icon { width: 24px; height: 24px; color: var(--hint-color); cursor: pointer; }

.item-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}
.item-preview i { width: 48px; height: 48px; margin-bottom: 12px; }

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 16px;
}
.total-price { font-size: 24px; font-weight: 800; }

.btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.1s;
}
.btn:active { opacity: 0.8; transform: scale(0.98); }
.primary-btn { background: var(--button-color); color: white; }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.alert-box {
    background: rgba(255, 170, 0, 0.08);
    border-left: 4px solid #ffaa00;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #ffcc55;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-details {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.card-label { font-size: 12px; color: var(--hint-color); margin-bottom: 4px; }
.card-number {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: white;
}

/* ========== HOLD BUTTON ========== */
.hold-btn {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    margin-top: 8px;
}
.hold-progress {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: rgba(255,255,255,0.25);
    z-index: 1;
    border-radius: 16px;
}

.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* ========== SUCCESS VIEW ========== */
.success-emoji {
    font-size: 80px;
    animation: emojiPop 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    margin-bottom: 8px;
}
@keyframes emojiPop {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.success-desc {
    color: var(--hint-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,170,0,0.1);
    border: 1px solid rgba(255,170,0,0.3);
    font-size: 14px;
    font-weight: 600;
    color: #ffaa00;
    margin-top: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffaa00;
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ========== INPUT FIELD ========== */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}
.input-field:focus {
    border-color: var(--accent);
}
.input-field::placeholder {
    color: rgba(255,255,255,0.25);
}

/* ========== SPIN ========== */
.spin { animation: spin 1s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
