:root {
    --bg: #090e17;
    --surface: rgba(255, 255, 255, 0.05); /* Матовое стекло */
    --surface-hover: rgba(255, 255, 255, 0.09);
    --primary: #3b82f6;
    --primary-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --danger: #ef4444;
    --success: #10b981;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --safe-top: var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px));
    --safe-bottom: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    background: #05070c;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

.app-container {
    width: 100%;
    height: var(--tg-viewport-stable-height, 100vh);
    background: var(--bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.blob-1 {
    top: -5%; left: -15%;
    width: 350px; height: 350px;
    background: #3b82f6;
}

.blob-2 {
    bottom: 5%; right: -15%;
    width: 300px; height: 300px;
    background: #8b5cf6;
}

@media (min-width: 600px) {
    .app-container {
        max-width: 480px;
        height: var(--tg-viewport-stable-height, 90vh);
        max-height: 850px;
        border-radius: 32px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#global-loader {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    /* Убрали лишний отступ сверху */
    padding-top: 0; 
    padding-bottom: var(--safe-bottom);
}

#global-loader.visible {
    opacity: 1;
    pointer-events: auto;
}

.global-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s var(--ease);
    flex: 1;
    overflow-y: auto;
    /* ИЗМЕНЕНО: уменьшен верхний отступ с 48px до 20px */
    padding: calc(20px + var(--safe-top)) 16px calc(120px + var(--safe-bottom)) 16px;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.page::-webkit-scrollbar {
    display: none;
}

.page.active {
    display: block;
    opacity: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 6px;
}

.logo span {
    color: var(--primary);
}

.user-badge {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.user-badge:active {
    transform: scale(0.92);
    background: var(--surface-hover);
}

.banner {
    position: relative;
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
    transition: transform 0.3s var(--ease);
}

.banner:active {
    transform: scale(0.96);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
    transform: skewX(-20deg);
}

@keyframes shimmer {
    100% { left: 200%; }
}

.banner-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 4px;
    color: #fff;
    display: flex;
    gap: 8px;
    align-items: center;
}

.banner-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-arrow {
    background: rgba(255, 255, 255, 0.2);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.section-header {
    margin-bottom: 12px;
}

.section-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.sub-card.expanded {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.sub-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.sub-header:active {
    background: var(--surface-hover);
}

.sub-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
}

.sub-card.expanded .sub-body {
    max-height: 1000px;
    opacity: 1;
}

.sub-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.sub-date {
    font-size: 12px;
    font-weight: 500;
}

.sub-toggle-icon {
    transition: transform 0.4s var(--ease);
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 12px;
}

.sub-card.expanded .sub-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.location-item {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.location-item:last-child {
    border-bottom: none;
}

.location-item:active {
    background: var(--surface-hover);
}

.loc-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flag-icon {
    width: 28px;
    height: 21px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.loc-name {
    font-weight: 600;
    font-size: 15px;
}

.loc-proto {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-hover);
    padding: 3px 6px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.plan-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.plan-card:active {
    transform: scale(0.95);
    border-color: var(--primary);
    background: var(--surface-hover);
}

.plan-card.best {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
}

.plan-card.best:active {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.1));
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.plan-card.best .plan-badge {
    left: auto;
    right: 20px;
    top: 20px;
    transform: none;
    position: static;
}

.plan-header {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.plan-card.best .plan-header {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 15px;
}

.plan-price {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.plan-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.profile-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.avatar {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details .name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}

.details .id {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
    background: var(--surface-hover);
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--border);
    gap: 14px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tx-item:active {
    background: var(--surface-hover);
    transform: scale(0.97);
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.tx-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.tx-date {
    font-size: 12px;
    color: var(--text-muted);
}

.tx-status {
    font-size: 18px;
}

.menu-list {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: var(--surface-hover);
}

.menu-item .icon {
    width: 32px;
    font-size: 18px;
    color: var(--primary);
    display: flex;
    justify-content: flex-start;
}

.menu-item .text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.menu-item .fa-chevron-right {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.5;
}

.btn-icon {
    background: var(--surface-hover);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-icon:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.9);
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 25, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding-bottom: var(--safe-bottom);
}

.nav-container {
    display: flex;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 8px 16px;
    gap: 8px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 10px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.nav-item.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-item.active {
    color: #3b82f6;
}

.nav-icon-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item span {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 600;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active .nav-icon-wrap {
    transform: translateY(-2px) scale(1.05);
}

.nav-item.active span {
    transform: translateY(1px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear;
}

.modal-overlay.hidden {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s;
}

.bottom-sheet {
    background: rgba(20, 25, 35, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    width: 100%;
    max-width: 480px;
    border-radius: 28px 28px 0 0;
    padding: 24px;
    padding-bottom: calc(24px + var(--safe-bottom));
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 90vh;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    will-change: transform;
    overscroll-behavior: contain;
}

.modal-overlay.hidden .bottom-sheet {
    transform: translateY(100%);
}

.bottom-sheet.pulling {
    transition: none;
}

@media (min-width: 600px) {
    .bottom-sheet {
        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 16px;
    }
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 24px;
}

.bottom-sheet h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
}

.sheet-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.settings-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.setting-row {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row.clickable {
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.setting-row.clickable:active {
    background: var(--surface-hover);
}

.setting-row.total-row {
    font-weight: 700;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.stepper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.stepper button {
    background: none;
    border: none;
    color: var(--text);
    width: 44px;
    height: 44px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.stepper button:active {
    background: var(--primary-gradient);
}

.stepper span {
    width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    line-height: 44px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.pay-method {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.pay-method i {
    font-size: 24px;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

.pay-method.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.pay-method.selected i {
    color: var(--primary);
}

.btn-main {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-main:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    margin-bottom: 8px;
    box-shadow: none;
}

.btn-copy:active {
    background: rgba(59, 130, 246, 0.1);
}

.select-pills {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.pill {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pill.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.styled-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.styled-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: center;
}

.instruction-block {
    background: rgba(59, 130, 246, 0.08);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    text-align: center;
    margin-top: 24px;
    transition: background 0.3s var(--ease);
}

.instruction-block:active {
    background: rgba(59, 130, 246, 0.15);
}

.notification {
    position: fixed;
    /* ИЗМЕНЕНО: уменьшен отступ сверху */
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 300;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.notification.visible {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

.notification.error {
    background: rgba(239, 68, 68, 0.95);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--text-muted);
}

.empty-title {
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.empty-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, rgba(255,255,255,0.1) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite linear;
}

.skeleton-card {
    height: 80px;
    border-radius: 20px;
    margin-bottom: 12px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hidden {
    display: none !important;
}