:root {
    --bg-main: #0a0b10;
    --card-surface: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.07);
    --card-hover-border: rgba(255, 255, 255, 0.22);
    --text-pure: #ffffff;
    --text-sub: #a1a1aa;
    --text-muted: #71717a;
    --modal-bg: #14161f;
    --modal-border: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2.5rem 1.25rem;
    overflow-x: hidden;
}

/* Background Ambient Lighting */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
}
.glow-top {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
}
.glow-bottom {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    bottom: -80px;
    right: 15%;
}

/* Main Layout */
.main-wrapper {
    max-width: 640px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.site-logo {
    max-width: 160px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
}
.logo-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(59, 130, 246, 0.12) 50%, transparent 75%);
    filter: blur(20px);
    z-index: 1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.hero-heading {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.7;
    max-width: 520px;
    font-weight: 300;
}

/* Action Cards */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 2.75rem;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    padding: 1.1rem 1.3rem;
    border-radius: 16px;
    color: inherit;
    text-align: right;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    width: 100%;
}
.nav-card:hover {
    background: var(--card-hover);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.red-box { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.blue-box { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.green-box { background: rgba(16, 185, 129, 0.12); color: #34d399; }

.card-info {
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.card-sub {
    font-size: 0.84rem;
    color: var(--text-sub);
}

/* Footer & Social Icons */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.social-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.social-icons {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}
.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.copyright-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ================= MODAL / LIGHTBOX ================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--modal-bg);
    border: 1px solid var(--modal-border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-dialog {
    transform: scale(1);
}

.btn-close {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-sub);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.modal-head h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.modal-head p {
    font-size: 0.88rem;
    color: var(--text-sub);
}

/* Modal Content Details */
.card-img-wrap {
    margin-bottom: 1.25rem;
    text-align: center;
}
.bank-card {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-copy-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.card-copy-box:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
}
.box-caption {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.num-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.6rem;
}
.card-digits {
    direction: ltr;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #60a5fa;
}
.copy-tag {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-sub);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}
.owner-name {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.text-body p {
    font-size: 0.94rem;
    line-height: 1.85;
    color: #d1d5db;
    margin-bottom: 0.85rem;
    text-align: justify;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: right;
}
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}
.info-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
}
.info-row strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-pure);
    margin-bottom: 2px;
}
.info-row span {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.6;
}
.link-tel, .link-mail {
    display: inline-block;
    direction: ltr;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.95rem;
}
.link-tel:hover, .link-mail:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .hero-heading { font-size: 1.7rem; }
    .hero-desc { font-size: 0.9rem; }
    .modal-dialog { padding: 1.5rem 1.2rem; }
    .card-digits { font-size: 0.95rem; }
    
}
.flip-icon {
    display: inline-block;
    transform: scaleX(-1);
}

/* کانتینر اصلی باکس کارت */
.card-box-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-box-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
}

/* متن شماره کارت */
.card-number {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f3f4f6;
    white-space: nowrap;
}

/* بج / دکمه کپی (هماهنگ با تم دارک) */
.copy-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.15); /* سبز نیمه‌شفاف هماهنگ با تم */
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    user-select: none;
}

.copy-tag svg {
    flex-shrink: 0;
}

.card-box-wrapper:hover .copy-tag {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

/* 📱 حالت موبایل: شماره بالا، دکمه پهن پایین */
@media (max-width: 576px) {
    .card-box-wrapper {
        flex-direction: column;
        padding: 14px;
        gap: 12px;
    }

    .card-number {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }

    .copy-tag {
        width: 100%;
        padding: 9px 0;
        font-size: 0.9rem;
    }
}
