/* ============ EAForex Store — Modern Minimal Design ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    background: #FAFAF8; color: #1A1A1A; line-height: 1.6;
    min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: 'SF Mono', Consolas, 'Courier New', monospace; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
main.container { padding-top: 32px; padding-bottom: 48px; flex: 1; }
.hidden { display: none !important; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid #F0F0F0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; background: #1A1A1A; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-logo svg { width: 18px; height: 18px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.brand-tag { font-size: 10px; color: #9B9B9B; margin-top: 2px; }
.nav { display: flex; gap: 4px; }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: #6B6B6B; border-radius: 999px; transition: all .15s; }
.nav-btn:hover { color: #1A1A1A; background: #FAFAF8; }
.nav-btn.active { color: #1A1A1A; background: #F0F0F0; }
@media (max-width: 640px) { .nav-btn span { display: none; } }

/* HERO */
.hero { position: relative; overflow: hidden; border-radius: 24px; background: #1A1A1A; color: white; padding: 48px 32px; margin-bottom: 32px; }
.hero-blob { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; }
.hero-blob-1 { top: -60px; right: -60px; background: rgba(184,169,232,0.25); }
.hero-blob-2 { bottom: -60px; left: -60px; background: rgba(78,205,196,0.2); }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; font-size: 11px; margin-bottom: 16px; }
.hero-title { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; }
.hero-subtitle { display: block; font-size: 20px; font-weight: 500; color: #B8A9E8; margin-top: 8px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 560px; margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; color: rgba(255,255,255,0.7); font-size: 11px; }
@media (min-width: 768px) { .hero-title { font-size: 40px; } .hero-subtitle { font-size: 24px; } }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #B8A9E8; color: #1A1A1A; border-radius: 999px; font-size: 13px; font-weight: 700; border: none; cursor: pointer; transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.btn-primary:hover { background: #A89AD8; box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: white; color: #1A1A1A; border: 1px solid #F0F0F0; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-outline:hover { background: #FAFAF8; }
.btn-buy-small { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: #1A1A1A; color: white; border-radius: 999px; font-size: 11px; font-weight: 600; }
.btn-buy-large { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; background: #B8A9E8; color: #1A1A1A; border-radius: 999px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.btn-buy-large:hover { background: #A89AD8; box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px); }
.btn-filter { padding: 10px 18px; background: #1A1A1A; color: white; border: none; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-filter:hover { background: #333; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat-card { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 20px; transition: all .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.stat-icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 18px; }
.stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.stat-label { font-size: 11px; color: #9B9B9B; font-weight: 500; margin-top: 4px; }

/* SECTION */
.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 14px; font-weight: 600; color: #1A1A1A; margin-bottom: 16px; }
.section-count { font-size: 11px; color: #9B9B9B; font-weight: 500; }

/* CARDS */
.featured-grid, .products-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.featured-card, .product-card { position: relative; overflow: hidden; background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 20px; transition: all .2s; display: flex; flex-direction: column; color: inherit; cursor: pointer; }
.featured-card:hover, .product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.featured-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.card-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.badge { font-size: 10px; padding: 3px 10px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid; white-space: nowrap; }
.badge-discount { background: #FF6B6B15; color: #DC2626; border-color: #FF6B6B30; }
.badge-platform { background: #F0F0F0; color: #6B6B6B; border-color: transparent; }
.card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.card-title-fa { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 2px; }
.card-title-en { font-size: 11px; color: #9B9B9B; margin-bottom: 8px; direction: ltr; text-align: right; }
.card-desc { font-size: 12px; color: #6B6B6B; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; color: #6B6B6B; margin-bottom: 12px; }
.card-footer { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 12px; border-top: 1px solid #F0F0F0; }
.card-price { display: flex; align-items: baseline; gap: 6px; }
.price { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.old-price { font-size: 11px; color: #9B9B9B; text-decoration: line-through; }

/* FILTERS */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 12px; margin-bottom: 20px; }
.filter-search { position: relative; flex: 1; min-width: 200px; }
.filter-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.filter-search input { width: 100%; padding: 10px 40px 10px 14px; border: 1px solid #F0F0F0; border-radius: 999px; background: #FAFAF8; font-size: 13px; direction: rtl; }
.filter-search input:focus { outline: none; border-color: #E0E0E0; box-shadow: 0 0 0 3px rgba(26,26,26,.05); }
.filters select { padding: 10px 16px; border: 1px solid #F0F0F0; border-radius: 999px; background: #FAFAF8; font-size: 13px; cursor: pointer; }
.filters select:focus { outline: none; border-color: #E0E0E0; box-shadow: 0 0 0 3px rgba(26,26,26,.05); }

/* EMPTY / BACK */
.empty { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 60px 24px; text-align: center; }
.empty p { font-size: 13px; color: #9B9B9B; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6B6B6B; margin-bottom: 20px; transition: color .15s; }
.back-link:hover { color: #1A1A1A; }

/* PRODUCT DETAIL */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 2fr 1fr; } }
.product-main { background: white; border: 1px solid #F0F0F0; border-radius: 20px; padding: 28px; }
.product-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.product-icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-title-area { flex: 1; min-width: 0; }
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.product-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; }
.product-subtitle { font-size: 13px; color: #9B9B9B; margin-top: 2px; direction: ltr; text-align: right; }
.product-rating { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6B6B6B; margin-top: 10px; }
.product-section { border-top: 1px solid #F0F0F0; padding-top: 20px; margin-top: 20px; }
.product-section h2 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.product-desc-fa { font-size: 14px; line-height: 1.8; color: #1A1A1A; }
.product-desc-en { font-size: 12px; line-height: 1.7; color: #6B6B6B; margin-top: 16px; padding-top: 16px; border-top: 1px solid #F0F0F0; direction: ltr; text-align: left; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-item { display: flex; align-items: flex-start; gap: 8px; padding: 12px; background: #FAFAF8; border: 1px solid #F0F0F0; border-radius: 12px; font-size: 12px; line-height: 1.6; }
.feature-item svg { margin-top: 4px; flex-shrink: 0; }

.product-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-price { background: white; border: 1px solid #F0F0F0; border-radius: 20px; padding: 24px; text-align: center; margin-bottom: 12px; }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.big-price { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; }
.sidebar-price .old-price { font-size: 14px; }
.discount-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; background: #FF6B6B15; color: #DC2626; border-radius: 999px; font-size: 11px; font-weight: 700; }
.sidebar-features { background: white; border: 1px solid #F0F0F0; border-radius: 20px; padding: 20px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: #6B6B6B; }
.sidebar-cryptos { padding: 20px; background: white; border: 1px solid #F0F0F0; border-radius: 20px; margin-top: 12px; }
.sidebar-cryptos p { font-size: 10px; color: #9B9B9B; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.crypto-list { display: flex; flex-wrap: wrap; gap: 6px; }
.crypto-chip { display: inline-block; padding: 4px 10px; background: #FAFAF8; border: 1px solid #F0F0F0; border-radius: 999px; font-size: 10px; font-weight: 700; direction: ltr; }

/* CHECKOUT */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 3fr 2fr; } }
.checkout-form, .checkout-summary { background: white; border: 1px solid #F0F0F0; border-radius: 20px; padding: 28px; }
.checkout-form h1 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.form-hint { font-size: 12px; color: #9B9B9B; margin-bottom: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password] { width: 100%; padding: 12px 16px; border: 1px solid #F0F0F0; border-radius: 999px; background: #FAFAF8; font-size: 13px; }
.field input:focus { outline: none; border-color: #E0E0E0; box-shadow: 0 0 0 3px rgba(26,26,26,.05); }
.field small { display: block; font-size: 10px; color: #9B9B9B; margin-top: 6px; }

.crypto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .crypto-grid { grid-template-columns: repeat(3, 1fr); } }
.crypto-option { display: flex; align-items: center; gap: 8px; padding: 12px; background: white; border: 1px solid #F0F0F0; border-radius: 14px; cursor: pointer; transition: all .15s; }
.crypto-option:hover { background: #FAFAF8; }
.crypto-option.selected { border-color: #1A1A1A; background: #FAFAF8; }
.crypto-option input { display: none; }
.crypto-avatar { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; flex-shrink: 0; }
.crypto-info { flex: 1; min-width: 0; }
.crypto-sym { display: block; font-size: 12px; font-weight: 700; }
.crypto-lbl { display: block; font-size: 9px; color: #9B9B9B; }

.agree { display: flex; align-items: flex-start; gap: 8px; padding: 14px; background: #FAFAF8; border: 1px solid #F0F0F0; border-radius: 12px; cursor: pointer; font-size: 12px; color: #6B6B6B; line-height: 1.7; margin-bottom: 16px; }
.agree input { margin-top: 4px; flex-shrink: 0; }

.error-box { padding: 12px; background: #FF6B6B10; border: 1px solid #FF6B6B30; border-radius: 12px; color: #DC2626; font-size: 12px; margin-bottom: 16px; }

.checkout-summary h3 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.summary-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: #FAFAF8; border: 1px solid #F0F0F0; border-radius: 12px; margin-bottom: 16px; }
.summary-icon { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.summary-icon img { width: 100%; height: 100%; object-fit: cover; }
.summary-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.summary-name { font-size: 12px; font-weight: 700; margin-top: 2px; }
.summary-platform { font-size: 10px; color: #9B9B9B; margin-top: 2px; }
.summary-rows { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.summary-rows .row { display: flex; justify-content: space-between; align-items: center; }
.summary-rows .row span:first-child { color: #6B6B6B; }
.summary-rows .muted { color: #9B9B9B; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; margin-top: 14px; border-top: 1px solid #F0F0F0; }
.total-price { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.summary-trust { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; margin-top: 16px; border-top: 1px solid #F0F0F0; font-size: 11px; color: #6B6B6B; }

/* SUCCESS */
.success-card { background: white; border: 1px solid #F0F0F0; border-radius: 20px; padding: 40px 32px; text-align: center; max-width: 620px; margin: 0 auto; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #4ADE8015; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.success-card > p { font-size: 13px; color: #6B6B6B; margin-bottom: 24px; }
.order-summary { background: #FAFAF8; border: 1px solid #F0F0F0; border-radius: 16px; padding: 20px; text-align: right; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.order-summary .row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #F0F0F0; font-size: 12px; }
.order-summary .row:last-child { border-bottom: none; padding-bottom: 0; }
.order-summary .row span:first-child { color: #6B6B6B; }
.order-summary code { background: white; border: 1px solid #F0F0F0; border-radius: 6px; padding: 2px 8px; font-size: 11px; direction: ltr; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; border: 1px solid; }
.success-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
@media (min-width: 640px) { .success-actions { flex-direction: row; } .success-actions > * { flex: 1; justify-content: center; } }
.success-hint { font-size: 11px; color: #6B6B6B; padding-top: 16px; border-top: 1px solid #F0F0F0; }

/* ORDER LOOKUP */
.lookup-header { margin-bottom: 24px; }
.lookup-header h1 { font-size: 18px; font-weight: 700; }
.lookup-header p { font-size: 12px; color: #9B9B9B; margin-top: 6px; }
.lookup-form { background: white; border: 1px solid #F0F0F0; border-radius: 20px; padding: 24px; max-width: 560px; }
.lookup-form button { width: 100%; margin-top: 12px; }
.orders-list, .order-detail { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.order-card { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 20px; transition: all .15s; }
.order-card:hover { background: #FAFAF8; }
.order-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.order-id { background: #F0F0F0; color: #6B6B6B; padding: 2px 8px; border-radius: 4px; font-size: 10px; direction: ltr; }
.order-name { font-size: 13px; font-weight: 700; margin-top: 6px; }
.order-meta { font-size: 11px; color: #9B9B9B; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.order-info { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #6B6B6B; margin-bottom: 12px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ADMIN */
.login-card { max-width: 400px; margin: 40px auto; background: white; border: 1px solid #F0F0F0; border-radius: 20px; padding: 40px 32px; text-align: center; }
.login-icon { width: 56px; height: 56px; border-radius: 16px; background: #1A1A1A; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.login-card h1 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.login-card > p { font-size: 12px; color: #9B9B9B; margin-bottom: 24px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card input { padding: 12px 16px; border: 1px solid #F0F0F0; border-radius: 999px; background: #FAFAF8; font-size: 13px; direction: ltr; }
.login-card .error { color: #DC2626; font-size: 12px; }

.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-top h1 { font-size: 18px; font-weight: 700; }
.logout { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 12px; color: #6B6B6B; border-radius: 999px; transition: all .15s; }
.logout:hover { color: #DC2626; background: #FAFAF8; }

.admin-tabs { display: flex; gap: 4px; background: #F0F0F040; padding: 4px; border-radius: 999px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs .tab { padding: 8px 16px; font-size: 12px; font-weight: 500; color: #6B6B6B; border-radius: 999px; transition: all .15s; }
.admin-tabs .tab:hover { color: #1A1A1A; }
.admin-tabs .tab.active { background: white; color: #1A1A1A; box-shadow: 0 1px 3px rgba(0,0,0,.06); }

.admin-list { background: white; border: 1px solid #F0F0F0; border-radius: 16px; overflow: hidden; }
.admin-order-row, .admin-product-row { padding: 16px 20px; border-bottom: 1px solid #F0F0F0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-order-row:last-child, .admin-product-row:last-child { border-bottom: none; }
.order-info-main, .product-info-main { flex: 1; min-width: 200px; }
.order-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.order-tags .order-id { padding: 3px 8px; }
.delivered-tag { padding: 3px 10px; background: #4ADE8015; color: #166534; border: 1px solid #4ADE8030; border-radius: 999px; font-size: 10px; font-weight: 700; }
.order-product-name { font-size: 13px; font-weight: 600; }
.order-actions select { padding: 6px 12px; font-size: 11px; border: 1px solid #F0F0F0; border-radius: 999px; background: white; cursor: pointer; }
.btn-mini { padding: 6px 12px; font-size: 11px; font-weight: 600; border: 1px solid #F0F0F0; border-radius: 999px; background: white; color: #6B6B6B; cursor: pointer; transition: all .15s; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-mini:hover { background: #FAFAF8; }
.btn-mini.green { background: #4ADE8015; color: #166534; border-color: #4ADE8030; }
.btn-mini.amber { background: #F5A62315; color: #92400E; border-color: #F5A62330; }
.btn-mini.red { background: #FF6B6B10; color: #DC2626; border-color: #FF6B6B30; }
.btn-mini.gray { background: white; color: #6B6B6B; }
.product-icon-mini { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-icon-mini img { width: 100%; height: 100%; object-fit: cover; }
.product-name-fa { font-size: 13px; font-weight: 600; }
.product-meta { font-size: 11px; color: #9B9B9B; margin-top: 4px; }
.product-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* AI IMPORT */
.import-header { margin-bottom: 20px; }
.import-header h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.import-header p { font-size: 12px; color: #6B6B6B; }
.import-providers { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.providers-title { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.provider-chip { display: inline-block; margin: 3px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.provider-chip.ok { background: #4ADE8015; color: #166534; border: 1px solid #4ADE8030; }
.provider-chip.off { background: #F0F0F0; color: #9B9B9B; border: 1px solid #E0E0E0; }
.providers-hint { font-size: 11px; color: #6B6B6B; margin-top: 10px; line-height: 1.6; }
.providers-hint code { background: #F0F0F0; padding: 1px 6px; border-radius: 4px; font-size: 10px; }
.import-form { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.import-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.import-input-row { display: flex; gap: 8px; flex-wrap: wrap; }
.import-input-row input { flex: 1; min-width: 240px; padding: 12px 16px; border: 1px solid #F0F0F0; border-radius: 999px; background: #FAFAF8; font-size: 13px; direction: ltr; }
.import-input-row button { padding: 12px 24px; background: #B8A9E8; color: #1A1A1A; border: none; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; }
.import-input-row button:hover:not(:disabled) { background: #A89AD8; }
.import-input-row button:disabled { opacity: 0.6; cursor: not-allowed; }
.import-hint { font-size: 11px; color: #9B9B9B; margin-top: 8px; }
.import-progress { background: white; border: 1px solid #F0F0F0; border-radius: 12px; padding: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.progress-step { font-size: 12px; color: #9B9B9B; }
.progress-step.active { color: #1A1A1A; font-weight: 600; }
.import-success { padding: 12px 16px; background: #4ADE8010; border: 1px solid #4ADE8030; border-radius: 12px; font-size: 13px; color: #166534; margin-bottom: 16px; }
.import-error { padding: 12px 16px; background: #FF6B6B10; border: 1px solid #FF6B6B30; border-radius: 12px; font-size: 13px; color: #DC2626; margin-bottom: 16px; }
.preview-card { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 24px; }
.preview-header h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.preview-row, .preview-row-2col { margin-bottom: 14px; }
.preview-row label, .preview-row-2col label { display: block; font-size: 11px; font-weight: 600; color: #6B6B6B; margin-bottom: 4px; }
.preview-row input, .preview-row textarea, .preview-row select, .preview-row-2col input, .preview-row-2col select { width: 100%; padding: 10px 14px; border: 1px solid #F0F0F0; border-radius: 10px; background: #FAFAF8; font-size: 12px; font-family: inherit; }
.preview-row textarea { resize: vertical; min-height: 60px; }
.preview-row-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.preview-actions { display: flex; gap: 8px; margin-top: 20px; }
.btn-save { padding: 12px 24px; background: #B8A9E8; color: #1A1A1A; border: none; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-cancel { padding: 12px 24px; background: white; color: #6B6B6B; border: 1px solid #F0F0F0; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* SETTINGS */
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px) { .settings-grid { grid-template-columns: repeat(2, 1fr); } }
.setting-card { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; }
.setting-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.setting-label { font-size: 11px; color: #9B9B9B; }
.setting-value { font-size: 13px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.settings-help { background: white; border: 1px solid #F0F0F0; border-radius: 16px; padding: 20px; }
.settings-help h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.settings-help p { font-size: 12px; color: #6B6B6B; line-height: 1.8; margin-bottom: 8px; }
.settings-help ol { padding-right: 24px; font-size: 12px; color: #6B6B6B; line-height: 1.9; }
.settings-help ul { padding-right: 20px; font-size: 12px; color: #6B6B6B; line-height: 1.9; margin: 4px 0; }
.settings-help code { background: #F0F0F0; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.settings-help a { color: #B8A9E8; }
.settings-help a:hover { text-decoration: underline; }

/* FOOTER */
.site-footer { background: white; border-top: 1px solid #F0F0F0; margin-top: 40px; }
.site-footer .container { padding-top: 40px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-desc { font-size: 12px; color: #6B6B6B; line-height: 1.7; max-width: 400px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 12px; color: #6B6B6B; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: #1A1A1A; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid #F0F0F0; font-size: 11px; color: #9B9B9B; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; gap: 12px; }

/* CHATBOT */
#chatbot-toggle { position: fixed; bottom: 20px; right: 20px; z-index: 1000; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #B8A9E8, #A89AD8); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(184,169,232,.4); transition: all .2s; }
#chatbot-toggle:hover { transform: scale(1.05) rotate(-5deg); box-shadow: 0 12px 32px rgba(184,169,232,.5); }
#chatbot-badge { position: absolute; top: -4px; right: -4px; background: #4ADE80; color: white; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 999px; border: 2px solid #FAFAF8; }
#chatbot-window { position: fixed; bottom: 90px; right: 20px; z-index: 999; width: 360px; max-width: calc(100vw - 40px); height: 520px; max-height: calc(100vh - 120px); background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.15); display: flex; flex-direction: column; animation: slideUp .3s ease-out; overflow: hidden; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chatbot-header { background: #1A1A1A; color: white; padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar { width: 36px; height: 36px; border-radius: 12px; background: rgba(184,169,232,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chatbot-title { font-size: 13px; font-weight: 700; }
.chatbot-status { font-size: 10px; opacity: 0.7; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.chatbot-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.chatbot-close { background: none; border: none; color: white; opacity: .7; cursor: pointer; padding: 4px; transition: opacity .15s; }
.chatbot-close:hover { opacity: 1; }
#chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #FAFAF8; }
.msg-user, .msg-ai { display: flex; gap: 8px; max-width: 85%; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: #B8A9E8; color: #1A1A1A; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.msg-user .msg-avatar { background: #1A1A1A; color: white; }
.msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.7; background: white; border: 1px solid #F0F0F0; word-wrap: break-word; }
.msg-user .msg-bubble { background: #1A1A1A; color: white; border-color: #1A1A1A; }
.msg-bubble a { color: #B8A9E8; font-weight: 600; text-decoration: underline; }
.msg-typing { display: inline-flex; gap: 3px; padding: 4px 8px; }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: #B8A9E8; animation: typing 1.4s infinite; }
.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chatbot-suggestions { padding: 8px 12px; background: white; border-top: 1px solid #F0F0F0; display: flex; gap: 6px; flex-wrap: wrap; }
.chatbot-suggestions button { padding: 6px 12px; background: #FAFAF8; border: 1px solid #F0F0F0; border-radius: 999px; font-size: 11px; color: #6B6B6B; cursor: pointer; transition: all .15s; }
.chatbot-suggestions button:hover { background: #B8A9E815; color: #1A1A1A; border-color: #B8A9E830; }
#chatbot-form { display: flex; gap: 8px; padding: 12px; background: white; border-top: 1px solid #F0F0F0; }
#chatbot-input { flex: 1; padding: 10px 14px; border: 1px solid #F0F0F0; border-radius: 999px; background: #FAFAF8; font-size: 12.5px; }
#chatbot-input:focus { outline: none; border-color: #E0E0E0; }
#chatbot-send { width: 36px; height: 36px; border-radius: 50%; background: #B8A9E8; color: #1A1A1A; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
#chatbot-send:hover:not(:disabled) { background: #A89AD8; transform: scale(1.05); }
#chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) { #chatbot-window { right: 10px; left: 10px; width: auto; bottom: 80px; height: calc(100vh - 100px); } }

/* ============ BLOG ============ */
.hero-blog { background: linear-gradient(135deg, #1A1A1A 0%, #2D2A3A 100%); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 480px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { background: white; border: 1px solid #F0F0F0; border-radius: 20px; overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.blog-card-img { width: 100%; height: 200px; overflow: hidden; background: #F0F0F0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #9B9B9B; margin-bottom: 10px; flex-wrap: wrap; }
.blog-date { font-size: 11px; }
.blog-cat { display: inline-block; padding: 3px 10px; background: #B8A9E815; color: #5B21B6; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.blog-card-title a { transition: color .15s; }
.blog-card-title a:hover { color: #B8A9E8; }
.blog-card-excerpt { font-size: 12px; color: #6B6B6B; line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 12px; font-weight: 600; color: #B8A9E8; transition: gap .15s; }
.blog-read-more:hover { gap: 8px; }

.blog-single { max-width: 820px; margin: 0 auto; background: white; border: 1px solid #F0F0F0; border-radius: 24px; padding: 36px; }
@media (max-width: 640px) { .blog-single { padding: 20px; border-radius: 16px; } }
.blog-single-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.blog-single-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 11px; color: #9B9B9B; flex-wrap: wrap; }
.blog-single-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; margin-bottom: 24px; }
@media (max-width: 640px) { .blog-single-title { font-size: 20px; } }
.blog-single-content { font-size: 15px; line-height: 1.9; color: #333; }
.blog-single-content p { margin-bottom: 16px; }
.blog-single-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: #1A1A1A; }
.blog-single-content h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; color: #1A1A1A; }
.blog-single-content ul { padding-right: 20px; margin: 12px 0; }
.blog-single-content li { margin-bottom: 6px; font-size: 14px; line-height: 1.7; }
.blog-single-content strong { color: #1A1A1A; }
.blog-single-content code { background: #F0F0F0; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.blog-single-content hr { border: none; border-top: 1px solid #F0F0F0; margin: 28px 0; }
.blog-single-content a { color: #B8A9E8; font-weight: 600; text-decoration: underline; }
.blog-single-content a:hover { color: #A89AD8; }
.blog-single-content table.blog-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; border-radius: 12px; overflow: hidden; border: 1px solid #F0F0F0; }
.blog-single-content table.blog-table thead { background: #F5F3FF; }
.blog-single-content table.blog-table th { padding: 12px 16px; text-align: right; font-weight: 700; font-size: 12px; color: #5B21B6; border-bottom: 2px solid #E8E0F0; }
.blog-single-content table.blog-table td { padding: 10px 16px; border-bottom: 1px solid #F0F0F0; color: #333; }
.blog-single-content table.blog-table tr:last-child td { border-bottom: none; }
.blog-single-content blockquote { margin: 20px 0; padding: 16px 20px; background: #F5F3FF; border-right: 4px solid #B8A9E8; border-radius: 8px; font-style: italic; color: #5B21B6; }
.blog-content-img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.blog-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6B6B6B; margin-bottom: 20px; transition: color .15s; }
.blog-back:hover { color: #1A1A1A; }
.blog-single-product-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #B8A9E8; background: #B8A9E810; padding: 4px 12px; border-radius: 999px; transition: all .15s; }
.blog-single-product-link:hover { background: #B8A9E820; }

/* Blog Product Card */
.blog-product-card { margin: 24px 0; background: linear-gradient(135deg, #FAFAF8 0%, #F5F3FF 100%); border: 1.5px solid #E0D8F0; border-radius: 20px; overflow: hidden; transition: all .25s; }
.blog-product-card:hover { box-shadow: 0 8px 28px rgba(184,169,232,.15); border-color: #D0C8E8; }
.blog-pc-inner { display: flex; gap: 20px; padding: 20px 24px; align-items: stretch; }
@media (max-width: 600px) { .blog-pc-inner { flex-direction: column; align-items: center; text-align: center; } }
.blog-pc-img { width: 140px; min-height: 140px; border-radius: 16px; overflow: hidden; background: white; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #E8E0F0; transition: transform .2s; }
.blog-pc-img:hover { transform: scale(1.03); }
.blog-pc-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-pc-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.blog-pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.blog-pc-cat { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.blog-pc-name { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.blog-pc-name a { transition: color .15s; }
.blog-pc-name a:hover { color: #B8A9E8; }
.blog-pc-desc { font-size: 12px; color: #6B6B6B; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-pc-meta { display: flex; gap: 14px; font-size: 11px; color: #6B6B6B; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.blog-pc-badge { font-size: 10px; padding: 2px 8px; background: #F5A62315; color: #92400E; border-radius: 999px; font-weight: 700; }
.blog-pc-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.blog-pc-price { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: #1A1A1A; }
.blog-pc-old-price { font-size: 14px; color: #9B9B9B; text-decoration: line-through; }
.blog-pc-discount { font-size: 11px; font-weight: 700; padding: 3px 10px; background: #FF6B6B15; color: #DC2626; border-radius: 999px; }
.blog-pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-pc-btn-buy { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; background: #B8A9E8; color: #1A1A1A !important; border-radius: 999px; font-size: 13px; font-weight: 700; transition: all .2s; box-shadow: 0 2px 8px rgba(184,169,232,.3); text-decoration: none !important; }
.blog-pc-btn-buy:hover { background: #A89AD8; box-shadow: 0 4px 16px rgba(184,169,232,.4); transform: translateY(-1px); }
.blog-pc-btn-detail { display: inline-flex; align-items: center; gap: 4px; padding: 10px 18px; background: transparent; color: #6B6B6B !important; border: 1px solid #E0E0E0; border-radius: 999px; font-size: 12px; font-weight: 600; transition: all .2s; text-decoration: none !important; }
.blog-pc-btn-detail:hover { border-color: #B8A9E8; color: #B8A9E8 !important; }

/* Blog CTA Banner */
.blog-cta { margin-top: 32px; padding: 28px 32px; background: linear-gradient(135deg, #1A1A1A 0%, #2D2A3A 100%); border-radius: 20px; text-align: center; color: white; }
@media (max-width: 640px) { .blog-cta { padding: 20px; } }
.blog-cta h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: white; }
.blog-cta p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 18px; line-height: 1.6; }
.blog-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #B8A9E8; color: #1A1A1A !important; border-radius: 999px; font-size: 14px; font-weight: 700; transition: all .2s; box-shadow: 0 4px 16px rgba(184,169,232,.4); text-decoration: none !important; }
.blog-cta-btn:hover { background: #C4B5F4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,169,232,.5); }
