/* ==================== PROFILE PAGE STYLES ==================== */
/* Dedicated CSS file for profile page to avoid conflicts with main site */

/* CSS Variables for easy color management */
:root {
    /* Primary Colors */
    --profile-primary: #E63946;
    --profile-primary-dark: #D32F2F;
    --profile-primary-light: #F44336;
    
    /* Secondary Colors */
    --profile-secondary: #6b7280;
    --profile-secondary-light: #9ca3af;
    --profile-secondary-dark: #374151;
    
    /* Background Colors */
    --profile-bg-primary: #ffffff;
    --profile-bg-secondary: #f8fafc;
    --profile-bg-tertiary: #e2e8f0;
    --profile-bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Text Colors */
    --profile-text-primary: #374151;
    --profile-text-secondary: #6b7280;
    --profile-text-muted: #9ca3af;
    
    /* Border Colors */
    --profile-border: #e5e7eb;
    --profile-border-light: #f3f4f6;
    
    /* Status Colors */
    --profile-success: #E63946;
    --profile-success-bg: #fef2f2;
    --profile-success-border: #fecaca;
    --profile-error: #ef4444;
    --profile-error-bg: #fef2f2;
    --profile-error-border: #fecaca;
    --profile-warning: #f59e0b;
    --profile-warning-bg: #fffbeb;
    --profile-warning-border: #fed7aa;
    
    /* Shadow Colors */
    --profile-shadow: rgba(0, 0, 0, 0.08);
    --profile-shadow-hover: rgba(0, 0, 0, 0.12);
    --profile-shadow-active: rgba(230, 57, 70, 0.3);
    
    /* Hover Colors */
    --profile-hover-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --profile-hover-error: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    
    /* Order List Colors */
    --profile-order-bg: #f8f9fa;
    --profile-order-border: #e9ecef;
    --profile-order-border-light: #f1f3f4;
    --profile-order-text-primary: #1e293b;
    --profile-order-text-secondary: #64748b;
    --profile-order-tag-bg: #f1f5f9;
    --profile-order-tag-text: #64748b;
    --profile-order-price: #E63946;
    --profile-order-waiting-bg: #f59e0b;
    --profile-order-waiting-text: #ffffff;
    --profile-order-waiting-border: #d97706;
    
    /* Payment Status Colors */
    --profile-order-payment-bg: #ef4444;
    --profile-order-payment-text: #ffffff;
    --profile-order-payment-border: #dc2626;
    
    /* Process Status Colors */
    --profile-status-queue-bg: #3b82f6;
    --profile-status-queue-text: #ffffff;
    --profile-status-queue-border: #2563eb;
    --profile-status-production-bg: #f59e0b;
    --profile-status-production-text: #ffffff;
    --profile-status-production-border: #d97706;
    --profile-status-completed-bg: #E63946;
    --profile-status-completed-text: #ffffff;
    --profile-status-completed-border: #D32F2F;
}

/* Reset margins for profile page */
body:has(.edit-profile-page) {
    margin: 0;
    padding: 0;
}

.edit-profile-page * {
    box-sizing: border-box;
}

/* Profile Container */
.edit-profile-page {
    width: 100%;
    min-height: 500px;
    background: var(--profile-bg-gradient);
    padding: 20px;
}

/* Profile Content Grid */
.edit-profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.edit-profile-sidebar {
    background: var(--profile-bg-primary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--profile-shadow);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.edit-profile-avatar {
    text-align: center;
    margin-bottom: 24px;
    display: block !important;
}

.edit-profile-avatar-img {
    position: relative;
    display: inline-block !important;
}

.edit-profile-avatar-img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--profile-primary);
    box-shadow: 0 4px 15px var(--profile-shadow-active);
    display: block !important;
    visibility: visible !important;
}

.edit-profile-change-photo {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--profile-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.edit-profile-change-photo:hover {
    background: var(--profile-primary-dark);
    transform: scale(1.1);
}

.edit-profile-avatar h3 {
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--profile-order-text-primary);
}

.edit-profile-avatar p {
    color: var(--profile-order-text-secondary);
    font-size: 0.7rem;
    margin-top: 4px;
}

/* Menu */
.edit-profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edit-profile-menu li {
    margin-bottom: 6px;
}

.edit-profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--profile-order-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.75rem;
}

.edit-profile-menu a:hover,
.edit-profile-menu a.active {
    background: var(--profile-success-bg);
    color: var(--profile-primary);
    transform: translateX(4px);
}

.edit-profile-menu a i {
    font-size: 12px;
    width: 18px;
    text-align: center;
}

.edit-profile-menu-divider {
    height: 1px;
    background: var(--profile-border);
    margin: 12px 0;
}

.edit-profile-menu a.logout {
    color: var(--profile-error);
}

.edit-profile-menu a.logout:hover {
    background: var(--profile-hover-error);
    color: var(--profile-error);
}

/* Tab System */
.edit-profile-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-profile-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--profile-text-secondary);
    text-align: left;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.edit-profile-tab:hover {
    background: var(--profile-hover-bg);
    color: var(--profile-text-primary);
    transform: translateX(4px);
}

.edit-profile-tab.active {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--profile-shadow-active);
}

.edit-profile-tab i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.edit-profile-tab span {
    flex: 1;
    font-size: 0.75rem;
}

.edit-profile-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--profile-error);
    text-decoration: none;
    text-align: left;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    margin-top: 8px;
}

.edit-profile-logout:hover {
    background: var(--profile-hover-error);
    color: var(--profile-error);
    transform: translateX(4px);
}

.edit-profile-logout i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.edit-profile-logout span {
    flex: 1;
}

.edit-profile-tab-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--profile-border) 50%, transparent 100%);
    margin: 12px 0;
}

/* Main Content */
.edit-profile-main {
    background: var(--profile-bg-primary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--profile-shadow);
}

/* Tab Content */
.edit-profile-tab-content {
    position: relative;
}

.edit-profile-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    /* Prevent automatic scroll to tab panels */
    scroll-margin-top: 0;
}

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

/* Prevent automatic scroll to any element with ID */
[id] {
    scroll-margin-top: 0 !important;
}

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

/* Form Section */
.edit-profile-section {
    margin-bottom: 28px;
}

.edit-profile-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-order-text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--profile-bg-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-profile-section h3 i {
    color: var(--profile-primary);
    font-size: 0.95rem;
}

.address-description {
    font-size: 0.85rem;
    color: var(--profile-text-secondary);
    margin-bottom: 16px;
}

/* Form Groups */
.edit-profile-form-group {
    margin-bottom: 16px;
}

.edit-profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.edit-profile-form-row.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.edit-profile-form-group label {
    display: block;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.edit-profile-input-group {
    position: relative;
}

.edit-profile-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--profile-text-muted);
    font-size: 14px;
}

.edit-profile-input-group.textarea i {
    top: 14px;
    transform: none;
}

.edit-profile-input-group input,
.edit-profile-input-group select {
    width: 100% !important;
    padding: 10px 14px 10px 42px !important;
    border: 2px solid var(--profile-border) !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    background: var(--profile-bg-secondary) !important;
    font-family: 'Poppins', sans-serif !important;
    color: var(--profile-text-primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.edit-profile-input-group textarea {
    width: 100% !important;
    padding: 10px 14px 10px 42px !important;
    border: 2px solid var(--profile-border) !important;
    border-radius: 15px !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    background: var(--profile-bg-secondary) !important;
    font-family: 'Poppins', sans-serif !important;
    color: var(--profile-text-primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Background putih untuk form yang bisa diubah di tab alamat */
#address .edit-profile-input-group input:not([readonly]),
#address .edit-profile-input-group textarea:not([readonly]) {
    background: #fff !important;
}

.edit-profile-input-group input:focus,
.edit-profile-input-group select:focus,
.edit-profile-input-group textarea:focus {
    outline: none;
    border-color: var(--profile-primary);
    background: white;
    box-shadow: 0 0 0 3px var(--profile-shadow-active);
}

/* Textarea specific styling already handled above */

.edit-profile-input-group input[readonly] {
    background: var(--profile-border-light);
    color: var(--profile-order-text-secondary) !important;
    cursor: not-allowed;
}

/* Maps */
.edit-profile-maps {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.edit-profile-maps iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 12px;
}

/* Address Search Overlay */
.address-search-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    pointer-events: none;
}

.address-search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.address-search-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-size: 12px;
    z-index: 1;
    pointer-events: none;
}

.address-search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border-radius: 30px;
    border: 1px solid #e6e6e6;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.address-search-input:focus {
    outline: none;
    border-color: var(--profile-primary);
    box-shadow: 0 2px 12px rgba(230, 57, 70, 0.2);
}

.address-search-input::placeholder {
    color: #adb5bd;
}

/* Mobile Responsive for Address Search */
@media (max-width: 768px) {
    .address-search-input {
        font-size: 12px;
        padding: 7px 10px 7px 30px;
    }
    
    .address-search-icon {
        font-size: 11px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .address-search-input {
        font-size: 11px;
        padding: 6px 8px 6px 28px;
    }
    
    .address-search-icon {
        font-size: 10px;
        left: 8px;
    }
}

.edit-profile-coordinates {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--profile-bg-secondary);
    border-radius: 12px;
}

.address-form-divider {
    margin: 20px 0;
    border-top: 1px dashed #adb5bd;
    width: 100%;
}

/* Button */
.edit-profile-btn,
.edit-profile-btn.btn-submit {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 2px !important;
    width: auto !important;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.edit-profile-btn i {
    font-size: 16px;
}

.edit-profile-btn.edit-profile-btn-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 12px !important;
    box-sizing: border-box !important;
}

/* Alert */
.edit-profile-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

.edit-profile-alert i {
    font-size: 18px;
}

.edit-profile-alert-error {
    background: var(--profile-error-bg);
    color: var(--profile-error);
    border: 1px solid var(--profile-error-border);
}

.edit-profile-alert-success {
    background: var(--profile-primary);
    color: white;
    border: 1px solid var(--profile-primary-dark);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Banner Iklan */
.edit-profile-banner {
    margin: 32px -24px -24px -24px;
    text-align: center;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.edit-profile-banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.edit-profile-banner-img:hover {
    transform: scale(1.02);
}

/* Ensure proper spacing with footer */
.edit-profile-page + footer,
.edit-profile-page ~ footer {
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .edit-profile-content {
        grid-template-columns: 1fr;
    }
    
    .edit-profile-sidebar {
        position: static;
    }
}

/* Login Notification */
/* Login Required Modal */
.login-required-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.login-required-modal-overlay.active {
    display: flex;
}

.login-required-modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    position: relative;
}

.login-required-modal-header {
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.login-required-icon {
    margin-bottom: 20px;
}

.login-required-icon i {
    font-size: 64px;
    color: var(--profile-primary);
    opacity: 0.8;
}

.login-required-modal-header h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--profile-text-primary);
}

.login-required-modal-header p {
    margin: 0;
    font-size: 14px;
    color: var(--profile-text-secondary);
    line-height: 1.6;
}

.login-required-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 14px;
    z-index: 10;
}

.login-required-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.login-required-modal-body {
    padding: 24px;
}

.login-required-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-required-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.login-required-actions-bottom {
    width: 100%;
}

.login-required-primary-btn,
.login-required-secondary-btn {
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    width: 100%;
}

.login-required-primary-btn {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--profile-shadow-active);
}

.login-required-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--profile-shadow-active);
}

.login-required-secondary-btn {
    background: var(--profile-bg-secondary);
    color: var(--profile-primary);
    border: 2px solid var(--profile-primary);
}

.login-required-secondary-btn:hover {
    background: var(--profile-primary);
    color: white;
    transform: translateY(-2px);
}

.login-required-primary-btn i,
.login-required-secondary-btn i {
    font-size: 18px;
}

.login-required-home-btn {
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid var(--profile-border);
    width: 100%;
    background: var(--profile-bg-secondary);
    color: var(--profile-text-primary);
    text-decoration: none;
}

.login-required-home-btn:hover {
    background: var(--profile-border);
    transform: translateY(-2px);
}

.login-required-home-btn i {
    font-size: 18px;
}

/* Login Required Content (shown when modal is closed) */
.edit-profile-login-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.login-required-content-wrapper {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.login-required-content-icon {
    margin-bottom: 24px;
}

.login-required-content-icon i {
    font-size: 80px;
    color: var(--profile-primary);
    opacity: 0.8;
}

.login-required-content-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--profile-text-primary);
    margin: 0 0 12px 0;
}

.login-required-content-wrapper p {
    font-size: 16px;
    color: var(--profile-text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.login-required-content-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-required-content-actions .login-required-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.login-required-content-actions .login-required-actions-bottom {
    width: 100%;
}

.login-required-content-actions .login-required-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.login-required-content-actions .login-required-actions-bottom {
    width: 100%;
}

.login-required-content-primary-btn,
.login-required-content-secondary-btn,
.login-required-content-home-btn {
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    width: 100%;
    text-decoration: none;
}

.login-required-content-primary-btn {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--profile-shadow-active);
}

.login-required-content-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--profile-shadow-active);
}

.login-required-content-secondary-btn {
    background: var(--profile-bg-secondary);
    color: var(--profile-primary);
    border: 2px solid var(--profile-primary);
}

.login-required-content-secondary-btn:hover {
    background: var(--profile-primary);
    color: white;
    transform: translateY(-2px);
}

.login-required-content-home-btn {
    background: var(--profile-bg-secondary);
    color: var(--profile-text-primary);
    border: 2px solid var(--profile-border);
}

.login-required-content-home-btn:hover {
    background: var(--profile-border);
    transform: translateY(-2px);
}

.login-required-content-primary-btn i,
.login-required-content-secondary-btn i,
.login-required-content-home-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .login-required-content-wrapper {
        padding: 24px 20px;
    }
    
    .login-required-content-icon {
        margin-bottom: 16px;
    }
    
    .login-required-content-icon i {
        font-size: 56px;
    }
    
    .login-required-content-wrapper h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .login-required-content-wrapper p {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .login-required-content-actions {
        gap: 10px;
    }
    
    .login-required-content-actions .login-required-actions-top {
        gap: 10px;
    }
    
    .login-required-content-primary-btn,
    .login-required-content-secondary-btn,
    .login-required-content-home-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .login-required-content-primary-btn i,
    .login-required-content-secondary-btn i,
    .login-required-content-home-btn i {
        font-size: 16px;
    }
}

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

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

@media (max-width: 768px) {
    .login-required-modal-container {
        max-width: 85%;
        margin: 20px;
    }
    
    .login-required-modal-header {
        padding: 20px 16px 16px;
    }
    
    .login-required-icon {
        margin-bottom: 16px;
    }
    
    .login-required-icon i {
        font-size: 48px;
    }
    
    .login-required-modal-header h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .login-required-modal-header p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .login-required-modal-body {
        padding: 16px;
    }
    
    .login-required-actions {
        gap: 10px;
    }
    
    .login-required-actions-top {
        gap: 10px;
    }
    
    .login-required-primary-btn,
    .login-required-secondary-btn,
    .login-required-home-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .login-required-primary-btn i,
    .login-required-secondary-btn i,
    .login-required-home-btn i {
        font-size: 16px;
    }
}

/* Mobile Avatar (hanya muncul di mobile untuk tab personal) */
.edit-profile-mobile-avatar {
    display: none;
}

/* Mobile Tab Navigation (hanya muncul di mobile) */
.edit-profile-mobile-tabs {
    display: none;
}

@media (max-width: 768px) {
    .edit-profile-page {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .edit-profile-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    /* Sembunyikan sidebar di mobile */
    .edit-profile-sidebar {
        display: none;
    }
    
    /* Mobile Tab Navigation - horizontal scroll */
    .edit-profile-mobile-tabs {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding: 12px;
        background: var(--profile-bg-primary);
        border-radius: 12px;
        margin-bottom: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .edit-profile-mobile-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .edit-profile-mobile-tab {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border: none;
        background: transparent;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.65rem;
        font-weight: 500;
        color: var(--profile-text-secondary);
        white-space: nowrap;
        flex-shrink: 0;
        font-family: 'Poppins', sans-serif;
    }
    
    .edit-profile-mobile-tab:hover {
        background: var(--profile-hover-bg);
        color: var(--profile-text-primary);
    }
    
    .edit-profile-mobile-tab.active {
        background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
        color: white;
        box-shadow: 0 4px 12px var(--profile-shadow-active);
    }
    
    .edit-profile-mobile-tab i {
        font-size: 12px;
    }
    
    .edit-profile-mobile-logout {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border: none;
        background: transparent;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.65rem;
        font-weight: 500;
        color: var(--profile-error);
        text-decoration: none;
        white-space: nowrap;
        flex-shrink: 0;
        font-family: 'Poppins', sans-serif;
        margin-left: auto;
    }
    
    .edit-profile-mobile-logout:hover {
        background: var(--profile-hover-error);
        color: var(--profile-error);
    }
    
    .edit-profile-mobile-logout i {
        font-size: 12px;
    }
    
    .edit-profile-main {
        padding: 20px;
        width: 100%;
    }
    
    /* Mobile Avatar - hanya muncul di tab personal, di dalam section di atas Nama Lengkap */
    .edit-profile-mobile-avatar {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        margin-top: 12px;
    }
    
    .edit-profile-mobile-avatar-img {
        position: relative;
        display: inline-block;
        margin-bottom: 8px;
    }
    
    .edit-profile-mobile-avatar-img img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--profile-primary);
        box-shadow: 0 4px 15px var(--profile-shadow-active);
    }
    
    .edit-profile-mobile-change-photo {
        position: absolute;
        bottom: 0;
        right: 0;
        background: var(--profile-primary);
        color: white;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 11px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .edit-profile-mobile-change-photo:hover {
        background: var(--profile-primary-dark);
        transform: scale(1.1);
    }
    
    .edit-profile-mobile-avatar h4 {
        margin: 0;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--profile-order-text-primary);
    }
    
    /* Kecilkan semua font di mobile */
    .edit-profile-section h3 {
        font-size: 0.85rem !important;
    }
    
    .edit-profile-section h3 i {
        font-size: 0.8rem !important;
    }
    
    .edit-profile-section p {
        font-size: 0.65rem !important;
        color: var(--profile-text-secondary) !important;
        margin-bottom: 12px !important;
    }
    
    .edit-profile-form-group label {
        font-size: 0.7rem !important;
        margin-bottom: 4px;
    }
    
    .edit-profile-input-group input,
    .edit-profile-input-group select,
    .edit-profile-input-group textarea {
        font-size: 0.75rem !important;
        padding: 8px 12px 8px 36px !important;
    }
    
    .edit-profile-input-group i {
        font-size: 12px !important;
        left: 12px;
    }
    
    .edit-profile-btn {
        font-size: 0.7rem !important;
        padding: 8px 16px !important;
    }
    
    .edit-profile-form-row {
        grid-template-columns: 1fr;
    }
    
    .edit-profile-form-row.three-columns {
        grid-template-columns: 1fr;
    }
    
    .edit-profile-banner {
        margin: 24px -16px -16px -16px;
        border-radius: 0 0 12px 12px;
    }
    
    /* Kecilkan font untuk order section */
    .order-list-header h4 {
        font-size: 0.85rem !important;
    }
    
    .order-list-header p {
        font-size: 0.7rem !important;
    }
    
    .order-status-tab {
        font-size: 10px !important;
        padding: 8px 10px !important;
    }
    
    .order-status-tab i {
        font-size: 12px !important;
    }
}

/* ==================== ORDER STATUS TABS ==================== */
.order-status-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 8px 0 0 0;
    padding: 0;
    border-bottom: 2px solid var(--profile-border);
    background: var(--profile-bg-secondary);
    border-radius: 12px 12px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
}


.order-status-tabs::-webkit-scrollbar {
    display: none;
}

/* Reduce margin for orders section header */
#orders .edit-profile-section h3 {
    margin-bottom: 8px;
}

.order-status-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--profile-text-secondary);
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-status-tab:hover {
    background: rgba(230, 57, 70, 0.08);
    color: var(--profile-primary);
    transform: translateY(-2px);
}

.order-status-tab.active {
    background: var(--profile-primary);
    color: white;
    box-shadow: 0 4px 12px var(--profile-shadow-active);
    transform: translateY(-1px);
}

.order-status-tab i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.order-status-tab.active i {
    transform: scale(1.05);
}

.order-status-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    max-height: 2.6em;
}

/* Tab Pengiriman - teks tidak berganti baris */
.order-status-tab[data-order-status="shipping"] {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: auto;
    white-space: nowrap;
}

/* Tab Pengiriman - hanya mempengaruhi text-full di desktop */
.order-status-tab[data-order-status="shipping"] .order-status-text-full {
    white-space: nowrap;
    display: inline-block;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
}

/* Pastikan mobile text tetap hidden di desktop */
.order-status-tab[data-order-status="shipping"] .order-status-text-mobile {
    display: none !important;
}

.order-status-tab .order-status-text-mobile {
    display: none;
}

.order-status-tab .order-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 3px;
    flex-shrink: 0;
}

.order-status-tab.active .order-count {
    background: rgba(255, 255, 255, 0.3);
}

.order-status-tab:not(.active) .order-count {
    background: var(--profile-primary);
    color: white;
}

/* Order Content */
.order-content {
    background: var(--profile-bg-primary);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-top: 0;
}

.order-status-content {
    display: none;
    min-height: 400px;
}

.order-status-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}


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

.order-list-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--profile-border);
    background: var(--profile-bg-secondary);
}

.order-list-header h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-text-primary);
}

.order-list-header p {
    margin: 0;
    font-size: 10px;
    color: var(--profile-text-secondary);
}

.order-list {
    padding: 16px 20px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--profile-text-secondary);
}

.empty-state i {
    font-size: 36px;
    color: var(--profile-text-muted);
    margin-bottom: 12px;
    opacity: 0.7;
}

.empty-state h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--profile-text-primary);
}

.empty-state p {
    margin: 0;
    font-size: 12px;
    color: var(--profile-text-secondary);
}

/* Responsive Order Tabs */
@media (max-width: 768px) {
    .order-status-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 4px;
        padding: 0 8px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: visible;
        flex-wrap: wrap;
    }
    
    .order-status-tab {
        border-radius: 6px 6px 0 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px 4px;
        background: white;
        border-bottom: none;
        min-width: 0;
        width: 100%;
        flex: 1 1 auto;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
        box-sizing: border-box;
        color: var(--profile-text-secondary);
    }
    
    /* Tab baris bawah (tab ke-4, 5, 6) - border radius di bawah */
    .order-status-tab:nth-child(4),
    .order-status-tab:nth-child(5),
    .order-status-tab:nth-child(6) {
        border-radius: 0 0 6px 6px;
    }
    
    .order-status-tab span {
        display: block;
        font-size: 11px;
        line-height: 1.3;
        text-align: center;
        word-break: break-word;
        max-width: 100%;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Tab Pengiriman mobile - teks tidak berganti baris */
    .order-status-tab[data-order-status="shipping"] {
        flex: 0 0 auto;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Mobile text untuk tab Pengiriman - pastikan tampil */
    .order-status-tab[data-order-status="shipping"] .order-status-text-mobile {
        display: block !important;
        white-space: nowrap;
        word-break: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    /* Pastikan full text hidden di mobile */
    .order-status-tab[data-order-status="shipping"] .order-status-text-full {
        display: none !important;
    }
    
    .order-status-tab .order-status-text-full {
        display: none;
    }
    
    .order-status-tab .order-status-text-mobile {
        display: block;
    }
    
    .order-status-tab i {
        font-size: 16px;
        margin: 0 0 4px 0;
        flex-shrink: 0;
    }
    
    .order-status-tab.active {
        background: #E63946 !important;
        color: white !important;
        transform: none;
        box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
    }
    
    .order-status-tab.active i {
        color: white !important;
    }
    
    .order-status-tab.active span {
        color: white !important;
    }
    
    .order-status-tab:hover:not(.active) {
        background: rgba(230, 57, 70, 0.08);
        transform: none;
    }
    
    .order-status-tab:hover.active {
        background: #E63946 !important;
    }
    
    .order-status-tab .order-count {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        margin-left: 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .order-status-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 3px;
        padding: 0 4px;
    }
    
    .order-status-tab {
        padding: 6px 2px;
        font-size: 10px;
        min-width: 0;
        width: 100%;
    }
    
    /* Tab baris bawah (tab ke-4, 5, 6) - border radius di bawah */
    .order-status-tab:nth-child(4),
    .order-status-tab:nth-child(5),
    .order-status-tab:nth-child(6) {
        border-radius: 0 0 6px 6px;
    }
    
    .order-status-tab span {
        font-size: 10px;
        line-height: 1.2;
    }
    
    /* Tab Pengiriman mobile kecil - teks tidak berganti baris */
    .order-status-tab[data-order-status="shipping"] {
        flex: 0 0 auto;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Mobile text untuk tab Pengiriman - pastikan tampil */
    .order-status-tab[data-order-status="shipping"] .order-status-text-mobile {
        display: block !important;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }
    
    /* Pastikan full text hidden di mobile kecil */
    .order-status-tab[data-order-status="shipping"] .order-status-text-full {
        display: none !important;
    }
    
    .order-status-tab i {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .order-status-tab .order-count {
        min-width: 14px;
        height: 14px;
        font-size: 8px;
        top: 2px;
        right: 2px;
    }
}

/* ==================== ORDER CARD STYLES ==================== */
.order-card {
    background: var(--profile-bg-primary);
    border: 1px solid var(--profile-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 2px 8px var(--profile-shadow);
    transform: translateY(-1px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--profile-bg-secondary);
    border-bottom: 1px solid var(--profile-border);
}

.order-number {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-number-label {
    font-size: 11px;
    color: var(--profile-text-secondary);
    font-weight: 500;
}

.order-number-value {
    font-size: 13px;
    color: var(--profile-text-primary);
    font-weight: 600;
}

.order-date {
    font-size: 12px;
    color: var(--profile-text-secondary);
}

.order-items {
    padding: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--profile-border-light);
}

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

.item-info {
    flex: 1;
    margin-right: 16px;
}

.item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 4px;
}

.item-details {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.item-type,
.item-qty {
    font-size: 11px;
    color: var(--profile-text-secondary);
    background: var(--profile-bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}

.item-note {
    font-size: 11px;
    color: var(--profile-text-secondary);
    font-style: italic;
    margin-top: 4px;
}

.item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--profile-primary);
    white-space: nowrap;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--profile-bg-secondary);
    border-top: 1px solid var(--profile-border);
}

.order-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.total-label {
    font-size: 11px;
    color: var(--profile-text-secondary);
}

.total-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--profile-text-primary);
}

.order-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.order-status-badge.waiting {
    background: var(--profile-order-waiting-bg);
    color: var(--profile-order-waiting-text);
    border: 1px solid var(--profile-order-waiting-border);
}

.order-status-badge.payment {
    background: var(--profile-order-payment-bg);
    color: var(--profile-order-payment-text);
    border: 1px solid var(--profile-order-payment-border);
}

/* Status badge untuk tab Dalam Proses */
.order-status-badge.process-queue {
    background: #ff9800;
    color: white;
    border: 1px solid #ff9800;
}

.order-status-badge.process-active {
    background: #2196f3;
    color: white;
    border: 1px solid #2196f3;
}

/* Status badge untuk tab Pesanan Selesai */
.order-status-badge.completed-ready {
    background: #4caf50;
    color: white;
    border: 1px solid #4caf50;
}

.order-status-badge.completed-waiting {
    background: #f44336;
    color: white;
    border: 1px solid #f44336;
}

.order-status-badge i {
    font-size: 9px;
}

/* Responsive Order Cards */
@media (max-width: 768px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .item-info {
        margin-right: 0;
    }
    
    .item-details {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .order-status-badge {
        align-self: stretch;
        justify-content: center;
    }
    
    .order-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .order-header-info .order-number {
        width: 100%;
        align-items: flex-start;
    }
    
    .order-header-info .order-number-value {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .order-header-info .order-store-info {
        margin-top: 4px;
        align-self: flex-start;
        width: 100%;
    }
    
    .order-header-info .order-header-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-header-info .order-date {
        align-self: flex-start;
    }
    
    .payment-method-center {
        align-self: stretch;
        align-items: center;
    }
    
    .order-header-right {
        align-self: stretch;
        align-items: flex-start !important;
    }
}

/* ==================== NEW ORDER LIST STYLES ==================== */
.order-card-container {
    background: white;
    border: 1px solid var(--profile-order-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.order-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--profile-order-bg);
    border-bottom: 1px solid var(--profile-order-border);
    margin-bottom: 0;
}

.order-header-info .order-number {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.order-header-info .order-number-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-header-info .order-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.order-number-label {
    font-size: 11px;
    color: var(--profile-order-text-secondary);
    font-weight: 500;
}

.order-number-value {
    font-size: 13px;
    color: var(--profile-order-text-primary);
    font-weight: 600;
}

.order-store-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--profile-order-price);
    font-weight: 500;
    margin-top: 2px;
}

.order-store-info i {
    font-size: 10px;
}

.invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--profile-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.invoice-btn:hover {
    background: var(--profile-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.invoice-btn i {
    font-size: 9px;
}

.invoice-btn span {
    font-size: 9px;
}

.order-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.order-header-info .order-date {
    font-size: 12px;
    color: var(--profile-order-text-secondary);
    text-align: right;
}

.order-header-info .order-status-badge {
    margin: 0;
}

.order-items-list {
    padding: 0;
    background: white;
}

.order-item-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--profile-order-border-light);
    gap: 12px;
}

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

.order-item-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--profile-order-bg);
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


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

.order-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--profile-order-text-primary);
    margin-bottom: 6px;
}

.order-item-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.item-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--profile-order-tag-bg);
    color: var(--profile-order-text-secondary);
    font-size: 10px;
    border-radius: 12px;
    font-weight: 500;
}

.order-item-note {
    font-size: 10px;
    color: var(--profile-order-text-secondary);
    font-style: italic;
    margin-top: 4px;
}

.order-item-price {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--profile-order-price);
    text-align: right;
}

/* Order Item Header (for mobile layout) */
.order-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.order-item-description-card {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.order-item-description {
    font-size: 11px;
    color: var(--profile-order-text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
    padding-left: 0;
}

.order-item-description ul {
    padding-left: 0;
    margin: 0;
    list-style-position: outside;
    margin-left: 0;
}

.order-item-description ul li {
    padding-left: 0;
    margin-left: 0;
    text-indent: 0;
}

.order-item-quantity-card {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-quantity-label {
    font-size: 11px;
    color: var(--profile-order-text-secondary);
    font-weight: 500;
}

.order-item-quantity-value {
    font-size: 11px;
    color: var(--profile-order-text-secondary);
    font-weight: 600;
}

/* Style for cart-item-desc-list to align bullets with product name */
.cart-item-desc-list {
    list-style-position: outside;
    padding-left: 0;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.cart-item-desc-list li {
    padding-left: 0;
    margin-left: 0;
    text-indent: 0;
}

/* Mobile: Align bullet points with product name */
@media (max-width: 768px) {
    .order-item-description {
        padding-left: 0;
        margin-left: 0;
    }
    
    .order-item-description .cart-item-desc-list {
        list-style-position: outside;
        padding-left: 0;
        margin-left: 0;
    }
    
    .order-item-description .cart-item-desc-list li {
        padding-left: 0;
        margin-left: 0;
        text-indent: 0;
    }
    
    /* Ensure bullets align with product name by matching the container alignment */
    .order-item-info {
        padding-left: 0;
        margin-left: 0;
    }
    
    /* Remove any default list styling that might cause indentation */
    .order-item-description ul,
    .order-item-description .cart-item-desc-list {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .order-item-description ul li,
    .order-item-description .cart-item-desc-list li {
        padding-left: 0 !important;
        margin-left: 0 !important;
        list-style-position: outside;
    }
}

/* Mobile Layout for Order Items */
@media (max-width: 768px) {
    .order-card-container {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .order-items-list {
        padding: 0;
    }
    
    .order-item-row {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .order-item-image {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-radius: 8px;
    }
    
    .order-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .order-item-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .order-item-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .order-item-header .order-item-name {
        font-size: 11px;
        font-weight: 700;
        color: var(--profile-order-text-primary);
        margin-bottom: 0;
        flex: 1;
        line-height: 1.3;
    }
    
    .order-item-header .order-item-price {
        font-size: 11px;
        font-weight: 700;
        color: var(--profile-order-price);
        text-align: right;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .order-item-description-card {
        background: #FAFAFA;
        border-radius: 8px;
        padding: 6px 10px;
        margin-bottom: 4px;
    }
    
    .order-item-description {
        font-size: 10px;
        color: var(--profile-order-text-secondary);
        margin-bottom: 0;
        line-height: 1.4;
        padding-left: 0;
    }
    
    .order-item-description ul,
    .order-item-description .cart-item-desc-list {
        padding-left: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        list-style-position: outside;
    }
    
    .order-item-description ul li,
    .order-item-description .cart-item-desc-list li {
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-indent: 0;
        list-style-position: outside;
    }
    
    /* Ensure bullet points align with product name */
    .order-item-info .order-item-description {
        padding-left: 0;
        margin-left: 0;
    }
    
    .order-item-info .order-item-description ul,
    .order-item-info .order-item-description .cart-item-desc-list {
        list-style-position: outside;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .order-item-quantity-card {
        background: #FAFAFA;
        border-radius: 8px;
        padding: 6px 10px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .order-item-quantity-label {
        font-size: 9px;
        color: var(--profile-order-text-secondary);
        font-weight: 500;
    }
    
    .order-item-quantity-value {
        font-size: 9px;
        color: var(--profile-order-text-secondary);
        font-weight: 700;
    }
    
    .order-item-tags {
        display: none; /* Hide old tags layout */
    }
    
    .order-item-note {
        font-size: 10px;
        margin-top: 4px;
    }
    
    /* Hide price column in old layout */
    .order-item-row > .order-item-price {
        display: none;
    }
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--profile-order-bg);
    border-top: 1px solid var(--profile-order-border);
    font-weight: 600;
}

.order-total-label {
    font-size: 12px;
    color: var(--profile-order-text-primary);
}

.order-total-amount {
    font-size: 12px;
    color: var(--profile-order-price);
    font-weight: 700;
}

.order-total-row.order-total-final {
    background: var(--profile-primary);
    color: white;
    border-top: 2px solid var(--profile-primary-dark);
    font-weight: 700;
}

.order-total-row.order-total-final .order-total-label,
.order-total-row.order-total-final .order-total-amount {
    color: white;
    font-weight: 700;
}

/* ==================== ORDER PROCESS STYLES ==================== */
.order-item-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    justify-content: flex-start;
    width: auto;
}

.order-item-status-badge.queue {
    background: var(--profile-status-queue-bg);
    color: var(--profile-status-queue-text);
    border: 1px solid var(--profile-status-queue-border);
}

.order-item-status-badge.production {
    background: var(--profile-status-production-bg);
    color: var(--profile-status-production-text);
    border: 1px solid var(--profile-status-production-border);
}

.order-item-status-badge.completed {
    background: var(--profile-status-completed-bg);
    color: var(--profile-status-completed-text);
    border: 1px solid var(--profile-status-completed-border);
}

.order-item-status-badge i {
    font-size: 9px;
}

.order-item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.order-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--profile-order-text-secondary);
}

.order-meta-item i {
    font-size: 10px;
    color: var(--profile-primary);
}

/* ==================== PAYMENT METHOD STYLES ==================== */
.payment-method-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    align-items: flex-end;
}

.payment-method-label {
    font-size: 10px;
    color: var(--profile-order-text-secondary);
    font-weight: 500;
}

.payment-method-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--profile-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-btn:hover {
    background: var(--profile-primary-dark);
    transform: translateY(-1px);
}

.payment-method-btn i {
    font-size: 9px;
}

/* ==================== PAYMENT MODAL STYLES ==================== */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.payment-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

/* Modal Lacak Paket - border radius lebih besar */
#trackingModal .payment-modal-content {
    border-radius: 30px;
    overflow: hidden;
}

#trackingModal .payment-modal-header {
    border-radius: 30px 30px 0 0;
}

#trackingModal .payment-modal-footer {
    border-radius: 0 0 30px 30px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--profile-border);
    background: var(--profile-bg);
    border-radius: 12px 12px 0 0;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--profile-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-modal-header h3 i {
    color: var(--profile-primary);
    font-size: 16px;
}

.payment-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--profile-text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-modal-close:hover {
    background: var(--profile-border);
    color: var(--profile-text-primary);
    border-radius: 50%;
}

.payment-modal-body {
    padding: 24px;
}

.payment-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--profile-primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h4 {
    text-align: left;
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-text-primary);
}

.step-content p {
    margin: 0;
    text-align: left;
    font-size: 12px;
    color: var(--profile-text-secondary);
    line-height: 1.4;
}

.payment-notice {
    background: #fef3cd;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.payment-notice h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-notice h4 i {
    color: #f59e0b;
}

.payment-notice ul {
    margin: 0;
    padding-left: 16px;
}

.payment-notice li {
    font-size: 12px;
    color: #92400e;
    margin-bottom: 4px;
    line-height: 1.4;
}

.payment-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--profile-border);
    background: var(--profile-bg);
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.payment-modal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
}

.payment-modal-footer .btn-primary {
    background: var(--profile-primary);
    color: white;
    border: 2px solid var(--profile-primary);
}

.payment-modal-footer .btn-primary:hover {
    background: var(--profile-primary-dark);
    border-color: var(--profile-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-modal-footer .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.payment-modal-footer .btn-secondary {
    background: #6b7280;
    color: white;
    border: 2px solid #6b7280;
}

.payment-modal-footer .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-modal-footer .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.payment-modal-footer .btn i {
    font-size: 13px;
}

/* Tracking Modal Footer - Styling khusus untuk modal lacak paket */
#trackingModal .payment-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    min-height: auto;
}

#trackingModal .payment-modal-footer .btn {
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
    min-width: auto;
    margin: 0;
}

#trackingModal .payment-modal-footer .btn i {
    font-size: 12px;
}

/* Styling untuk list tracking di modal */
#trackingModal #trackingContent {
    position: relative;
    margin: 0;
}

#trackingModal #trackingContent ul {
    position: relative;
    padding: 0 1rem 0 3.5rem;
    margin: 0;
    list-style: none;
    counter-reset: list;
}

#trackingModal #trackingContent .progress__item1 {
    position: relative;
    min-height: 35px;
    counter-increment: list;
    padding-left: 0.5rem;
    margin-bottom: 12px;
}

#trackingModal #trackingContent .progress__item1:before {
    content: "";
    position: absolute;
    left: -2.3rem;
    top: 24px;
    height: calc(100% + 12px);
    width: 1px;
    border-left: 1px solid #9B9595;
    margin-left: 12px;
}

#trackingModal #trackingContent .progress__item1:last-child:before {
    display: none;
}

#trackingModal #trackingContent .progress__item1:after {
    content: "";
    position: absolute;
    top: 0;
    left: -2.3rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    font-weight: 400;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    border: 1px solid #9B9595;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon untuk status delivered (green checkmark) */
#trackingModal #trackingContent .progress__item1.icon-delivered:after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Icon untuk status confirmed/allocated (blue checkmark) */
#trackingModal #trackingContent .progress__item1.icon-confirmed:after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Icon untuk status transit/pickup (red truck) */
#trackingModal #trackingContent .progress__item1.icon-transit:after {
    content: "\f0d1";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Icon default - truck icon dengan background merah */
#trackingModal #trackingContent .progress__item1.icon-default:after {
    content: "\f0d1";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

#trackingModal #trackingContent .progress__title1 {
    padding: 0.2rem 0 0.3rem;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-text-primary);
    line-height: 1.4;
}

#trackingModal #trackingContent .progress__info1 {
    font-size: 13px;
    margin-top: 2px;
    color: var(--profile-text-secondary);
    line-height: 1.5;
}

/* Responsive Payment Modal */
@media (max-width: 768px) {
    .payment-modal {
        padding: 10px;
    }
    
    .payment-modal-content {
        max-height: 95vh;
    }
    
    .payment-modal-header,
    .payment-modal-body,
    .payment-modal-footer {
        padding: 16px;
    }
    
    .payment-step {
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Tracking Modal Footer - Mobile */
    #trackingModal .payment-modal-footer {
        padding: 10px 16px;
        gap: 8px;
    }
    
    #trackingModal .payment-modal-footer .btn {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    /* Tracking Content - Mobile */
    #trackingModal #trackingContent ul {
        padding: 0 0.5rem 0 3rem;
    }
    
    #trackingModal #trackingContent .progress__item1 {
        margin-bottom: 10px;
    }
    
    #trackingModal #trackingContent .progress__title1 {
        font-size: 13px;
    }
    
    #trackingModal #trackingContent .progress__info1 {
        font-size: 12px;
    }
}

/* ==================== SHIPPING STYLES ==================== */

.order-status-badge.shipping {
    background: var(--profile-primary);
    color: white;
    border: 2px solid var(--profile-primary);
}

.shipping-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.track-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.track-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.track-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}

.track-btn i {
    font-size: 10px;
}

/* ==================== TRACKING MODAL STYLES ==================== */
.tracking-info {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--profile-order-bg);
    border-radius: 8px;
    border: 1px solid var(--profile-order-border-light);
}

.tracking-detail h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-order-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracking-detail h4 i {
    color: var(--profile-primary);
    font-size: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--profile-order-border-light);
}

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

.detail-label {
    font-size: 12px;
    color: var(--profile-order-text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 12px;
    color: var(--profile-order-text-primary);
    font-weight: 600;
}

.tracking-status {
    margin-top: 24px;
}

.tracking-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.tracking-step:last-child {
    margin-bottom: 0;
}

.tracking-step::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -24px;
    width: 2px;
    background: var(--profile-order-border-light);
}

.tracking-step:last-child::after {
    display: none;
}

.tracking-step.active::after {
    background: var(--profile-primary);
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--profile-order-border-light);
    color: var(--profile-order-text-secondary);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.tracking-step.active .step-icon {
    background: var(--profile-primary);
    color: white;
}

.step-icon i {
    font-size: 14px;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--profile-order-text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 11px;
    color: var(--profile-order-text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.step-time {
    font-size: 10px;
    color: var(--profile-primary);
    font-weight: 500;
    text-align: left !important; 
    font-style: italic;
}


/* Responsive Shipping */
@media (max-width: 768px) {
    .track-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    .shipping-status-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .tracking-step {
        gap: 12px;
    }
    
    .step-content h4 {
        font-size: 12px;
    }
    
    .step-content p {
        font-size: 10px;
    }
}

/* ==================== PASSWORD CHANGE FORM ==================== */
.password-change-form {
    max-width: 100%;
    margin: 0 auto;
}

/* Khusus untuk password tab - perbaikan font dan spacing */
#password .edit-profile-section h3 {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

#password .edit-profile-section p {
    font-size: 0.85rem;
    color: var(--profile-text-secondary);
    margin-bottom: 25px;
    line-height: 1.4;
}

.password-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.password-security-info {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.security-tips h4 {
    color: var(--profile-text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-tips h4 i {
    color: var(--profile-primary);
}

.security-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--profile-text-secondary);
}

.security-tips li i {
    color: var(--profile-success);
    font-size: 12px;
    flex-shrink: 0;
}

.password-form-fields {
    background: var(--profile-bg-primary);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--profile-border);
}

.password-form-fields .edit-profile-form-group {
    margin-bottom: 25px;
}

.password-form-fields .edit-profile-form-group:last-child {
    margin-bottom: 0;
}

.password-form-fields label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 8px;
}

.password-form-fields label i {
    color: var(--profile-primary);
    font-size: 14px;
}

.edit-profile-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--profile-text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--profile-primary);
    background: rgba(230, 57, 70, 0.1);
}

.password-toggle i {
    font-size: 14px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--profile-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: var(--danger-color);
}

.strength-fill.weak {
    width: 25%;
    background: var(--danger-color);
}

.strength-fill.fair {
    width: 50%;
    background: var(--warning-color);
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: var(--profile-success);
}

.strength-text {
    font-size: 12px;
    color: var(--profile-text-muted);
    font-weight: 500;
}

.strength-text.weak {
    color: var(--danger-color);
}

.strength-text.fair {
    color: var(--warning-color);
}

.strength-text.good {
    color: #3b82f6;
}

.strength-text.strong {
    color: var(--profile-success);
}

.password-match {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--profile-success);
    font-weight: 500;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.password-match.show {
    opacity: 1;
    transform: translateY(0);
}

.password-match.error {
    color: var(--danger-color);
}

.password-match i {
    font-size: 12px;
}

.password-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.password-save-btn {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    min-width: 180px;
    justify-content: center;
}

.password-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

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

.btn-secondary {
    background: var(--profile-bg-secondary);
    color: var(--profile-text-primary);
    border: 1px solid var(--profile-border);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--profile-border);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .password-change-form {
        max-width: 100%;
    }
    
    .password-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .password-security-info {
        padding: 20px;
        position: static;
        order: -1;
    }
    
    .password-form-fields {
        padding: 20px;
    }
    
    .password-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .password-save-btn,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .password-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .password-security-info {
        position: static;
    }
}

/* ==================== PAYMENT WAITING TAB STYLES ==================== */
/* Styles khusus untuk tab "Menunggu Pembayaran" - prefix payment-waiting- untuk menghindari konflik */

/* Payment Card Container */
.payment-waiting-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 0;
    overflow: hidden;
}

/* Payment Header */
.payment-waiting-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.payment-waiting-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.payment-waiting-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-waiting-header-title .fa-credit-card {
    color: #212529;
    font-size: 16px;
}

.payment-waiting-header-title-text {
    color: #212529;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.payment-waiting-timer-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.payment-waiting-timer-label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.payment-waiting-timer {
    color: #dc3545;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    min-width: 50px;
    text-align: right;
    white-space: nowrap;
}

/* Payment Content */
.payment-waiting-content {
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

/* Payment Grid */
.payment-waiting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

/* Bank Account Card */
.payment-waiting-bank-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 18px;
    border-radius: 20px;
    border: 2px solid #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.payment-waiting-label {
    color: #6c757d;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    font-weight: 700;
}

.payment-waiting-bank-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.payment-waiting-bank-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.payment-waiting-bank-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.payment-waiting-account-number {
    color: #212529;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
    word-break: break-all;
}

.payment-waiting-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0066cc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 4px 8px;
    border: none;
    background: transparent;
}

.payment-waiting-copy-btn:hover {
    background: transparent;
    color: #0052a3;
}

.payment-waiting-copy-btn i {
    font-size: 12px;
}

/* Amount Card */
.payment-waiting-amount-card {
    background: linear-gradient(135deg, #fff4f4 0%, #ffe8e8 100%);
    padding: 18px;
    border-radius: 20px;
    border: 2px solid #ffebee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.payment-waiting-amount-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
}

.payment-waiting-amount-value {
    color: #dc3545;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    word-break: break-all;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.1);
    flex: 1;
    min-width: 0;
}

.payment-waiting-copy-btn-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 4px 8px;
    border: none;
    background: transparent;
}

.payment-waiting-copy-btn-amount:hover {
    background: transparent;
    color: #c82333;
}

.payment-waiting-copy-btn-amount i {
    font-size: 12px;
}

/* Info Box */
.payment-waiting-info-box {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.payment-waiting-info-content {
    display: flex;
    align-items: start;
    gap: 10px;
}

.payment-waiting-info-icon {
    color: #ff9800;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-waiting-info-text {
    color: #856404;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
}

.payment-waiting-info-text strong {
    color: #856404;
}

/* Action Buttons */
.payment-waiting-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-waiting-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    letter-spacing: 0.2px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.payment-waiting-btn i {
    margin-right: 5px;
    font-size: 11px;
}

.payment-waiting-btn-check {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
    box-shadow: 0 4px 15px rgba(173, 181, 189, 0.3);
}

.payment-waiting-btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 181, 189, 0.4);
}

.payment-waiting-btn-return {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.payment-waiting-btn-return:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-waiting-card {
        border-radius: 12px;
    }
    
    .payment-waiting-header {
        padding: 10px 12px;
    }
    
    .payment-waiting-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .payment-waiting-header-title {
        width: 100%;
    }
    
    .payment-waiting-header-title-text {
        font-size: 13px;
    }
    
    .payment-waiting-timer-wrapper {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        padding-left: 0;
        padding-top: 8px;
        border-top: 1px solid #e0e0e0;
    }
    
    .payment-waiting-timer-label {
        font-size: 11px;
    }
    
    .payment-waiting-timer {
        font-size: 14px;
        min-width: 45px;
    }
    
    .payment-waiting-content {
        padding: 16px 12px;
    }
    
    .payment-waiting-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 14px;
    }
    
    .payment-waiting-bank-card,
    .payment-waiting-amount-card {
        padding: 14px 12px;
        border-radius: 20px;
    }
    
    .payment-waiting-label {
        font-size: 9px;
        margin-bottom: 10px;
    }
    
    .payment-waiting-bank-content,
    .payment-waiting-amount-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    
    .payment-waiting-bank-info {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        overflow: hidden;
    }
    
    .payment-waiting-bank-logo {
        height: 18px;
        flex-shrink: 0;
    }
    
    .payment-waiting-account-number {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    
    .payment-waiting-copy-btn,
    .payment-waiting-copy-btn-amount {
        width: auto;
        flex-shrink: 0;
        justify-content: center;
        padding: 4px 6px;
        font-size: 10px;
        border: none;
        background: transparent;
        white-space: nowrap;
    }
    
    .payment-waiting-amount-value {
        font-size: 16px;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .payment-waiting-info-box {
        padding: 12px 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }
    
    .payment-waiting-info-content {
        gap: 8px;
    }
    
    .payment-waiting-info-icon {
        font-size: 13px;
        margin-top: 1px;
    }
    
    .payment-waiting-info-text {
        font-size: 10px;
        line-height: 1.5;
    }
    
    .payment-waiting-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .payment-waiting-btn {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 20px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .payment-waiting-btn i {
        font-size: 10px;
        margin-right: 4px;
    }
}

/* Mobile Extra Small */
@media (max-width: 480px) {
    .payment-waiting-header {
        padding: 8px 10px;
    }
    
    .payment-waiting-header-title-text {
        font-size: 12px;
    }
    
    .payment-waiting-timer-label {
        font-size: 10px;
    }
    
    .payment-waiting-timer {
        font-size: 13px;
    }
    
    .payment-waiting-content {
        padding: 12px 10px;
    }
    
    .payment-waiting-bank-card,
    .payment-waiting-amount-card {
        padding: 12px 10px;
        border-radius: 20px;
    }
    
    .payment-waiting-account-number {
        font-size: 13px;
    }
    
    .payment-waiting-amount-value {
        font-size: 15px;
    }
    
    .payment-waiting-copy-btn,
    .payment-waiting-copy-btn-amount {
        padding: 4px 6px;
        font-size: 10px;
        border: none;
        background: transparent;
    }
    
    .payment-waiting-btn {
        padding: 9px 12px;
        font-size: 10px;
        border-radius: 20px;
        min-height: 38px;
    }
    
    .payment-waiting-btn i {
        font-size: 9px;
        margin-right: 3px;
    }
}

/* Payment Waiting Divider */
.payment-waiting-divider {
    margin: 0;
    border-top: 1px dashed #adb5bd;
    width: 100%;
}

/* Styling untuk cart-item-desc-list seperti di keranjang.php */
.order-item-tags .cart-item-desc-list {
    margin: 0;
    padding-left: 0;
    list-style: disc;
    list-style-position: inside;
    font-size: inherit;
    line-height: inherit;
}

.order-item-tags .cart-item-desc-list li {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    text-indent: 0;
}

/* Styling untuk tombol kembalikan ke keranjang */
.btn-kembalikan-keranjang:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.btn-kembalikan-keranjang:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3) !important;
}

/* ==================== COMING SOON CONTAINER STYLES ==================== */
/* Styles untuk tab Chat dan Reviews yang akan segera hadir */
.coming-soon-container {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.coming-soon-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: comingSoonFloat 3s ease-in-out infinite;
}

.coming-soon-icon.chat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.coming-soon-icon.reviews-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
}

.coming-soon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    z-index: 1;
    animation: comingSoonPulse 2s ease-out infinite;
}

/* Fallback untuk browser yang tidak support :has() */
#chat .coming-soon-pulse {
    background: rgba(102, 126, 234, 0.3);
}

#reviews .coming-soon-pulse {
    background: rgba(245, 87, 108, 0.3);
}

/* Support :has() untuk browser modern */
.coming-soon-icon-wrapper:has(.chat-icon) .coming-soon-pulse {
    background: rgba(102, 126, 234, 0.3);
}

.coming-soon-icon-wrapper:has(.reviews-icon) .coming-soon-pulse {
    background: rgba(245, 87, 108, 0.3);
}

@keyframes comingSoonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes comingSoonPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.coming-soon-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

#chat .coming-soon-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#reviews .coming-soon-title {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-features {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.coming-soon-feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #495057;
    transition: transform 0.2s ease, color 0.2s ease;
}

.coming-soon-feature-item:hover {
    transform: translateX(5px);
    color: #212529;
}

.coming-soon-feature-item i {
    color: #28a745;
    font-size: 18px;
    margin-right: 15px;
    min-width: 20px;
}

.coming-soon-feature-item span {
    line-height: 1.5;
}

.coming-soon-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid #dc3545;
    padding: 18px 22px;
    border-radius: 12px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #721c24;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.1);
}

.coming-soon-message i {
    font-size: 18px;
    color: #dc3545;
    flex-shrink: 0;
}

.coming-soon-message span {
    line-height: 1.6;
}

/* Mobile Responsive untuk Coming Soon */
@media (max-width: 768px) {
    .coming-soon-container {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .coming-soon-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .coming-soon-pulse {
        width: 100px;
        height: 100px;
    }
    
    .coming-soon-title {
        font-size: 24px;
    }
    
    .coming-soon-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .coming-soon-features {
        padding: 20px;
        margin: 20px 0;
    }
    
    .coming-soon-feature-item {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .coming-soon-message {
        padding: 15px 18px;
        font-size: 13px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
