/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black:   #0a0a0f;
    --dark:    #111118;
    --card:    #16161e;
    --border:  #2a2a3a;
    --accent:  #6c63ff;
    --accent2: #ff6584;
    --gold:    #f5c518;
    --green:   #22c55e;
    --text:    #e8e8f0;
    --muted:   #8888aa;
    --white:   #ffffff;

    --radius:  16px;
    --shadow:  0 8px 40px rgba(108, 99, 255, 0.15);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   HEADER
   ============================== */
.site-header {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    font-size: 1.5rem;
}

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

/* ==============================
   HERO
   ============================== */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,99,255,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255,101,132,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.hero-title .line1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-title .line2 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
}

.hero-title .line3 {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text);
    font-weight: 500;
}

.hero-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ==============================
   PRODUCTS / SLIDER
   ============================== */
.products-section {
    padding: 40px 0 60px;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--white);
}

.slider-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.slider {
    position: relative;
    min-height: 360px;
}

.slide {
    display: none;
    animation: fadeIn .3s ease;
}

.slide.active {
    display: block;
}

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

/* Product Card */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    position: relative;
    transition: border-color .3s;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.card-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.card-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
}

.price-unit {
    font-size: 0.9rem;
    color: var(--muted);
    margin-right: 6px;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #8b7cf8);
    color: white;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: transform .2s, box-shadow .2s;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108,99,255,0.4);
}

.btn-arrow {
    font-size: 1.1rem;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.ctrl-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ==============================
   FEATURES
   ============================== */
.features {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ==============================
   PRODUCT PAGE
   ============================== */
.product-page {
    padding: 40px 0 60px;
    min-height: 80vh;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 32px;
    transition: color .2s;
}

.back-link:hover { color: var(--accent); }

.product-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 820px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

/* Product Info */
.product-icon-big {
    font-size: 3rem;
    margin-bottom: 12px;
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-description {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.what-you-get {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.what-you-get h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.what-you-get ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.what-you-get li {
    font-size: 0.9rem;
    color: var(--text);
}

/* Buy Box */
.buy-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 80px;
}

.price-display {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.price-label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.price-big {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.price-big span:first-child {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
}

.price-cur {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Form */
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 16px;
    color: var(--text);
}

.form-label:first-of-type {
    margin-top: 0;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--white);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color .2s;
    text-align: left;
    direction: ltr;
}

.form-input:focus {
    border-color: var(--accent);
    background: rgba(108,99,255,0.06);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 6px;
    margin-bottom: 20px;
}

.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secure-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.secure-badges span {
    font-size: 0.75rem;
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Product Image */
.product-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: block;
}

/* Field Errors */
.input-error {
    border-color: var(--accent2) !important;
}

.field-error {
    color: #ff9fb0;
    font-size: 0.78rem;
    margin-top: 4px;
    margin-bottom: 12px;
}

/* Alert */
.alert-error {
    background: rgba(255,101,132,0.12);
    border: 1px solid rgba(255,101,132,0.3);
    color: #ff9fb0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* ==============================
   RESULT PAGE
   ============================== */
.result-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.result-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 36px;
    text-align: center;
}

.result-card.success {
    border-color: var(--green);
    box-shadow: 0 0 40px rgba(34,197,94,0.12);
}

.result-card.failure {
    border-color: var(--accent2);
    box-shadow: 0 0 40px rgba(255,101,132,0.12);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.result-msg {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.result-info {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: right;
}

.result-info p {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 10px;
}

.result-info p:last-child { margin-bottom: 0; }

.btn-back {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #8b7cf8);
    color: white;
    text-decoration: none;
    padding: 13px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .2s, box-shadow .2s;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-domain {
    color: var(--accent) !important;
    font-weight: 500;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 600px) {
    .hero { padding: 50px 0 40px; }
    .product-card { padding: 28px 20px; }
    .buy-box { padding: 20px; }
    .result-card { padding: 32px 20px; }
    .features-grid { gap: 20px; }
    .slider-wrapper { max-width: 100%; }
}
