/* ==========================================
   ZAYYORA DASHBOARD — PREMIUM LUXURY THEME
   Fully Responsive — WIDE INPUTS on mobile/tablet
=========================================== */

:root {
    --dash-primary: #1a1a2e;
    --dash-primary-light: #374151;
    --dash-accent: #c5a059;
    --dash-accent-light: #e8d5a8;
    --dash-accent-glow: rgba(197, 160, 89, 0.15);
    --dash-bg: #f8f7f4;
    --dash-card: #ffffff;
    --dash-text: #1a1a2e;
    --dash-text-secondary: #6b7280;
    --dash-border: #e8e4de;
    --dash-input-border: #d1ccc4;
    --dash-input-bg: #fafaf8;
    --dash-error: #ef4444;
    --dash-success: #10b981;
    --dash-radius: 14px;
    --dash-radius-sm: 8px;
    --dash-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --dash-shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
    --dash-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--dash-bg);
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    color: var(--dash-text);
    -webkit-font-smoothing: antialiased;
}

.luxury-theme { font-family: 'EB Garamond', serif; }
.modern-theme { font-family: 'Playfair Display', serif; }
.modern-theme .form-input, .modern-theme .dashboard-btn { font-family: 'Source Sans Pro', sans-serif; }

/* ==========================================
   MOBILE MENU TOGGLE
=========================================== */
.dashboard-menu-toggle {
    display: none;
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
    background: var(--dash-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: var(--dash-transition), opacity 0.25s ease, visibility 0.25s ease;
    align-items: center;
    gap: 8px;
}

.dashboard-menu-toggle.menu-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.dashboard-menu-toggle i { font-size: 14px; }
.dashboard-menu-toggle:hover { background: var(--dash-accent); transform: translateY(-1px); }
.dashboard-menu-toggle:active { transform: translateY(0); }

/* ==========================================
   SIDEBAR OVERLAY
=========================================== */
.dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.dashboard-sidebar-overlay.active { display: block; opacity: 1; }

/* ==========================================
   SIDEBAR CLOSE BUTTON
=========================================== */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--dash-border);
    background: #fff;
    color: var(--dash-text-secondary);
    font-size: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--dash-transition);
}

.sidebar-close-btn:hover { background: var(--dash-primary); color: #fff; border-color: var(--dash-primary); }

/* ==========================================
   DASHBOARD LAYOUT
=========================================== */
.dashboard-layout {
    display: flex;
    min-height: auto;
    background-color: #ffffff;
}

/* ==========================================
   SIDEBAR — DESKTOP
=========================================== */
.dashboard-sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: #ffffff;
    border-right: 1px solid var(--dash-border);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    z-index: auto;
    flex-shrink: 0;
}

.sidebar-user-snapshot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    background: linear-gradient(135deg, #faf8f4, #f5f0e8);
    border-radius: var(--dash-radius);
    border: 1px solid rgba(197, 160, 89, 0.12);
}

.snapshot-avatar {
    width: 48px;
    height: 48px;
    background: var(--dash-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--dash-accent-light);
}

.snapshot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.snapshot-info h4 {
    margin: 0;
    font-size: 14px;
    color: var(--dash-text);
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
    font-family: 'Inter', sans-serif;
}

.sidebar-divider {
    border: none;
    height: 1px;
    background: var(--dash-border);
    margin-bottom: 20px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    text-decoration: none;
    color: var(--dash-text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--dash-radius-sm);
    transition: var(--dash-transition);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.nav-item i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--dash-transition);
}

.nav-item:hover { background: #f5f3ef; color: var(--dash-text); }

.nav-item.active {
    background: var(--dash-primary);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.15);
}

.nav-item.active i { color: var(--dash-accent) !important; }

.sidebar-bottom-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 20px;
}

.sidebar-bottom-actions button { width: 100%; border-radius: var(--dash-radius-sm); }

.action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--dash-radius-sm);
    cursor: pointer;
    transition: var(--dash-transition);
    text-align: left;
    color: var(--dash-text-secondary);
}

.sign-out-btn:hover { background: #f5f3ef; color: var(--dash-text); }
.delete-account-btn { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; margin-top: 4px; }
.delete-account-btn:hover { background: #fee2e2; }

/* ==========================================
   MAIN CONTENT AREA
=========================================== */
.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 32px 48px;
    background-color: var(--dash-bg);
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

.dashboard-page { width: 100%; }

/* ==========================================
   PAGE HEADER
=========================================== */
.dashboard-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dash-border);
}

.dashboard-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 28px;
    color: var(--dash-text);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: 14px;
    color: var(--dash-text-secondary);
    margin: 0;
    font-weight: 400;
}

/* ==========================================
   FORM CARD
=========================================== */
.dashboard-card {
    background: var(--dash-card);
    border: 1px solid var(--dash-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--dash-shadow);
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   PROFILE IMAGE SECTION
=========================================== */
.profile-image-section {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--dash-accent), var(--dash-accent-light), var(--dash-accent));
    z-index: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    background: var(--dash-primary);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    font-weight: 600;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-camera-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--dash-accent);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 3px solid #fff;
    cursor: pointer;
    z-index: 2;
    transition: var(--dash-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.profile-camera-badge:hover { background: var(--dash-primary); transform: scale(1.1); }

.profile-upload-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--dash-text-secondary);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ==========================================
   SECTION BLOCKS
=========================================== */
.section-block {
    background: var(--dash-input-bg);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 28px;
    margin-bottom: 24px;
    transition: var(--dash-transition);
}

.section-block:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }

/* ── SECTION HEADER — consistent left-align for ALL sections ── */
.dash-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--dash-border);
    /* Force left-align, never center */
    justify-content: flex-start;
    text-align: left;
}

.dash-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-light));
    color: var(--dash-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.12);
}

.dash-section-header > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.dash-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dash-text);
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
    text-align: left;
}

.dash-section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--dash-text-secondary);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    font-style: normal;
}

/* ==========================================
   FORM ELEMENTS
=========================================== */
.form-divider {
    border: 0;
    height: 1px;
    background: var(--dash-border);
    margin: 28px 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.form-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 18px;
}

.form-group {
    flex: 1;
    margin-bottom: 18px;
    min-width: 0;
}

.form-row .form-group,
.form-row-3col .form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    margin-bottom: 0;
    margin-top: 4px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-text);
    margin-bottom: 7px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.form-input {
    width: 100%;
    background-color: #ffffff;
    border: 1.5px solid var(--dash-input-border);
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 14px;
    color: var(--dash-text);
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: var(--dash-transition);
    min-height: 46px;
}

.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.form-input:hover { border-color: #b8b0a4; }

.form-input:focus {
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 3px var(--dash-accent-glow);
    background-color: #ffffff;
}

.form-input::placeholder { color: #b8b0a4; font-size: 13px; }

textarea.form-input {
    border-radius: 10px;
    resize: vertical;
    min-height: 90px;
    padding: 14px 18px;
}

.form-input[readonly] { background-color: #f5f3ef; color: var(--dash-text-secondary); }

/* ── Valid state ── */
.form-input.valid {
    border-color: var(--dash-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

/* Input with icon */
.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-right: 46px; }

.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b8b0a4;
    cursor: pointer;
    font-size: 15px;
    z-index: 10;
    transition: var(--dash-transition);
    user-select: none;
}

.password-toggle-icon:hover { color: var(--dash-text-secondary); }
.password-toggle-icon.fa-eye { color: var(--dash-accent); }

.form-input.with-icon { padding-right: 46px; }
input::-ms-reveal, input::-ms-clear { display: none; }

/* ==========================================
   PHONE WITH COUNTRY CODE PREFIX
=========================================== */
.phone-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid var(--dash-input-border);
    border-radius: 10px;
    overflow: visible;
    background: #ffffff;
    transition: var(--dash-transition);
}

.phone-input-group:focus-within {
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 3px var(--dash-accent-glow);
}

.phone-input-group.valid { border-color: var(--dash-success); box-shadow: 0 0 0 3px rgba(16,185,129,0.08); }
.phone-input-group.error { border-color: var(--dash-error) !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.08) !important; }

.phone-country-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f5f3ef;
    color: var(--dash-text-secondary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-right: 1.5px solid var(--dash-input-border);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 46px;
    user-select: none;
}

.phone-input-group .form-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}

.phone-input-group .form-input:focus { box-shadow: none !important; }

/* ==========================================
   COUNTRY PICKER
=========================================== */
.country-picker {
    position: relative;
    display: flex;
}

button.phone-country-prefix {
    border: none;
    cursor: pointer;
    outline: none;
    gap: 6px;
    transition: var(--dash-transition);
    margin: 0;
    border-right: 1.5px solid var(--dash-input-border);
    border-radius: 8.5px 0 0 8.5px;
}

button.phone-country-prefix:hover {
    background: #ebe7de;
}

.country-picker-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: var(--dash-transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.country-picker-dropdown.cp-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cp-search-box {
    padding: 12px;
    border-bottom: 1px solid var(--dash-border);
    position: relative;
    display: flex;
    align-items: center;
}

.cp-search-box i {
    position: absolute;
    left: 24px;
    color: var(--dash-text-secondary);
    font-size: 13px;
}

.cp-search-box input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--dash-input-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--dash-transition);
}

.cp-search-box input:focus {
    border-color: var(--dash-accent);
}

.country-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}
.country-list::-webkit-scrollbar-track {
    background: #f5f3ef;
}
.country-list::-webkit-scrollbar-thumb {
    background: #c2bdb4;
    border-radius: 4px;
}

.cp-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
    color: var(--dash-text);
}

.cp-item:hover {
    background: #f9f8f6;
}

.cp-item--active {
    background: #f0ece1;
    font-weight: 600;
}

.cp-item__flag {
    margin-right: 12px;
    width: 20px;
    display: block;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.cp-item__name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-item__dial {
    color: var(--dash-text-secondary);
    font-weight: 500;
}

.cp-no-result {
    padding: 16px;
    text-align: center;
    color: var(--dash-text-secondary);
    font-size: 13px;
}

/* ==========================================
   PINCODE FETCH INDICATOR
=========================================== */
.pincode-wrapper { position: relative; }
#pincode-loading {
    display: none;
    font-size: 11px;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   FORM ACTIONS
=========================================== */
.form-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--dash-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dashboard-btn {
    background: var(--dash-primary);
    color: #ffffff;
    border: none;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--dash-transition);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.dashboard-btn:hover {
    background: var(--dash-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
}

.dashboard-btn:active { transform: translateY(0); }

.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--dash-primary), #2d2d4a);
    padding: 14px 32px;
}

.btn-save:hover {
    background: linear-gradient(135deg, var(--dash-accent), #b8943f);
    box-shadow: 0 4px 16px var(--dash-accent-glow);
}

.btn-save i { font-size: 14px; }

/* ==========================================
   ERROR & VALID STATES
=========================================== */
.form-input.error {
    border-color: var(--dash-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

.form-input.error:focus {
    border-color: var(--dash-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.error-text {
    display: none;
    color: var(--dash-error);
    font-size: 11px;
    margin-top: 5px;
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* ── LARGE TABLETS (≤ 1199px) ── */
@media (max-width: 1199px) {
    .dashboard-sidebar { width: 240px; min-width: 240px; max-width: 240px; padding: 24px 16px; }
    .dashboard-content { padding: 28px 32px; overflow-x: hidden; }
    .dashboard-card { padding: 32px; }
    .profile-image-wrapper { width: 100px; height: 100px; }
    .profile-image { font-size: 34px; }
    .form-row-3col { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ── SMALL TABLETS (≤ 991px) ── DRAWER FROM RIGHT ── */
@media (max-width: 991px) {
    .dashboard-menu-toggle { display: flex; }
    .sidebar-close-btn { display: flex; }

    .dashboard-sidebar {
        position: fixed !important;
        top: 0px !important;
        right: 0 !important;
        left: auto !important;
        width: 300px !important;
        min-width: 300px !important;
        max-width: 85vw !important;
        height: 100dvh !important;
        z-index: 999 !important;
        border-radius: 0 !important;
        border-left: 1px solid var(--dash-border) !important;
        border-right: none !important;
        margin: 63px 0 0 0 !important;
        padding: 60px 20px 93px 20px !important;
        transform: translateX(100%) !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        background: #ffffff !important;
        overscroll-behavior: contain;
    }

    .dashboard-sidebar.sidebar-open {
        transform: translateX(0) !important;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12) !important;
    }

    .dashboard-menu-toggle.menu-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    .dashboard-layout { display: block; background-color: var(--dash-bg); }

    .dashboard-content {
        padding: 24px 20px;
        width: 100%;
        min-height: auto;
        background-color: var(--dash-bg);
        overflow-x: hidden;
    }

    .dashboard-page { width: 100%; }
    .dashboard-card { width: 100%; padding: 28px; border-radius: 16px; }

    .form-row { flex-direction: row !important; gap: 18px; }
    .form-row .form-group { margin-bottom: 0; }
    .form-row-3col { grid-template-columns: 1fr 1fr; gap: 18px; }
    .form-row-3col .form-group:last-child { grid-column: 1 / -1; }

    .form-input { padding: 13px 18px; font-size: 14px; min-height: 48px; }
    .form-label { font-size: 12px; margin-bottom: 7px; }
    .profile-image-wrapper { width: 100px; height: 100px; }
    .profile-image { font-size: 30px; }
    .profile-camera-badge { width: 32px; height: 32px; font-size: 12px; }
    .section-block { padding: 24px; }
    .dash-section-header { gap: 12px; }
}

/* ── PHONES (≤ 767px) ── */
@media (max-width: 767px) {
    .dashboard-content { padding: 16px 12px; overflow-x: hidden; }
    .dashboard-page { width: 100%; }
    .dashboard-card { width: 100%; padding: 22px 16px; border-radius: 16px; }
    .dashboard-header { margin-bottom: 20px; padding-bottom: 18px; }
    .dashboard-title { font-size: 22px; }
    .dashboard-subtitle { font-size: 13px; }
    .section-block { padding: 20px 16px; margin-bottom: 18px; border-radius: 12px; }

    .dash-section-header {
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 14px;
        align-items: center;
    }

    .dash-section-icon { width: 38px; height: 38px; font-size: 14px; border-radius: 8px; flex-shrink: 0; }
    .dash-section-title { font-size: 15px; margin: 0 0 1px 0; }
    .dash-section-desc { font-size: 11px; line-height: 1.35; }
    .form-group { margin-bottom: 16px; }
    .form-label { font-size: 11px; margin-bottom: 6px; }

    .form-input { padding: 14px 18px; font-size: 15px; border-radius: 10px; min-height: 50px; }
    textarea.form-input { border-radius: 10px; min-height: 100px; }

    .form-row { flex-direction: column !important; gap: 0; }
    .form-row .form-group { margin-bottom: 16px; }
    .form-row .form-group:last-child { margin-bottom: 0; }

    .form-row-3col { grid-template-columns: 1fr; gap: 0; }
    .form-row-3col .form-group { margin-bottom: 16px; }
    .form-row-3col .form-group:last-child { grid-column: auto; margin-bottom: 0; }

    .form-actions { justify-content: center; }
    .btn-save { width: 100%; justify-content: center; padding: 15px 24px; font-size: 14px; }

    .profile-image-wrapper { width: 90px; height: 90px; }
    .profile-image { font-size: 26px; border-width: 2px; }
    .profile-camera-badge { width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
    .profile-upload-note { font-size: 11px; }

    .dashboard-sidebar { width: 280px !important; min-width: 280px !important; max-width: 82vw !important; }
    .sidebar-user-snapshot { padding: 12px; }
    .snapshot-avatar { width: 42px; height: 42px; font-size: 16px; }
    .snapshot-info h4 { font-size: 13px; }
    .dashboard-menu-toggle { top: 78px; right: 12px; padding: 8px 14px; font-size: 12px; border-radius: 8px; }
    .dashboard-menu-toggle i { font-size: 13px; }
    .password-toggle-icon { right: 14px; font-size: 15px; }
    .input-with-icon .form-input { padding-right: 44px; }

    .phone-country-prefix { padding: 0 10px; font-size: 13px; }
}

/* ── SMALL PHONES (≤ 480px) ── */
@media (max-width: 480px) {
    .dashboard-content { padding: 12px 8px; overflow-x: hidden; }
    .dashboard-page { width: 100%; }
    .dashboard-card { width: 100%; padding: 18px 12px; border-radius: 14px; }
    .dashboard-header { margin-bottom: 16px; padding-bottom: 14px; }
    .dashboard-title { font-size: 20px; }
    .dashboard-subtitle { font-size: 12px; }
    .section-block { padding: 16px 12px; margin-bottom: 14px; }

    .dash-section-header { gap: 8px; margin-bottom: 14px; padding-bottom: 12px; align-items: center; }
    .dash-section-icon { width: 36px; height: 36px; font-size: 13px; flex-shrink: 0; }
    .dash-section-title { font-size: 14px; margin: 0 0 1px 0; }
    .dash-section-desc { font-size: 10px; line-height: 1.3; }

    .form-input { padding: 13px 16px; font-size: 14px; border-radius: 10px; min-height: 48px; width: 100%; }
    textarea.form-input { padding: 14px 16px; min-height: 90px; }
    .form-label { font-size: 11px; margin-bottom: 5px; }

    .form-row { flex-direction: column !important; gap: 0; }
    .form-row .form-group { margin-bottom: 14px; }
    .form-row .form-group:last-child { margin-bottom: 0; }

    .form-row-3col { grid-template-columns: 1fr; gap: 0; }
    .form-row-3col .form-group { margin-bottom: 14px; }
    .form-row-3col .form-group:last-child { margin-bottom: 0; }

    .btn-save { padding: 14px 20px; font-size: 13px; }
    .profile-image-wrapper { width: 80px; height: 80px; }
    .profile-image { font-size: 24px; }
    .profile-camera-badge { width: 28px; height: 28px; font-size: 10px; }

    .dashboard-sidebar {
        width: 260px !important; min-width: 260px !important; max-width: 80vw !important;
        margin: 63px 0 0 0 !important; padding: 60px 20px 93px 20px !important;
    }

    .sidebar-close-btn { left: 10px; }
    .dashboard-menu-toggle { top: 72px; right: 8px; padding: 7px 10px; font-size: 11px; gap: 5px; }
    .dashboard-menu-toggle i { font-size: 12px; }
    .password-toggle-icon { right: 12px; font-size: 14px; }
    .input-with-icon .form-input { padding-right: 40px; }
}

/* ── EXTRA SMALL (≤ 360px) ── */
@media (max-width: 360px) {
    .dashboard-content { padding: 10px 6px; overflow-x: hidden; }
    .dashboard-card { width: 100%; padding: 14px 10px; }
    .form-input { padding: 12px 14px; font-size: 14px; min-height: 46px; }
    .btn-save { padding: 13px 16px; font-size: 12px; }
    .profile-image-wrapper { width: 70px; height: 70px; }
    .profile-image { font-size: 20px; }
    .dashboard-sidebar { max-width: 78vw !important; margin: 63px 0 0 0 !important; padding: 60px 20px 93px 20px !important; }
}

/* ── TOUCH ── */
@media (hover: none) and (pointer: coarse) {
    .nav-item { padding: 13px 14px; }
    .action-btn { padding: 13px 14px; }
    .form-input { padding: 14px 18px; min-height: 50px; }
    .dashboard-btn { padding: 14px 28px; }
    .phone-country-prefix { min-height: 50px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .dashboard-sidebar { transition: none !important; }
    .dashboard-menu-toggle { transition: none !important; }
    .section-block, .form-input, .dashboard-btn, .profile-camera-badge { transition: none !important; }
}

/* ── PRINT ── */
@media print {
    .dashboard-sidebar, .dashboard-menu-toggle, .dashboard-sidebar-overlay { display: none !important; }
    .dashboard-content { padding: 0; width: 100%; background: #fff; }
    .dashboard-card { box-shadow: none; border: 1px solid #ddd; }
    .section-block { box-shadow: none; break-inside: avoid; }
}