@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    /* Theme: Vibrant Violet & Blue */
    --primary: #7c3aed; /* Violet 600 */
    --primary-dark: #6d28d9; /* Violet 700 */
    --secondary: #1e1b4b; /* Indigo 950 */
    --accent: #06b6d4; /* Cyan 500 */
    --bg-body: #f3f4f6;
    --bg-white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 20px;
    --font-main: 'Vazirmatn', sans-serif;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; cursor: pointer; transition: 0.3s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.full { width: 100%; }
.hidden { display: none !important; }

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
    height: 80px;
}

.nav-inner {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.nav-right { display: flex; align-items: center; gap: 3rem; }

.logo { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.logo-box {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; }
.logo-text span { color: var(--primary); }

.desktop-menu { display: flex; gap: 2rem; list-style: none; }
.desktop-menu li {
    font-weight: 600; color: var(--text-muted); cursor: pointer; position: relative;
    transition: 0.3s; font-size: 0.95rem;
}
.desktop-menu li:hover, .desktop-menu li.active { color: var(--primary); }
.desktop-menu li.active::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 3px;
    background: var(--primary); border-radius: 2px;
}

.nav-left { display: flex; align-items: center; gap: 1rem; }
.btn-text { font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.btn-text:hover { color: var(--primary); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; padding: 0.7rem 1.5rem; border-radius: 12px;
    font-weight: 700; transition: 0.3s; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(124, 58, 237, 0.35); }

.mobile-toggle { display: none; font-size: 1.5rem; color: var(--secondary); }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed; inset: 0; background: white; z-index: 200;
    transform: translateX(100%); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-menu.active { transform: translateX(0); }
.mm-head {
    padding: 1.5rem; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.mm-head .logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.mm-body { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.mm-body a {
    font-size: 1.1rem; font-weight: 600; color: var(--text-main);
    display: flex; align-items: center; gap: 1rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid #f1f5f9;
}
.mm-body a i { color: var(--primary); }

/* --- Hero Section --- */
.hero-section {
    position: relative; padding: 4rem 0; overflow: hidden;
    min-height: 600px; display: flex; align-items: center;
}
.hero-bg {
    position: absolute; top: -50%; right: -20%; width: 80%; height: 150%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1; pointer-events: none;
}
.hero-container {
    display: flex; align-items: center; gap: 4rem;
    flex-direction: row-reverse; /* Widget Left, Text Right (RTL) */
}

/* Hero Text */
.hero-text { flex: 1; }
.badge-new {
    background: #dbeafe; color: #2563eb; padding: 0.3rem 0.8rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; display: inline-block;
}
.hero-text h1 {
    font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 1.5rem;
    color: var(--secondary);
}
.hero-text h1 span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; }

.features-list { display: flex; gap: 2rem; }
.f-item { display: flex; align-items: center; gap: 1rem; }
.f-icon {
    width: 48px; height: 48px; background: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.f-item strong { display: block; font-size: 0.95rem; color: var(--secondary); }
.f-item span { font-size: 0.8rem; color: var(--text-muted); }

/* --- Charge Widget (The Core) --- */
.charge-widget {
    flex: 1; max-width: 480px;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid white;
    position: relative; overflow: hidden;
}

.widget-header { padding: 1.5rem 2rem 0; text-align: center; margin-bottom: 1rem; }
.widget-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--secondary); margin-bottom: 0.2rem; }
.widget-header p { font-size: 0.9rem; color: var(--text-muted); }

.widget-tabs {
    display: flex; background: rgba(243, 244, 246, 0.8); margin: 0 2rem;
    border-radius: 14px; padding: 0.3rem;
}
.tab {
    flex: 1; padding: 0.7rem; border: none; background: transparent;
    font-weight: 600; color: var(--text-muted); border-radius: 12px;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.9rem;
}
.tab.active { background: white; color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.widget-body { padding: 2rem; }

/* Input */
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.inp-wrapper { position: relative; }
.phone-input input {
    width: 100%; padding: 1rem 1rem 1rem 3rem; font-size: 1.3rem; font-weight: 700; letter-spacing: 2px;
    border: 2px solid var(--border); border-radius: 14px; background: white;
    transition: 0.3s; font-family: sans-serif; /* For digits */ color: var(--secondary);
}
.phone-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1); }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Operator Logos */
.operators-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.op-item {
    flex: 1; padding: 0.8rem 0.5rem; border: 2px solid var(--border); border-radius: 12px;
    text-align: center; cursor: pointer; transition: 0.3s; background: white;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.6;
}
.op-item span { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.op-logo { width: 30px; height: 30px; border-radius: 50%; }

/* CSS Logos */
.mci-logo { background: #10b981; } /* Simple placeholder color */
.mtn-logo { background: #f59e0b; }
.rtl-logo { background: #a855f7; }

.op-item.active { opacity: 1; border-color: currentColor; background: #f0fdfa; transform: translateY(-3px); }
.op-item.mci.active { color: #10b981; background: #ecfdf5; }
.op-item.mtn.active { color: #f59e0b; background: #fffbeb; }
.op-item.rtl.active { color: #a855f7; background: #faf5ff; }

/* Amount Grid */
.amount-section { margin-bottom: 2rem; }
.amount-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.8rem; }
.amount-grid button {
    padding: 0.6rem 0; border: 1px solid var(--border); border-radius: 10px;
    background: white; color: var(--text-main); font-weight: 600; font-size: 0.9rem;
    transition: 0.2s;
}
.amount-grid button:hover, .amount-grid button.active {
    background: var(--primary); color: white; border-color: var(--primary);
}
.custom-amount-box { position: relative; }
.custom-amount-box input {
    width: 100%; padding: 0.8rem; padding-left: 3rem; border: 1px solid var(--border); border-radius: 10px;
    font-size: 1rem; font-weight: 600;
}
.custom-amount-box span { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.8rem; }

/* Internet Packages Styles */
.pkg-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.pkg-tab {
    flex: 1; padding: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--text-muted);
    background: transparent; border-radius: 8px; transition: 0.3s;
}
.pkg-tab.active { background: #e0f2fe; color: var(--primary); }

.pkg-list { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-right: 5px; }
.pkg-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem; border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; transition: 0.2s; background: white;
}
.pkg-item:hover, .pkg-item.selected { border-color: var(--primary); background: #f0f9ff; }
.pkg-info { display: flex; flex-direction: column; }
.pkg-name { font-weight: 700; font-size: 0.9rem; color: var(--secondary); }
.pkg-desc { font-size: 0.75rem; color: var(--text-muted); }
.pkg-price { font-weight: 800; color: var(--primary); font-size: 0.9rem; }

/* Footer Action */
.widget-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.total-price span { display: block; font-size: 0.8rem; color: var(--text-muted); }
.total-price strong { font-size: 1.3rem; color: var(--primary); }
.btn-submit {
    background: var(--secondary); color: white; padding: 0.9rem 1.8rem;
    border-radius: 12px; font-weight: 700; display: flex; align-items: center; gap: 0.5rem;
    transition: 0.3s;
}
.btn-submit:hover { background: var(--primary); }

/* --- App Banner --- */
.section { padding: 5rem 0; }
.app-banner {
    background: linear-gradient(135deg, var(--secondary), #312e81);
    border-radius: 30px; padding: 4rem; display: flex; align-items: center;
    color: white; overflow: hidden; position: relative;
    box-shadow: var(--shadow-lg);
}
.ab-content { flex: 1; z-index: 2; }
.ab-content h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; }
.ab-content p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 2rem; max-width: 500px; }
.store-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-store {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 0.8rem 1.5rem; border-radius: 10px;
    display: flex; align-items: center; gap: 0.5rem; font-weight: 600;
    transition: 0.3s;
}
.btn-store:hover { background: white; color: var(--secondary); }
.ab-img { flex: 1; display: flex; justify-content: center; }
.ab-img img { width: 100%; max-width: 400px; transform: rotate(-5deg); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

/* --- Blog --- */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-size: 2.5rem; font-weight: 900; color: var(--secondary); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.bc-img { width: 100%; height: 200px; object-fit: cover; }
.bc-content { padding: 1.5rem; }
.bc-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-main); }
.bc-content p { font-size: 0.9rem; color: var(--text-muted); }

/* --- Single Blog --- */
.single-blog { max-width: 800px; margin: 0 auto; }
.back-btn { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); margin-bottom: 2rem; font-weight: 600; }
.article-content img { width: 100%; height: 400px; object-fit: cover; border-radius: 20px; margin-bottom: 2rem; }
.article-content h1 { font-size: 2.5rem; font-weight: 900; color: var(--secondary); margin-bottom: 1.5rem; }
#sb-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-main); }
#sb-content h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--primary); }

/* --- Contact --- */
.contact-box {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    background: white; padding: 4rem; border-radius: 30px; box-shadow: var(--shadow-lg);
}
.cb-info h2 { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; color: var(--secondary); }
.cb-info ul { list-style: none; margin-top: 2rem; }
.cb-info li { display: flex; gap: 1rem; margin-bottom: 1.5rem; color: var(--text-main); align-items: center; }
.cb-info i { color: var(--primary); }
.cb-form input, .cb-form textarea {
    width: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--border);
    border-radius: 10px; background: #f8fafc;
}
.inp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Auth --- */
.auth-wrapper { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card {
    background: white; padding: 3rem; border-radius: 24px; width: 100%; max-width: 400px;
    text-align: center; box-shadow: var(--shadow-lg);
}
.auth-logo {
    width: 60px; height: 60px; background: var(--primary); color: white;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 2rem;
}
.auth-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; color: var(--secondary); }
.form-group { text-align: right; margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 0.9rem; border: 1px solid var(--border); border-radius: 10px; }

/* --- Footer --- */
.footer { background: var(--bg-white); border-top: 1px solid var(--border); padding: 4rem 0 0; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 { font-weight: 700; margin-bottom: 1.5rem; color: var(--secondary); }
.footer-col a { display: block; margin-bottom: 0.8rem; color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }
.enamad { border: 1px solid var(--border); padding: 1rem; border-radius: 12px; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-main); }
.footer-copy { text-align: center; padding: 1.5rem; background: #f8fafc; color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media(max-width: 900px) {
    .nav-right { gap: 1rem; }
    .desktop-menu, .btn-text, .btn-primary { display: none; }
    .mobile-toggle { display: block; }
    .hero-container { flex-direction: column; text-align: center; padding-top: 2rem; }
    .hero-text { order: 2; }
    .features-list { justify-content: center; }
    .app-banner { flex-direction: column; text-align: center; padding: 2rem; }
    .store-btns { justify-content: center; }
    .ab-img { margin-top: 2rem; }
    .contact-box { grid-template-columns: 1fr; padding: 2rem; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* Toast */
.toast {
    position: fixed; bottom: 2rem; left: 2rem;
    background: var(--secondary); color: white;
    padding: 1rem 1.5rem; border-radius: 50px;
    z-index: 1000; display: flex; align-items: center; gap: 0.5rem;
    animation: slideUp 0.3s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.view { display: none; animation: fadeIn 0.4s; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
</style>
