@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', Tahoma, sans-serif; }

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --accent: #ec4899;
    --gold: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #fafafe;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e9e5f5;
    --shadow-sm: 0 1px 3px rgba(124,58,237,.06);
    --shadow: 0 4px 20px rgba(124,58,237,.08);
    --shadow-lg: 0 20px 50px rgba(124,58,237,.15);
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--text); line-height: 1.75;
    min-height: 100vh; display: flex; flex-direction: column;
    font-size: 15px; -webkit-font-smoothing: antialiased;
}

body::before {
    content: ''; position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(124,58,237,.12), transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(236,72,153,.10), transparent 50%),
        radial-gradient(ellipse 70% 60% at 50% 110%, rgba(59,130,246,.08), transparent 50%);
    z-index: -1; pointer-events: none;
}

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

/* HEADER */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(124,58,237,.08);
}
header .container { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.logo {
    font-size: 24px; font-weight: 900; text-decoration: none;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; letter-spacing: -.5px;
}
nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav a {
    color: var(--text); text-decoration: none; padding: 8px 14px;
    border-radius: 10px; font-weight: 600; font-size: 14px; transition: all .2s;
}
nav a:hover { background: rgba(124,58,237,.08); color: var(--primary); }
.user-badge {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff; padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(124,58,237,.3);
}

/* HERO */
.hero {
    position: relative; padding: 90px 40px; text-align: center;
    border-radius: 32px; margin: 20px 0 50px; overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 40%, #7c3aed 70%, #ec4899 100%);
    box-shadow: 0 30px 80px rgba(124,58,237,.35); color: #fff;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.1), transparent 40%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 600; margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1.5px; }
.hero h1 span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 19px; opacity: .9; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 32px; border-radius: 14px;
    text-decoration: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; box-shadow: 0 8px 20px rgba(124,58,237,.3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(124,58,237,.4); }
.btn-white { background: #fff; color: var(--primary); }
.btn-ghost-white { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(10px); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 20px rgba(239,68,68,.3); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 20px rgba(16,185,129,.3); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 10px; }

/* SECTIONS */
section { margin: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(236,72,153,.1));
    color: var(--primary); padding: 6px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.section-header h2 { font-size: 38px; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.section-header p { color: var(--muted); font-size: 16px; }

/* GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 24px 0; }

/* CARDS */
.card {
    background: var(--card); padding: 26px; border-radius: 20px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,.2); }
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.card.empty { text-align: center; padding: 50px; }

/* FEATURES */
.feature { text-align: center; padding: 36px 24px; }
.feature-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(236,72,153,.1));
    box-shadow: 0 8px 24px rgba(124,58,237,.12);
}

/* COUNSELOR */
.counselor-card { text-align: center; padding: 30px 22px; position: relative; }
.counselor-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800; margin: 0 auto 16px;
    box-shadow: 0 12px 30px rgba(124,58,237,.35);
    overflow: hidden;
}
.counselor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.counselor-specialty {
    display: inline-block; background: rgba(124,58,237,.08);
    color: var(--primary); padding: 4px 12px; border-radius: 100px;
    font-size: 12px; font-weight: 700; margin: 8px 0;
}
.counselor-price {
    font-size: 19px; font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; margin: 14px 0;
}

/* FORM */
.auth-box {
    max-width: 500px; margin: 40px auto; background: var(--card);
    padding: 44px 40px; border-radius: 26px;
    box-shadow: 0 20px 60px rgba(124,58,237,.12);
    border: 1px solid var(--border);
}
.auth-box h1, .auth-box h2 {
    text-align: center; margin-bottom: 8px; font-size: 28px; font-weight: 900;
}
.auth-subtitle { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input, textarea, select {
    width: 100%; padding: 14px 16px; border: 2px solid var(--border);
    border-radius: 12px; font-family: inherit; font-size: 15px;
    transition: all .2s; background: #fafafe; color: var(--text);
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.code-input { font-size: 32px; letter-spacing: 16px; text-align: center; font-weight: 800; font-family: monospace; padding: 18px; background: #fff; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 800; }

/* ALERT */
.alert {
    padding: 14px 20px; border-radius: 14px; margin: 16px 0;
    font-weight: 600; font-size: 14px;
    animation: slideDown .4s cubic-bezier(.4,0,.2,1);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; border-right: 4px solid var(--success); }
.alert-error { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; border-right: 4px solid var(--danger); }

/* DASHBOARD */
.dashboard-header {
    padding: 30px; background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff; border-radius: 24px; margin-bottom: 28px;
    box-shadow: 0 15px 40px rgba(124,58,237,.25);
}
.dashboard-header h1 { font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.stat-card { text-align: center; padding: 30px 20px; }
.stat-card .number {
    font-size: 42px; font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 8px;
}
.stat-card .label { color: var(--muted); font-size: 13px; font-weight: 700; }

/* SLOTS */
.slot {
    background: var(--card); padding: 18px; border-radius: 14px;
    text-align: center; border: 2px solid var(--border);
    transition: all .25s; text-decoration: none; color: var(--text);
    display: block;
}
.slot:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(124,58,237,.15); }
.slot-date { font-weight: 800; margin-bottom: 4px; font-size: 14px; }
.slot-time { color: var(--primary); font-size: 20px; font-weight: 900; }

/* BANK CARD */
.bank-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff; padding: 24px; border-radius: 18px;
    margin: 16px 0; position: relative; overflow: hidden;
}
.bank-card .bank-name { font-size: 14px; opacity: .8; margin-bottom: 8px; }
.bank-card .card-number {
    font-size: 22px; font-weight: 700; letter-spacing: 2px;
    margin: 12px 0; font-family: monospace; direction: ltr; text-align: right;
}
.copy-btn {
    background: rgba(255,255,255,.2); color: #fff; border: none;
    padding: 8px 16px; border-radius: 8px; cursor: pointer;
    font-family: inherit; font-size: 13px; transition: all .2s;
}
.copy-btn:hover { background: rgba(255,255,255,.3); }

/* CHAT */
.chat-container {
    display: flex; flex-direction: column;
    height: calc(100vh - 140px); max-height: 700px;
    background: #fff; border-radius: 20px;
    box-shadow: var(--shadow); overflow: hidden;
    border: 1px solid var(--border);
}
.chat-header {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; padding: 14px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-header .name { font-weight: 800; font-size: 16px; }
.chat-header .status { font-size: 12px; opacity: .9; }
.chat-timer {
    background: rgba(255,255,255,.2); padding: 6px 14px;
    border-radius: 100px; font-weight: 700; font-family: monospace;
}
.chat-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    background: linear-gradient(180deg, #fafafe, #f5f3ff);
    display: flex; flex-direction: column; gap: 12px;
}
.msg { max-width: 75%; padding: 10px 14px; border-radius: 16px; position: relative; font-size: 14px; }
.msg-other { background: #f1f5f9; color: var(--text); align-self: flex-start; border-bottom-right-radius: 4px; }
.msg-me { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; align-self: flex-end; border-bottom-left-radius: 4px; }
.msg-time { font-size: 10px; opacity: .7; margin-top: 4px; text-align: left; }
.chat-input {
    display: flex; gap: 8px; padding: 12px; background: #fff;
    border-top: 1px solid var(--border);
}
.chat-input input {
    flex: 1; padding: 12px 16px; border-radius: 100px;
    border: 2px solid var(--border);
}
.chat-input button {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border: none; cursor: pointer; font-size: 20px;
}

/* LOCK SCREEN */
.lock-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center; min-height: 400px;
}
.lock-timer { font-size: 48px; font-weight: 900; font-family: monospace; margin: 20px 0; }

/* FOOTER */
footer {
    text-align: center; padding: 36px 20px; color: var(--muted);
    margin-top: auto; border-top: 1px solid var(--border); font-size: 14px;
}
.footer-logo {
    font-size: 20px; font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 8px;
}

/* MOBILE */
@media (max-width: 768px) {
    .container { padding: 14px; }
    .hero { padding: 60px 24px; border-radius: 24px; }
    .hero h1 { font-size: 36px; letter-spacing: -1px; }
    .hero p { font-size: 16px; }
    .section-header h2 { font-size: 28px; }
    header .container { flex-direction: column; gap: 10px; padding: 12px; }
    nav { justify-content: center; gap: 4px; }
    nav a { padding: 6px 12px; font-size: 13px; }
    .auth-box { padding: 28px 22px; margin: 20px auto; border-radius: 20px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .dashboard-header { padding: 24px 20px; }
    .dashboard-header h1 { font-size: 24px; }
    .stat-card .number { font-size: 34px; }
    .msg { max-width: 85%; }
    .lock-timer { font-size: 36px; }
}
