@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #0d0814;
    --panel-bg: #15101a;
    --border-dark: #2a2035;
    --pink-neon: #ff007f;
    --pink-light: #ff66b2;
    --green-neon: #00ff88;
    --text-main: #ffffff;
    --text-muted: #a09aa6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* برای مدیریت چیدمان هدر، مین و فوتر */
}


/* Navbar (Similar to global) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: rgba(13, 8, 20, 0.8);
    backdrop-filter: blur(10px);
}
.nav-icons, .nav-actions { display: flex; gap: 1rem; align-items: center; }
.icon-btn { background: #1a1520; border: none; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.icon-btn:hover { background: #2a2035; }
.icon-btn svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 2rem; background: #110b17; padding: 0.8rem 2rem; border-radius: 8px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.theme-toggle { border: 1px solid var(--text-muted); padding: 0.4rem 1.5rem; border-radius: 20px; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; color: var(--text-muted); }
.logo img { width: 40px; border-radius: 50%; }

/* Page Title */
.page-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0 3rem 0;
    font-weight: 700;
}

.payment-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 5rem auto; /* عدد 5rem فاصله استاندارد با فوتر ایجاد میکند */
    padding: 0 2rem;
    flex: 1; /* این خط باعث میشود فوتر همیشه به انتهای صفحه هل داده شود */
}


/* === Right Panel (Dashboard) === */
.dashboard-panel {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--pink-neon);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.2), inset 0 0 10px rgba(255, 0, 127, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.welcome-bar {
    border: 1px solid var(--pink-neon);
    border-radius: 12px;
    padding: 1rem;
    text-align: right;
    box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.1);
}
.welcome-bar h2 { font-size: 1.2rem; font-weight: 500; }

.dashboard-content {
    display: flex;
    gap: 1.5rem;
}

.dash-sidebar {
    width: 200px;
    border: 1px solid var(--border-dark);
    border-radius: 15px;
    padding: 1.5rem 0;
}
.dash-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.dash-sidebar a { color: var(--text-main); text-decoration: none; font-size: 1rem; display: block; padding: 0.5rem 2rem; transition: 0.3s; font-weight: 500;}
.dash-sidebar a:hover, .dash-sidebar a.active { color: var(--pink-light); }

.dash-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
}

.card {
    background: transparent;
    border: 1px solid var(--border-dark);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-3px); }

.data-card { flex-direction: row; align-items: center; gap: 1rem; }
.data-card .card-text { flex: 1; }
.data-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.data-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.data-card img { width: 120px; border-radius: 10px; }

.brain-card { align-items: center; justify-content: center; padding: 0;}
.brain-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }

.history-card h3 { text-align: center; font-size: 1.1rem; margin-bottom: 1rem; }
.history-list { display: flex; flex-direction: column; gap: 0.5rem; }
.history-item { display: flex; justify-content: space-between; padding: 0.8rem 1.5rem; background: #1a1520; border-radius: 20px; font-size: 0.85rem; border: 1px solid transparent;}
.active-item { border-color: var(--pink-neon); background: rgba(255, 0, 127, 0.1); box-shadow: 0 0 10px rgba(255, 0, 127, 0.2); }

.info-card { gap: 0.8rem; }
.info-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.5rem;}
.type-row { border-bottom: none; color: var(--text-main); font-weight: bold; margin-bottom: 1rem;}
.btn-pink-solid { background: var(--pink-neon); color: white; border: none; padding: 0.8rem; border-radius: 20px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(255, 0, 127, 0.5); }
.btn-pink-solid:hover { background: #ff3399; box-shadow: 0 0 25px rgba(255, 0, 127, 0.8); transform: scale(1.02); }

/* === Left Panel (Confirmation) === */
.confirmation-panel {
    width: 300px;
    background: var(--panel-bg);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-title { color: var(--green-neon); font-size: 1.5rem; font-weight: bold; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); margin-bottom: 0.5rem;}
.success-image img { width: 100%; border-radius: 15px; box-shadow: 0 0 20px rgba(255, 0, 127, 0.3); }
.success-text { font-size: 0.9rem; text-align: center; line-height: 1.5; }
.btn-outline-pink { width: 100%; background: transparent; color: white; border: 1px solid var(--pink-neon); padding: 0.8rem; border-radius: 20px; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: auto; box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.2); }
.btn-outline-pink:hover { background: rgba(255, 0, 127, 0.1); box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.5), 0 0 15px rgba(255, 0, 127, 0.3); }

/* === Animations === */
@keyframes pulseNeon {
    0% { box-shadow: 0 0 15px rgba(255, 0, 127, 0.2), inset 0 0 10px rgba(255, 0, 127, 0.1); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 127, 0.4), inset 0 0 15px rgba(255, 0, 127, 0.2); }
    100% { box-shadow: 0 0 15px rgba(255, 0, 127, 0.2), inset 0 0 10px rgba(255, 0, 127, 0.1); }
}
.dashboard-panel { animation: pulseNeon 3s infinite alternate; }

/* === Responsive Design === */
@media (max-width: 1024px) {
    .payment-container { flex-direction: column-reverse; align-items: center; }
    .dashboard-panel { width: 100%; }
    .confirmation-panel { width: 100%; max-width: 400px; }
}

@media (max-width: 768px) {
    .dashboard-content { flex-direction: column; }
    .dash-sidebar { width: 100%; padding: 0.5rem; }
    .dash-sidebar ul { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 1rem;}
    .dash-grid { grid-template-columns: 1fr; }
    .data-card { flex-direction: column; text-align: center; }
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
}
