/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tg-theme-bg-color: #f8fafc;
    --tg-theme-text-color: #1e293b;
    --tg-theme-hint-color: #64748b;
    --tg-theme-link-color: #3b82f6;
    --tg-theme-button-color: #3b82f6;
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-secondary-bg-color: #ffffff;

    /* Фиолетово-голубой градиент */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --accent: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    --radius: 16px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    padding-bottom: env(safe-area-inset-bottom);
    min-height: 100vh;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    z-index: 1000;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: var(--shadow);
}

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

/* Header */
.header {
    padding: 32px 20px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    border-radius: 0 0 24px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        transparent 100%);
    pointer-events: none;
}

.header-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-title .icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.header-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* User Avatar */
.header-user-avatar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2),
                0 0 0 2px rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.header-user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3),
                0 0 0 2px rgba(255, 255, 255, 1),
                0 0 0 3px rgba(59, 130, 246, 0.2);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    user-select: none;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 20px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0.4;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Friends Header */
.friends-header {
    padding: 16px 16px 20px;
    text-align: center;
}

.friends-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.friends-header-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    padding: 0 0 env(safe-area-inset-bottom);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
}

.bottom-nav-divider {
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 10%,
        rgba(0, 0, 0, 0.15) 90%,
        transparent 100%
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.bottom-nav-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 8px 12px;
    gap: 4px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    position: relative;
    min-height: 64px;
    isolation: isolate;
}

.nav-item-bg {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0);
}

.nav-item.active .nav-item-bg {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4),
                0 2px 8px rgba(139, 92, 246, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

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

.nav-icon {
    font-size: 26px;
    line-height: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.6) opacity(0.7);
}

.nav-item.active .nav-icon {
    transform: scale(1.05);
    filter: grayscale(0) opacity(1) drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.nav-item.active .nav-label {
    color: white;
    font-weight: 700;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* FAB Button on Nav */
.fab-nav {
    position: fixed;
    bottom: calc(88px + env(safe-area-inset-bottom));
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4),
                0 4px 12px rgba(139, 92, 246, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-nav:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5),
                0 6px 16px rgba(139, 92, 246, 0.4);
}

.fab-nav:active {
    transform: scale(1.05) rotate(90deg);
}

.fab-nav-icon {
    font-size: 32px;
    font-weight: 300;
    color: white;
    line-height: 1;
    display: block;
}

/* Onboarding Tooltip */
.nav-tooltip {
    position: fixed;
    bottom: calc(160px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    animation: tooltipBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s, transform 0.3s;
}

@keyframes tooltipBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-tooltip-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 280px;
    backdrop-filter: blur(8px);
}

.nav-tooltip-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.nav-tooltip-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nav-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1e293b;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
    padding-bottom: 100px;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tab-content.active {
    display: block;
}

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

/* User Flow Guide */
.user-flow-guide {
    padding: 0 16px 20px;
}

.guide-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.guide-icon {
    font-size: 64px;
    margin-bottom: 16px;
    line-height: 1;
}

.guide-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.guide-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
    text-align: left;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guide-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.guide-step-content {
    flex: 1;
}

.guide-step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.guide-step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Section Header */
.section-header {
    padding: 16px 16px 12px;
    position: relative;
    z-index: 2;
}

.section-header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin: 0;
}

/* Filter Bar */
.filter-bar {
    padding: 0 16px 16px;
    position: relative;
    z-index: 1;
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.filter-chip:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12),
                0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

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

.filter-chip.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.filter-chip-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-chip-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Legacy filter select (hidden by default, keep for compatibility) */
.filter-select {
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    text-align: left;
    line-height: 1.4;
    display: none;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search */
.search-box {
    padding: 16px 16px 12px;
    position: relative;
    z-index: 2;
}

/* Search Filters */
.search-filters {
    padding: 0 16px 16px;
}

.filter-section {
    margin-bottom: 16px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    font-size: 20px;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(0.3);
}

.search-input {
    width: 100%;
    padding: 16px 18px 16px 52px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 15px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15),
                0 0 0 4px rgba(59, 130, 246, 0.08),
                0 0 0 1px rgba(59, 130, 246, 0.3) inset;
}

.search-input:focus + .search-icon {
    filter: grayscale(0);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Search Filter Button */
.search-filter-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.search-filter-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.search-filter-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.search-filter-btn svg {
    color: var(--primary);
}

.filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

/* Discovery Header */
.discovery-header {
    position: relative;
    padding: 0 16px 20px;
}

/* Discovery Filter */
.discovery-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: calc(100vw - 80px);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.discovery-filter::-webkit-scrollbar {
    display: none;
}

/* Discovery Filter Button */
.discovery-filter-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.discovery-filter-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.discovery-filter-btn:active {
    transform: scale(0.98);
}

.discovery-filter-btn svg {
    color: var(--primary);
}

.discovery-filter-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.discovery-filter-chip:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12),
                0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

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

.discovery-filter-chip.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.discovery-filter-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discovery-filter-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Movie List */
.movie-list {
    padding: 0 16px;
}

.movie-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    min-height: 140px;
}

.movie-poster-wrapper {
    position: relative;
    flex-shrink: 0;
}

.movie-rating-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    letter-spacing: -0.3px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* Badge colors based on rating */
.movie-rating-badge.badge-excellent {
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.movie-rating-badge.badge-good {
    border-color: rgba(132, 204, 22, 0.5);
    color: #84cc16;
}

.movie-rating-badge.badge-average {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.movie-rating-badge.badge-below {
    border-color: rgba(249, 115, 22, 0.5);
    color: #f97316;
}

.movie-rating-badge.badge-poor {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* Media Type Badge */
.media-type-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.movie-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15),
                0 0 0 1px rgba(59, 130, 246, 0.2) inset;
    transform: scale(1.01);
}

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

.movie-poster {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

/* Poster placeholder for missing images */
.poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px dashed rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.poster-placeholder-icon {
    font-size: 32px;
    opacity: 0.3;
    filter: grayscale(1);
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    justify-content: flex-start;
}

.movie-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: auto;
    padding-top: 4px;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--warning);
    font-weight: 600;
    font-size: 14px;
}

.movie-status {
    padding: 5px 12px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.movie-status.watched { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); }
.movie-status.watching { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.movie-status.watchlist { background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%); }
.movie-status.favorite { background: linear-gradient(135deg, #a855f7 0%, #c026d3 100%); }

.movie-review {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 28px;
    overflow: hidden;
}

.genre-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Movie Grid (for trending/recommendations) */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}

/* Load More Button */
.load-more-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 20px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.load-more-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: scale(1.01);
}

.load-more-btn:active {
    transform: scale(0.99);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn .spinner {
    margin: 0 auto;
}

.movie-grid-card {
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.movie-grid-poster-wrapper {
    position: relative;
    width: 100%;
}

/* Hover effects only for devices with hover capability (desktop) */
@media (hover: hover) and (pointer: fine) {
    .movie-grid-card:hover {
        transform: scale(1.05);
        z-index: 10;
    }

    .movie-grid-card:hover .movie-grid-poster {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2),
                    0 0 0 2px rgba(59, 130, 246, 0.3);
        border-color: rgba(59, 130, 246, 0.4);
    }

    .movie-grid-card:hover .movie-grid-title {
        color: var(--primary);
    }

    .movie-grid-card:hover .movie-grid-rating {
        color: var(--primary);
    }
}

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

.movie-grid-poster {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(8px);
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.movie-grid-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.movie-grid-rating {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
    font-weight: 600;
    transition: color 0.3s;
}

/* Section */
.section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    padding: 0 16px 16px;
    color: var(--text-primary);
}

/* Chart */
.chart-container {
    padding: 0 16px;
    margin-bottom: 16px;
}

#genre-canvas {
    max-width: 100%;
    height: auto;
}

.chart-legend {
    padding: 0 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
}

.legend-color {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.legend-label {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.legend-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Year Bars */
.year-bars {
    padding: 0 16px;
}

.year-bar {
    margin-bottom: 16px;
}

.year-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.year-bar-label {
    font-weight: 700;
    color: var(--text-primary);
}

.year-bar-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.year-bar-track {
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.year-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Movie List Compact */
.movie-list-compact {
    padding: 0 16px;
}

.movie-compact {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-compact:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.movie-compact-poster {
    width: 50px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}

.movie-compact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-compact-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.movie-compact-rating {
    font-size: 14px;
    color: var(--warning);
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.2s;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 32px 32px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-medium);
    transform: rotate(90deg);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

#modal-body {
    padding: 24px;
}

.modal-header-compact {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.modal-poster-compact {
    width: 100px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

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

.modal-poster {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-overview {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.modal-actions-triple {
    grid-template-columns: repeat(3, 1fr);
}

.modal-btn {
    padding: 16px;
    min-height: 48px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

.modal-btn span {
    margin-right: 6px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.modal-btn-primary:hover {
    box-shadow: var(--shadow);
    transform: scale(1.02);
}

.modal-btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.modal-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-btn-danger {
    background: white;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.modal-btn-danger:hover {
    background: var(--danger);
    color: white;
}

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

/* Modal Shared Lists Section */
.modal-shared-lists-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.modal-shared-lists-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-shared-lists-icon {
    font-size: 20px;
}

.modal-shared-lists-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-shared-lists-grid {
    display: grid;
    gap: 8px;
}

.modal-shared-list-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.modal-shared-list-btn:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(4px);
}

.modal-shared-list-btn:active {
    transform: translateX(2px) scale(0.98);
}

.modal-shared-list-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-shared-list-meta {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Star Rating */
.modal-rating-section {
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.star {
    font-size: 32px;
    cursor: pointer;
    color: var(--border-medium);
    transition: all 0.2s;
    user-select: none;
}

.star:hover {
    color: var(--warning);
    transform: scale(1.1);
}

.star.active {
    color: var(--warning);
}

.user-review {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid var(--border-light);
}

/* Edit Modal Specific Styles */
#edit-modal .modal-content {
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    margin: auto;
    box-sizing: border-box;
}

#edit-modal-body {
    padding: 28px 24px 24px;
    box-sizing: border-box;
}

#edit-modal .modal-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.2;
}

#edit-modal .form-group {
    margin-bottom: 24px;
}

#edit-modal .form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

#edit-modal .form-input,
#edit-modal .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

#edit-modal .form-input:focus,
#edit-modal .form-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.2);
}

#edit-modal .form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

#edit-modal .btn {
    margin-top: 8px;
}

/* Star Rating Input (for edit form) */
.star-rating-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 0;
}

.star-input-label {
    cursor: pointer;
}

.star-radio {
    display: none;
}

.star-input {
    font-size: 40px;
    color: #e5e7eb;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.star-input-label:hover .star-input {
    color: #fbbf24;
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.4));
}

.star-radio:checked ~ .star-input {
    color: #fbbf24;
    animation: starPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Also highlight previous stars */
.star-input-label:has(~ .star-input-label .star-radio:checked) .star-input,
.star-radio:checked ~ .star-input {
    color: #fbbf24;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Status Radio Group */
.status-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 0;
}

.status-radio-label {
    cursor: pointer;
}

.status-radio {
    display: none;
}

.status-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    opacity: 0.5;
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.status-chip .status-icon {
    font-size: 18px;
    line-height: 1;
}

.status-chip .status-text {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Status-specific gradients - Blue-Purple theme */
.status-watched {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.status-watching {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.status-watchlist {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.status-favorite {
    background: linear-gradient(135deg, #a855f7 0%, #c026d3 100%);
}

/* Hover states */
.status-radio-label:hover .status-chip {
    opacity: 0.8;
    transform: scale(0.98);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

/* Selected state */
.status-radio:checked ~ .status-chip {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Shine effect on selected */
.status-radio:checked ~ .status-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .header {
        padding: 24px 16px 20px;
        border-radius: 0 0 20px 20px;
        margin-bottom: 16px;
    }

    .header-title {
        font-size: 24px;
    }

    .header-title .icon {
        font-size: 28px;
    }

    .header-subtitle {
        font-size: 13px;
    }

    .stats-overview {
        gap: 8px;
        padding: 0 12px 12px;
    }

    .stat-card {
        padding: 16px 8px;
    }

    .stat-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .stat-value {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 10px;
    }

    .friends-header {
        padding: 12px 12px 16px;
    }

    .friends-header-title {
        font-size: 20px;
    }

    .friends-header-subtitle {
        font-size: 14px;
    }

    .section-header {
        padding: 12px 12px 10px;
    }

    .section-header-title {
        font-size: 20px;
    }

    .bottom-nav-container {
        padding: 6px 6px 10px;
        gap: 2px;
    }

    .nav-item {
        padding: 8px 4px;
        min-height: 60px;
        gap: 4px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        font-size: 10px;
    }

    .fab-nav {
        width: 52px;
        height: 52px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        right: 12px;
        border-width: 2px;
    }

    .fab-nav-icon {
        font-size: 28px;
    }

    .nav-tooltip {
        bottom: calc(150px + env(safe-area-inset-bottom));
        max-width: 90%;
    }

    .tab-content {
        padding-bottom: 90px;
    }

    .nav-tooltip-content {
        padding: 12px 14px;
        max-width: 260px;
    }

    .nav-tooltip-text {
        font-size: 12px;
    }

    .filter-bar {
        padding: 0 12px 12px;
    }

    .filter-chips {
        gap: 6px;
    }

    .filter-chip {
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-chip-icon {
        font-size: 14px;
    }

    .filter-chip-text {
        font-size: 12px;
    }

    .section-title {
        font-size: 18px;
        padding: 0 12px 12px;
    }

    .movie-list {
        padding: 0 12px;
    }

    .movie-card {
        padding: 12px;
        gap: 12px;
        min-height: auto;
    }

    .movie-poster {
        width: 64px;
        height: 96px;
    }

    .movie-rating-badge {
        width: 30px;
        height: 30px;
        font-size: 10px;
        top: 3px;
        right: 3px;
    }

    .movie-title {
        font-size: 15px;
    }

    .search-box {
        padding: 12px 12px 16px;
    }

    .search-icon {
        left: 14px;
        font-size: 18px;
    }

    .search-input {
        padding: 14px 16px 14px 46px;
        font-size: 16px;
    }

    .discovery-header {
        padding: 0 12px 16px;
    }

    .discovery-filter {
        gap: 6px;
        max-width: calc(100vw - 100px);
    }

    .discovery-filter-btn {
        width: 40px;
        height: 40px;
    }

    .discovery-filter-btn svg {
        width: 18px;
        height: 18px;
    }

    .discovery-filter-chip {
        padding: 8px 12px;
        font-size: 13px;
    }

    .discovery-filter-icon {
        font-size: 14px;
    }

    .discovery-filter-text {
        font-size: 12px;
    }

    .movie-grid {
        gap: 8px;
        padding: 0 12px 12px;
    }

    .movie-grid-poster {
        border-radius: 10px;
    }

    .movie-grid-poster-wrapper .movie-rating-badge {
        width: 28px;
        height: 28px;
        font-size: 9px;
        top: 2px;
        right: 2px;
    }

    .movie-grid-title {
        font-size: 12px;
    }

    .movie-grid-card:hover {
        transform: scale(1.03);
    }

    .modal-content {
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
    }

    #modal-body {
        padding: 20px 16px;
    }

    .modal-header-compact {
        gap: 12px;
        margin-bottom: 16px;
    }

    .modal-poster-compact {
        width: 80px;
        height: 120px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-poster {
        border-radius: 10px;
    }

    .modal-overview {
        font-size: 15px;
    }

    .modal-btn {
        padding: 14px 10px;
        font-size: 13px;
    }

    .modal-btn span {
        margin-right: 4px;
    }

    #edit-modal .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }

    #edit-modal-body {
        padding: 24px 20px 20px !important;
    }

    #edit-modal .modal-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    #edit-modal .form-group {
        margin-bottom: 20px;
    }

    #edit-modal .form-label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .star {
        font-size: 28px;
    }

    .star-rating {
        gap: 6px;
    }

    .star-input {
        font-size: 32px;
    }

    .star-rating-input {
        gap: 6px;
    }

    .status-radio-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .status-chip {
        padding: 14px 16px;
        font-size: 13px;
    }

    .status-chip .status-icon {
        font-size: 17px;
    }

    .status-chip .status-text {
        font-size: 12px;
        letter-spacing: 0.02em;
    }

    /* Prevent iOS zoom on inputs */
    .form-input,
    .form-textarea,
    .search-input,
    .filter-select,
    #edit-modal .form-input,
    #edit-modal .form-textarea {
        font-size: 16px;
    }

    .share-form {
        padding: 0 12px;
    }

    .shared-list-container,
    .invitation-container {
        padding: 0 12px;
    }

    .shared-list-card,
    .invitation-card {
        padding: 14px;
    }

    .shared-list-title {
        font-size: 15px;
    }

    .btn-small {
        padding: 10px 14px;
        font-size: 13px;
    }

    .fab {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 16px;
        font-size: 32px;
    }

    .fab::before {
        display: none;
    }

    .guide-card {
        padding: 24px 20px;
    }

    .guide-icon {
        font-size: 56px;
    }

    .guide-title {
        font-size: 22px;
    }

    .guide-step {
        padding: 12px;
    }

    .guide-step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .guide-step-title {
        font-size: 14px;
    }

    .guide-step-desc {
        font-size: 12px;
    }

    .chart-container {
        padding: 0 12px;
    }

    .chart-legend {
        padding: 0 12px;
    }

    .year-bars {
        padding: 0 12px;
    }

    .movie-list-compact {
        padding: 0 12px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 32px;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.empty-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

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

/* Share Form */
.share-form {
    padding: 0 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15),
                0 0 0 3px rgba(59, 130, 246, 0.1),
                0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.btn {
    width: 100%;
    padding: 16px;
    min-height: 48px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

.btn span {
    margin-right: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Shared Lists */
.shared-list-container,
.invitation-container {
    padding: 0 16px;
}

.shared-list-card,
.invitation-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shared-list-card:hover,
.invitation-card:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15),
                0 0 0 1px rgba(59, 130, 246, 0.2) inset;
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.01);
}

.shared-list-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.shared-list-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.shared-list-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.shared-list-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

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

.btn-small {
    padding: 12px 20px;
    min-height: 44px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-small span {
    margin-right: 5px;
}

.btn-accept {
    background: var(--success);
    color: white;
}

.btn-accept:hover {
    background: #059669;
    box-shadow: var(--shadow);
}

.btn-decline {
    background: white;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.btn-decline:hover {
    background: var(--danger);
    color: white;
}

.btn-view {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.btn-view:hover {
    box-shadow: var(--shadow);
    transform: scale(1.02);
}

.btn-small:active {
    transform: scale(0.98);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 36px;
    font-weight: 300;
    color: white;
    line-height: 1;
    padding: 0;
}

.fab::before {
    content: 'Добавить фильм';
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab:hover::before {
    opacity: 1;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.fab:active {
    transform: scale(1.05);
}

.fab-icon {
    display: block;
    line-height: 1;
}

/* Shared List Modal */
.shared-list-modal-content {
    max-height: 90vh;
}

.shared-list-modal-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.shared-list-modal-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.shared-list-search-box {
    margin-bottom: 12px;
}

.shared-list-search-box .form-input {
    font-size: 16px;
}

.shared-list-search-results {
    margin-bottom: 16px;
}

.shared-list-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.shared-list-search-item:hover {
    background: var(--border-light);
}

.shared-list-search-poster {
    width: 40px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.shared-list-search-info {
    flex: 1;
    min-width: 0;
}

.shared-list-search-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shared-list-search-year {
    font-size: 12px;
    color: var(--text-secondary);
}

.shared-list-search-add {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
}

.shared-list-movies {
    margin-top: 8px;
}

.shared-list-movie-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 8px;
}

.shared-list-movie-poster {
    width: 48px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.shared-list-movie-info {
    flex: 1;
    min-width: 0;
}

.shared-list-movie-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shared-list-movie-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.shared-list-movie-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.shared-list-movie-remove:hover {
    background: var(--danger);
    color: white;
}

/* List Picker Modal */
.list-picker-modal-content {
    max-height: 80vh;
    max-width: 400px;
    width: 90%;
    margin: auto;
}

.list-picker-items {
    margin-bottom: 20px;
}

.list-picker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.list-picker-item:hover {
    border-color: var(--primary);
    background: white;
}

.list-picker-item:active {
    transform: scale(0.98);
}

.list-picker-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.list-picker-item-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.list-picker-create {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* Mobile responsive for new modals */
@media (max-width: 640px) {
    .shared-list-modal-content {
        max-height: 92vh;
    }

    .shared-list-search-box .form-input {
        font-size: 16px;
    }

    .list-picker-modal-content {
        width: 95%;
        max-width: 95%;
    }

    .list-picker-create .form-input {
        font-size: 16px;
    }

    .shared-list-movie-poster {
        width: 44px;
        height: 66px;
    }

    .shared-list-movie-title {
        font-size: 14px;
    }

    .modal-actions-triple {
        grid-template-columns: 1fr !important;
        gap: 6px;
    }
}

/* Filters Modal */
.filters-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.2s;
}

.filters-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.filters-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 32px 32px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    width: 100%;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    padding: 24px 20px 32px;
}

.filters-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--border-light);
}

.filters-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.filters-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filters-modal-close:hover {
    background: var(--border-medium);
    transform: rotate(90deg);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-of-type {
    margin-bottom: 20px;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Chips Multi-Select */
.filter-chips-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip-multi {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    white-space: nowrap;
    user-select: none;
}

.filter-chip-multi:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--primary);
    transform: scale(1.02);
}

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

.filter-chip-multi.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Filter Rating Buttons */
.filter-rating-buttons {
    display: flex;
    gap: 8px;
}

.filter-rating-btn {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.filter-rating-btn:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--primary);
    transform: scale(1.02);
}

.filter-rating-btn:active {
    transform: scale(0.98);
}

.filter-rating-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

/* Filter Year Inputs */
.filter-year-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-year-input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-weight: 500;
    text-align: center;
}

.filter-year-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15),
                0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Filter Apply Button */
.filters-apply-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    margin-top: 8px;
}

.filters-apply-btn:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transform: scale(1.02);
}

.filters-apply-btn:active {
    transform: scale(0.98);
}

.filters-reset-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.filters-reset-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* Utilities */
.fade-in {
    animation: fadeIn 0.3s;
}

.slide-up {
    animation: slideUp 0.3s;
}

/* ===== MODERN FRIENDS SECTION STYLES ===== */

/* Modern Friends Header */
.friends-header-modern {
    padding: 32px 20px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 0 0 24px 24px;
    margin: 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
}

.friends-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        transparent 100%);
    pointer-events: none;
}

.friends-header-title-modern {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.friends-header-title-modern .friends-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.friends-header-subtitle-modern {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Hero Card - Main CTA */
.hero-card-container {
    padding: 0 16px 24px;
}

.hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: glow 8s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.hero-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.hero-card:active {
    transform: translateY(-2px) scale(0.99);
}

.hero-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-card-content {
    position: relative;
    z-index: 1;
}

.hero-card-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.hero-card-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #8b5cf6;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    background: white;
}

.hero-card-btn-text {
    font-weight: 700;
}

.hero-card-btn-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.hero-card-btn:hover .hero-card-btn-icon {
    transform: translateX(4px);
}

/* Create Form Section */
.create-form-section {
    padding: 0 16px 24px;
    animation: slideDown 0.3s ease;
}

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

.create-form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.form-label-modern {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.form-input-modern,
.form-textarea-modern {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(59, 130, 246, 0.15);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-input-modern:focus,
.form-textarea-modern:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15),
                0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea-modern {
    resize: vertical;
    min-height: 80px;
}

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

.btn-gradient {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-outline {
    flex: 0 0 auto;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* Modern Section */
.section-modern {
    margin-bottom: 32px;
}

.section-header-modern {
    padding: 0 16px 16px;
}

.section-title-modern {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

/* Modern Shared List Container */
.shared-list-container-modern,
.invitation-container-modern {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Modern Shared List Card */
.shared-list-card-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.shared-list-card-delete {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0;
}

.shared-list-card-modern:hover .shared-list-card-delete {
    opacity: 1;
}

.shared-list-card-delete:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.shared-list-card-delete:active {
    transform: scale(0.95);
}

.shared-list-card-delete svg {
    width: 16px;
    height: 16px;
}

.shared-list-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.shared-list-card-modern:hover::before {
    opacity: 1;
}

.shared-list-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15),
                0 0 0 1px rgba(139, 92, 246, 0.2) inset;
    border-color: rgba(139, 92, 246, 0.3);
}

.shared-list-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.shared-list-card-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.shared-list-card-info {
    flex: 1;
    min-width: 0;
}

.shared-list-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.shared-list-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.shared-list-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: #8b5cf6;
    font-weight: 600;
    font-size: 12px;
}

.shared-list-card-count {
    color: var(--text-secondary);
    font-weight: 600;
}

.shared-list-card-count-empty {
    color: var(--text-muted);
    font-style: italic;
}

.shared-list-members {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

.shared-list-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.shared-list-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: #8b5cf6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shared-list-card-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.shared-list-card-btn .btn-arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.shared-list-card-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Modern Invitation Card */
.invitation-card-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.invitation-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #ec4899 100%);
}

.invitation-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.15),
                0 0 0 1px rgba(236, 72, 153, 0.2) inset;
    border-color: rgba(236, 72, 153, 0.3);
}

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

.invitation-card-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.invitation-card-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 10px;
    color: #ec4899;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.invitation-card-content {
    margin-bottom: 16px;
}

.invitation-card-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.invitation-card-text strong {
    font-weight: 700;
    color: #8b5cf6;
}

.invitation-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.invitation-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-accept-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-accept-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.btn-accept-modern:active {
    transform: translateY(0);
}

.btn-decline-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ef4444;
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-decline-modern:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-decline-modern:active {
    transform: scale(0.98);
}

/* Modern Empty State */
.empty-state-modern {
    padding: 48px 24px;
    text-align: center;
}

.empty-icon-modern {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    opacity: 0.7;
}

.empty-text-modern {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-hint-modern {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Mobile Responsive for Modern Friends Section */
@media (max-width: 640px) {
    .friends-header-modern {
        padding: 20px 16px 24px;
        border-radius: 0 0 24px 24px;
    }

    .friends-header-title-modern {
        font-size: 24px;
    }

    .friends-header-subtitle-modern {
        font-size: 14px;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-card-icon {
        font-size: 40px;
    }

    .hero-card-title {
        font-size: 20px;
    }

    .hero-card-subtitle {
        font-size: 13px;
    }

    .create-form-card {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-outline {
        width: 100%;
    }

    .shared-list-card-modern,
    .invitation-card-modern {
        padding: 16px;
    }

    .shared-list-card-icon,
    .invitation-card-icon {
        font-size: 28px;
    }

    .shared-list-card-title {
        font-size: 16px;
    }

    .invitation-card-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 90%;
    width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    pointer-events: all;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Toast types */
.toast-success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

/* Mobile toast */
@media (max-width: 640px) {
    .toast-container {
        width: calc(100% - 32px);
        top: 16px;
    }

    .toast {
        padding: 14px 16px;
    }

    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .toast-message {
        font-size: 14px;
    }
}

/* ===== CONFIRMATION MODAL ===== */

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal.confirm-show {
    opacity: 1;
}

.confirm-modal.confirm-show .confirm-content {
    transform: scale(1);
    opacity: 1;
}

.confirm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.confirm-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    padding: 32px 24px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.confirm-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.confirm-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 28px 0;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.confirm-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.confirm-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.confirm-btn-cancel:active {
    transform: scale(0.98);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.confirm-btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: scale(1.02);
}

.confirm-btn-confirm:active {
    transform: scale(0.98);
}

.confirm-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.confirm-btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Mobile confirmation */
@media (max-width: 640px) {
    .confirm-content {
        padding: 28px 20px 20px;
        max-width: calc(100% - 32px);
    }

    .confirm-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .confirm-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .confirm-message {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .confirm-actions {
        gap: 10px;
    }

    .confirm-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}
