/*
Theme Name: OnlyAccount VibeFarsi
Theme URI: https://onlyaccount.ir
Author: Rick Sanchez
Author URI: https://onlyaccount.ir
Description: Ultra-fast, clean, and accessible VibeFarsi RTL eCommerce theme for OnlyAccount digital goods.
Version: 1.1.0
Text Domain: onlyaccount
*/

:root {
    --bg-main: #060913;
    --bg-surface: #0a0f1d;
    --bg-card: rgba(14, 20, 36, 0.7);
    --bg-card-hover: rgba(20, 28, 50, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    --border-cyan: rgba(0, 255, 170, 0.35);
    
    --primary: #2563eb;
    --primary-electric: #0000f2;
    --accent-cyan: #00ffaa;
    --accent-emerald: #10b981;
    
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --font-main: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    letter-spacing: 0 !important;
    font-feature-settings: "ss01" 1, "cv01" 1;
    line-height: 1.8;
    direction: rtl;
    text-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Backdrops */
body::before {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 242, 0.12), transparent 70%);
    top: -150px;
    right: 5%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.06), transparent 70%);
    bottom: 50px;
    left: 5%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* 1. Top Telemetry Bar */
.top-telemetry-bar {
    background: rgba(6, 9, 19, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
    z-index: 60;
}

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

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.telemetry-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.telemetry-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
}

.telemetry-links a:hover {
    color: #ffffff;
}

.telemetry-sep {
    color: rgba(255, 255, 255, 0.15);
}

/* 2. Site Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-emblem {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(0, 0, 242, 0.4));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(0, 0, 242, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.cart-counter {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

/* 3. Hero Section */
.hero-section {
    padding: 4.5rem 0 3rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-container {
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: #93c5fd;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2.25rem;
}

.search-filter-box {
    max-width: 580px;
    margin: 0 auto;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: rgba(14, 20, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 14px 48px 14px 20px;
    font-size: 0.95rem;
    color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background: rgba(18, 26, 46, 0.95);
}

/* 4. Trust Pillars Bento Grid */
.trust-section {
    padding: 1.5rem 0 3.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.25s;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.bento-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.bento-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 5. Products Section */
.products-section {
    padding: 2.5rem 0 5rem;
}

.section-header {
    margin-bottom: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.section-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(14px);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 242, 0.15);
}

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

.product-card-top {
    margin-bottom: 1.5rem;
}

.product-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-type-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-pill.in-stock {
    color: var(--accent-emerald);
}

.stock-pill.out-of-stock {
    color: #ef4444;
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-title a:hover {
    color: #60a5fa;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.feature-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-bullet svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.product-card-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

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

.price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.number-tabular {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--accent-cyan);
}

.unit-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-inline-start: 4px;
    font-weight: 400;
}

.btn-purchase {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-align: center;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #3b82f6, var(--primary));
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-purchase:active {
    transform: scale(0.98);
}

.btn-purchase.disabled {
    background: #334155;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 6. FAQ Section */
.faq-section {
    padding: 3rem 0 5rem;
    background: rgba(10, 15, 29, 0.5);
    border-top: 1px solid var(--border-color);
}

.faq-container {
    max-width: 800px;
}

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

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s;
}

.faq-item.active {
    border-color: var(--border-hover);
    background: rgba(18, 26, 48, 0.8);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: start;
}

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

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #60a5fa;
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 7. Footer */
.site-footer {
    background: rgba(5, 8, 17, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
    z-index: 20;
}

.pre-footer-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(0, 0, 242, 0.25));
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.banner-pill {
    background: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.banner-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.banner-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.btn-outline-glow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-block;
    transition: all 0.2s;
}

.btn-outline-glow:hover {
    background: #ffffff;
    color: #050811;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.brand-emblem-sm {
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}

.footer-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.footer-sla-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sla-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links, .footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-links a:hover {
    color: #60a5fa;
    padding-inline-start: 4px;
}

.footer-contact-list li {
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
}

.contact-label {
    color: var(--text-muted);
}

.contact-value {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.trust-badge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 12px;
}

.trust-shield-icon {
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.trust-badge-info strong {
    font-size: 0.88rem;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.trust-badge-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 8. Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pre-footer-banner {
        padding: 1.5rem;
    }
}
