/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0d0f14;
    --bg-secondary: #13161f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(255, 255, 255, 0.06);
    
    --accent-primary: #ff6432;
    --accent-secondary: #ff4500;
    --accent-glow: rgba(255, 100, 50, 0.25);
    
    --text-primary: #f0f2f8;
    --text-secondary: #8892a4;
    --text-muted: #4a5568;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 100, 50, 0.5);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 100, 50, 0.15);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Vazirmatn', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Background Effects ===== */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 100, 50, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(120, 50, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0d0f14 0%, #0a0c10 100%);
    pointer-events: none;
    z-index: 0;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 100, 50, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 50, 255, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(50, 200, 255, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(13, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    transition: var(--transition);
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

.nav-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(255, 100, 50, 0.08);
}

/* ===== Main ===== */
.main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 140px);
}

/* ===== Hero Section ===== */
.hero {
    padding: 80px 0 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 100, 50, 0.1);
    border: 1px solid rgba(255, 100, 50, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 28px;
    animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(255, 100, 50, 0.25); }
    50% { border-color: rgba(255, 100, 50, 0.6); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-primary);
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #ff9060 50%, #ffb040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Search Card ===== */
.search-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    text-align: right;
    transition: var(--transition);
}

.search-card:focus-within {
    border-color: rgba(255, 100, 50, 0.3);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.textarea-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.description-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    padding: 16px 18px;
    resize: vertical;
    min-height: 130px;
    transition: var(--transition);
    direction: rtl;
}

.description-textarea::placeholder {
    color: var(--text-muted);
    font-style: normal;
}

.description-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
}

.char-counter {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    direction: ltr;
}

/* ===== Filters ===== */
.filters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .filters-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .filters-row { grid-template-columns: 1fr; }
}

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

.filter-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-input,
.filter-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.88rem;
    padding: 9px 12px;
    transition: var(--transition);
    direction: rtl;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== Search Button ===== */
.search-button {
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 100, 50, 0.35);
}

.search-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: var(--transition);
}

.search-button:hover::before {
    opacity: 1;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 100, 50, 0.45);
}

.search-button:active {
    transform: translateY(0);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* ===== Suggestions ===== */
.suggestions {
    margin-top: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestions-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 6px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.82rem;
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 100, 50, 0.08);
}

/* ===== AI Analysis ===== */
.ai-analysis {
    display: none !important;
    padding: 0 0 30px;
}

.analysis-card {
    background: rgba(255, 100, 50, 0.06);
    border: 1px solid rgba(255, 100, 50, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slide-in 0.4s ease-out;
}

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

.analysis-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.analysis-icon svg {
    width: 22px;
    height: 22px;
}

.analysis-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.analysis-query {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.query-badge {
    display: inline-flex;
    background: rgba(255, 100, 50, 0.15);
    border: 1px solid rgba(255, 100, 50, 0.3);
    border-radius: 6px;
    padding: 2px 10px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-right: 6px;
}

/* ===== Results Section ===== */
.results-section {
    padding: 20px 0 80px;
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.results-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.results-count {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-right: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 100px;
}

.results-info {
    display: flex;
    align-items: center;
}

.results-view-toggle {
    display: flex;
    gap: 6px;
}

.view-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

.view-btn.active,
.view-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(255, 100, 50, 0.08);
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.products-grid.list-mode {
    grid-template-columns: 1fr;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    animation: card-appear 0.4s ease-out both;
}

@keyframes card-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-card:hover {
    border-color: rgba(255, 100, 50, 0.25);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 100, 50, 0.08);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff2d55, #ff6b00);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 100, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-vendor {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.product-vendor svg {
    width: 13px;
    height: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.vendor-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.stars {
    color: #fbbf24;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.product-price-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-original {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-final {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* List Mode */
.products-grid.list-mode .product-card {
    display: flex;
}

.products-grid.list-mode .product-link {
    display: flex;
    width: 100%;
}

.products-grid.list-mode .product-image-wrapper {
    width: 160px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.products-grid.list-mode .product-info {
    flex: 1;
    padding: 20px;
}

.products-grid.list-mode .product-name {
    font-size: 1rem;
    -webkit-line-clamp: 3;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.page-number.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
    font-weight: 600;
}

.page-number:hover:not(.active) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ===== Empty & Error States ===== */
.empty-state,
.error-state {
    padding: 60px 0;
    text-align: center;
    animation: fade-in 0.5s ease;
}

.empty-content,
.error-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-content h3,
.error-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-content p,
.error-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.error-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.error-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* ===== Settings Page ===== */
.settings-page {
    padding: 50px 0 80px;
}

.settings-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.settings-header {
    text-align: center;
    margin-bottom: 40px;
}

.settings-icon-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 28px var(--accent-glow);
}

.settings-icon-large svg {
    width: 32px;
    height: 32px;
}

.settings-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.settings-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Alert */
.settings-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.settings-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.settings-alert-warning {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: #ffb347;
}

.settings-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Settings Section */
.settings-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 22px;
    height: 22px;
}

.basalam-icon {
    background: rgba(255, 100, 50, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 100, 50, 0.25);
}

.ai-icon {
    background: rgba(120, 80, 255, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(120, 80, 255, 0.25);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.label-required {
    font-size: 0.75rem;
    background: rgba(255, 100, 50, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 100, 50, 0.2);
    padding: 2px 8px;
    border-radius: 100px;
}

.label-optional {
    font-size: 0.75rem;
    background: var(--bg-glass);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 100px;
}

.input-wrapper {
    position: relative;
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 12px 16px;
    transition: var(--transition);
    direction: rtl;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 100, 50, 0.12);
}

.input-wrapper .form-input {
    padding-left: 48px;
}

.toggle-visibility {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.toggle-visibility:hover {
    color: var(--text-primary);
}

.toggle-visibility svg {
    width: 18px;
    height: 18px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Token Guide */
.token-guide {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 8px;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.guide-header svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.guide-header:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.guide-arrow {
    margin-right: auto;
    margin-left: 0;
    transition: transform 0.3s;
}

.guide-arrow.rotated {
    transform: rotate(180deg);
}

.guide-content {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.guide-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 4px;
}

.guide-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.guide-link:hover {
    text-decoration: underline;
}

/* Settings Footer */
.settings-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 10px;
}

.save-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 100, 50, 0.35);
}

.save-button svg {
    width: 18px;
    height: 18px;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 100, 50, 0.45);
}

.cancel-button {
    padding: 15px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.cancel-button:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-dev-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: var(--transition);
}

.footer-dev-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 100, 50, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 100, 50, 0.5);
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

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

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton-image {
    aspect-ratio: 1;
    width: 100%;
}

.skeleton-body {
    padding: 16px;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.price {
    height: 18px;
    width: 45%;
    margin-top: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero { padding: 50px 0 40px; }
    .hero-title { font-size: 1.8rem; }
    .search-card { padding: 20px; }
    .settings-footer { flex-direction: column; }
    .save-button, .cancel-button { width: 100%; text-align: center; justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) {
    .header {
        padding: 10px 0;
    }
    .hero {
        padding: 20px 0 15px;
    }
    .hero-badge {
        margin-bottom: 10px;
        padding: 6px 14px;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    .search-card {
        padding: 20px;
    }
    .textarea-wrapper {
        margin-bottom: 12px;
    }
    .description-textarea {
        min-height: 90px;
        padding: 12px 14px;
    }
    .filters-row {
        margin-bottom: 12px;
        gap: 10px;
    }
    .filter-input,
    .filter-select {
        padding: 7px 10px;
        font-size: 0.85rem;
    }
    .search-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .suggestions {
        margin-top: 14px;
    }
}

/* ===== AI Chat & Assistant Reply Styles ===== */
.ai-chat-reply {
    padding: 0 0 30px;
    animation: slide-in 0.4s ease-out;
}

.chat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.assistant-avatar {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 100, 50, 0.15);
    border: 1px solid rgba(255, 100, 50, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.assistant-status {
    font-size: 0.75rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 4px;
}

.assistant-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4ade80;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-suggestions .suggestions-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chat-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-chip {
    background: rgba(255, 100, 50, 0.08);
    border: 1px dashed rgba(255, 100, 50, 0.25);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.8rem;
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-chip:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 100, 50, 0.15);
    transform: translateY(-1px);
}

/* ===== AI Reason (Matching Reason Badge) ===== */
.product-ai-reason {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 100, 50, 0.05);
    border: 1px solid rgba(255, 100, 50, 0.15);
    border-radius: var(--radius-sm);
    margin: 8px 0 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.ai-reason-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ai-reason-text {
    font-weight: 500;
}

.product-ai-reason.strong-match {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.product-ai-reason.weak-match {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* ===== Non-Matching Cards ===== */
.product-card.non-matching-card {
    opacity: 0.55;
    filter: grayscale(15%);
    border-color: rgba(255, 255, 255, 0.04);
}

.product-card.non-matching-card:hover {
    opacity: 0.95;
    filter: none;
    border-color: rgba(239, 68, 68, 0.3);
}

/* List Mode adjustments */
.products-grid.list-mode .product-ai-reason {
    margin: 6px 0;
    max-width: fit-content;
}

/* ===== Logs Page Custom Styles ===== */
.logs-page {
    padding: 40px 0 80px;
}

.logs-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.logs-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logs-title-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 100, 50, 0.1);
    border: 1px solid rgba(255, 100, 50, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(255, 100, 50, 0.05);
}

.logs-title-icon svg {
    width: 22px;
    height: 22px;
}

.logs-title-text {
    font-size: 1.6rem;
    font-weight: 800;
}

.logs-actions {
    display: flex;
    gap: 12px;
}

.clear-logs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.clear-logs-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-logs-btn svg {
    width: 16px;
    height: 16px;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.log-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.log-card:hover {
    border-color: rgba(255, 100, 50, 0.2);
    background: var(--bg-card-hover);
}

.log-card.expanded {
    border-color: rgba(255, 100, 50, 0.3);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.log-card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 20px;
}

.log-card-header-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    min-width: 0;
}

.log-desc-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.log-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.log-timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.log-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.log-stat-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.log-badges {
    display: flex;
    gap: 8px;
}

.log-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.log-badge.badge-simple { background: rgba(136, 146, 164, 0.15); color: #8892a4; border: 1px solid rgba(136, 146, 164, 0.3); }
.log-badge.badge-openai { background: rgba(16, 163, 127, 0.15); color: #10a37f; border: 1px solid rgba(16, 163, 127, 0.3); }
.log-badge.badge-gemini { background: rgba(26, 115, 232, 0.15); color: #4285f4; border: 1px solid rgba(26, 115, 232, 0.3); }
.log-badge.badge-custom { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.log-badge.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.log-badge.badge-failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.log-chevron {
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.log-chevron svg {
    width: 20px;
    height: 20px;
}

.log-card.expanded .log-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.log-card-body {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    background: rgba(0, 0, 0, 0.15);
    display: none;
}

.log-card.expanded .log-card-body {
    display: block;
    animation: slide-down 0.25s ease-out;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Timeline flow */
.log-timeline {
    position: relative;
    padding-right: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-right: 10px;
}

.log-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    right: -2px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), rgba(120, 50, 255, 0.5));
}

.log-step {
    position: relative;
}

.log-step-node {
    position: absolute;
    top: 2px;
    right: -27px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    z-index: 2;
    box-shadow: 0 0 8px var(--accent-glow);
}

.log-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.log-step-title span.step-label {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.log-step-content {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}

.log-detail-row {
    margin-bottom: 14px;
}

.log-detail-row:last-child {
    margin-bottom: 0;
}

.log-detail-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    text-align: right;
}

.log-detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    text-align: right;
}

/* Codeblock wrapper */
.log-code-container {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-code-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-code-lang {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
    text-transform: uppercase;
}

.copy-code-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.copy-code-btn:hover {
    color: var(--text-primary);
}

.copy-code-btn svg {
    width: 13px;
    height: 13px;
}

.log-code {
    display: block;
    background: #08090d;
    padding: 14px;
    color: #a9b2c3;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    text-align: left;
    direction: ltr;
    max-height: 240px;
    overflow-y: auto;
}

/* Basalam queries view */
.basalam-queries-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basalam-query-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.basalam-query-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.bq-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-primary);
}

.bq-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.basalam-products-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.bp-preview-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    padding: 4px 8px;
    border-radius: 4px;
}

.bp-preview-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
    text-align: right;
}

.bp-preview-price {
    font-family: var(--font);
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Version Badge ===== */
.version-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 100px;
    transition: var(--transition);
    display: none;
    direction: rtl;
    font-family: var(--font);
}

.version-badge:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(255, 100, 50, 0.05);
}

/* ===== Logs Password Overlay ===== */
.password-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 15, 20, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade-in 0.3s ease-out;
}

.password-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-card), 0 0 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    animation: scale-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-up {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.password-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.1), rgba(255, 69, 0, 0.05));
    border: 1px solid rgba(255, 100, 50, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(255, 100, 50, 0.1);
}

.password-icon svg {
    width: 28px;
    height: 28px;
}

.password-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.password-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.password-input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    padding: 14px 20px;
    text-align: center;
    transition: var(--transition);
}

.password-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 16px rgba(255, 100, 50, 0.15);
}

.password-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 100, 50, 0.25);
}

.password-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 100, 50, 0.35);
}

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

.password-error-msg {
    margin-top: 15px;
    color: #f87171;
    font-size: 0.85rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

