@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
:root {
    --bg-color: #0d0f1a; --card-bg: #161927; --primary: #8b5cf6;
    --primary-gradient: linear-gradient(90deg, #8b5cf6, #3b82f6);
    --text-main: #ffffff; --text-muted: #9ca3af; --gold: #f59e0b;
    --border-color: #2a2d3e; --success: #10b981; --danger: #ef4444;
    --warning: #f59e0b; --input-bg: #1a1d2d;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; text-decoration: none; list-style: none; scroll-behavior: smooth; }
svg.icon { width: 1.2em; height: 1.2em; fill: currentColor; display: inline-block; vertical-align: middle; }
svg.icon-lg { width: 1.5em; height: 1.5em; } svg.icon-sm { width: 1em; height: 1em; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; min-height: 100vh; overflow-x: hidden; background-image: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%); background-repeat: no-repeat; background-attachment: fixed; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-up { animation: slideUp 0.6s ease forwards; } .delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; }
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: rgba(22, 25, 39, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; cursor: pointer; }
.logo svg { color: var(--primary); -webkit-text-fill-color: initial; }
.mobile-menu-btn { display: none; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); cursor: pointer; padding: 8px; border-radius: 10px; align-items: center; justify-content: center; transition: 0.3s; }
.mobile-menu-btn:hover { border-color: var(--primary); color: var(--primary); }
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: var(--text-muted); font-size: 0.95rem; font-weight: bold; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
nav a:hover { color: var(--primary); }
main { padding: 40px 5%; max-width: 1000px; margin: 0 auto; animation: slideUp 0.8s ease; }
h1 { text-align: center; margin-bottom: 10px; font-size: 2rem; font-weight: 800; }
main > p { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.package-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; text-align: center; position: relative; transition: all 0.4s ease; overflow: hidden; animation: slideUp 0.6s ease forwards; opacity: 0; }
.package-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary-gradient); opacity: 0; transition: 0.3s; }
.package-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); border-color: var(--primary); }
.package-card:hover::before { opacity: 1; }
.package-card h3 { font-size: 1.8rem; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.package-card h3 svg { color: var(--gold); }
.package-card .price { font-size: 1.2rem; font-weight: bold; color: var(--text-main); margin-bottom: 20px; }
button, .btn { background: var(--primary-gradient); color: white; border: none; padding: 12px 25px; border-radius: 12px; font-size: 1rem; font-weight: bold; font-family: inherit; cursor: pointer; transition: 0.3s; width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
button:hover, .btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4); }
button.outline, .btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
button.outline:hover, .btn-outline:hover { background: var(--card-bg); border-color: var(--primary); }
.cart-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 15px; padding: 15px 20px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; animation: slideUp 0.5s ease forwards; }
.cart-item button { width: auto; padding: 8px 15px; background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 8px; font-size: 0.9rem; }
.cart-item button:hover { background: var(--danger); color: white; }
#cart-total { text-align: left; font-size: 1.3rem; font-weight: bold; padding: 20px 0; border-top: 1px solid var(--border-color); margin-top: 20px; }
.auth-container { max-width: 420px; margin: 60px auto; background: var(--card-bg); padding: 40px 30px; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 15px 40px rgba(0,0,0,0.5); animation: slideUp 0.6s ease; }
.auth-container h2 { text-align: center; margin-bottom: 25px; font-size: 1.8rem; }
.auth-container h3 { margin-bottom: 15px; color: var(--text-muted); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.auth-container hr { border: none; border-top: 1px solid var(--border-color); margin: 30px 0; }
input[type="text"], input[type="password"] { width: 100%; padding: 14px 15px; margin-bottom: 15px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 12px; color: white; font-family: inherit; font-size: 1rem; transition: 0.3s; }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.alert { padding: 12px 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; font-size: 0.9rem; animation: fadeIn 0.3s ease; }
.alert.error { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.alert.success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.profile-page { max-width: 600px; margin: 0 auto; }
.profile-info { background: var(--card-bg); padding: 30px; border-radius: 20px; border: 1px solid var(--border-color); margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: slideUp 0.5s ease; }
.profile-info p { margin-bottom: 15px; font-size: 1.1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.profile-info p:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.profile-info svg { color: var(--primary); }
.order-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 20px; margin-bottom: 20px; border-radius: 15px; animation: slideUp 0.5s ease; }
.order-card p { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.status-pending { color: var(--warning); font-weight: bold; }
.status-completed { color: var(--success); font-weight: bold; }
.status-cancelled { color: var(--danger); font-weight: bold; }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; transition: 0.3s; width: auto; font-size: 0.9rem; }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
footer { text-align: center; padding: 30px; border-top: 1px solid var(--border-color); margin-top: 50px; color: var(--text-muted); }
footer p { margin-top: 15px; }
#toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; pointer-events: none; }
.toast { background: var(--card-bg); color: var(--text-main); border: 1px solid var(--primary); padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 15px; min-width: 300px; max-width: 90vw; animation: slideUpFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; pointer-events: auto; }
.toast.hide { animation: fadeOutDown 0.3s ease forwards; }
.toast p { margin: 0; flex: 1; font-size: 0.95rem; font-weight: bold; }
.toast a.btn-toast { background: var(--primary-gradient); color: white; padding: 8px 15px; border-radius: 8px; font-size: 0.85rem; text-decoration: none; white-space: nowrap; transition: 0.3s; }
.toast a.btn-toast:hover { box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4); }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOutDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(30px); } }
@media (max-width: 850px) {
    .mobile-menu-btn { display: flex; }
    nav { position: fixed; top: 65px; right: -100%; width: 100%; height: calc(100vh - 65px); background: rgba(13, 15, 26, 0.98); backdrop-filter: blur(15px); flex-direction: column; padding: 30px 20px; gap: 15px; transition: right 0.4s ease; border-left: 1px solid var(--border-color); overflow-y: auto; }
    nav.active { right: 0; }
    nav a { font-size: 1.1rem; width: 100%; justify-content: center; padding: 15px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border-color); }
    nav a:hover { background: var(--input-bg); border-color: var(--primary); }
}
@media (max-width: 600px) {
    .logo { font-size: 1.2rem; } .logo svg { width: 1.2em; height: 1.2em; }
    h1 { font-size: 1.5rem; } .packages-grid { grid-template-columns: 1fr; }
    .auth-container { margin: 30px 15px; padding: 25px 20px; }
    .cart-item { flex-direction: column; gap: 15px; text-align: center; } .cart-item button { width: 100%; }
    #cart-total { text-align: center; font-size: 1.1rem; }
    .profile-info p { font-size: 0.95rem; flex-direction: column; align-items: flex-start; gap: 5px; }
    .tabs { flex-direction: column; } .tab-btn { width: 100%; text-align: center; }
}