/* ========== CSS VARIABLES & RESET ========== */
:root {
    /* Colors - brighter, more modern */
    --primary: #6c5ce7;          /* Clean purple */
    --secondary: #00b894;         /* Fresh mint */
    --accent: #e17055;            /* Warm orange */
    --dark: #2d3436;              /* Near black */
    --light: #ffffff;
    --medium-gray: #636e72;
    --light-gray: #dfe6e9;
    --background: #f0f3f8;        /* Softer background */

    /* Gradients - refined */
    --gradient-primary: linear-gradient(145deg, #6c5ce7, #a29bfe);
    --gradient-secondary: linear-gradient(145deg, #00b894, #55efc4);
    --gradient-accent: linear-gradient(145deg, #e17055, #fab1a0);
    --gradient-dark: linear-gradient(145deg, #1e272e, #2d3436);

    /* Border radius - larger for modern look */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Shadows - softer diffusion */
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 28px -8px rgba(108, 92, 231, 0.12);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.18);

    /* Transition */
    --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);

    /* Safe area insets */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--dark);
    min-height: 100vh;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    overflow-x: hidden;
}

.app-container {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 100px;
    min-height: calc(100vh - 80px);
}

/* ========== TELEGRAM FLOATING BUTTON ========== */
.tg-floating {
    position: fixed;
    right: 25px;
    bottom: 50%;
    z-index: 9999;
    text-decoration: none;
}

.tg-avatar-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.tg-avatar-wrapper:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 28px rgba(0,0,0,0.3);
}

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

.tg-online-indicator {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 14px;
    height: 14px;
    background-color: #2ecc71;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(46,204,113,0.6);
    animation: tg-pulse 2s infinite;
}

@keyframes tg-pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

@media (max-width: 600px) {
    .tg-avatar-wrapper {
        width: 56px;
        height: 56px;
    }
    .tg-online-indicator {
        width: 12px;
        height: 12px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(-50%) translateY(0); opacity: 1; }
    to { transform: translateX(-50%) translateY(-20px); opacity: 0; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========== HEADER SECTION ========== */
.app-header {
    padding: 20px 24px;
    background: #4f8efb;
    position: relative;
    z-index: 10;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.05);
    border-radius: 0 0 32px 32px;
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    margin: 1.8rem 0;
    width: 100%;
}

.greeting {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.welcome-text {
    font-size: 15px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.user-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 25px 30px -10px rgba(0,0,0,0.2);
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 3;
}

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

/* ========== CAROUSEL SECTION ========== */
.carousel-section {
    padding: 20px 0 0;
    position: relative;
}

.carousel-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 0 24px;
    box-shadow: var(--shadow-lg);
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.35));
    z-index: 1;
}

.carousel-slide .slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: white;
}

.slide-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-subtitle {
    font-size: 13px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    max-width: 70%;
}

.carousel-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    border: none;
}

.carousel-container:hover .carousel-indicator {
    opacity: 1;
}

.carousel-indicator:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.8);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    z-index: 3;
    animation: hintPulse 3s infinite;
    backdrop-filter: blur(4px);
}

/* ========== NEWS TICKER ========== */
.news-ticker {
    background: var(--light);
    margin: 16px 24px;
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ff6b6b;
    color: white;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
    font-size: 13px;
    color: var(--dark);
    font-weight: 500;
}

.ticker-item.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* ========== QUICK ACTIONS SECTION (UPDATED MODERN STYLE) ========== */
.quick-actions-section {
    padding: 0 24px;
    margin-bottom: 28px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.see-all {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.see-all:hover {
    background: rgba(108, 92, 231, 0.15);
}

/* Quick actions grid - horizontal layout with glassmorphism */
.quick-actions-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}

.quick-action {
    flex: 1 0 140px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 22px 10px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 12px 30px -8px rgba(108, 92, 231, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient border effect */
.quick-action::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(108,92,231,0.3), rgba(0,184,148,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.quick-action:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 40px -10px rgba(108, 92, 231, 0.4);
    background: white;
}

.action-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 12px 18px -6px rgba(108, 92, 231, 0.5);
    transition: inherit;
}

/* Individual action colors */
.quick-action:nth-child(1) .action-icon-wrapper {
    background: linear-gradient(145deg, #00b894, #55efc4);
}
.quick-action:nth-child(2) .action-icon-wrapper {
    background: linear-gradient(145deg, #4a90e2, #8e44ad);
}
.quick-action:nth-child(3) .action-icon-wrapper {
    background: linear-gradient(145deg, #e17055, #f39c7a);
}
.quick-action:nth-child(4) .action-icon-wrapper {
    background: linear-gradient(145deg, #8e44ad, #f39c12);
}

.action-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(145deg, #2d3436, #2d3436);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== PRODUCTS SECTION (COMPLETELY REDESIGNED) ========== */
.products-section {
    padding: 0 24px;
    margin-bottom: 28px;
}

/* Product container - vertical layout, one card per row */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

/* Product card - completely new design */
.product-card {
    background: linear-gradient(145deg, #ffffff, #f8fafd);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 15px 35px -15px rgba(108, 92, 231, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px -15px rgba(108, 92, 231, 0.25);
    border-color: rgba(108, 92, 231, 0.2);
}

.product-card.loading {
    opacity: 0.6;
}

/* Left decorative strip - color coded by product type */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 6px 0 0 6px;
}

/* Product type specific colors for left strip */
.product-card.type-0::before { background: linear-gradient(180deg, #6c5ce7, #a29bfe); }
.product-card.type-1::before { background: linear-gradient(180deg, #00b894, #55efc4); }
.product-card.type-2::before { background: linear-gradient(180deg, #e17055, #fab1a0); }
.product-card.type-3::before { background: linear-gradient(180deg, #ff6b6b, #feca57); }
.product-card.type-4::before { background: linear-gradient(180deg, #4a90e2, #8e44ad); }

/* Badge - positioned top right with glass effect */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2626cf;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(108, 92, 231, 0.2);
    z-index: 2;
}

.product-badge i {
    font-size: 12px;
}

/* Product header with icon and title */
.product-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-right: 100px; /* Space for badge */
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f0f3f8, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.product-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.product-right {
    flex: 1;
}

.product-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.product-subtitle-level {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(145deg, #00b89420, #00b89408);
    color: #00b894;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #00b89430;
}

/* Countdown display */
.countdown-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, #ff6b6b10, #ff6b6b05);
    border: 1px solid #ff6b6b30;
    border-radius: 50px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.countdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.countdown-timer {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    color: #ff6b6b;
    font-size: 16px;
}

.countdown-timer.expired {
    color: #999;
}

/* Progress bar */
.progress-container {
    background: #ffe5e5;
    border-radius: 30px;
    height: 30px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 13px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border-radius: 30px 0 0 30px;
}

.progress-bar.sold-out {
    background: linear-gradient(90deg, #95a5a6, #bdc3c7);
    border-radius: 30px;
}

/* Stats cards - two column grid */
.product-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(108, 92, 231, 0.03);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(108, 92, 231, 0.08);
}

.stat-label {
    font-size: 12px;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Product details grid */
.product-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    background: #f8fafd;
    border-radius: 20px;
    padding: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 11px;
    color: var(--medium-gray);
}

.detail-value {
    font-size: 15px;
    font-weight: 700;
}

/* Investment button */
.invest-button {
    width: 100%;
    border: none;
    border-radius: 60px;
    padding: 18px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px -8px var(--primary);
}

.invest-button i {
    font-size: 18px;
}

.invest-button:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px -8px var(--primary);
}

.invest-button:active {
    transform: scale(0.98);
}

/* Button colors by product type */
.product-card.type-0 .invest-button { background: linear-gradient(145deg, #6c5ce7, #8b85ff); }
.product-card.type-1 .invest-button { background: linear-gradient(145deg, #00b894, #4fd1b0); }
.product-card.type-2 .invest-button { background: linear-gradient(145deg, #e17055, #f39c7a); }
.product-card.type-3 .invest-button { background: linear-gradient(145deg, #ff6b6b, #ff8e8e); }
.product-card.type-4 .invest-button { background: linear-gradient(145deg, #4a90e2, #8e44ad); }

/* ========== SKELETON LOADING ========== */
.product-skeleton {
    background: white;
    border-radius: 28px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.skeleton-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 60px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 3px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #e2e8f0;
    margin-right: 12px;
}

.skeleton-title {
    flex: 1;
}

.skeleton-title-line {
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title-line.short {
    width: 70%;
}

.skeleton-subtitle {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.skeleton-tag {
    width: 50px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 3px;
}

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

.skeleton-metric {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}

.skeleton-metric-label {
    height: 12px;
    width: 70%;
    background-color: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 8px;
}

.skeleton-metric-value {
    height: 20px;
    width: 50%;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.skeleton-profit {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #bae6fd;
}

.skeleton-profit-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skeleton-profit-label {
    height: 12px;
    width: 100px;
    background-color: #bae6fd;
    border-radius: 3px;
}

.skeleton-profit-content {
    display: flex;
    justify-content: space-between;
}

.skeleton-profit-amount {
    height: 24px;
    width: 120px;
    background-color: #bae6fd;
    border-radius: 4px;
}

.skeleton-daily-amount {
    height: 20px;
    width: 80px;
    background-color: #bae6fd;
    border-radius: 4px;
}

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

.skeleton-detail {
    height: 40px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.skeleton-button {
    height: 44px;
    background-color: #e2e8f0;
    border-radius: 10px;
    border: none;
    width: 100%;
}

/* ========== LOADING & EMPTY STATES ========== */
.products-loading, .empty-products {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(108, 92, 231, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite;
    margin: 0 auto 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #e2e8f0;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .app-container {
        max-width: 500px;
        margin: 0 auto;
        padding-bottom: 60px;
    }
    .products-section {
        margin-bottom: 32px;
    }
    .app-header {
        min-height: 170px;
        padding: 20px 16px;
    }
    .header-content {
        margin: 1rem 0;
    }
    .user-name {
        font-size: 22px;
    }
    .user-avatar {
        width: 70px;
        height: 70px;
    }
    .carousel-container {
        height: 180px;
    }
    .carousel-indicator {
        display: none;
    }
    .carousel-slide .slide-title {
        font-size: 18px;
    }
    .carousel-slide .slide-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .app-header {
        min-height: 170px;
        padding: 16px;
    }
    .app-container {
        padding-bottom: 70px;
    }
    .products-section {
        margin-bottom: 36px;
    }
    .products-container {
        margin-bottom: 50px;
    }
    .user-name {
        font-size: 20px;
    }
    .welcome-text {
        font-size: 13px;
    }
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    .carousel-container {
        height: 160px;
        margin: 0 16px;
    }
    .carousel-slide .slide-content {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    .carousel-slide .slide-title {
        font-size: 16px;
    }
    .carousel-slide .slide-subtitle {
        font-size: 11px;
    }
    .carousel-hint {
        display: none;
    }
    
    /* Product card responsive adjustments */
    .product-card {
        padding: 20px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .invest-button {
        font-size: 16px;
        padding: 16px;
    }
    
    .product-badge {
        top: 16px;
        right: 16px;
        padding: 4px 12px;
    }
    
    .product-header {
        padding-right: 90px;
    }
}
