/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.main-content {
    flex: 1;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: calc(var(--nav-height) + 20px);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
    z-index: var(--z-header);
    display: flex;
    justify-content: center;
    padding-top: env(safe-area-inset-top);
}

.header-inner {
    width: 100%;
    max-width: 100%;
    /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    padding: 0 15px; 
    
    display: flex;
    /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    justify-content: space-between; 
    align-items: center;
    
    height: 60px;
    position: relative;
    
    /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
}

.logo-icon-square {
    width: 50px; height: 50px; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.desktop-nav {
    display: none; 
}

@media (min-width: 769px) {
    .bottom-nav { display: none !important; }
    
    .desktop-nav { 
        display: flex; 
        gap: 30px; 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%); /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
        height: 100%;
        align-items: center;
    }
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.d-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.85;
    font-weight: 700; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
    height: 100%;
}
.d-nav-item:hover {
    opacity: 1;
    text-decoration: underline; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    text-underline-offset: 5px;
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.nav-badge-count {
    background: red;
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: absolute;
    top: 15px;
    right: -10px;
    border: 1px solid white;
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.dashboard-tabs {
    display: flex;
    justify-content: center; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    gap: 10px;
    padding: 0 10px;
    margin-bottom: 25px;
    overflow-x: auto;
}

.tab-pill {
    padding: 8px 20px;
    background: white; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    color: #64748b;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.tab-pill.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: white;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: var(--z-header);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    position: relative;
}
.nav-item.active { color: var(--color-primary); }
.nav-item .material-icons-round { font-size: 26px; }

.badge {
    position: absolute;
    top: 8px; right: 25%;
    background: var(--color-error);
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 1px solid white;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
}
@media (min-width: 600px) {
    .profile-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .profile-grid { grid-template-columns: repeat(5, 1fr); }
}

.landing-page, .payment-page {
    position: absolute;
    top: 0; left: 0; width: 100%; min-height: 100vh;
    background: white;
    z-index: 2000;
    overflow-y: auto;
}
/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */

.app-footer {
    padding: 40px 20px;
    /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    padding-bottom: 90px; 
    background: #eef2f6;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: auto; 
    width: 100%;
    position: relative; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    z-index: 1; 
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-link {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}
.footer-link:hover { text-decoration: underline; color: var(--color-primary); }
.copyright {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
#toast-container {
    position: fixed;
    top: 90px; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
}

.toast {
    pointer-events: auto;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 320px;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--color-primary);
    opacity: 1;
    transition: opacity 0.5s, transform 0.5s;
}
.toast.hiding {
    opacity: 0;
    transform: translateX(50px);
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.header .btn-upgrade {
    padding: 12px 28px !important; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    font-size: 1rem !important;    /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    border-radius: 30px !important;
    letter-spacing: 0.5px;
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.header {
    position: absolute; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    top: 0; left: 0; right: 0;
    height: auto;
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
    z-index: var(--z-header);
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
}

/* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
.main-content {
    flex: 1;
    /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    padding-top: 20px; 
    /* Но нужно сделать отступ сверху равный высоте хедера, чтобы не налезло, 
       если мы используем absolute. Если absolute, то padding нужен. 
       Если position: relative, то нет. 
       Лучше использовать relative для поведения "скроллится вместе" */
    position: relative; 
    top: 150px; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    padding-bottom: calc(var(--nav-height) + 20px);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Корректируем отступ основного контента, 
   чтобы он не прятался под большим хедером.
   Примерно 140px (баннер + лого + фильтры) */
.main-content {
    flex: 1;
    padding-top: 50px; /* It is owned by QuickSpark.club. Copying of the technology is prohibited. */
    padding-bottom: calc(var(--nav-height) + 20px);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}