/* ═══════════════════════════════════════════════════════════
   profile.css — Foodito Profile Page v2.0 | Mobile-First
   ═══════════════════════════════════════════════════════════ */

/* ── Back Button ────────────────────────────────────────── */
.btn-back-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-muted);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-back-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.back-label {
    display: none;
}

@media (min-width: 480px) {
    .back-label {
        display: inline;
    }
}

/* ══════════════════════════════════════════════════════════
   PROFILE WRAPPER
══════════════════════════════════════════════════════════ */
.profile-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 12px 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 900px) {
    .profile-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 20px 60px;
    }
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

@media (min-width: 900px) {
    .profile-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--nav-height) + 16px);
    }
}

/* ── User Card ──────────────────────────────────────────── */
.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* آواتار */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.avatar-ring:hover {
    transform: scale(1.05);
}

.avatar-emoji {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
}

.change-avatar-btn {
    background: none;
    border: 1.5px dashed var(--border-2);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.change-avatar-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* اطلاعات کاربر */
.user-info-card {
    text-align: center;
    width: 100%;
}

.user-full-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.user-phone {
    font-size: 0.82rem;
    color: var(--text-muted);
    direction: ltr;
}

/* ── Level Card ─────────────────────────────────────────── */
.level-card {
    width: 100%;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: 12px;
}

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

.level-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.level-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
}

.level-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.level-orders {
    margin-right: auto;
    text-align: center;
}

.level-orders span {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
}

.level-orders small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.level-progress-wrap {}

.level-progress-bar {
    height: 6px;
    background: var(--border-1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 5px;
}

.level-progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s ease;
}

.level-progress-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── Quick Stats ────────────────────────────────────────── */
.quick-stats {
    display: flex;
    width: 100%;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qs-item {
    flex: 1;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.qs-divider {
    width: 1px;
    background: var(--border-1);
}

.qs-num {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-main);
}

.qs-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* دکمه خروج */
.btn-logout-sidebar {
    width: 100%;
    padding: 10px;
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fecaca;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout-sidebar:hover {
    background: #fecaca;
}

[data-theme="dark"] .btn-logout-sidebar {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ── Sidebar Nav ────────────────────────────────────────── */
.sidebar-nav {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 900px) {
    .sidebar-nav {
        display: flex;
    }
}

.snav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-sub);
    cursor: pointer;
    text-align: right;
    width: 100%;
    transition: var(--transition);
    position: relative;
}

.snav-item:hover {
    background: var(--bg-muted);
    color: var(--text-main);
}

.snav-item.active {
    background: var(--primary-light, #fef2f2);
    color: var(--primary);
    font-weight: 700;
}

[data-theme="dark"] .snav-item.active {
    background: rgba(239, 68, 68, 0.15);
}

.snav-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.snav-badge {
    margin-right: auto;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   MOBILE TABS
══════════════════════════════════════════════════════════ */
.mobile-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 900px) {
    .mobile-tabs {
        display: none;
    }
}

.mtab {
    flex-shrink: 0;
    padding: 9px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.mtab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ══════════════════════════════════════════════════════════
   PROFILE MAIN
══════════════════════════════════════════════════════════ */
.profile-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Tab Panel ──────────────────────────────────────────── */
.tab-panel {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    padding: 20px 16px;
    animation: fadeUp 0.3s ease;
}

.tab-panel.active {
    display: block;
}

/* ── Panel Header ───────────────────────────────────────── */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-title {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    font-weight: 800;
    color: var(--text-main);
}

/* ══════════════════════════════════════════════════════════
   TAB: اطلاعات شخصی
══════════════════════════════════════════════════════════ */
.btn-edit-toggle {
    padding: 8px 16px;
    background: var(--bg-muted);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-edit-toggle:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* فرم اطلاعات */
.info-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-field-group {
    display: flex;
    gap: 12px;
}

.info-field-group .info-field {
    flex: 1;
    min-width: 0;
}

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

.info-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-sub);
}

.info-field input,
.info-field textarea {
    padding: 11px 13px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    direction: rtl;
    width: 100%;
}

.info-field input[readonly] {
    cursor: default;
    opacity: 0.75;
}

.info-field input:not([readonly]):focus {
    border-color: var(--primary);
    background: var(--bg-card);
}

.dir-ltr {
    direction: ltr;
    text-align: left;
}

/* دکمه‌های ویرایش */
.edit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-save-info {
    flex: 1;
    min-width: 120px;
}

.btn-cancel-edit {
    padding: 11px 20px;
    background: none;
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel-edit:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ══════════════════════════════════════════════════════════
   TAB: سفارشات
══════════════════════════════════════════════════════════ */
.orders-filter-wrap {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.orders-filter-wrap::-webkit-scrollbar {
    display: none;
}

.ofilter-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    background: var(--bg-muted);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.ofilter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* کارت سفارش */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.order-id {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-sub);
    direction: ltr;
}

.order-status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-processing {
    background: #dbeafe;
    color: #1e3a8a;
}

.status-delivered {
    background: #dcfce7;
    color: #14532d;
}

.status-cancelled {
    background: #fee2e2;
    color: #7f1d1d;
}

[data-theme="dark"] .status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
}

[data-theme="dark"] .status-processing {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

[data-theme="dark"] .status-delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

[data-theme="dark"] .status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.order-items-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.order-item-chip {
    font-size: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    color: var(--text-sub);
    white-space: nowrap;
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-1);
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.order-total {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

.order-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* empty orders */
.empty-list {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-list .empty-icon {
    font-size: 3rem;
}

.empty-list p {
    font-size: 0.88rem;
}

/* ══════════════════════════════════════════════════════════
   TAB: علاقه‌مندی‌ها
══════════════════════════════════════════════════════════ */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 540px) {
    .favorites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1050px) {
    .favorites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fav-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.fav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.fav-img {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.fav-body {
    padding: 8px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fav-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}

.fav-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-fav-order {
    flex: 1;
    padding: 7px 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-fav-order:hover {
    background: var(--primary-dark);
}

.btn-fav-remove {
    padding: 7px 10px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    transition: var(--transition);
}

.btn-fav-remove:hover {
    background: #fecaca;
}

[data-theme="dark"] .btn-fav-remove {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ══════════════════════════════════════════════════════════
   TAB: آدرس‌ها
══════════════════════════════════════════════════════════ */
.btn-add-address {
    padding: 9px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-add-address:hover {
    background: var(--primary-dark);
}

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-card {
    background: var(--bg-muted);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition);
}

.address-card.default {
    border-color: var(--primary);
    background: var(--primary-light, #fef2f2);
}

[data-theme="dark"] .address-card.default {
    background: rgba(239, 68, 68, 0.08);
}

.addr-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.addr-content {
    flex: 1;
    min-width: 0;
}

.addr-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.addr-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
}

.default-badge {
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
}

.addr-text {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.addr-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
    direction: ltr;
    text-align: right;
}

.addr-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.btn-addr-action {
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border-1);
    background: var(--bg-card);
    color: var(--text-sub);
    white-space: nowrap;
    transition: var(--transition);
}

.btn-addr-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-addr-delete {
    color: #ef4444;
    border-color: #fecaca;
}

.btn-addr-delete:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

/* ══════════════════════════════════════════════════════════
   AVATAR MODAL
══════════════════════════════════════════════════════════ */
.avatar-modal-box {
    max-width: 380px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
}

@media (max-width: 360px) {
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.avatar-option {
    aspect-ratio: 1;
    background: var(--bg-muted);
    border: 2.5px solid var(--border-1);
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: var(--primary-light, #fef2f2);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ══════════════════════════════════════════════════════════
   ADDRESS MODAL EXTRAS
══════════════════════════════════════════════════════════ */
.addr-row {
    display: flex;
    gap: 10px;
}

.addr-half {
    flex: 1;
    min-width: 0;
}

.addr-half label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 5px;
}

.addr-half input {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.addr-half input:focus {
    border-color: var(--primary);
}

/* چک‌باکس */
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-sub);
    user-select: none;
}

.checkbox-wrap input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-2);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-wrap input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrap input:checked~.checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
}

/* ══════════════════════════════════════════════════════════
   ORDER DETAIL MODAL
══════════════════════════════════════════════════════════ */
.order-detail-section {
    margin-bottom: 18px;
}

.order-detail-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-1);
}

.detail-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-1);
}

.detail-item-row:last-child {
    border-bottom: none;
}

.detail-item-emoji {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.detail-item-info {
    flex: 1;
    min-width: 0;
}

.detail-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.detail-item-qty {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.detail-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border-1);
}

.detail-total-row:last-child {
    border-bottom: none;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}

.detail-total-row .amount {
    color: var(--primary);
    font-weight: 700;
}

.detail-total-row .amount.final {
    color: var(--primary);
    font-weight: 900;
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════
   MODAL (shared overrides)
══════════════════════════════════════════════════════════ */
.modal-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 5px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: var(--primary);
}

.modal-form textarea {
    resize: vertical;
    min-height: 72px;
}

/* ══════════════════════════════════════════════════════════
   LEVEL COLORS
══════════════════════════════════════════════════════════ */
.level-bronze .level-progress-fill {
    background: linear-gradient(90deg, #cd7f32, #a0522d);
}

.level-silver .level-progress-fill {
    background: linear-gradient(90deg, #9ca3af, #6b7280);
}

.level-gold .level-progress-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE FIXES
══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .info-field-group {
        flex-direction: column;
    }

    .addr-row {
        flex-direction: column;
    }

    .fav-card .fav-img {
        height: 60px;
        font-size: 2rem;
    }

    .user-card {
        padding: 16px 12px;
    }

    .level-card {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .tab-panel {
        padding: 16px 12px;
    }

    .avatar-ring {
        width: 70px;
        height: 70px;
    }

    .avatar-emoji {
        font-size: 2.2rem;
    }
}