/* ============================================================
   NOVAHUB — Profile Page Styles (v8 — Professional Redesign)
   Domain: novahubgadgets.com
   Modern, clean, mobile-first design with color-coded icons
   ============================================================ */

.profile-page {
    background: #F7F8FA;
    min-height: 100vh;
}

.profile-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

/* ============================================================
   HIDDEN FILE INPUT
   ============================================================ */
.hidden-file-input {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--red);
}

.loading-state .loading-spinner {
    width: 46px; height: 46px;
    border: 4px solid rgba(227,30,36,0.12);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 14px;
    color: #8E8E93;
    font-weight: 500;
}

/* ============================================================
   HEADER CARD — Modern Gradient
   ============================================================ */
.profile-header-card {
    background: linear-gradient(135deg, #0A0A0A 0%, #1F1F23 50%, #2A2A30 100%);
    border-radius: 24px;
    padding: 36px 24px 28px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px -12px rgba(10, 10, 10, 0.25),
        0 8px 20px -8px rgba(0, 0, 0, 0.15);
}

/* Ambient glow effects */
.profile-header-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227,30,36,0.22) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

.profile-header-card::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227,30,36,0.12) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

/* Subtle grid pattern overlay */
.profile-header-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================================
   AVATAR
   ============================================================ */
.profile-avatar-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto 18px;
    z-index: 2;
}

/* Outer glow ring */
.profile-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--red),
        var(--red-dark),
        var(--red-light),
        var(--red)
    );
    z-index: 0;
    animation: avatarRotate 8s linear infinite;
    opacity: 0.75;
}

@keyframes avatarRotate {
    to { transform: rotate(360deg); }
}

.profile-avatar-img,
.profile-avatar-letter {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #0A0A0A;
    background: var(--red);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    display: block;
}

.profile-avatar-img {
    object-fit: cover;
}

.profile-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Photo Upload Button */
.profile-photo-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: 3px solid #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    z-index: 3;
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.5);
}

.profile-photo-btn:hover {
    background: var(--red-dark);
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 22px rgba(227, 30, 36, 0.6);
}

.profile-photo-btn:active {
    transform: scale(0.98);
}

.profile-photo-btn.uploading {
    pointer-events: none;
    opacity: 0.85;
}

.profile-photo-btn.uploading i {
    animation: spin 1s linear infinite;
}

/* Google Badge */
.profile-google-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #4285F4;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    z-index: 3;
    border: 2px solid #0A0A0A;
}

/* ============================================================
   NAME & EMAIL
   ============================================================ */
.profile-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    word-break: break-word;
    padding: 0 12px;
    line-height: 1.25;
}

.profile-email {
    font-size: 0.85rem;
    opacity: 0.65;
    position: relative;
    z-index: 2;
    word-break: break-word;
    padding: 0 12px;
    font-weight: 500;
}

/* ============================================================
   TABS — Pill Style
   ============================================================ */
.profile-tabs {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03);
    border: 1px solid #ECECEE;
    gap: 4px;
}

.profile-tab {
    flex: 1;
    padding: 12px 10px;
    background: transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
}

.profile-tab i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.profile-tab:hover:not(.active) {
    background: #F7F8FA;
    color: #0A0A0A;
}

.profile-tab.active {
    background: #0A0A0A;
    color: #fff;
    box-shadow: 
        0 6px 16px rgba(10, 10, 10, 0.2),
        0 2px 6px rgba(10, 10, 10, 0.1);
}

.profile-tab.active i {
    color: var(--red);
}

/* ============================================================
   CARDS
   ============================================================ */
.profile-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.03),
        0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #ECECEE;
    animation: cardFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid #F0F0F2;
}

.profile-card-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    border: 1px solid #FEE2E2;
}

.profile-card-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0A0A0A;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* ============================================================
   SETTING ROW — Base Layout
   ============================================================ */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    margin: 0 -8px;
    border-bottom: 1px solid #F0F0F2;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    gap: 14px;
    background: transparent;
    position: relative;
}

.setting-row:last-child {
    border-bottom: none;
    margin-bottom: -8px;
}

.setting-row:first-child {
    margin-top: -8px;
}

/* Hover state */
.setting-row:hover:not(.readonly) {
    background: #F7F8FA;
    padding-left: 14px;
    padding-right: 14px;
    margin-left: -14px;
    margin-right: -14px;
}

.setting-row:active:not(.readonly) {
    background: #F0F0F2;
    transform: scale(0.99);
}

.setting-row.readonly {
    cursor: default;
    opacity: 0.7;
}

/* ============================================================
   SETTING INFO WRAPPER
   ============================================================ */
.setting-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.setting-info > div {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   SETTING ICON — COLOR-CODED (v8 Fix)
   ============================================================ */

/* Base icon */
.setting-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #F7F8FA;
    color: #6E6E73;
    border: 1px solid #ECECEE;
}

/* ===== Account Settings — Color-coded icons ===== */

/* Icon 1: Signature (Name) — Indigo */
.profile-card .setting-row:nth-child(2) .setting-icon {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #4F46E5;
    border-color: #E0E7FF;
}

/* Icon 2: Envelope (Email) — Green */
.profile-card .setting-row:nth-child(3) .setting-icon {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #059669;
    border-color: #D1FAE5;
}

/* Icon 3: Phone — Amber */
.profile-card .setting-row:nth-child(4) .setting-icon {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #EA580C;
    border-color: #FFEDD5;
}

/* Icon 4: Location — Red (brand) */
.profile-card .setting-row:nth-child(5) .setting-icon {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #DC2626;
    border-color: #FEE2E2;
}

/* Hover effect */
.setting-row:hover:not(.readonly) .setting-icon {
    transform: scale(1.06) translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   SETTING LABEL & VALUE
   ============================================================ */
.setting-label {
    font-size: 11px;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.setting-tag {
    background: rgba(66, 133, 244, 0.12);
    color: #4285F4;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-value {
    font-size: 14px;
    font-weight: 600;
    color: #0A0A0A;
    word-break: break-word;
    line-height: 1.45;
}

/* ============================================================
   SETTING ARROW & LOCK
   ============================================================ */
.setting-arrow {
    color: #C7C7CC;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.setting-row:hover:not(.readonly) .setting-arrow {
    color: var(--red);
    transform: translateX(4px);
}

.setting-lock {
    color: #C7C7CC;
    font-size: 14px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   INFO ROW — For "Account Info" card
   ============================================================ */
.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F2;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F7F8FA;
    color: #6E6E73;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid #ECECEE;
}

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

.info-row-label {
    font-size: 11px;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.info-row-value {
    font-size: 14px;
    font-weight: 600;
    color: #0A0A0A;
    word-break: break-word;
    line-height: 1.45;
}

/* ===== Account Info Card Icons ===== */

/* Google icon — Google Blue */
.profile-card:nth-child(2) .info-row:nth-child(1) .info-row-icon {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #4285F4;
    border-color: #DBEAFE;
}

/* Calendar icon — Purple */
.profile-card:nth-child(2) .info-row:nth-child(2) .info-row-icon {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    color: #7C3AED;
    border-color: #EDE9FE;
}

/* Legacy support */
.info-row .label {
    font-size: 12px;
    color: #8E8E93;
    font-weight: 500;
    flex-shrink: 0;
}

.info-row .value {
    font-size: 13.5px;
    color: #0A0A0A;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* ============================================================
   ORDER LIST ITEM
   ============================================================ */
.order-list-item {
    background: #F7F8FA;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #ECECEE;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.order-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
    border-radius: 14px 0 0 14px;
}

.order-list-item:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(227, 30, 36, 0.15);
}

.order-list-item:last-child {
    margin-bottom: 0;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 8px;
}

.order-list-id {
    font-weight: 800;
    color: var(--red);
    font-size: 14px;
    letter-spacing: 0.3px;
    font-family: 'Courier New', monospace;
}

.order-list-status {
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    background: #8E8E93;
}

.order-list-status.pending { background: #F59E0B; }
.order-list-status.processing { background: #3B82F6; }
.order-list-status.shipped { background: #8B5CF6; }
.order-list-status.delivered { background: #16A34A; }
.order-list-status.cancelled { background: var(--red); }

.order-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8E8E93;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-left: 8px;
}

.order-item-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.order-item-meta i {
    font-size: 11px;
    opacity: 0.7;
}

.order-item-total {
    color: var(--red);
    font-weight: 800;
    font-size: 14px;
    margin-left: auto;
}

/* ============================================================
   EMPTY ORDERS STATE
   ============================================================ */
.empty-orders-state {
    text-align: center;
    padding: 48px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-orders-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(227,30,36,0.08), rgba(227,30,36,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
}

.empty-orders-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(227, 30, 36, 0.2);
    animation: emptyPulse 3s ease-in-out infinite;
}

@keyframes emptyPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.3; }
}

.empty-orders-icon i {
    font-size: 40px;
    color: var(--red);
    opacity: 0.9;
}

.empty-orders-state h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0A0A0A;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    letter-spacing: -0.02em;
}

.empty-orders-state p {
    font-size: 13.5px;
    color: #6E6E73;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
    padding: 0 10px;
}

.empty-orders-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 36px;
    background: var(--red);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 24px rgba(227, 30, 36, 0.28),
        0 4px 10px rgba(227, 30, 36, 0.15);
    margin-top: 10px;
    border: 2px solid var(--red);
    cursor: pointer;
    font-family: inherit;
    min-width: 220px;
}

.empty-orders-btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 
        0 16px 32px rgba(227, 30, 36, 0.4),
        0 6px 14px rgba(227, 30, 36, 0.2);
}

.empty-orders-btn:active {
    transform: translateY(-1px);
}

.empty-orders-btn i {
    font-size: 14px;
}

/* ============================================================
   LOGOUT BUTTON
   ============================================================ */
.btn-logout {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: var(--red);
    border: 2px solid #F0F0F2;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    cursor: pointer;
    font-family: inherit;
}

.btn-logout:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(227, 30, 36, 0.28);
}

.btn-logout i {
    font-size: 14px;
}

/* ============================================================
   EDIT MODAL
   ============================================================ */
.edit-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.edit-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.edit-modal-content {
    background: #fff;
    border-radius: 22px;
    max-width: 440px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-modal-large .edit-modal-content {
    max-width: 480px;
}

@keyframes modalSlideUp {
    from { 
        transform: translateY(24px) scale(0.96); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1.5px solid #F0F0F2;
    flex-shrink: 0;
    background: #FAFAFB;
}

.edit-modal-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0A0A0A;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    letter-spacing: -0.01em;
}

.edit-modal-header h3 i {
    color: var(--red);
    font-size: 15px;
}

.edit-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #8E8E93;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid #ECECEE;
    cursor: pointer;
    flex-shrink: 0;
}

.edit-modal-close:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: rotate(90deg);
}

.edit-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.edit-modal-body-scroll {
    max-height: 60vh;
}

.edit-modal-body > label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6E6E73;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.edit-modal-body input[type="text"],
.edit-modal-body input[type="tel"] {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #ECECEE;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: #0A0A0A;
    background: #fff;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
}

.edit-modal-body input:focus,
.edit-field select:focus,
.edit-field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.08);
    background: #fff;
}

.edit-modal-body input::placeholder,
.edit-field textarea::placeholder {
    color: #B0B0B5;
    font-weight: 400;
}

/* Edit Fields (for location modal) */
.edit-field {
    margin-bottom: 18px;
}

.edit-field:last-of-type {
    margin-bottom: 8px;
}

.edit-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #6E6E73;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.edit-field select,
.edit-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ECECEE;
    border-radius: 12px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0A0A0A;
    background: #fff;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
}

.edit-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.edit-field select:disabled {
    background-color: #F7F8FA;
    cursor: not-allowed;
    opacity: 0.6;
}

.edit-field textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
}

.edit-optional {
    background: rgba(136, 136, 139, 0.12);
    color: #8E8E93;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-left: auto;
}

.edit-modal-hint {
    display: block;
    font-size: 12px;
    color: #8E8E93;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.5;
}

.edit-modal-error {
    display: none;
    color: var(--red);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(227, 30, 36, 0.06);
    border-radius: 10px;
    border-left: 3px solid var(--red);
    line-height: 1.5;
}

.edit-modal-error.show {
    display: block;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.edit-modal-footer {
    display: flex;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1.5px solid #F0F0F2;
    background: #FAFAFB;
    flex-shrink: 0;
}

.edit-btn-cancel {
    flex: 1;
    padding: 14px 20px;
    background: #fff;
    color: #0A0A0A;
    border: 2px solid #ECECEE;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
}

.edit-btn-cancel:hover {
    background: #F7F8FA;
    border-color: #C7C7CC;
}

.edit-btn-cancel:active {
    transform: scale(0.98);
}

.edit-btn-save {
    flex: 1.5;
    padding: 14px 20px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
}

.edit-btn-save:hover:not(:disabled) {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(227, 30, 36, 0.4);
}

.edit-btn-save:active:not(:disabled) {
    transform: translateY(0);
}

.edit-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   RESPONSIVE — TABLET (600px)
   ============================================================ */
@media (max-width: 600px) {
    .profile-container {
        padding: 16px 12px 60px;
    }
    
    .profile-header-card {
        padding: 30px 18px 24px;
        border-radius: 20px;
    }
    
    .profile-avatar-wrap {
        width: 92px;
        height: 92px;
    }
    
    .profile-avatar-letter {
        font-size: 36px;
    }
    
    .profile-photo-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .profile-google-badge {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .profile-email {
        font-size: 0.78rem;
    }
    
    .profile-tab {
        padding: 11px 8px;
        font-size: 12px;
        gap: 5px;
    }
    
    .profile-tab i {
        font-size: 12px;
    }
    
    .profile-card {
        padding: 18px 16px;
        border-radius: 16px;
    }
    
    .setting-row {
        padding: 14px 6px;
        gap: 12px;
    }
    
    .setting-row:hover:not(.readonly) {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .setting-info {
        gap: 12px;
    }
    
    .setting-icon,
    .info-row-icon,
    .profile-card-header-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
        border-radius: 11px;
    }
    
    .setting-label,
    .info-row-label {
        font-size: 10.5px;
        letter-spacing: 0.6px;
        margin-bottom: 4px;
    }
    
    .setting-value,
    .info-row-value {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .setting-arrow,
    .setting-lock {
        font-size: 13px;
    }
    
    .empty-orders-state {
        padding: 36px 18px 24px;
    }
    
    .empty-orders-icon {
        width: 80px;
        height: 80px;
    }
    
    .empty-orders-icon i {
        font-size: 34px;
    }
    
    .empty-orders-state h3 {
        font-size: 1.08rem;
    }
    
    .empty-orders-state p {
        font-size: 12.5px;
    }
    
    .empty-orders-btn {
        padding: 14px 28px;
        font-size: 12px;
        min-width: 190px;
    }
    
    .edit-modal {
        padding: 12px;
    }
    
    .edit-modal-content {
        border-radius: 20px;
        max-width: 100%;
    }
    
    .edit-modal-header {
        padding: 18px 20px;
    }
    
    .edit-modal-header h3 {
        font-size: 1rem;
    }
    
    .edit-modal-body {
        padding: 20px;
    }
    
    .edit-modal-body-scroll {
        max-height: 55vh;
    }
    
    .edit-modal-body input[type="text"],
    .edit-modal-body input[type="tel"] {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .edit-field select,
    .edit-field textarea {
        padding: 12px 14px;
        font-size: 13.5px;
    }
    
    .edit-modal-footer {
        padding: 16px 20px;
    }
    
    .edit-btn-cancel,
    .edit-btn-save {
        font-size: 12px;
        padding: 13px 16px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (400px)
   ============================================================ */
@media (max-width: 400px) {
    .profile-tab {
        padding: 10px 6px;
        font-size: 11px;
        gap: 4px;
    }
    
    .profile-tab span {
        display: none;
    }
    
    .profile-tab i {
        font-size: 14px;
    }
    
    .edit-modal-body-scroll {
        max-height: 50vh;
    }
    
    .empty-orders-btn {
        font-size: 11.5px;
        padding: 13px 24px;
        min-width: 170px;
    }
}