@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #007AFF;
    --accent-gradient: linear-gradient(135deg, #007AFF, #5856D6);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    --glass-glow: 0 0 60px rgba(0, 122, 255, 0.08);
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.35);
    --success: #30D158;
    --warning: #FF9F0A;
    --error: #FF453A;
    --premium-gradient: linear-gradient(135deg, #5E5CE6, #BF5AF2);
    --stars-gradient: linear-gradient(135deg, #FF9F0A, #FF453A);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-ultra-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-butter: cubic-bezier(0.23, 1, 0.32, 1);
    --animation-duration-fast: 280ms;
    --animation-duration-normal: 400ms;
    --animation-duration-slow: 600ms;
    --liquid-blur: 70px;
    --liquid-saturation: 130%;
    --liquid-brightness: 1.015;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--primary);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(88, 86, 214, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 122, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(175, 82, 222, 0.08) 0%, transparent 60%);
    color: var(--text-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

.app-container {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-animation {
    width: 180px;
    height: 180px;
    animation: pulse 2s ease-in-out infinite;
}

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

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    padding-top: 56px;
    padding-bottom: 90px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
}

.lazy-image {
    filter: blur(10px);
    transform: scale(1.05);
    opacity: 0.6;
    transition: filter var(--animation-duration-normal) var(--ease-out-expo),
                transform var(--animation-duration-normal) var(--ease-out-expo),
                opacity var(--animation-duration-normal) var(--ease-out-expo);
    will-change: filter, transform, opacity;
}

.lazy-image.loaded {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    margin-bottom: 12px;
    margin-top: 12px;
}

.header-logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.06));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 0.5px solid rgba(0, 122, 255, 0.15);
    border-radius: 22px;
    padding: 6px 12px 6px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.header-balance:active {
    transform: scale(0.95);
}

.header-balance img {
    width: 18px;
    height: 18px;
}

.page {
    display: none;
    animation: pageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page.active {
    display: block;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    border: 0.5px solid rgba(255, 255, 255, 0.035);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 
        0 6px 40px rgba(0, 0, 0, 0.06),
        0 2px 10px rgba(0, 0, 0, 0.03),
        var(--glass-inner-glow);
    transition: 
        transform 0.5s var(--ease-butter),
        box-shadow 0.5s var(--ease-ultra-smooth),
        background 0.4s var(--ease-smooth);
    position: relative;
    will-change: transform;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 45%);
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.4s var(--ease-smooth);
}

.glass-card:active {
    transform: scale(0.985);
    box-shadow: 
        0 3px 20px rgba(0, 0, 0, 0.05),
        var(--glass-inner-glow);
}

.glass-card:active::before {
    opacity: 1;
}

.glass-input {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 0.5px solid var(--glass-border-light);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: all 0.35s var(--ease-spring);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.06),
        var(--glass-inner-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-input:focus {
    border-color: rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.06), rgba(88, 86, 214, 0.03));
    box-shadow: 
        0 0 0 3px rgba(0, 122, 255, 0.12),
        0 0 30px rgba(0, 122, 255, 0.08),
        inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.glass-input::placeholder {
    color: var(--text-muted);
}

.glass-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.35s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.glass-button.primary {
    background: linear-gradient(135deg, #007AFF, #5E5CE6);
    color: white;
    box-shadow: 
        0 4px 20px rgba(0, 122, 255, 0.25),
        0 2px 8px rgba(0, 122, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-button.primary:active {
    transform: scale(0.975);
    box-shadow: 
        0 2px 12px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-button.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: var(--text-primary);
    border: 0.5px solid var(--glass-border-light);
    box-shadow: var(--glass-inner-glow);
}

.glass-button.secondary:active {
    transform: scale(0.975);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.glass-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 340px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
    backdrop-filter: blur(100px) saturate(var(--liquid-saturation)) brightness(1.02);
    -webkit-backdrop-filter: blur(100px) saturate(var(--liquid-saturation)) brightness(1.02);
    border-radius: 34px;
    padding: 10px 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.045);
    box-shadow: 
        0 6px 40px rgba(0, 0, 0, 0.08),
        0 16px 56px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -0.5px 0 rgba(0, 0, 0, 0.08);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 20px;
    cursor: pointer;
    transition: 
        background 0.5s var(--ease-butter),
        box-shadow 0.5s var(--ease-ultra-smooth),
        transform 0.3s var(--ease-smooth);
    position: relative;
    min-width: 60px;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.06));
    box-shadow: 
        0 0 25px rgba(0, 122, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item .nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    opacity: 0.4;
    transition: all 0.35s var(--ease-out-expo);
    stroke-width: 1.75;
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: var(--accent);
    transform: scale(1.08);
}

.nav-item .nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1px;
    color: var(--text-muted);
    transition: all 0.35s var(--ease-out-expo);
}

.nav-item.active .nav-label {
    color: var(--accent);
    font-weight: 600;
}

.page-header {
    text-align: center;
    margin-bottom: 22px;
    animation: fadeInDown 0.5s ease forwards;
}

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

.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.action-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    border: 0.5px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 
        0 6px 32px rgba(0, 0, 0, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.03),
        var(--glass-inner-glow);
    transition: 
        transform 0.5s var(--ease-butter),
        box-shadow 0.5s var(--ease-ultra-smooth),
        background 0.4s var(--ease-smooth);
    animation: fadeUp 0.6s var(--ease-butter) forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 35%);
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.4s var(--ease-smooth);
}

.action-card:active::before {
    opacity: 1;
}

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

.action-card:nth-child(2) {
    animation-delay: 0.08s;
}

.action-card:active {
    transform: scale(0.97);
}

.action-card.premium {
    background: linear-gradient(165deg, rgba(94, 92, 230, 0.15), rgba(191, 90, 242, 0.06));
    border-color: rgba(94, 92, 230, 0.2);
}

.action-card.stars {
    background: linear-gradient(165deg, rgba(255, 159, 10, 0.15), rgba(255, 69, 58, 0.06));
    border-color: rgba(255, 159, 10, 0.2);
}

.action-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.action-card:hover .action-icon {
    transform: scale(1.12) rotate(-5deg);
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.action-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.duration-selector {
    display: flex;
    gap: 10px;
    margin: 18px 0;
}

.duration-option {
    flex: 1;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.duration-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.duration-option.selected::before {
    opacity: 1;
}

.duration-option.selected {
    border-color: rgba(0, 122, 255, 0.3);
    background: linear-gradient(160deg, rgba(0, 122, 255, 0.12), rgba(88, 86, 214, 0.06));
    box-shadow: 
        0 0 0 1.5px rgba(0, 122, 255, 0.2),
        0 4px 20px rgba(0, 122, 255, 0.15),
        inset 0 0 20px rgba(0, 122, 255, 0.03);
}

.duration-months {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.duration-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.duration-price {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.amount-preset {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.preset-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preset-btn:hover, .preset-btn.active {
    background: linear-gradient(135deg, var(--accent), #5856D6);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

.price-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 20px;
    margin: 18px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.price-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-ton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.price-ton img {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.price-ton span {
    font-size: 15px;
    color: var(--text-secondary);
}

.wallet-card {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(88, 86, 214, 0.1));
    border: 1px solid rgba(0, 122, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 122, 255, 0.15),
        inset 0 0 60px rgba(0, 122, 255, 0.05);
}

.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wallet-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.wallet-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wallet-status.connected {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(52, 199, 89, 0.1));
    color: var(--success);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.wallet-status.disconnected {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 59, 48, 0.1));
    color: var(--error);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.wallet-balance {
    text-align: center;
    padding: 18px 0;
}

.balance-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 36px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.username-input-wrapper {
    position: relative;
}

.username-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.username-input-wrapper .glass-input {
    padding-left: 34px;
}

.user-preview {
    display: none;
    align-items: center;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12), rgba(52, 199, 89, 0.05));
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 14px;
    animation: userSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 
        0 8px 24px rgba(52, 199, 89, 0.15),
        inset 0 0 30px rgba(52, 199, 89, 0.03);
}

@keyframes userSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-preview.show {
    display: flex;
}

.user-avatar-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(52, 199, 89, 0.3);
}

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

.user-avatar-img.loaded {
    display: block;
}

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

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

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.user-check {
    flex-shrink: 0;
    margin-left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 13px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-radius: 14px;
}

.user-loading.show {
    display: flex;
}

.user-not-found {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), rgba(255, 59, 48, 0.05));
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 14px;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    animation: userSlideIn 0.3s ease forwards;
}

.user-not-found.show {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.small {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

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

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 122, 255, 0.3),
        0 0 0 3px rgba(0, 122, 255, 0.2);
    animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3), 0 0 0 3px rgba(0, 122, 255, 0.2);
        transform: translateY(0);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4), 0 0 0 4px rgba(0, 122, 255, 0.25);
        transform: translateY(-4px);
    }
}

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

.profile-avatar-img.loaded {
    display: block;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
}

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

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.profile-username {
    font-size: 15px;
    color: var(--text-secondary);
}

.wallet-section-card {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(88, 86, 214, 0.08));
    border: 1px solid rgba(0, 122, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 122, 255, 0.12),
        inset 0 0 60px rgba(0, 122, 255, 0.03);
}

.wallet-row {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.wallet-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 14px;
    flex-shrink: 0;
}

.wallet-row-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-info {
    flex: 1;
    min-width: 0;
}

.wallet-title {
    font-size: 15px;
    font-weight: 600;
}

.wallet-address-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.wallet-status-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-status-badge.connected {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(52, 199, 89, 0.1));
    color: var(--success);
}

.wallet-status-badge.disconnected {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 59, 48, 0.1));
    color: var(--error);
}

.wallet-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

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

.balance-amount {
    font-size: 18px;
    font-weight: 700;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.section-title-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.settings-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: opacity 0.2s;
}

.settings-item:active {
    opacity: 0.7;
}

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

.settings-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(88, 86, 214, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: var(--accent);
}

.settings-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.settings-value {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 8px;
}

.settings-arrow {
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 36px 16px;
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 14px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.04) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    max-width: 85%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(52, 199, 89, 0.4);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(52, 199, 89, 0.1));
    box-shadow: 0 12px 40px rgba(52, 199, 89, 0.2);
}

.toast.error {
    border-color: rgba(255, 59, 48, 0.4);
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 59, 48, 0.1));
    box-shadow: 0 12px 40px rgba(255, 59, 48, 0.2);
}

.video-preview {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.info-banner {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.05));
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.5s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.info-icon {
    flex-shrink: 0;
    color: var(--accent);
    width: 20px;
    height: 20px;
}

.info-banner-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 360px) {
    .duration-selector {
        flex-direction: column;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        max-width: 280px;
    }
}

#loading-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.8);
}

#loading-overlay .loading-spinner {
    width: 48px;
    height: 48px;
    border-width: 3px;
}

.gift-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gift-filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:active {
    transform: scale(0.95);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--accent), #5E5CE6);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.gift-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    border: 0.5px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 6px 32px rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(0, 0, 0, 0.025),
        var(--glass-inner-glow);
    transition: 
        transform 0.5s var(--ease-butter),
        box-shadow 0.5s var(--ease-ultra-smooth),
        opacity 0.6s var(--ease-smooth);
    opacity: 0;
    transform: translateY(25px);
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
}

.gift-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 30%);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.4s var(--ease-smooth);
}

.gift-card:active::before {
    opacity: 1;
}

.gift-card.visible {
    animation: giftCardAppear var(--animation-duration-normal) var(--ease-out-expo) forwards;
}

@keyframes giftCardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gift-card:nth-child(1) { --stagger-delay: 0ms; }
.gift-card:nth-child(2) { --stagger-delay: 50ms; }
.gift-card:nth-child(3) { --stagger-delay: 100ms; }
.gift-card:nth-child(4) { --stagger-delay: 150ms; }
.gift-card:nth-child(5) { --stagger-delay: 200ms; }
.gift-card:nth-child(6) { --stagger-delay: 250ms; }
.gift-card:nth-child(n+7) { --stagger-delay: 300ms; }

.gift-card.visible {
    animation-delay: var(--stagger-delay);
}

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

.gift-lottie {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.gift-lottie.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerMove 1.5s ease-in-out infinite;
    border-radius: 12px;
    z-index: 1;
}

.gift-lottie.loaded::before {
    display: none;
}

.gift-lottie lottie-player,
.gift-lottie dotlottie-player {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--animation-duration-normal) var(--ease-out-expo);
}

.gift-lottie.loaded lottie-player,
.gift-lottie.loaded dotlottie-player {
    opacity: 1;
}


.gift-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.gift-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.gift-price img {
    width: 18px;
    height: 18px;
}

.gift-actions {
    display: flex;
    gap: 8px;
}

.gift-actions .buy-btn {
    flex: 1;
    padding: 10px 12px;
    background: linear-gradient(135deg, #007AFF, #5E5CE6);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gift-actions .buy-btn:active {
    transform: scale(0.95);
}

.gift-actions .view-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.gift-actions .view-btn:active {
    transform: scale(0.95);
}

.shimmer-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.shimmer-lottie {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerMove 1.5s ease-in-out infinite;
}

.shimmer-text {
    width: 70%;
    height: 16px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerMove 1.5s ease-in-out infinite;
    animation-delay: 0.1s;
}

.shimmer-price {
    width: 50%;
    height: 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerMove 1.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

.shimmer-actions {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerMove 1.5s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes shimmerMove {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gift-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-spring);
}

.gift-modal.show {
    opacity: 1;
    visibility: visible;
}

.gift-modal-content {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation)) brightness(var(--liquid-brightness));
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    transform: scale(0.92) translateY(30px);
    transition: all 0.45s var(--ease-spring);
    box-shadow: 
        0 8px 48px rgba(0, 0, 0, 0.2),
        0 24px 80px rgba(0, 0, 0, 0.15),
        var(--glass-inner-glow);
    position: relative;
    overflow: hidden;
}

.gift-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 30%);
    pointer-events: none;
}

.gift-modal.show .gift-modal-content {
    transform: scale(1) translateY(0);
}

.gift-modal-lottie {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.gift-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gift-modal-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
}

.gift-modal-price img {
    width: 24px;
    height: 24px;
}

.gift-modal-actions {
    display: flex;
    gap: 12px;
}

.gift-modal-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gift-modal-actions .cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: var(--glass-inner-glow);
}

.gift-modal-actions .confirm-btn {
    background: linear-gradient(135deg, #007AFF, #5E5CE6);
    border: none;
    color: white;
    box-shadow: 
        0 4px 20px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.deposit-section {
    background: linear-gradient(165deg, rgba(48, 209, 88, 0.08), rgba(48, 209, 88, 0.03));
    border: 0.5px solid rgba(48, 209, 88, 0.15);
    box-shadow: 
        0 4px 24px rgba(48, 209, 88, 0.05),
        var(--glass-inner-glow);
}

.deposit-info {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.deposit-amount-section {
    margin-bottom: 16px;
}

.deposit-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.deposit-input-icon {
    position: absolute;
    left: 14px;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.deposit-amount-input {
    padding-left: 48px !important;
    font-size: 18px;
    font-weight: 600;
}

.deposit-presets {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.deposit-presets .preset-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.deposit-presets .preset-btn:active {
    transform: scale(0.96);
}

.deposit-presets .preset-btn.active {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.25), rgba(48, 209, 88, 0.15));
    border-color: rgba(48, 209, 88, 0.5);
    color: #30D158;
}

.deposit-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #30D158, #28a745) !important;
    margin-top: 16px;
}

.deposit-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.deposit-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(48, 209, 88, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: #30D158;
}

.deposit-address-section {
    opacity: 0.8;
}

.deposit-address-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
}

.deposit-address {
    flex: 1;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), #5E5CE6);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

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

.inventory-section {
    background: linear-gradient(165deg, rgba(255, 159, 10, 0.1), rgba(255, 159, 10, 0.04));
    border: 1px solid rgba(255, 159, 10, 0.2);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.inventory-item {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeUp 0.3s var(--ease-out-expo) forwards;
    opacity: 0;
}

.inventory-item:nth-child(2) { animation-delay: 0.05s; }
.inventory-item:nth-child(3) { animation-delay: 0.1s; }

.inventory-lottie {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    margin-bottom: 8px;
    cursor: pointer;
}

.inventory-lottie lottie-player,
.inventory-lottie dotlottie-player {
    width: 100%;
    height: 100%;
}

.inventory-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-bottom: 6px;
}

.inventory-status-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.inventory-status-badge.pending {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.25), rgba(255, 159, 10, 0.15));
    color: var(--warning);
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.inventory-status-badge.withdrawn {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.25), rgba(48, 209, 88, 0.15));
    color: var(--success);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.inventory-withdraw-btn {
    width: 100%;
    padding: 8px 10px;
    background: linear-gradient(135deg, #007AFF, #5E5CE6);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inventory-withdraw-btn:active {
    transform: scale(0.95);
}

.inventory-withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inventory-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.withdraw-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.withdraw-modal.show {
    opacity: 1;
    visibility: visible;
}

.withdraw-modal-content {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px;
    max-width: 340px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s var(--ease-out-expo);
}

.withdraw-modal.show .withdraw-modal-content {
    transform: scale(1) translateY(0);
}

.withdraw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.withdraw-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.close-modal-btn:active {
    transform: scale(0.95);
}

.withdraw-modal-gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.withdraw-gift-lottie {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    margin-bottom: 12px;
}

.withdraw-gift-lottie lottie-player {
    width: 100%;
    height: 100%;
}

.withdraw-gift-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.withdraw-form {
    margin-bottom: 20px;
}

.withdraw-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 360px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Admin Panel Styles */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.users {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(0, 122, 255, 0.1));
    color: #007AFF;
}

.stat-icon.orders {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.2), rgba(48, 209, 88, 0.1));
    color: #30D158;
}

.stat-icon.gifts {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.2), rgba(255, 159, 10, 0.1));
    color: #FF9F0A;
}

.stat-icon.revenue {
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.2), rgba(94, 92, 230, 0.1));
    color: #5E5CE6;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px !important;
    cursor: pointer;
}

.admin-menu-item:active {
    transform: scale(0.98);
}

.menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon.gifts {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.2), rgba(255, 159, 10, 0.1));
    color: #FF9F0A;
}

.menu-icon.orders {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.2), rgba(48, 209, 88, 0.1));
    color: #30D158;
}

.menu-icon.withdrawals {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.2), rgba(255, 69, 58, 0.1));
    color: #FF453A;
}

.menu-icon.users {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(0, 122, 255, 0.1));
    color: #007AFF;
}

.menu-icon.settings {
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.2), rgba(94, 92, 230, 0.1));
    color: #5E5CE6;
}

.menu-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.menu-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

.user-search-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.user-search-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(48, 209, 88, 0.08));
    border: 1px solid rgba(48, 209, 88, 0.3);
    border-radius: 14px;
}

.user-preview-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5E5CE6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.user-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-preview-initial {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.user-preview-info {
    flex: 1;
    min-width: 0;
}

.user-preview-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-preview-username {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.user-preview-check {
    flex-shrink: 0;
}

/* ========== iOS SOFT LIQUID GLASS EFFECTS ========== */

/* Soft Liquid Glass - Premium iOS 18 Style */
.liquid-glass {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(60px) saturate(140%) brightness(1.05);
    -webkit-backdrop-filter: blur(60px) saturate(140%) brightness(1.05);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.12),
        0 8px 40px rgba(0, 0, 0, 0.08),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

/* Soft Glass Card - Gentle iOS Style */
.glass-card {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.025) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    backdrop-filter: blur(50px) saturate(130%);
    -webkit-backdrop-filter: blur(50px) saturate(130%);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 
        0 2px 16px rgba(0, 0, 0, 0.1),
        0 6px 30px rgba(0, 0, 0, 0.06),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.5px;
    background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.15) 50%, transparent 90%);
    opacity: 0.8;
}

/* Ultra Soft Glass - Very subtle */
.soft-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Frosted Glass - More visible */
.frosted-glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(80px) saturate(150%);
    -webkit-backdrop-filter: blur(80px) saturate(150%);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ========== BLUR SHIMMER LOADING ========== */

@keyframes blurShimmer {
    0% {
        background-position: -200% 0;
        filter: blur(8px);
    }
    50% {
        filter: blur(4px);
    }
    100% {
        background-position: 200% 0;
        filter: blur(8px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* ========== ENHANCED BLUR SHIMMER LOADING ========== */

.blur-shimmer {
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.06) 25%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 75%,
        rgba(255, 255, 255, 0.02) 100%
    );
    background-size: 300% 100%;
    animation: liquidShimmer 2.5s ease-in-out infinite;
    filter: blur(6px);
}

@keyframes liquidShimmer {
    0% { background-position: 250% 0; }
    100% { background-position: -150% 0; }
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 rgba(0, 122, 255, 0);
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(0, 122, 255, 0.06);
        transform: scale(1.005);
    }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.015); opacity: 1; }
}

@keyframes ultraSoftPulse {
    0%, 100% { 
        opacity: 0.85;
        filter: brightness(1);
    }
    50% { 
        opacity: 1;
        filter: brightness(1.02);
    }
}

.shimmer-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(50px) saturate(120%);
    -webkit-backdrop-filter: blur(50px) saturate(120%);
    border: 0.5px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 16px;
    animation: pulseGlow 3s var(--ease-ultra-smooth) infinite, breathe 4s var(--ease-smooth) infinite;
    position: relative;
    overflow: hidden;
}

.shimmer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.shimmer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: liquidShimmer 2s ease-in-out infinite;
    border-radius: inherit;
    pointer-events: none;
}

.shimmer-lottie {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.shimmer-lottie::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.04) 75%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: liquidShimmer 1.8s ease-in-out infinite;
    filter: blur(2px);
}

.shimmer-lottie::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(0, 122, 255, 0.4);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

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

.shimmer-text {
    height: 16px;
    width: 70%;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.shimmer-text::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: liquidShimmer 1.6s ease-in-out infinite;
    animation-delay: 0.1s;
}

.shimmer-price {
    height: 22px;
    width: 55%;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(88, 86, 214, 0.04));
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.shimmer-price::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 122, 255, 0.15) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: liquidShimmer 1.6s ease-in-out infinite;
    animation-delay: 0.2s;
}

.shimmer-actions {
    height: 40px;
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    position: relative;
    overflow: hidden;
}

.shimmer-actions::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: liquidShimmer 1.6s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* Staggered shimmer delays for multiple cards */
.shimmer-card:nth-child(1) { animation-delay: 0s; }
.shimmer-card:nth-child(2) { animation-delay: 0.15s; }
.shimmer-card:nth-child(3) { animation-delay: 0.3s; }
.shimmer-card:nth-child(4) { animation-delay: 0.45s; }
.shimmer-card:nth-child(5) { animation-delay: 0.6s; }
.shimmer-card:nth-child(6) { animation-delay: 0.75s; }

/* ========== SCROLL BLUR LOADING ========== */

.gifts-grid.loading-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.6) 40%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 10;
}

.scroll-load-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    margin-top: 12px;
}

.scroll-load-dots {
    display: flex;
    gap: 6px;
}

.scroll-load-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.3);
    animation: dotPulse 1.8s var(--ease-ultra-smooth) infinite;
}

.scroll-load-dot:nth-child(1) { animation-delay: 0s; }
.scroll-load-dot:nth-child(2) { animation-delay: 0.25s; }
.scroll-load-dot:nth-child(3) { animation-delay: 0.5s; }

@keyframes dotPulse {
    0%, 85%, 100% { 
        transform: scale(0.85);
        opacity: 0.35;
        background: rgba(0, 122, 255, 0.3);
    }
    42% { 
        transform: scale(1.15);
        opacity: 1;
        background: rgba(0, 122, 255, 0.7);
    }
}

/* ========== LOAD MORE BLUR CARDS ========== */

.gift-card.loading-blur {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
    filter: blur(15px);
    animation: loadBlurReveal 0.8s var(--ease-butter) forwards;
}

.gift-card.loading-blur:nth-child(odd) {
    animation-delay: 0.08s;
}

.gift-card.loading-blur:nth-child(even) {
    animation-delay: 0.16s;
}

@keyframes loadBlurReveal {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
        filter: blur(15px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(8px) scale(0.99);
        filter: blur(5px);
    }
    75% {
        opacity: 0.9;
        transform: translateY(2px) scale(1);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ========== ENHANCED BLUR LAZY LOADING ========== */

.lazy-image {
    filter: blur(30px);
    transform: scale(1.12);
    opacity: 0;
    transition: 
        filter 0.9s var(--ease-butter),
        transform 0.9s var(--ease-butter),
        opacity 0.7s var(--ease-ultra-smooth);
    will-change: filter, transform, opacity;
}

.lazy-image.loaded {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

.lazy-blur-placeholder {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border-radius: inherit;
}

.lazy-blur-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 30%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 70%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: liquidShimmer 2s ease-in-out infinite;
    filter: blur(8px);
}

.lazy-blur-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(0, 122, 255, 0.5);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

/* Gift Card Loading State */
.gift-lottie.loading {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.gift-lottie.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: liquidShimmer 1.8s ease-in-out infinite;
    border-radius: inherit;
    filter: blur(3px);
}

.gift-lottie.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(0, 122, 255, 0.6);
    border-radius: 50%;
    animation: spinLoader 0.9s linear infinite;
    z-index: 2;
}

.gift-lottie.loaded {
    animation: revealFromBlur 0.6s var(--ease-spring) forwards;
}

@keyframes revealFromBlur {
    from {
        filter: blur(10px);
        opacity: 0.5;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* ========== iOS STYLE ANIMATIONS ========== */

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide Up with Fade */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* iOS Modal Animation */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger Fade In */
.stagger-item {
    opacity: 0;
    animation: slideUpFade 0.5s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--stagger-delay, 0) + 0.05s);
}

/* Gift Card Appear Animation */
.gift-card {
    opacity: 0;
    animation: giftCardAppear 0.5s var(--ease-spring) forwards;
    animation-delay: var(--stagger-delay, 0);
    will-change: transform, opacity;
}

@keyframes giftCardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Touch Feedback */
.touch-feedback {
    transition: transform 0.15s var(--ease-spring);
}

.touch-feedback:active {
    transform: scale(0.96);
}

/* iOS Style Button Press */
.ios-press {
    transition: all 0.2s var(--ease-spring);
}

.ios-press:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* ========== ENHANCED NAV BAR ========== */

.nav-container {
    background: linear-gradient(
        180deg,
        rgba(30, 41, 59, 0.92) 0%,
        rgba(15, 23, 42, 0.98) 100%
    );
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-item {
    transition: all 0.3s var(--ease-spring);
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(88, 86, 214, 0.1));
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.2);
}

/* ========== ENHANCED TOAST ========== */

.toast {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    animation: toastSlideIn 0.4s var(--ease-spring);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ========== SCROLL ENHANCEMENTS ========== */

.main-content {
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y proximity;
}

/* Custom Scrollbar for Desktop */
.main-content::-webkit-scrollbar {
    width: 6px;
}

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

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========== RIPPLE EFFECT ========== */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s, height 0.4s, opacity 0.4s;
}

.ripple:active::after {
    width: 200%;
    height: 200%;
    opacity: 0;
}
