/* =======================================================
   Fixly IT - style.css
   Design tokens, layout, components, responsive rules
   ======================================================= */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --success: #16A34A;
    --danger: #EF4444;
    --bg: #F8FAFC;
    --text: #0F172A;
    --text-muted: #64748B;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border: rgba(15, 23, 42, 0.08);
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-lg: 0 20px 40px -12px rgba(37, 99, 235, 0.15);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Glass card ---------- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}

/* ---------- Topbar ---------- */
.topbar {
    padding: 18px 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}
.brand-logo { width: 32px; height: 32px; }

/* ---------- Hero ---------- */
.hero { padding: 30px 0 10px; text-align: center; }
.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
}
.text-primary { color: var(--primary); }
.hero-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- Pricing ---------- */
.pricing { padding: 30px 0; }
.pricing-card {
    position: relative;
    text-align: center;
    animation: fadeUp 0.6s ease;
}
.badge-discount {
    position: absolute;
    top: -14px;
    right: 20px;
    background: var(--danger);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}
.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}
.price-regular {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.2rem;
}
.price-discount {
    color: var(--primary);
    font-size: 2.4rem;
    font-weight: 800;
}
.savings {
    color: var(--success);
    font-weight: 600;
    margin: 6px 0 18px;
}
.feature-list {
    text-align: left;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}
.feature-list li {
    font-size: 0.95rem;
    color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    text-align: center;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-bkash {
    background: #E2136E;
    color: #fff;
    box-shadow: 0 10px 20px rgba(226, 19, 110, 0.25);
}
.btn-surjopay {
    background: #F97316;
    color: #fff;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Forms ---------- */
.order-form { padding: 10px 0 60px; }
.form-card h2 { margin-top: 0; font-size: 1.3rem; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease;
}
.form-group input:focus { border-color: var(--primary); }
.form-hint { color: var(--text-muted); font-size: 0.8rem; }

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.alert p { margin: 4px 0; }

/* ---------- Sticky mobile buy button ---------- */
.sticky-buy {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 50;
}

/* ---------- Offer popup ---------- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup-box {
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popIn 0.35s ease;
}
.popup-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.popup-box h3 { margin-top: 6px; color: var(--primary); }
.popup-regular { color: var(--text-muted); text-decoration: line-through; margin: 10px 0 2px; }
.popup-today { font-size: 1.6rem; font-weight: 800; color: var(--success); margin: 0 0 18px; }

/* ---------- Checkout page ---------- */
.checkout-main { padding: 30px 0 60px; }
.checkout-card h2 { margin-top: 0; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.summary-row:last-of-type { border-bottom: none; }
.checkout-card form { margin-top: 20px; }
.gateway-choice { display: grid; gap: 12px; }
.gateway-label { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 4px; font-weight: 600; }

/* ---------- Success page ---------- */
.success-main { padding: 30px 0 60px; }
.success-card { text-align: center; }
.success-icon { margin: 0 auto 10px; width: 90px; }
.checkmark { width: 90px; height: 90px; }
.checkmark-circle {
    stroke: var(--success);
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleDraw 0.6s ease forwards;
}
.checkmark-check {
    stroke: var(--success);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw 0.4s ease 0.5s forwards;
}
.success-card h1 { font-size: 1.6rem; margin: 6px 0 4px; }
.success-sub { color: var(--text-muted); margin: 0 0 16px; }
.verified-badge {
    display: inline-block;
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.ref-number-box {
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(37,99,235,0.02));
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}
.ref-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.ref-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: left;
    margin-bottom: 20px;
}
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 0.75rem; color: var(--text-muted); }
.detail-value { font-size: 0.92rem; font-weight: 600; word-break: break-word; }
.disclaimer-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.footer { padding: 30px 0 90px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes circleDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .price-discount { font-size: 2rem; }
    .sticky-buy { display: block; }
    .details-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
    .hero h1 { font-size: 2.4rem; }
}
