/* Giftly - Liquid Glass Design (Apple iOS 26 Style) */
:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: rgba(255, 255, 255, 0.7);
    --bg-tertiary: rgba(255, 255, 255, 0.5);
    --bg-elevated: rgba(255, 255, 255, 0.85);
    
    --text-primary: #1a1a1a;
    --text-secondary: rgba(60, 60, 67, 0.6);
    --text-tertiary: rgba(60, 60, 67, 0.3);
    
    /* iOS System Colors */
    --ios-blue: #007aff;
    --ios-green: #30d158;
    --ios-red: #ff453a;
    --ios-orange: #ff9f0a;
    --ios-yellow: #ffd60a;
    --ios-pink: #ff375f;
    --ios-purple: #bf5af2;
    --ios-teal: #64d2ff;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-strong: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(40px);
    
    /* Gradients */
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    --gradient-accent: linear-gradient(135deg, #30d158 0%, #34c759 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --gradient-gold: linear-gradient(135deg, #ffd60a 0%, #ff9f0a 100%);
    
    --radius-sm: 14px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    background: linear-gradient(180deg, #e8f0f8 0%, #d4e4f0 50%, #c8dce8 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 75px;
    -webkit-font-smoothing: antialiased;
}

.app { max-width: 428px; margin: 0 auto; position: relative; }

/* 
Ambient Background with Orbs */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #e8f0f8 0%, #d4e4f0 50%, #c8dce8 100%);
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
}

.ambient-orb:nth-child(1) { width: 300px; height: 300px; background: #a8e6cf; top: -100px; left: -50px; }
.ambient-orb:nth-child(2) { width: 250px; height: 250px; background: #ffd3b6; top: 30%; right: -80px; animation-delay: -5s; }
.ambient-orb:nth-child(3) { width: 200px; height: 200px; background: #dcedc1; bottom: 30%; left: -60px; animation-delay: -10s; }
.ambient-orb:nth-child(4) { width: 280px; height: 280px; background: #ffaaa5; bottom: -100px; right: -80px; animation-delay: -7s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.98); }
}

/* Header - Liquid Glass */
.header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 14px 16px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

/* Garland - Glowing Christmas Lights */
.garland {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    display: flex;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 10;
}

.garland-light {
    width: 10px;
    height: 14px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: garland-glow 1.5s ease-in-out infinite alternate;
    margin-top: 4px;
    position: relative;
}

/* Glowing effect */
.garland-light::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    filter: blur(8px);
    opacity: 0.8;
    animation: garland-pulse 1.5s ease-in-out infinite alternate;
}

.garland-light::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.garland-light:nth-child(1) { background: #ff4757; box-shadow: 0 0 12px #ff4757, 0 0 24px #ff4757; animation-delay: 0s; }
.garland-light:nth-child(2) { background: #ffd93d; box-shadow: 0 0 12px #ffd93d, 0 0 24px #ffd93d; animation-delay: 0.15s; }
.garland-light:nth-child(3) { background: #2ed573; box-shadow: 0 0 12px #2ed573, 0 0 24px #2ed573; animation-delay: 0.3s; }
.garland-light:nth-child(4) { background: #3498ff; box-shadow: 0 0 12px #3498ff, 0 0 24px #3498ff; animation-delay: 0.45s; }
.garland-light:nth-child(5) { background: #ff6b9d; box-shadow: 0 0 12px #ff6b9d, 0 0 24px #ff6b9d; animation-delay: 0.6s; }
.garland-light:nth-child(6) { background: #ffd93d; box-shadow: 0 0 12px #ffd93d, 0 0 24px #ffd93d; animation-delay: 0.75s; }
.garland-light:nth-child(7) { background: #2ed573; box-shadow: 0 0 12px #2ed573, 0 0 24px #2ed573; animation-delay: 0.9s; }
.garland-light:nth-child(8) { background: #3498ff; box-shadow: 0 0 12px #3498ff, 0 0 24px #3498ff; animation-delay: 0.1s; }
.garland-light:nth-child(9) { background: #ff4757; box-shadow: 0 0 12px #ff4757, 0 0 24px #ff4757; animation-delay: 0.25s; }
.garland-light:nth-child(10) { background: #ffd93d; box-shadow: 0 0 12px #ffd93d, 0 0 24px #ffd93d; animation-delay: 0.4s; }
.garland-light:nth-child(11) { background: #2ed573; box-shadow: 0 0 12px #2ed573, 0 0 24px #2ed573; animation-delay: 0.55s; }
.garland-light:nth-child(12) { background: #3498ff; box-shadow: 0 0 12px #3498ff, 0 0 24px #3498ff; animation-delay: 0.7s; }

.garland-wire {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(60, 60, 60, 0.6) 5%, 
        rgba(60, 60, 60, 0.6) 95%, 
        transparent 100%
    );
    border-radius: 1px;
}

@keyframes garland-glow {
    0% { 
        opacity: 0.7; 
        transform: scale(0.95);
        filter: brightness(0.9);
    }
    100% { 
        opacity: 1; 
        transform: scale(1.05);
        filter: brightness(1.3);
    }
}

@keyframes garland-pulse {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* Hea
der Buttons - Glass Pills */
.header-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-btn:active {
    transform: scale(0.92);
}

.header-btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: white;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

/* Mascot */
.mascot {
    font-size: 28px;
    animation: mascot-bounce 2s ease-in-out infinite;
}

.mascot-small { font-size: 18px; animation: none; }
.mascot-large { font-size: 56px; }

@keyframes mascot-bounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

/* Tab Bar - Liquid Glass Floating Pills */
.bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    gap: 2px;
    z-index: 1000;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.nav-item.active {
    color: white;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.95) 0%, rgba(52, 199, 89, 0.95) 100%);
    box-shadow: 0 3px 10px rgba(48, 209, 88, 0.35);
}

.nav-icon { font-size: 20px; line-height: 1; }
.nav-label { 
    font-size: 9px; 
    font-weight: 600; 
    margin-top: 2px;
    letter-spacing: 0.2px;
}

/* Cards - Compact Liquid Glass */
.section { padding: 14px; }

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card:active {
    transform: scale(0.99);
}

.card-image { 
    width: 100%; 
    height: 160px; 
    object-fit: cover;
}

.card-image-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.5) 0%, rgba(220, 237, 193, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.card-body { 
    padding: 14px 16px; 
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.card-title { 
    font-size: 16px; 
    font-weight: 600; 
    color: var(--text-primary);
    flex: 1;
    line-height: 1.3;
}

.card-subtitle { 
    font-size: 14px; 
    color: var(--text-secondary); 
    margin-bottom: 10px; 
    line-height: 1.4;
}

.card-price {
    background: linear-gradient(135deg, #ffd700 0%, #ff9f0a 100%);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 159, 10, 0.3);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
}

.card-actions .btn-edit {
    flex: 1;
}

.card-actions .btn-share {
    flex: 1;
}

/* Reserved Card */
.card.reserved { 
    border: 2px solid var(--ios-green);
    background: linear-gradient(180deg, rgba(48, 209, 88, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%);
}

/* Reserved Badge */
.card.reserved .card-body::before {
    content: '🎁 Кто-то хочет подарить!';
    display: block;
    background: var(--ios-green);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ios-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
}

.card-link:active {
    opacity: 0.7;
}

/* B
uttons - Glass Pills */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn:active { transform: scale(0.97); }

.btn-primary { 
    background: var(--gradient-accent); 
    color: white; 
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.25);
}
.btn-secondary { 
    background: var(--glass-bg); 
    color: var(--text-primary); 
    border: 1px solid var(--glass-border);
}
.btn-danger { 
    background: linear-gradient(135deg, #ff453a 0%, #ff6961 100%); 
    color: white;
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.25);
}
.btn-success { background: var(--gradient-accent); color: white; }
.btn-large { width: 100%; padding: 14px; border-radius: var(--radius); }

/* Modal - Glass */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    width: 100%;
    max-width: 428px;
    max-height: 92vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp { from { transform: translateY(100%); } }

.modal-handle {
    width: 36px; height: 5px;
    background: rgba(60, 60, 67, 0.2);
    border-radius: 3px;
    margin: 8px auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header h2 { font-size: 17px; font-weight: 600; color: var(--text-primary); }

.modal-close {
    width: 28px; height: 28px;
    border: none;
    background: var(--glass-bg);
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body { padding: 20px; }

/* Form - Glass */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 17px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--ios-green);
    box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.2);
}

.form-input::placeholder { color: var(--text-tertiary); }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-actions { display: flex; gap: 12px; margin-top: 20px; }
.form-actions .btn { flex: 1; }

/* Photo Upload - Glass */
.photo-upload { cursor: pointer; }

.photo-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 36px;
    text-align: center;
    background-size: cover;
    background-position: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(60, 60, 67, 0.2);
    transition: border-color 0.2s;
}

.photo-preview:hover { border-color: var(--ios-green); }

.photo-preview.has-image { min-height: 160px; border: none; }
.photo-preview.has-image .upload-icon,
.photo-preview.has-image .upload-text { display: none; }

.upload-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }
.upload-text { color: var(--text-tertiary); font-size: 14px; }


/* Toast - Glass Pill */
.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 3000;
    box-shadow: var(--glass-shadow);
}

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

/* Empty State */
.empty-state { text-align: center; padding: 50px 20px; display: none; }
.empty-state.active { display: block; }
.empty-icon { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.empty-state p { color: var(--text-secondary); font-size: 15px; }

/* Profile Header - Liquid Glass */
.profile-header {
    background: linear-gradient(180deg, 
        rgba(168, 230, 207, 0.7) 0%, 
        rgba(200, 240, 220, 0.6) 50%,
        rgba(220, 237, 193, 0.5) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 45px 20px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Ambient glow for profile header */
.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 230, 207, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(220, 237, 193, 0.4) 0%, transparent 50%);
    animation: profile-ambient 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes profile-ambient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(5deg); }
}

.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 12px;
    font-size: 46px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

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

.profile-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #1a5a2e;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.verified-badge {
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
    margin-left: 4px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.profile-username { 
    color: #2e7d32; 
    font-size: 15px; 
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.profile-stats { 
    display: flex; 
    justify-content: center; 
    gap: 36px;
    position: relative;
    z-index: 1;
}

.stat-item { 
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-value { font-size: 28px; font-weight: 800; color: #1a5a2e; }
.stat-label { font-size: 12px; color: #388e3c; font-weight: 500; }

/* Achievements - Glass */
.achievements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.achievement {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.achievement.locked { opacity: 0.35; }
.achievement-icon { font-size: 26px; margin-bottom: 4px; }
.achievement-name { font-size: 10px; color: var(--text-secondary); }

/* List - Glass */
.list { 
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius); 
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.list-item:last-child { border-bottom: none; }
.list-item:active { background: rgba(255, 255, 255, 0.3); }

.list-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.list-icon.blue { background: rgba(0, 122, 255, 0.15); }
.list-icon.green { background: rgba(48, 209, 88, 0.15); }
.list-icon.purple { background: rgba(191, 90, 242, 0.15); }
.list-icon.red { background: rgba(255, 69, 58, 0.15); }
.list-icon.orange { background: rgba(255, 159, 10, 0.15); }
.list-icon.gold { background: rgba(255, 214, 10, 0.2); }

.list-content { flex: 1; }
.list-title { font-size: 16px; color: var(--text-primary); }
.list-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }
.list-arrow { color: var(--text-tertiary); font-size: 16px; }

.section-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    padding-left: 4px;
}


/* Hero Header - Liquid Glass */
.hero-header {
    background: linear-gradient(180deg, 
        rgba(168, 230, 207, 0.7) 0%, 
        rgba(200, 240, 220, 0.6) 50%,
        rgba(220, 237, 193, 0.5) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 36px 20px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 32px rgba(0, 0, 0, 0.08);
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 230, 207, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(220, 237, 193, 0.4) 0%, transparent 50%);
    animation: hero-ambient 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-ambient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(5deg); }
}

.hero-icon { 
    font-size: 64px; 
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-title { 
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 6px; 
    color: #1a5a2e;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-subtitle { 
    color: #388e3c; 
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* Group Card - Glass */
.group-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

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

.group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.group-name { font-size: 17px; font-weight: 600; color: var(--text-primary); }

.group-badge { 
    padding: 4px 10px; 
    border-radius: var(--radius-pill); 
    font-size: 12px; 
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.group-badge.ready { background: rgba(48, 209, 88, 0.15); color: var(--ios-green); }
.group-badge.waiting { background: rgba(255, 159, 10, 0.15); color: var(--ios-orange); }
.group-badge.done { background: rgba(0, 122, 255, 0.15); color: var(--ios-blue); }

.group-meta { display: flex; gap: 14px; color: var(--text-secondary); font-size: 14px; }

/* Result Card - Glass Gradient */
.result-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 142, 83, 0.9) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
    margin: 16px;
    box-shadow: var(--glass-shadow-lg);
}

.result-label { font-size: 14px; color: rgba(255, 255, 255, 0.9); margin-bottom: 6px; }
.result-name { font-size: 26px; font-weight: 700; margin-bottom: 14px; color: white; }

/* Participant Card - Glass */
.participant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.p-avatar {
    width: 42px; height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.8) 0%, rgba(129, 199, 132, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a5a2e;
}

.p-info { flex: 1; min-width: 0; overflow: hidden; }
.p-name { font-size: 15px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }

.p-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }

.p-badge { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.p-badge.you { background: rgba(48, 209, 88, 0.15); color: var(--ios-green); }
.p-badge.admin { background: rgba(255, 214, 10, 0.2); color: #f57c00; }

.p-wish-btn {
    padding: 7px 12px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--ios-blue);
    font-size: 17px;
    cursor: pointer;
}

/* Shared Header - Liquid Glass */
.shared-header {
    background: linear-gradient(180deg, 
        rgba(168, 230, 207, 0.7) 0%, 
        rgba(200, 240, 220, 0.6) 50%,
        rgba(220, 237, 193, 0.5) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 45px 20px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 32px rgba(0, 0, 0, 0.08);
}

.shared-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 230, 207, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(220, 237, 193, 0.4) 0%, transparent 50%);
    animation: shared-ambient 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shared-ambient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(5deg); }
}

.shared-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 12px;
    font-size: 40px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.shared-name { 
    font-size: 26px; 
    font-weight: 700; 
    margin-bottom: 4px; 
    color: #1a5a2e;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.shared-subtitle { 
    color: #388e3c; 
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/*
 Story Preview - Glass */
.story-preview {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 50vh;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.6) 0%, rgba(220, 237, 193, 0.6) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.story-preview-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.story-decoration { position: absolute; font-size: 28px; opacity: 0.3; }
.story-decoration.top-left { top: 14px; left: 14px; }
.story-decoration.top-right { top: 14px; right: 14px; }
.story-decoration.bottom-left { bottom: 14px; left: 14px; }
.story-decoration.bottom-right { bottom: 14px; right: 14px; }

.story-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a5a2e;
}

.story-wish-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 18px;
    width: 100%;
    max-width: 240px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.story-wish-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.story-wish-price {
    background: var(--gradient-gold);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.story-footer { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; }
.story-username { font-size: 13px; color: #388e3c; margin-bottom: 8px; }
.story-cta {
    background: var(--gradient-accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

/* Story Type Tabs - Glass */
.story-type-tabs { display: flex; gap: 8px; margin-bottom: 14px; }

.story-type-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--glass-border);
}

.story-type-tab.active { 
    background: var(--gradient-accent); 
    color: white; 
    border-color: transparent;
}

.story-templates { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; margin-bottom: 14px; }

.story-template {
    width: 48px; height: 68px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, border-color 0.2s;
}

.story-template.active { border-color: var(--ios-green); transform: scale(1.05); }
.story-template:nth-child(1) { background: linear-gradient(135deg, #a5d6a7, #81c784); }
.story-template:nth-child(2) { background: linear-gradient(135deg, #ffcdd2, #ef9a9a); }
.story-template:nth-child(3) { background: linear-gradient(135deg, #b3e5fc, #81d4fa); }
.story-template:nth-child(4) { background: linear-gradient(135deg, #e1bee7, #ce93d8); }
.story-template:nth-child(5) { background: linear-gradient(135deg, #ffe082, #ffca28); }

/* Story Text Presets */
.story-text-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.preset-btn {
    padding: 7px 12px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid var(--glass-border);
}

.preset-btn:active { background: var(--glass-bg-strong); }

/* Story Text Display */
.story-text-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.story-text-display span {
    font-size: 26px;
    font-weight: 700;
    color: #1a5a2e;
    line-height: 1.3;
}


/* Confetti */
.confetti {
    position: fixed;
    width: 10px; height: 10px;
    top: -10px;
    border-radius: 2px;
    animation: confetti-fall 3s linear forwards;
    z-index: 9999;
    pointer-events: none;
}

@keyframes confetti-fall { to { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* Admin - Glass */
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }

.admin-stat-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.admin-stat-value { font-size: 28px; font-weight: 700; color: var(--ios-orange); }
.admin-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* Privacy Check */
.privacy-check { color: var(--ios-green); font-weight: bold; }

/* QR Code */
#qrCode canvas { border-radius: 12px; box-shadow: var(--glass-shadow); }

/* Snowflakes - hidden */
.snowflakes, .snowflake { display: none; }

/* Action Sheet - Glass */
.action-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.action-sheet {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    width: 100%;
    max-width: 428px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px;
    padding-bottom: 36px;
    border: 1px solid var(--glass-border);
    border-bottom: none;
}

.action-sheet-header {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.action-sheet-cancel {
    width: 100%;
    padding: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ios-blue);
    font-size: 17px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.action-sheet .menu-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.action-sheet .menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.action-sheet .menu-title { font-size: 16px; font-weight: 500; }
.action-sheet .menu-desc { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }

/* Menu icon colors in action sheet */
.action-sheet .menu-icon.purple { background: rgba(191, 90, 242, 0.15); }
.action-sheet .menu-icon.blue { background: rgba(0, 122, 255, 0.15); }
.action-sheet .menu-icon.gold { background: rgba(255, 214, 10, 0.2); }

/* FABs - hidden (moved to header) */
.fab, .story-fab { display: none; }

/* Button Icon */
.btn-icon {
    width: 40px; height: 40px;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: transform 0.2s;
    border: 1px solid var(--glass-border);
}

.btn-icon:active { transform: scale(0.92); }

/* ===== TICKETS PAGE ===== */

/* Tickets Header - Liquid Glass */
.tickets-header {
    background: linear-gradient(180deg, 
        rgba(255, 215, 0, 0.35) 0%, 
        rgba(255, 180, 50, 0.25) 50%,
        rgba(255, 159, 10, 0.2) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tickets-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 159, 10, 0.3) 0%, transparent 50%);
    animation: tickets-ambient 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tickets-ambient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(5deg); }
}

.tickets-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.ticket-icon-big {
    font-size: 56px;
    animation: ticket-float 2s ease-in-out infinite;
}

@keyframes ticket-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.tickets-info { text-align: left; }

.tickets-count {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ff9f0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.tickets-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tickets-hint {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
}

/* Prize Banner */
.prize-banner {
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.2) 0%, rgba(100, 210, 255, 0.2) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--glass-shadow);
}

.prize-icon {
    font-size: 40px;
    animation: prize-pulse 2s ease-in-out infinite;
}

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

.prize-info { flex: 1; }
.prize-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.prize-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.prize-timer {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    color: var(--ios-purple);
    border: 1px solid var(--glass-border);
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.task-card.completed {
    opacity: 0.6;
}

.task-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.task-content { flex: 1; }
.task-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.task-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.task-reward {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 159, 10, 0.2) 100%);
    padding: 6px 10px;
    border-radius: var(--radius-pill);
}

.reward-tickets {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
}

.reward-icon { font-size: 16px; }

.task-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
    transition: transform 0.15s;
}

.task-btn:active { transform: scale(0.9); }

.task-btn.done {
    background: var(--glass-bg);
    color: var(--ios-green);
    box-shadow: none;
    border: 1px solid var(--glass-border);
}

.task-skeleton {
    height: 76px;
    background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-bg-strong) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

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

/* Ticke
ts Grid */
.tickets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ticket-card {
    width: 70px;
    height: 90px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff9f0a 100%);
    border-radius: var(--radius-sm);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 159, 10, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.ticket-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.ticket-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.ticket-inner {
    text-align: center;
}

.ticket-emoji {
    font-size: 28px;
    margin-bottom: 4px;
}

.ticket-number {
    font-size: 10px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
    font-family: monospace;
}

.tickets-more {
    width: 70px;
    height: 90px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.empty-tickets {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.empty-tickets span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-tickets span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Flying Ticket Animation */
.flying-ticket {
    position: fixed;
    font-size: 40px;
    bottom: 100px;
    z-index: 9999;
    animation: fly-up 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes fly-up {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-300px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}


/* ===== PRELOADER - Liquid Glass ===== */
.preloader-glass {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(180deg, #e8f0f8 0%, #d4e4f0 50%, #c8dce8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.preloader-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 40px 50px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.preloader-icon {
    font-size: 72px;
    animation: preloader-bounce 1.5s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes preloader-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

.preloader-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a5a2e;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1a5a2e 0%, #2e7d32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-text {
    font-size: 15px;
    color: #388e3c;
    margin-bottom: 24px;
}

.preloader-bar {
    width: 180px;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #30d158 0%, #34c759 50%, #30d158 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: preloader-fill 1.5s ease-out forwards, preloader-shimmer 1s linear infinite;
}

@keyframes preloader-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* ===== HAPTIC FEEDBACK VISUAL HINTS ===== */
/* All interactive elements get subtle feedback */
.nav-item,
.btn,
.card,
.list-item,
.achievement,
.task-card,
.ticket-card,
.header-btn,
.modal-close,
.privacy-option,
.group-card,
.participant-card,
.story-type-tab,
.story-template,
.preset-btn,
.action-sheet-cancel,
.photo-upload {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Active state visual feedback */
.nav-item:active,
.list-item:active,
.achievement:active,
.task-card:active,
.ticket-card:active,
.group-card:active,
.participant-card:active,
.story-type-tab:active,
.story-template:active,
.preset-btn:active,
.photo-upload:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-out;
}

/* Achievements - Glass Style */
.achievement {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.2s, box-shadow 0.2s;
}

.achievement:not(.locked):hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.achievement.locked { 
    opacity: 0.4;
    filter: grayscale(0.5);
}

.achievement-icon { 
    font-size: 28px; 
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.achievement-name { 
    font-size: 11px; 
    color: var(--text-secondary);
    font-weight: 500;
}

/* List Items - Enhanced Glass */
.list {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

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

.list-item:active { 
    background: rgba(255, 255, 255, 0.5);
}


/* ===== SANTA ROOMS - Liquid Glass ===== */

/* Group Card - Enhanced Glass */
.group-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #30d158, #34c759, #30d158);
    opacity: 0.6;
}

.group-card:active { 
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

.group-name { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text-primary);
}

.group-badge { 
    padding: 6px 12px; 
    border-radius: var(--radius-pill); 
    font-size: 12px; 
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.group-badge.ready { 
    background: rgba(48, 209, 88, 0.2); 
    color: #1a8d3e;
    border-color: rgba(48, 209, 88, 0.3);
}

.group-badge.waiting { 
    background: rgba(255, 159, 10, 0.2); 
    color: #c77800;
    border-color: rgba(255, 159, 10, 0.3);
}

.group-badge.done { 
    background: rgba(0, 122, 255, 0.2); 
    color: #0066cc;
    border-color: rgba(0, 122, 255, 0.3);
}

.group-meta { 
    display: flex; 
    gap: 16px; 
    color: var(--text-secondary); 
    font-size: 14px;
    font-weight: 500;
}

/* Participant Card - Compact Glass */
.participant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.p-avatar {
    width: 44px; 
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8e6cf 0%, #81c784 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #1a5a2e;
}

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

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

.p-meta { 
    font-size: 12px; 
    color: var(--text-secondary); 
    margin-top: 2px; 
}

.p-actions { 
    display: flex; 
    flex-direction: row;
    align-items: center; 
    gap: 6px; 
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.p-badge { 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-size: 11px; 
    font-weight: 600; 
    white-space: nowrap;
}

.p-badge.you { 
    background: rgba(48, 209, 88, 0.15); 
    color: var(--ios-green);
}

.p-badge.admin { 
    background: rgba(255, 214, 10, 0.2); 
    color: #d4a000;
}

.p-wish-btn {
    padding: 6px 12px;
    background: var(--ios-green);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.p-wish-btn:active {
    opacity: 0.8;
}

/* Result Card - Compact Gradient */
.result-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin: 14px;
}

.result-label { 
    font-size: 14px; 
    color: rgba(255, 255, 255, 0.9); 
    margin-bottom: 6px;
}

.result-name { 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 14px; 
    color: white;
}

/* Detail Header - Santa Room */
.detail-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--ios-blue);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.back-btn:active {
    opacity: 0.7;
}

/* Detail Hero - Compact Glass */
.detail-hero {
    background: linear-gradient(180deg, 
        rgba(168, 230, 207, 0.6) 0%, 
        rgba(220, 237, 193, 0.5) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a5a2e;
    margin-bottom: 4px;
}

.detail-subtitle {
    font-size: 14px;
    color: #388e3c;
}

/* Invite Section - Glass */
#detailView .form-input {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Admin Section */
#adminSection .btn {
    box-shadow: 0 8px 24px rgba(48, 209, 88, 0.25);
}

/* Empty Groups State */
#emptyGroups {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}


/* Card Header Row */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

/* Card Link - Glass Button */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ios-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 16px;
    background: rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 4px;
    transition: background 0.2s, transform 0.15s;
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.card-link:active {
    background: rgba(0, 122, 255, 0.2);
    transform: scale(0.97);
}

/* Edit Button with text */
.card-actions .btn-edit {
    flex: 1;
}

/* Empty State - Enhanced */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    display: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 20px 0;
}

.empty-state.active { display: block; }

.empty-icon { 
    font-size: 72px; 
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.empty-state h3 { 
    font-size: 22px; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: var(--text-primary);
}

.empty-state p { 
    color: var(--text-secondary); 
    font-size: 15px;
    line-height: 1.5;
}
