/* =========================================================
   پنل کاربری آهولرن - تم آبی تیره و آبی آسمانی
   ========================================================= */

.ahudash-app,
.ahudash-app *,
.ahudash-auth-wrap,
.ahudash-auth-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'IRANSans', 'IRANSansWeb', Vazirmatn, Tahoma, sans-serif !important;
    direction: rtl;
}

.ahudash-app {
    --ahu-primary: #0F2C4C;
    --ahu-primary-dark: #091A33;
    --ahu-primary-light: #E8F0F8;
    --ahu-secondary: #608BC1;
    --ahu-secondary-dark: #3B6B9F;
    --ahu-secondary-light: #D6E4F2;
    --ahu-sky: #38BDF8;
    --ahu-sky-dark: #0284C7;
    --ahu-sky-light: #E0F2FE;
    --ahu-blue: #3B82F6;
    --ahu-blue-light: #DBEAFE;
    --ahu-indigo: #6366F1;
    --ahu-indigo-light: #E0E7FF;
    --ahu-cyan: #06B6D4;
    --ahu-cyan-light: #CFFAFE;
    --ahu-amber: #F59E0B;
    --ahu-amber-light: #FEF3C7;
    --ahu-rose: #F43F5E;
    --ahu-rose-light: #FFE4E6;
    --ahu-violet: #8B5CF6;
    --ahu-violet-light: #EDE9FE;
    --ahu-heading: #0F2C4C;
    --ahu-text: #475569;
    --ahu-muted: #64748b;
    --ahu-border: #e2e8f0;
    --ahu-bg: #f8fafc;
    --ahu-white: #ffffff;
    --ahu-radius-sm: 10px;
    --ahu-radius-md: 16px;
    --ahu-radius-lg: 24px;
    --ahu-shadow-sm: 0 2px 8px rgba(15, 44, 76, 0.06);
    --ahu-shadow: 0 8px 24px rgba(15, 44, 76, 0.08);
    --ahu-shadow-lg: 0 16px 40px rgba(15, 44, 76, 0.12);

    min-height: 100vh;
    background: linear-gradient(180deg, #F0F6FF 0%, #f8fafc 100%);
    color: var(--ahu-text);
    line-height: 1.8;
}

/* ===== هدر داشبورد ===== */
.ahudash-header {
    background: linear-gradient(135deg, var(--ahu-primary) 0%, var(--ahu-sky-dark) 100%);
    color: var(--ahu-white);
    box-shadow: var(--ahu-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ahudash-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ahudash-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* لوگو در هدر داشبورد - فقط متن */
.ahu-dashboard-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1.5px solid #D4AF37;
    line-height: 1.2;
}

.ahu-logo-fa {
    font-size: 17px;
    font-weight: 900;
    color: var(--ahu-white);
    letter-spacing: 0.5px;
}

.ahu-logo-en {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.ahudash-brand-tag {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ahu-white);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.ahudash-header-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ahudash-user-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.ahudash-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ahu-white);
}

.ahudash-user-code {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.ahudash-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.ahudash-btn-logout {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--ahu-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: background 0.2s;
}

.ahudash-btn-logout:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ===== چیدمان اصلی ===== */
.ahudash-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 20px;
    align-items: start;
}

/* ===== سایدبار ===== */
.ahudash-sidebar {
    background: var(--ahu-white);
    border-radius: var(--ahu-radius-md);
    padding: 10px;
    box-shadow: var(--ahu-shadow-sm);
    border: 1px solid var(--ahu-border);
    position: sticky;
    top: 90px;
}

.ahudash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--ahu-text);
    text-decoration: none;
    border-radius: var(--ahu-radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    margin-bottom: 3px;
}

.ahudash-nav-item:hover {
    background: var(--ahu-primary-light);
    color: var(--ahu-primary);
}

.ahudash-nav-item.active {
    background: linear-gradient(135deg, var(--ahu-primary) 0%, var(--ahu-secondary) 100%);
    color: var(--ahu-white);
}

.ahudash-nav-item.active .ahudash-nav-icon svg path,
.ahudash-nav-item.active .ahudash-nav-icon svg circle,
.ahudash-nav-item.active .ahudash-nav-icon svg rect {
    fill: var(--ahu-white) !important;
}

.ahudash-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ahudash-nav-icon svg {
    width: 22px;
    height: 22px;
}

/* ===== محتوای اصلی ===== */
.ahudash-main {
    min-width: 0;
}

.ahudash-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ahudash-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ahudash-page-header h1 {
    color: var(--ahu-heading);
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.ahudash-page-header p {
    color: var(--ahu-muted);
    font-size: 14px;
    margin: 4px 0 0;
}

.ahudash-page-header-actions {
    display: flex;
    gap: 8px;
}

/* ===== کارت‌ها ===== */
.ahudash-card {
    background: var(--ahu-white);
    border-radius: var(--ahu-radius-md);
    box-shadow: var(--ahu-shadow-sm);
    border: 1px solid var(--ahu-border);
    overflow: hidden;
}

.ahudash-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ahu-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ahudash-card-header h2 {
    color: var(--ahu-heading);
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.ahudash-card-body {
    padding: 20px;
}

.ahudash-card-cta {
    background: linear-gradient(135deg, var(--ahu-primary) 0%, var(--ahu-sky-dark) 100%);
    color: var(--ahu-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: none;
}

.ahudash-card-cta h2,
.ahudash-card-cta p {
    color: var(--ahu-white);
}

.ahudash-cta-content h2 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
}

/* ===== کارت‌های آماری ===== */
.ahudash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ahudash-stat-card {
    background: var(--ahu-white);
    border-radius: var(--ahu-radius-md);
    padding: 18px;
    box-shadow: var(--ahu-shadow-sm);
    border: 1px solid var(--ahu-border);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s;
}

.ahudash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ahu-shadow);
}

.ahudash-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ahudash-stat-icon svg {
    width: 26px;
    height: 26px;
}

.ahudash-stat-blue .ahudash-stat-icon {
    background: var(--ahu-primary-light);
    color: var(--ahu-primary);
}
.ahudash-stat-sky .ahudash-stat-icon {
    background: var(--ahu-sky-light);
    color: var(--ahu-sky-dark);
}
.ahudash-stat-navy .ahudash-stat-icon {
    background: #DBEAFE;
    color: #1E40AF;
}
.ahudash-stat-cyan .ahudash-stat-icon {
    background: #CFFAFE;
    color: #0E7490;
}

.ahudash-stat-info {
    display: flex;
    flex-direction: column;
}

.ahudash-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--ahu-heading);
    line-height: 1;
    margin-bottom: 4px;
}

.ahudash-stat-label {
    font-size: 12px;
    color: var(--ahu-muted);
    font-weight: 600;
}

/* ===== دکمه‌ها ===== */
.ahudash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 26px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: inherit !important;
    position: relative;
    overflow: hidden;
}

.ahudash-btn-primary {
    background: linear-gradient(135deg, var(--ahu-primary) 0%, var(--ahu-sky-dark) 100%);
    color: var(--ahu-white) !important;
    box-shadow: 0 6px 18px rgba(15, 44, 76, 0.2);
}

.ahudash-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 44, 76, 0.35);
}

.ahudash-btn-primary:active {
    transform: translateY(0);
}

.ahudash-btn-secondary {
    background: var(--ahu-bg);
    color: var(--ahu-text) !important;
    border: 2px solid var(--ahu-border);
}

.ahudash-btn-secondary:hover {
    background: var(--ahu-primary-light);
    border-color: var(--ahu-secondary);
}

.ahudash-btn-sm {
    padding: 7px 14px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
}

.ahudash-btn-block {
    width: 100%;
}

.ahudash-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== جدول‌ها ===== */
.ahudash-table-wrap {
    overflow-x: auto;
}

.ahudash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ahudash-table thead {
    background: var(--ahu-bg);
}

.ahudash-table th {
    padding: 12px 14px;
    text-align: right;
    font-weight: 800;
    color: var(--ahu-heading);
    border-bottom: 2px solid var(--ahu-border);
    white-space: nowrap;
}

.ahudash-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ahu-border);
    color: var(--ahu-text);
}

.ahudash-table tr:last-child td {
    border-bottom: none;
}

.ahudash-table tr:hover td {
    background: var(--ahu-bg);
}

/* ===== بج‌ها ===== */
.ahudash-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.ahudash-badge-success { background: var(--ahu-blue-light); color: #1e40af; }
.ahudash-badge-warning { background: var(--ahu-amber-light); color: #92400e; }
.ahudash-badge-info { background: var(--ahu-indigo-light); color: #3730a3; }
.ahudash-badge-danger { background: #fee2e2; color: #991b1b; }

/* ===== نوار پیشرفت ===== */
.ahudash-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.ahudash-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--ahu-border);
    border-radius: 100px;
    overflow: hidden;
}

.ahudash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ahu-blue), var(--ahu-sky));
    border-radius: 100px;
    transition: width 0.5s ease;
}

.ahudash-progress-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--ahu-blue);
    min-width: 35px;
}

.ahudash-progress-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ahudash-progress-mini .ahudash-progress-bar {
    max-width: 120px;
}

.ahudash-progress-mini span {
    font-size: 12px;
    font-weight: 700;
    color: var(--ahu-heading);
}

/* ===== لیست دوره‌ها ===== */
.ahudash-course-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ahudash-course-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--ahu-bg);
    border-radius: var(--ahu-radius-sm);
    border: 1px solid var(--ahu-border);
}

.ahudash-course-thumb {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ahudash-course-info {
    flex: 1;
    min-width: 0;
}

.ahudash-course-info h3 {
    color: var(--ahu-heading);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ahudash-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.ahudash-course-card {
    background: var(--ahu-white);
    border-radius: var(--ahu-radius-sm);
    overflow: hidden;
    border: 1px solid var(--ahu-border);
    box-shadow: var(--ahu-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ahudash-course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ahu-shadow);
}

.ahudash-course-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.ahudash-course-card-body {
    padding: 12px;
}

.ahudash-course-card-body h3 {
    color: var(--ahu-heading);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
}

/* ===== سلول کاربر ===== */
.ahudash-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ahudash-user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ===== پروفایل ===== */
.ahudash-profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.ahudash-profile-card {
    text-align: center;
}

.ahudash-profile-card .ahudash-card-body {
    padding: 24px 20px;
}

.ahudash-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 4px solid var(--ahu-blue-light);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.ahudash-profile-card h2 {
    color: var(--ahu-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.ahudash-profile-email {
    color: var(--ahu-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.ahudash-profile-meta {
    text-align: right;
    padding-top: 14px;
    border-top: 1px solid var(--ahu-border);
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
}

.ahudash-profile-meta strong {
    color: var(--ahu-heading);
}

/* ===== تیکت‌ها ===== */
.ahudash-ticket-detail .ahudash-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.ahudash-ticket-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ahu-muted);
}

.ahudash-msg {
    background: var(--ahu-bg);
    border-radius: var(--ahu-radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--ahu-border);
}

.ahudash-msg-staff {
    background: var(--ahu-primary-light);
    border-color: var(--ahu-secondary);
}

.ahudash-msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ahudash-msg-header strong {
    color: var(--ahu-heading);
    font-size: 14px;
}

.ahudash-msg-date {
    margin-right: auto;
    font-size: 12px;
    color: var(--ahu-muted);
}

.ahudash-msg-body {
    color: var(--ahu-text);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== فرم‌ها ===== */
.ahudash-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ahudash-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ahudash-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ahu-heading);
}

.ahudash-field input,
.ahudash-field select,
.ahudash-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--ahu-border);
    border-radius: 14px;
    background: #FBFCFD;
    color: var(--ahu-heading);
    font-size: 14px;
    font-family: inherit !important;
    transition: all 0.25s ease;
    outline: none;
}

.ahudash-field input::placeholder,
.ahudash-field textarea::placeholder {
    color: #94a3b8;
}

.ahudash-field input:hover,
.ahudash-field select:hover,
.ahudash-field textarea:hover {
    border-color: var(--ahu-secondary-light);
    background: var(--ahu-white);
}

.ahudash-field input:focus,
.ahudash-field select:focus,
.ahudash-field textarea:focus {
    border-color: var(--ahu-blue);
    background: var(--ahu-white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ahudash-field textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.7;
}

.ahudash-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ahudash-req {
    color: #dc2626;
}

.ahudash-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ahudash-form-message {
    padding: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    transition: all 0.3s;
    min-height: 0;
}

.ahudash-form-message.show {
    padding: 12px 16px;
    animation: ahudash-slideDown 0.3s ease;
}

@keyframes ahudash-slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ahudash-form-message.success {
    background: linear-gradient(135deg, #DBEAFE 0%, #E0F2FE 100%);
    color: #1e40af;
    border: 1px solid var(--ahu-blue);
}

.ahudash-form-message.error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991b1b;
    border: 1px solid #F87171;
}

/* ===== صفحه ورود/ثبت‌نام ===== */
.ahudash-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0A1F3D 0%, #0F2C4C 30%, #1E3A5F 60%, #2B4D7A 100%);
    position: relative;
    overflow: hidden;
}

.ahudash-auth-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.2), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(96, 139, 193, 0.2), transparent 50%);
}

.ahudash-auth-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.4;
}

.ahudash-auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 50px 40px 40px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ahudash-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0F2C4C, #3B82F6, #38BDF8, #3B82F6, #0F2C4C);
}

.ahudash-auth-header {
    text-align: center;
    margin-bottom: 22px;
}

/* لوگو در صفحه ورود و عضویت - فقط متن */
.ahu-auth-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 190px;
    margin: 0 auto 20px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
    line-height: 1.2;
}

.ahu-auth-logo-fa {
    font-size: 22px;
    font-weight: 900;
    color: #0F2C4C;
    letter-spacing: 0.5px;
}

.ahu-auth-logo-en {
    font-size: 11px;
    font-weight: 600;
    color: #608BC1;
    letter-spacing: 0.8px;
    margin-top: 3px;
}

.ahudash-auth-header h2 {
    color: #0F2C4C;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ahudash-auth-header p {
    color: var(--ahu-muted);
    font-size: 14px;
    margin: 0;
}

.ahudash-field-row .ahudash-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ahu-text);
    font-weight: 600;
}

.ahudash-field-row .ahudash-link,
.ahudash-auth-footer .ahudash-link {
    font-size: 13px;
    color: var(--ahu-blue);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.ahudash-field-row .ahudash-link:hover,
.ahudash-auth-footer .ahudash-link:hover {
    color: var(--ahu-primary);
    text-decoration: underline;
}

.ahudash-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--ahu-border);
    font-size: 14px;
    color: var(--ahu-muted);
}

.ahudash-notice {
    padding: 14px 16px;
    background: var(--ahu-primary-light);
    color: var(--ahu-primary);
    border-radius: var(--ahu-radius-sm);
    text-align: center;
    font-weight: 600;
}

.ahudash-notice-error {
    background: #fef2f2;
    color: #991b1b;
}

.ahudash-form-message a,
.ahudash-notice a {
    color: inherit;
    font-weight: 700;
}

/* ===== خالی ===== */
.ahudash-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--ahu-muted);
}

.ahudash-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.ahudash-empty p {
    margin-bottom: 16px;
    font-size: 15px;
}

/* ===== تب‌های اصلی ورود/ثبت‌نام ===== */
.ahudash-main-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 26px;
    background: #F1F5F9;
    padding: 6px;
    border-radius: 16px;
}

.ahudash-main-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    color: var(--ahu-muted);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit !important;
    position: relative;
}

.ahudash-main-tab:hover:not(.active) {
    color: var(--ahu-primary);
    background: rgba(255, 255, 255, 0.5);
}

.ahudash-main-tab.active {
    background: linear-gradient(135deg, var(--ahu-primary) 0%, var(--ahu-sky-dark) 100%);
    color: var(--ahu-white);
    box-shadow: 0 6px 16px rgba(15, 44, 76, 0.25);
}

.ahudash-main-tab-content {
    display: none;
    animation: ahudash-fadeIn 0.4s ease;
}

.ahudash-main-tab-content.active {
    display: block;
}

@keyframes ahudash-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== تب‌های فرعی روش ورود ===== */
.ahudash-sub-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 12px;
}

.ahudash-sub-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--ahu-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    font-family: inherit !important;
}

.ahudash-sub-tab:hover:not(.active) {
    color: var(--ahu-primary);
    background: rgba(255, 255, 255, 0.5);
}

.ahudash-sub-tab.active {
    background: var(--ahu-white);
    color: var(--ahu-primary);
    box-shadow: 0 2px 8px rgba(15, 44, 76, 0.1);
}

.ahudash-sub-tab-content {
    display: none;
    animation: ahudash-fadeIn 0.3s ease;
}

.ahudash-sub-tab-content.active {
    display: flex;
}

/* ===== OTP ===== */
.ahudash-otp-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ahudash-otp-info {
    padding: 11px 14px;
    background: var(--ahu-blue-light);
    color: var(--ahu-blue);
    border-radius: var(--ahu-radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.ahudash-otp-info .ahudash-link {
    color: var(--ahu-blue);
    margin-right: 8px;
}

.ahudash-otp-resend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ahu-muted);
}

.ahudash-otp-timer strong {
    color: var(--ahu-primary);
    font-weight: 800;
}

.ahudash-otp-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border: none;
    font-family: inherit;
}

.ahudash-otp-resend-btn:not(:disabled) {
    color: var(--ahu-blue);
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
}

/* ===== فیلد شماره با دکمه ===== */
.ahudash-phone-row {
    display: flex;
    gap: 8px;
}

.ahudash-phone-row input {
    flex: 1;
}

.ahudash-phone-row .ahudash-btn {
    white-space: nowrap;
    padding: 11px 16px !important;
}

.ahudash-hint {
    color: var(--ahu-muted);
    font-size: 11px;
    margin-top: 4px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
    .ahudash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ahudash-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ahu-auth-logo {
        width: 170px;
        margin-bottom: 16px;
    }

    .ahudash-layout {
        grid-template-columns: 1fr;
    }

    .ahudash-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .ahudash-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .ahudash-stats-grid {
        grid-template-columns: 1fr;
    }

    .ahudash-field-row {
        grid-template-columns: 1fr;
    }

    .ahudash-header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .ahudash-auth-card {
        padding: 24px;
    }

    .ahudash-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   صفحه ورود و عضویت - طراحی اختصاصی آهولرن
   ========================================================= */

:root{
  --ahu-navy: #0F2C59;
  --ahu-blue: #146C94;
  --ahu-cyan: #19A7CE;
  --ahu-light: #AFD3E2;
  --ahu-gold: #D4A017;
  --ahu-orange: #FF8A00;
  --ahu-white: #FFFFFF;
  --ahu-text: #17375E;
  --ahu-muted: rgba(23,55,94,.72);
  --ahu-border: rgba(175,211,226,.85);
  --ahu-hover-blue: #8FD8EC;
  --ahu-hover-blue-2: #B7E8F4;
}

/* Page */
.ahu-auth-page{
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  font-family: 'IRANSans', 'IRANSansWeb', Vazirmatn, Tahoma, sans-serif !important;
  direction: rtl;
  background: #FFFFFF;
}

/* Card */
.ahu-auth-card{
  width: 100%;
  max-width: 540px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 30px 30px 24px;
  border: 1px solid var(--ahu-border);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 30px 80px rgba(15,44,89,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ahu-auth-card::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.08));
}

.ahu-auth-card > *{
  position: relative;
  z-index: 1;
}

/* Brand */
.ahu-auth-brand-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.ahu-auth-brand{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 22px;
  direction: rtl;
  text-decoration: none;
  transition: transform .22s ease;
}

.ahu-auth-brand:hover{
  transform: translateY(-1px);
}

.ahu-auth-brand-mark{
  width: 82px;
  height: 82px;
  min-width: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--ahu-gold);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow:
    0 10px 24px rgba(15,44,89,.12),
    inset 0 0 0 3px rgba(255,255,255,.95);
}

.ahu-auth-brand-mark-img{
  width: 168%;
  height: 168%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 86% center;
}

.ahu-auth-brand-text{
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ahu-auth-brand-title{
  display: block;
  color: var(--ahu-navy);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.5px;
}

/* Heading */
.ahu-auth-head{
  margin-bottom: 20px;
  text-align: center;
}

.ahu-auth-title{
  margin: 0 0 10px;
  color: var(--ahu-navy);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.35;
}

.ahu-auth-subtitle{
  margin: 0;
  color: var(--ahu-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.95;
}

/* Tabs */
.ahu-auth-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px;
  border: 1px solid rgba(175,211,226,.58);
  border-radius: 18px;
  background: rgba(175,211,226,.30);
}

.ahu-auth-tab{
  min-height: 48px;
  border: none !important;
  border-radius: 13px !important;
  outline: none !important;
  background: #FFFFFF !important;
  color: var(--ahu-navy) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color .24s ease, background .24s ease, box-shadow .24s ease, transform .24s ease;
}

.ahu-auth-tab:not(.active):hover,
.ahu-auth-tab:not(.active):focus{
  background: var(--ahu-hover-blue-2) !important;
  color: var(--ahu-navy) !important;
  box-shadow: none !important;
}

.ahu-auth-tab.active,
.ahu-auth-tab.active:hover,
.ahu-auth-tab.active:focus{
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--ahu-navy), var(--ahu-blue)) !important;
  box-shadow: 0 12px 24px rgba(15,44,89,.20) !important;
}

/* Panels */
.ahu-auth-panel{
  display: none;
}

.ahu-auth-panel.active{
  display: block;
}

/* Form */
.ahu-auth-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ahu-form-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ahu-form-group label{
  color: var(--ahu-text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.ahu-form-group input{
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid rgba(15,44,89,.18);
  border-radius: 13px;
  outline: none;
  background: rgba(255,255,255,.96);
  color: var(--ahu-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: all .22s ease;
}

.ahu-form-group input::placeholder{
  color: rgba(23,55,94,.43);
  font-weight: 500;
}

.ahu-form-group input:focus{
  border-color: var(--ahu-cyan);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(25,167,206,.13);
}

/* Phone row */
.ahu-phone-row{
  display: flex;
  gap: 8px;
}

.ahu-phone-row input{
  flex: 1;
}

.ahu-phone-row .ahu-auth-btn-secondary{
  white-space: nowrap;
  padding: 0 16px;
  min-height: 52px;
  border: none;
  border-radius: 13px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #31598F, #4B79B6);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .22s ease;
}

.ahu-phone-row .ahu-auth-btn-secondary:hover{
  background: linear-gradient(135deg, var(--ahu-hover-blue), var(--ahu-hover-blue-2));
  color: var(--ahu-navy);
}

.ahu-phone-row .ahu-auth-btn-secondary:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

/* Login Row */
.ahu-auth-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.ahu-checkbox-wrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ahu-text);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.ahu-checkbox-wrap input{
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ahu-blue);
}

/* Links */
.ahu-auth-link,
.ahu-auth-switch{
  color: var(--ahu-blue) !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: color .2s ease;
  cursor: pointer;
}

.ahu-auth-link:hover,
.ahu-auth-switch:hover{
  color: var(--ahu-orange) !important;
}

/* Buttons */
.ahu-auth-btn{
  width: 100%;
  min-height: 52px;
  border: none !important;
  border-radius: 14px !important;
  outline: none !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--ahu-navy), var(--ahu-blue)) !important;
  box-shadow: 0 14px 28px rgba(15,44,89,.18);
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.ahu-auth-btn:hover,
.ahu-auth-btn:focus{
  transform: translateY(-1px);
  color: var(--ahu-navy) !important;
  background: linear-gradient(135deg, var(--ahu-hover-blue), var(--ahu-hover-blue-2)) !important;
  box-shadow: 0 18px 34px rgba(25,167,206,.20) !important;
}

.ahu-auth-btn:hover *,
.ahu-auth-btn:focus *{
  color: var(--ahu-navy) !important;
}

.ahu-auth-btn:active{
  transform: translateY(0);
}

.ahu-auth-btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Divider */
.ahu-auth-divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  color: rgba(23,55,94,.66);
  font-size: 13px;
  font-weight: 850;
}

.ahu-auth-divider::before,
.ahu-auth-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(175,211,226,.92);
}

.ahu-auth-divider span{
  padding: 0 4px;
}

/* Footer */
.ahu-auth-footer{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(175,211,226,.9);
  color: var(--ahu-text);
  font-size: 14px;
  font-weight: 750;
}

.ahu-auth-footer-text{
  color: rgba(23,55,94,.84);
}

/* Form messages in auth page */
.ahu-auth-form .ahudash-form-message{
  padding: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  transition: all 0.3s;
  min-height: 0;
}

.ahu-auth-form .ahudash-form-message.show{
  padding: 12px 16px;
}

.ahu-auth-form .ahudash-form-message.success{
  background: linear-gradient(135deg, #DBEAFE 0%, #E0F2FE 100%);
  color: #1e40af;
  border: 1px solid #3B82F6;
}

.ahu-auth-form .ahudash-form-message.error{
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  color: #991b1b;
  border: 1px solid #F87171;
}

/* Responsive */
@media (max-width: 767px){
  .ahu-auth-page{
    align-items: flex-start;
    padding: 20px 12px 24px;
  }

  .ahu-auth-card{
    max-width: 100%;
    padding: 22px 16px 18px;
    border-radius: 23px;
  }

  .ahu-auth-brand{
    gap: 10px;
  }

  .ahu-auth-brand-mark{
    width: 66px;
    height: 66px;
    min-width: 66px;
  }

  .ahu-auth-brand-mark-img{
    width: 172%;
    height: 172%;
    object-position: 86% center;
  }

  .ahu-auth-brand-title{
    font-size: 23px;
  }

  .ahu-auth-title{
    font-size: 24px;
  }

  .ahu-auth-subtitle{
    font-size: 14px;
    line-height: 1.85;
  }

  .ahu-auth-tabs{
    gap: 8px;
    padding: 7px;
    border-radius: 16px;
  }

  .ahu-auth-tab{
    min-height: 46px;
    font-size: 15px !important;
  }

  .ahu-form-group input,
  .ahu-auth-btn{
    min-height: 48px;
  }

  .ahu-auth-row{
    align-items: flex-start;
  }
}

@media (max-width: 390px){
  .ahu-auth-card{
    padding-right: 14px;
    padding-left: 14px;
  }

  .ahu-auth-brand-mark{
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .ahu-auth-brand-title{
    font-size: 21px;
  }
}

/* ستاره الزامی */
.ahu-req{
  color: #DC2626;
  font-weight: 900;
  margin-right: 2px;
}
