/* ========== COMPONENTS CSS - STICKERLINK ========== */
/* Semua komponen reusable untuk website */

/* ========== CHAT COMPONENTS ========== */
.chat-container {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.chat-header {
    background: var(--primary-gradient);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-messages {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.chat-message {
    margin-bottom: 16px;
    max-width: 85%;
}

.chat-message.sent {
    margin-left: auto;
}

.chat-message.received {
    margin-right: auto;
}

.chat-bubble {
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
}

.chat-message.sent .chat-bubble {
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .chat-bubble {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    color: var(--text-color);
}

.chat-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-color);
}

.chat-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,92,74,0.1);
}

.chat-send {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}

.chat-send:hover {
    transform: scale(1.05) rotate(5deg);
}

.chat-quick-questions {
    padding: 12px 16px;
    background: var(--secondary);
    border-top: 1px solid var(--border-color);
}

.chat-quick-questions h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.chat-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.chat-chip {
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
}

.chat-chip:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chat-wa-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary-soft);
    border-radius: 16px;
    margin: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.chat-wa-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.chat-wa-icon {
    width: 48px;
    height: 48px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.chat-wa-text h4 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
}

.chat-wa-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== TYPING INDICATOR ========== */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 16px;
}

.chat-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* ========== GARZ AI COMPONENTS ========== */
.garz-ai-button {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
    border: 3px solid white;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: garzPulse 2s infinite;
}

@keyframes garzPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 20px rgba(102,126,234,0.4); }
    70% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(102,126,234,0.6); }
}

.garz-ai-button:hover {
    transform: scale(1.1);
}

.garz-ai-window {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

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

.garz-ai-window.active {
    display: flex;
}

.garz-ai-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.garz-ai-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.garz-ai-avatar i {
    font-size: 1.2rem;
}

.garz-ai-header-actions {
    display: flex;
    gap: 12px;
}

.garz-ai-header-actions i {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.garz-ai-header-actions i:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.garz-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-primary);
}

.garz-ai-message {
    margin-bottom: 16px;
    max-width: 85%;
}

.garz-ai-message.sent {
    margin-left: auto;
}

.garz-ai-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
}

.garz-ai-message.sent .garz-ai-bubble {
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.garz-ai-message.received .garz-ai-bubble {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    color: var(--text-color);
}

.garz-ai-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.garz-ai-input-area {
    padding: 12px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.garz-ai-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-color);
}

.garz-ai-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.garz-ai-send {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.25);
}

.garz-ai-send:hover {
    transform: scale(1.05) rotate(5deg);
}

.garz-ai-quick-questions {
    padding: 10px 12px;
    background: var(--secondary);
    border-top: 1px solid var(--border-color);
}

.garz-ai-quick-questions h4 {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.garz-ai-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.garz-ai-chip {
    padding: 6px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-color);
}

.garz-ai-chip:hover {
    background: var(--primary-soft);
    border-color: #667eea;
    transform: translateY(-2px);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 2px;
    transform: rotate(45deg);
    animation: lightningPulse 1.2s ease-in-out infinite;
}

@keyframes lightningPulse {
    0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.5; }
    50% { transform: rotate(45deg) scale(1.5); opacity: 1; background: #a5b4fc; }
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* ========== STORE PREVIEW COMPONENTS ========== */
.store-preview-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.store-banner {
    height: 140px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-bottom: -50px;
    overflow: hidden;
    position: relative;
}

.store-banner.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: 4px solid white;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

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

.store-info {
    text-align: center;
}

.store-name-display {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-color);
}

.store-category-badge {
    display: inline-block;
    background: var(--primary-soft);
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.store-description-display {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.9rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.store-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    padding: 8px 18px;
    border-radius: 40px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.store-visits {
    background: var(--primary-gradient);
    padding: 16px;
    border-radius: 16px;
    color: white;
    max-width: 200px;
    margin: 0 auto;
}

.store-visits-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.store-visits-count {
    font-size: 1.8rem;
    font-weight: 800;
}

/* ========== MOBILE PREVIEW COMPONENTS ========== */
.mobile-preview-container {
    background: #1E293B;
    border-radius: 32px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: var(--shadow-xl);
}

.mobile-preview-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-device {
    max-width: 320px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 40px;
    overflow: hidden;
    border: 8px solid #0F172A;
    box-shadow: 0 20px 35px rgba(0,0,0,0.4);
    position: relative;
}

.mobile-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #0F172A;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.mobile-screen {
    background: var(--bg-primary);
    height: auto;
    min-height: 550px;
    display: flex;
    flex-direction: column;
}

.mobile-status-bar {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    padding-top: 32px;
}

.mobile-content {
    flex: 1;
    padding: 16px;
    background: var(--bg-primary);
    overflow-y: auto;
    max-height: 450px;
}

.mobile-store-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-store-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    overflow: hidden;
}

.mobile-store-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.mobile-store-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mobile-banner {
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    margin-bottom: 16px;
    overflow: hidden;
}

.mobile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
}

.mobile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.mobile-product-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mobile-product-image {
    height: 70px;
    background: var(--primary-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 8px;
    overflow: hidden;
}

.mobile-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-product-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-product-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-footer {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.6rem;
    transition: all 0.2s ease;
    padding: 6px 0;
    border-radius: 20px;
    flex: 1;
    text-align: center;
}

.mobile-nav-item i {
    font-size: 1rem;
}

.mobile-nav-item.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.mobile-preview-notice {
    background: var(--accent-gradient);
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 16px;
    color: var(--dark);
    font-weight: 600;
    text-align: center;
    font-size: 0.8rem;
}

/* ========== ANALYTICS COMPONENTS ========== */
.analytics-dashboard {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.analytics-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.analytics-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.time-filter {
    padding: 8px 18px;
    border: 1px solid var(--border-medium);
    border-radius: 40px;
    background: var(--bg-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.time-filter:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.time-filter.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.export-btn {
    padding: 8px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
    font-size: 0.85rem;
    color: var(--dark);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,179,71,0.4);
}

.export-dropdown {
    position: relative;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 100;
    border: 1px solid var(--border-light);
    margin-top: 8px;
    overflow: hidden;
}

.export-menu.active {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.export-menu-item {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-color);
}

.export-menu-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.export-menu-item i {
    width: 20px;
    font-size: 1rem;
}

.export-menu-item.excel i { color: #1D6F42; }
.export-menu-item.pdf i { color: #F40F02; }
.export-menu-item.csv i { color: #2A6E5B; }

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--primary-soft);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0;
}

.stat-change {
    font-size: 0.7rem;
}

.stat-change.positive {
    color: #10B981;
}

.stat-change.negative {
    color: #EF4444;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.chart-wrapper {
    height: 250px;
    position: relative;
}

/* ========== FILTER BUTTONS ========== */
.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-medium);
    border-radius: 40px;
    background: var(--bg-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.filter-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* ========== VIDEO TUTORIAL ========== */
.video-tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.video-card .product-image {
    height: 150px;
    margin-bottom: 16px;
    cursor: pointer;
}

.video-card .product-image i {
    font-size: 3rem;
    color: var(--primary);
}

.video-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.video-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ========== RESPONSIVE COMPONENTS ========== */
@media (max-width: 768px) {
    .chat-messages {
        max-height: 350px;
        padding: 16px;
    }
    
    .chat-bubble {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .chat-send {
        width: 44px;
        height: 44px;
    }
    
    .garz-ai-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        height: 70vh;
        bottom: 100px;
    }
    
    .garz-ai-button {
        bottom: 90px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .store-name-display {
        font-size: 1.3rem;
    }
    
    .store-avatar {
        width: 80px;
        height: 80px;
    }
    
    .store-banner {
        height: 120px;
    }
    
    .mobile-device {
        max-width: 100%;
        border-width: 6px;
    }
    
    .mobile-content {
        padding: 12px;
        max-height: 400px;
    }
    
    .mobile-product-grid {
        gap: 8px;
    }
    
    .mobile-product-image {
        height: 60px;
    }
    
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    
    .video-tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .chat-chips {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chat-chip {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .garz-ai-chips {
        grid-template-columns: 1fr;
    }
    
    .store-preview-container {
        padding: 16px;
    }
    
    .store-name-display {
        font-size: 1.1rem;
    }
    
    .store-category-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .store-visits-count {
        font-size: 1.4rem;
    }
    
    .mobile-preview-container {
        padding: 12px;
    }
    
    .mobile-nav-item i {
        font-size: 0.9rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.55rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .analytics-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .time-filter {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .export-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .video-tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .export-menu {
        right: auto;
        left: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .garz-ai-window {
        width: 380px;
        right: 30px;
    }
    
    .mobile-device {
        max-width: 350px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) {
    .garz-ai-window {
        width: 400px;
        height: 550px;
        right: 40px;
        bottom: 120px;
    }
    
    .garz-ai-button {
        bottom: 80px;
        right: 40px;
    }
    
    .mobile-device {
        max-width: 350px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== ANIMATIONS FOR COMPONENTS ========== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.chat-message {
    animation: fadeInUp 0.3s ease;
}

.garz-ai-message {
    animation: fadeInUp 0.3s ease;
}

.notification-item {
    animation: slideIn 0.3s ease;
}

/* ========== SCROLLBAR FOR COMPONENTS ========== */
.chat-messages::-webkit-scrollbar,
.garz-ai-messages::-webkit-scrollbar,
.mobile-content::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track,
.garz-ai-messages::-webkit-scrollbar-track,
.mobile-content::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.garz-ai-messages::-webkit-scrollbar-thumb,
.mobile-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
