:root {
    --bg-dark: #0c101b;
    --bg-card: rgba(23, 32, 54, 0.7);
    --primary: #1fc77e;
    --primary-hover: #17a365;
    --border-color: rgba(255, 255, 255, 0.12);
    --text-main: #f4f5f6;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --info: #38bdf8;
    --warning: #eab308;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, rgba(31, 199, 126, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    padding-bottom: 80px; /* برای جلوگیری از تداخل با فوتر */
}

header {
    background: rgba(12, 17, 29, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* اصلاح کامل فرم‌ها و کادرها به سبک متریال */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

input[type="text"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    background: rgba(15, 22, 38, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    -webkit-appearance: none; /* هماهنگی کامل در مرورگرهای موبایل */
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 199, 126, 0.2), inset 0 2px 4px rgba(0,0,0,0.3);
    outline: none;
    background: #0f1626;
}

select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    padding-left: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1aa86b);
    color: #0c111d;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(31, 199, 126, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 199, 126, 0.4);
}

/* فوتر چسبان و متریال */
footer {
    background: rgba(12, 17, 29, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 90;
}

/* ریسپانسیو اختصاصی موبایل */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; text-align: center; }
    .form-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    .full { grid-column: span 1 !important; }
    .time-select-group { flex-direction: column; gap: 8px; }
}