/* Edar Hesap Yöneticisi - Ana Stil Dosyası */

/* Icon fallbacks */
.edar-tab-btn i {
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Fallback icons if Font Awesome doesn't load */
.edar-tab-btn[data-tab="profile"] i:before {
    content: "👤";
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.edar-tab-btn[data-tab="orders"] i:before {
    content: "🛍️";
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.edar-tab-btn[data-tab="addresses"] i:before {
    content: "📍";
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.edar-tab-btn[data-tab="returns"] i:before {
    content: "↩️";
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.edar-tab-btn[data-tab="tracking"] i:before {
    content: "🚚";
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* Other icons */
.fa-sign-out-alt:before { content: "🚪"; font-family: Arial, sans-serif; }
.fa-camera:before { content: "📷"; font-family: Arial, sans-serif; }
.fa-upload:before { content: "⬆️"; font-family: Arial, sans-serif; }
.fa-eye:before { content: "👁️"; font-family: Arial, sans-serif; }

:root {
    --edar-primary: #1E482F;
    --edar-primary-light: #2d5a3f;
    --edar-primary-dark: #153020;
    --edar-secondary: #f8f9fa;
    --edar-accent: #28a745;
    --edar-danger: #dc3545;
    --edar-warning: #ffc107;
    --edar-info: #17a2b8;
    --edar-light: #f8f9fa;
    --edar-dark: #343a40;
    --edar-border: #dee2e6;
    --edar-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --edar-radius: 8px;
    --edar-transition: all 0.3s ease;
    
    /* Light Mode (Default) */
    --edar-bg: #ffffff;
    --edar-bg-secondary: #f8f9fa;
    --edar-bg-tertiary: #e9ecef;
    --edar-text-primary: #333333;
    --edar-text-secondary: #666666;
    --edar-border-color: #dee2e6;
    --edar-shadow-color: rgba(0,0,0,0.1);
}


/* Şifre değiştirme bölümü */
.edar-password-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--edar-border-color);
}

/* Genel Stiller */
.edar-account-manager {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--edar-bg);
    color: var(--edar-text-primary);
    border-radius: var(--edar-radius);
    box-shadow: 0 2px 10px var(--edar-shadow-color);
    transition: var(--edar-transition);
}

/* Header */
.edar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--edar-border-color);
}

.edar-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


.edar-header h2 {
    color: #1E482F !important;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

/* Modal header text color */
.edar-modal-header {
    background: #1E482F !important;
    color: white !important;
}

.edar-modal-header h3 {
    color: white !important;
}

.edar-modal-close {
    color: white !important;
}

.edar-modal-close:hover {
    color: #ffc107 !important;
}

.edar-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--edar-danger);
    color: white;
    text-decoration: none;
    border-radius: var(--edar-radius);
    font-weight: 500;
    transition: var(--edar-transition);
}

.edar-logout-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Tab Navigation */
.edar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--edar-border);
    padding-bottom: 0;
}

.edar-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--edar-dark);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--edar-transition);
    border-radius: var(--edar-radius) var(--edar-radius) 0 0;
    position: relative;
}

.edar-tab-btn:hover {
    background: var(--edar-secondary);
    color: var(--edar-primary);
}

.edar-tab-btn.active {
    background: #1E482F !important;
    color: white !important;
    border-bottom-color: #1E482F !important;
}

.edar-tab-btn.active i {
    color: white !important;
}

.edar-tab-btn.active span {
    color: white !important;
}

.edar-tab-btn i {
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}


.edar-tab-btn span {
    font-size: 14px;
}

/* Tab Content */
.edar-tab-content {
    min-height: 400px;
}

.edar-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.edar-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Profil Bölümü */
.edar-profile-section h3 {
    color: var(--edar-primary);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.edar-profile-image-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--edar-secondary);
    border-radius: var(--edar-radius);
}

.edar-profile-image-container {
    margin-bottom: 15px;
}

.edar-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--edar-primary);
    box-shadow: var(--edar-shadow);
}

.edar-profile-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--edar-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto;
    border: 4px solid var(--edar-primary);
}

.edar-profile-image-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.edar-profile-image-form .edar-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    margin-right: 5px;
    display: inline-block !important;
    font-size: 14px !important;
}

/* Form Stilleri */
.edar-form-group {
    margin-bottom: 20px;
}

.edar-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--edar-dark);
}

.edar-form-group input,
.edar-form-group select,
.edar-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--edar-border);
    border-radius: var(--edar-radius);
    font-size: 16px;
    transition: var(--edar-transition);
    background: white;
}

.edar-form-group input:focus,
.edar-form-group select:focus,
.edar-form-group textarea:focus {
    outline: none;
    border-color: var(--edar-primary);
    box-shadow: 0 0 0 3px rgba(30, 72, 47, 0.1);
}

/* Buton Stilleri */
.edar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--edar-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--edar-transition);
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.edar-btn-primary {
    background: #1E482F !important;
    color: white !important;
}

.edar-btn-primary:hover {
    background: #153020 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 72, 47, 0.3);
}

.edar-btn-primary i {
    color: white !important;
}

.edar-btn-secondary {
    background: var(--edar-secondary);
    color: var(--edar-dark);
    border: 2px solid var(--edar-border);
}

.edar-btn-secondary:hover {
    background: var(--edar-border);
    transform: translateY(-2px);
}

/* Sipariş butonları özel stilleri */
.edar-view-order {
    background: #1E482F !important;
    color: white !important;
    border: none !important;
}

.edar-view-order:hover {
    background: #153020 !important;
    color: white !important;
}

.edar-view-order i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 14px !important;
}

.edar-btn-tracking {
    background: #17a2b8 !important;
    color: white !important;
    border: none !important;
}

.edar-btn-tracking:hover {
    background: #138496 !important;
    color: white !important;
}

.edar-btn-tracking i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 14px !important;
}

.edar-btn-danger {
    background: var(--edar-danger);
    color: white;
}

.edar-btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.edar-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edar-btn-sm i {
    font-size: 14px;
    min-width: 16px;
    text-align: center;
    display: inline-block;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Tüm butonlardaki simgeler için */
.edar-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 14px !important;
}

/* Tab butonlarındaki simgeler için */
.edar-tab-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    margin-right: 8px !important;
}

/* Profil resmi değiştir butonu için özel kural */
.edar-profile-image-form .edar-btn-secondary i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 14px !important;
    margin-right: 5px !important;
}

/* Görüntüle butonu için özel kural */
.edar-view-order i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-size: 14px !important;
}

/* Tüm fas sınıfındaki simgeler için */
i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

/* Font Awesome yüklenmemişse emoji fallback */
i.fa-camera:before {
    content: "📷" !important;
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

i.fa-eye:before {
    content: "👁️" !important;
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

i.fa-truck:before {
    content: "🚚" !important;
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

i.fa-user:before {
    content: "👤" !important;
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

i.fa-upload:before {
    content: "⬆️" !important;
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

/* Font Awesome yüklenmemişse emoji fallback - alternatif */
i.fas:before {
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

/* Eğer Font Awesome yüklenmemişse emoji göster */
@supports not (font-family: "Font Awesome 6 Free") {
    i.fa-camera:before { content: "📷" !important; }
    i.fa-eye:before { content: "👁️" !important; }
    i.fa-truck:before { content: "🚚" !important; }
    i.fa-user:before { content: "👤" !important; }
    i.fa-upload:before { content: "⬆️" !important; }
}

/* Şifre Değiştir ve Hesap Sil Butonları */
.edar-btn-change-password {
    background: #1E482F !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.edar-btn-change-password:hover {
    background: #000000 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.edar-btn-delete-account {
    background: #1E482F !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.edar-btn-delete-account:hover {
    background: #000000 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Hesap İşlemleri Bölümü */
.edar-account-actions {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 2px solid var(--edar-border) !important;
}

/* Tehlikeli Bölge */
.edar-danger-zone {
    margin-top: 40px !important;
    padding: 25px !important;
    background: #fff5f5 !important;
    border: 2px solid #fed7d7 !important;
    border-radius: 8px !important;
    text-align: center !important;
}

.edar-danger-zone h4 {
    color: #e53e3e !important;
    margin-bottom: 15px !important;
    font-size: 18px !important;
}

.edar-warning-text {
    color: #c53030 !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
}

/* Hesap Silme Modal */
.edar-warning-box {
    background: #fff5f5 !important;
    border: 1px solid #fed7d7 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.edar-warning-box i {
    color: #e53e3e !important;
    font-size: 24px !important;
    margin-bottom: 10px !important;
}

.edar-warning-box h4 {
    color: #e53e3e !important;
    margin-bottom: 10px !important;
}

.edar-warning-box p {
    color: #c53030 !important;
    margin: 0 !important;
}

.edar-form-actions {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    margin-top: 25px !important;
}

/* Mobil ve Tablet Responsive */
@media (max-width: 768px) {
    .edar-btn-change-password,
    .edar-btn-delete-account {
        padding: 14px 20px !important;
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .edar-account-actions {
        margin-top: 20px !important;
        padding-top: 15px !important;
    }
}

@media (max-width: 480px) {
    .edar-btn-change-password,
    .edar-btn-delete-account {
        padding: 12px 16px !important;
        font-size: 13px !important;
        margin-bottom: 10px !important;
        letter-spacing: 0.3px !important;
    }
    
    .edar-account-actions {
        margin-top: 15px !important;
        padding-top: 12px !important;
    }
}

.edar-btn-sm span {
    font-size: 13px;
    font-weight: 500;
}

/* Siparişler Tablosu */
.edar-orders-table {
    overflow-x: auto;
    margin-top: 20px;
}

.edar-orders-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--edar-radius);
    overflow: hidden;
    box-shadow: var(--edar-shadow);
}

.edar-orders-table th,
.edar-orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--edar-border);
}

.edar-orders-table th {
    background: var(--edar-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.edar-orders-table tr:hover {
    background: var(--edar-secondary);
}

/* Durum Etiketleri */
.edar-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edar-status-pending {
    background: #fff3cd;
    color: #856404;
}

.edar-status-processing {
    background: #cce5ff;
    color: #004085;
}

.edar-status-completed {
    background: #d4edda;
    color: #155724;
}

.edar-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Adres Kartları */
.edar-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.edar-address-card {
    background: white;
    border: 2px solid var(--edar-border);
    border-radius: var(--edar-radius);
    padding: 20px;
    box-shadow: var(--edar-shadow);
    transition: var(--edar-transition);
}

.edar-address-card:hover {
    border-color: var(--edar-primary);
    transform: translateY(-2px);
}

.edar-address-card h4 {
    color: var(--edar-primary);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.edar-address-content {
    color: var(--edar-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Modal Stilleri */
.edar-modal {
    display: none !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.edar-modal.show {
    display: block !important;
}

/* Adres modal özel stilleri */
#edar-address-modal .edar-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#edar-address-modal .edar-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

#edar-address-modal .edar-form-group:has(input[type="tel"]),
#edar-address-modal .edar-form-group:has(select) {
    grid-template-columns: 1fr;
}

#edar-address-modal .edar-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

#edar-address-modal .edar-form-group input,
#edar-address-modal .edar-form-group select {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: var(--edar-transition);
}

#edar-address-modal .edar-form-group input:focus,
#edar-address-modal .edar-form-group select:focus {
    border-color: #1E482F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 72, 47, 0.1);
}

#edar-address-modal .edar-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Kargo takip modal stilleri */
#edar-tracking-modal .edar-modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.edar-tracking-info {
    padding: 20px 0;
}

.edar-tracking-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #1E482F;
}

.edar-tracking-header h4 {
    color: #1E482F;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.edar-tracking-number {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.edar-tracking-number strong {
    color: #333;
    font-weight: 600;
}

.tracking-code {
    background: #1E482F;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    font-size: 14px;
}

.copy-tracking {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.copy-tracking:hover {
    background: #218838 !important;
}

.edar-tracking-company {
    color: #666;
    font-size: 14px;
}

.edar-tracking-status {
    margin-bottom: 20px;
}

.edar-tracking-status h5 {
    color: #1E482F;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

#edar-tracking-details {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    min-height: 100px;
}

.edar-tracking-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.refresh-tracking {
    background: #1E482F !important;
    color: white !important;
}

.refresh-tracking:hover {
    background: #153020 !important;
}

.close-tracking-modal {
    background: #6c757d !important;
    color: white !important;
}

.close-tracking-modal:hover {
    background: #5a6268 !important;
}

.edar-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--edar-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.edar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--edar-primary);
    color: white;
    border-radius: var(--edar-radius) var(--edar-radius) 0 0;
}

.edar-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.edar-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--edar-transition);
}

.edar-modal-close:hover {
    color: var(--edar-accent);
}

.edar-modal-body {
    padding: 30px;
}

/* Sipariş Detayları */
.edar-order-details {
    font-size: 16px;
}

.edar-order-info {
    background: var(--edar-secondary);
    padding: 20px;
    border-radius: var(--edar-radius);
    margin-bottom: 25px;
}

.edar-order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--edar-border);
}

.edar-order-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.edar-order-items h4 {
    color: var(--edar-primary);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.edar-order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.edar-order-items-table th,
.edar-order-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--edar-border);
}

.edar-order-items-table th {
    background: var(--edar-primary);
    color: white;
    font-weight: 600;
}

.edar-item-info {
    font-weight: 500;
}

.edar-item-variation {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.edar-order-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.edar-address-section h4 {
    color: var(--edar-primary);
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.edar-address-content {
    background: var(--edar-secondary);
    padding: 15px;
    border-radius: var(--edar-radius);
    line-height: 1.6;
}

/* İade Formu */
.edar-return-form {
    background: white;
    padding: 25px;
    border-radius: var(--edar-radius);
    box-shadow: var(--edar-shadow);
    margin-bottom: 30px;
}

.edar-return-tracking {
    background: white;
    padding: 25px;
    border-radius: var(--edar-radius);
    box-shadow: var(--edar-shadow);
}

.edar-return-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--edar-radius);
    display: block;
}

.edar-return-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.edar-return-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Sipariş Takip */
.edar-tracking-section {
    background: white;
    padding: 25px;
    border-radius: var(--edar-radius);
    box-shadow: var(--edar-shadow);
}

.edar-tracking-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--edar-radius);
    display: none;
}

.edar-tracking-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.edar-tracking-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* İade Formu - Mobil Uyumlu */
.edar-return-success-message,
.edar-return-error-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.edar-return-success-message input[readonly],
.edar-return-error-message input[readonly] {
    min-width: 0;
    word-break: break-all;
    font-size: 14px !important;
}

.edar-return-success-message .edar-btn,
.edar-return-error-message .edar-btn {
    min-width: 80px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .edar-account-manager {
        padding: 15px;
        margin: 10px;
    }
    
    .edar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .edar-header h2 {
        font-size: 24px;
    }
    
    .edar-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .edar-tab-btn {
        justify-content: center;
        padding: 12px 20px;
        min-height: 44px; /* Dokunmatik için */
    }
    
    .edar-tab-btn span {
        font-size: 16px;
    }
    
    .edar-orders-table {
        font-size: 14px;
    }
    
    .edar-orders-table th,
    .edar-orders-table td {
        padding: 10px 8px;
    }
    
    .edar-addresses {
        grid-template-columns: 1fr;
    }
    
    .edar-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
    }
    
    .edar-modal-header {
        padding: 15px 20px;
    }
    
    .edar-modal-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .edar-modal-body {
        padding: 20px;
    }
    
    /* Adres modal mobil */
    #edar-address-modal .edar-form-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #edar-address-modal .edar-form-actions {
        flex-direction: column;
    }
    
    .edar-order-addresses {
        grid-template-columns: 1fr;
    }
    
    .edar-profile-image-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .edar-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    /* İade formu mobil */
    .edar-return-form {
        padding: 15px;
    }
    
    .edar-return-success-message,
    .edar-return-error-message {
        padding: 15px !important;
    }
    
    .edar-return-success-message > div:first-child {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .edar-return-success-message > div:first-child i {
        font-size: 20px !important;
    }
    
    .edar-return-success-message > div:first-child strong {
        font-size: 14px !important;
    }
    
    .edar-return-success-message input[readonly] {
        font-size: 14px !important;
        padding: 12px !important;
        min-height: 44px;
        word-break: break-all;
        overflow-wrap: break-word;
        text-align: center;
    }
    
    .edar-return-success-message .edar-btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 20px !important;
        font-size: 16px;
        margin-top: 10px;
    }
    
    .edar-form-group input,
    .edar-form-group select,
    .edar-form-group textarea {
        min-height: 44px;
        font-size: 16px; /* iOS zoom önleme */
    }
}

@media (max-width: 480px) {
    .edar-account-manager {
        padding: 10px;
        margin: 5px;
    }
    
    .edar-header h2 {
        font-size: 20px;
    }
    
    .edar-tab-btn {
        padding: 10px 15px;
        min-height: 44px;
    }
    
    .edar-tab-btn i {
        font-size: 16px;
    }
    
    .edar-tab-btn span {
        font-size: 14px;
    }
    
    .edar-orders-table {
        font-size: 12px;
    }
    
    .edar-orders-table th,
    .edar-orders-table td {
        padding: 8px 5px;
    }
    
    /* Mobil buton düzeni */
    .edar-btn-sm {
        padding: 8px 16px;
        font-size: 14px;
        gap: 4px;
        min-height: 44px;
    }
    
    .edar-btn-sm i {
        font-size: 14px;
        min-width: 16px;
    }
    
    .edar-btn-sm span {
        font-size: 13px;
    }
    
    .edar-modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .edar-modal-header {
        padding: 12px 15px;
    }
    
    .edar-modal-body {
        padding: 15px;
    }
    
    /* İade formu küçük ekranlar */
    .edar-return-success-message input[readonly] {
        font-size: 12px !important;
        padding: 10px !important;
        letter-spacing: 1px !important;
    }
    
    .edar-return-success-message .edar-btn {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
}

/* Dokunmatik cihazlar için genel iyileştirmeler */
@media (hover: none) and (pointer: coarse) {
    .edar-btn,
    .edar-tab-btn,
    .edar-btn-sm {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(30, 72, 47, 0.1);
    }
    
    .edar-modal-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .edar-return-success-message .edar-btn {
        min-height: 44px;
    }
    
    .edar-form-group input,
    .edar-form-group select,
    .edar-form-group textarea {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .edar-account-manager {
        padding: 20px;
    }
    
    .edar-tabs {
        justify-content: center;
    }
    
    .edar-tab-btn {
        flex: 1;
        min-width: 150px;
    }
    
    .edar-addresses {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .edar-order-addresses {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.edar-text-center { text-align: center; }
.edar-text-left { text-align: left; }
.edar-text-right { text-align: right; }
.edar-mb-0 { margin-bottom: 0; }
.edar-mb-1 { margin-bottom: 10px; }
.edar-mb-2 { margin-bottom: 20px; }
.edar-mb-3 { margin-bottom: 30px; }
.edar-mt-0 { margin-top: 0; }
.edar-mt-1 { margin-top: 10px; }
.edar-mt-2 { margin-top: 20px; }
.edar-mt-3 { margin-top: 30px; }

/* Loading Animation */
.edar-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--edar-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.edar-message {
    padding: 15px 20px;
    border-radius: var(--edar-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.edar-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.edar-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.edar-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Login Required Message */
.edar-login-required {
    text-align: center;
    padding: 40px 20px;
    background: var(--edar-secondary);
    border-radius: var(--edar-radius);
    color: var(--edar-dark);
    font-size: 18px;
    font-weight: 500;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.edar-btn:focus,
.edar-tab-btn:focus,
.edar-form-group input:focus,
.edar-form-group select:focus,
.edar-form-group textarea:focus {
    outline: 2px solid var(--edar-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .edar-header,
    .edar-tabs,
    .edar-btn,
.edar-modal {
        display: none !important;
    }
    
    .edar-account-manager {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Son Görüntülenen Ürünler */
.edar-recently-viewed {
    margin-top: 30px;
    padding: 20px;
    background: var(--edar-bg-secondary);
    border-radius: var(--edar-radius);
    border: 1px solid var(--edar-border-color);
}

.edar-recently-viewed h4 {
    color: var(--edar-text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edar-recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.edar-recently-viewed-item {
    background: var(--edar-bg);
    border: 1px solid var(--edar-border-color);
    border-radius: var(--edar-radius);
    padding: 15px;
    text-align: center;
    transition: var(--edar-transition);
    cursor: pointer;
}

.edar-recently-viewed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--edar-shadow-color);
}

.edar-recently-viewed-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--edar-radius);
    margin-bottom: 10px;
}

.edar-recently-viewed-item h5 {
    color: var(--edar-text-primary);
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
}

.edar-recently-viewed-item .price {
    color: var(--edar-primary);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.edar-recently-viewed-item .viewed-time {
    color: var(--edar-text-secondary);
    font-size: 12px;
}

.edar-recently-viewed-actions {
    text-align: center;
    margin-top: 15px;
}

.edar-loading {
    text-align: center;
    color: var(--edar-text-secondary);
    padding: 20px;
}

.edar-empty-state {
    text-align: center;
    color: var(--edar-text-secondary);
    padding: 40px 20px;
}

.edar-empty-state i {
    font-size: 48px;
    color: var(--edar-border-color);
    margin-bottom: 15px;
}

/* Login Geçmişi */
.edar-login-history {
    margin-top: 30px;
    padding: 20px;
    background: var(--edar-bg-secondary);
    border-radius: var(--edar-radius);
    border: 1px solid var(--edar-border-color);
}

.edar-login-history h4 {
    color: var(--edar-text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edar-login-history-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.edar-login-history-item {
    background: var(--edar-bg);
    border: 1px solid var(--edar-border-color);
    border-radius: var(--edar-radius);
    padding: 15px;
    margin-bottom: 10px;
    transition: var(--edar-transition);
}

.edar-login-history-item:hover {
    box-shadow: 0 2px 8px var(--edar-shadow-color);
}

.edar-login-history-item.active {
    border-left: 4px solid var(--edar-success);
}

.edar-login-history-item.logged-out {
    border-left: 4px solid var(--edar-border-color);
    opacity: 0.7;
}

.edar-login-history-item .login-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.edar-login-history-item .login-time {
    font-weight: bold;
    color: var(--edar-text-primary);
}

.edar-login-history-item .status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.edar-login-history-item .status.active {
    background: #d4edda;
    color: #155724;
}

.edar-login-history-item .status.logged-out {
    background: #f8d7da;
    color: #721c24;
}

.edar-login-history-item .login-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
    color: var(--edar-text-secondary);
}

.edar-login-history-item .detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.edar-login-history-item .detail-item i {
    width: 16px;
    text-align: center;
}

.edar-login-history-actions {
    text-align: center;
    margin-top: 15px;
}

/* Fiyat Takibi */
.edar-price-tracking {
    margin-top: 30px;
    padding: 20px;
    background: var(--edar-bg-secondary);
    border-radius: var(--edar-radius);
    border: 1px solid var(--edar-border-color);
}

.edar-price-tracking h4 {
    color: var(--edar-text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edar-price-tracking-list {
    margin-bottom: 20px;
}

.edar-price-tracking-item {
    background: var(--edar-bg);
    border: 1px solid var(--edar-border-color);
    border-radius: var(--edar-radius);
    padding: 15px;
    margin-bottom: 10px;
    transition: var(--edar-transition);
}

.edar-price-tracking-item:hover {
    box-shadow: 0 2px 8px var(--edar-shadow-color);
}

.edar-price-tracking-item.price-dropped {
    border-left: 4px solid var(--edar-success);
    background: #f8fff9;
}

.edar-price-tracking-item .product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.edar-price-tracking-item .product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--edar-radius);
}

.edar-price-tracking-item .product-details h5 {
    margin: 0 0 5px 0;
    color: var(--edar-text-primary);
    font-size: 16px;
}

.edar-price-tracking-item .price-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.edar-price-tracking-item .price-item {
    text-align: center;
    padding: 8px;
    background: var(--edar-bg-secondary);
    border-radius: var(--edar-radius);
}

.edar-price-tracking-item .price-item .label {
    font-size: 12px;
    color: var(--edar-text-secondary);
    margin-bottom: 4px;
}

.edar-price-tracking-item .price-item .value {
    font-weight: bold;
    font-size: 16px;
}

.edar-price-tracking-item .price-item.current .value {
    color: var(--edar-primary);
}

.edar-price-tracking-item .price-item.target .value {
    color: var(--edar-info);
}

.edar-price-tracking-item .price-item.original .value {
    color: var(--edar-text-secondary);
}

.edar-price-tracking-item .actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.edar-price-tracking-actions {
    text-align: center;
    margin-top: 15px;
}

.edar-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--edar-bg);
    border: 1px solid var(--edar-border-color);
    border-radius: var(--edar-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.edar-search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--edar-border-color);
    transition: var(--edar-transition);
}

.edar-search-result-item:hover {
    background: var(--edar-bg-secondary);
}

.edar-search-result-item:last-child {
    border-bottom: none;
}

.edar-search-result-item .product-name {
    font-weight: bold;
    color: var(--edar-text-primary);
    margin-bottom: 4px;
}

.edar-search-result-item .product-price {
    color: var(--edar-primary);
    font-size: 14px;
}

/* İade Politikası Pop-up Modal */
.edar-policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.edar-policy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.edar-policy-modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100000;
}

.edar-policy-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1E482F 0%, #2d5a3f 100%);
    color: #fff;
}

.edar-policy-modal-header h3 {
    color: #fff !important;
    margin: 0 !important;
}

.edar-policy-modal-close {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.edar-policy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
}

.edar-policy-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

.edar-policy-content {
    color: #333;
    line-height: 1.8;
}

.edar-policy-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #1E482F;
    font-size: 18px;
    font-weight: 600;
}

.edar-policy-content ul,
.edar-policy-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
    line-height: 1.8;
}

.edar-policy-content li {
    margin-bottom: 8px;
    color: #333;
}

.edar-policy-modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
}

.edar-policy-modal-footer button {
    transition: all 0.3s;
}

.edar-policy-modal-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.edar-policy-modal-footer .edar-btn-primary:hover {
    background: #153020 !important;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mobil ve Tablet Responsive */
@media (max-width: 768px) {
    .edar-policy-modal-content {
        width: 95%;
        margin: 3% auto;
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .edar-policy-modal-header {
        padding: 15px 20px;
    }
    
    .edar-policy-modal-header h3 {
        font-size: 18px !important;
    }
    
    .edar-policy-modal-close {
        width: 28px !important;
        height: 28px !important;
        font-size: 20px !important;
    }
    
    .edar-policy-modal-body {
        padding: 20px 15px;
    }
    
    .edar-policy-content h4 {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .edar-policy-content ul,
    .edar-policy-content ol {
        padding-left: 20px;
    }
    
    .edar-policy-modal-footer {
        padding: 15px;
    }
    
    .edar-policy-modal-footer label {
        padding: 12px;
        font-size: 14px;
    }
    
    .edar-policy-modal-footer button {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    #edar-show-policy-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    #edar-open-policy-link {
        display: block;
        margin-top: 5px;
        margin-left: 0 !important;
    }
    
    /* İade politikası checkbox mobil */
    #edar-policy-checkbox {
        width: 20px !important;
        height: 20px !important;
    }
    
    .edar-form-group label span {
        font-size: 13px !important;
    }
    
    .edar-form-group label small {
        font-size: 11px !important;
        margin-top: 8px !important;
    }
}

@media (max-width: 480px) {
    .edar-policy-modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }
    
    .edar-policy-modal-header {
        padding: 12px 15px;
    }
    
    .edar-policy-modal-header h3 {
        font-size: 16px !important;
    }
    
    .edar-policy-modal-body {
        padding: 15px 12px;
    }
    
    .edar-policy-content {
        font-size: 14px;
    }
    
    .edar-policy-content h4 {
        font-size: 15px;
        margin-top: 15px;
    }
    
    .edar-policy-content ul,
    .edar-policy-content ol {
        padding-left: 18px;
        font-size: 13px;
    }
    
    .edar-policy-modal-footer {
        padding: 12px;
    }
    
    .edar-policy-modal-footer label {
        padding: 10px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .edar-policy-modal-footer input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    .edar-policy-modal-footer button {
        font-size: 13px !important;
        padding: 10px !important;
    }
    
    /* İade politikası checkbox mobil küçük ekran */
    #edar-policy-checkbox {
        width: 18px !important;
        height: 18px !important;
    }
    
    .edar-form-group label span {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    .edar-form-group label small {
        font-size: 10px !important;
        margin-top: 6px !important;
    }
    
    #edar-open-policy-link {
        display: block;
        margin-top: 8px;
        margin-left: 0 !important;
        font-size: 12px !important;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .edar-policy-modal-content {
        width: 85%;
        max-width: 700px;
    }
    
    .edar-policy-modal-body {
        padding: 22px 20px;
    }
    
    /* İade politikası checkbox tablet */
    #edar-policy-checkbox {
        width: 19px !important;
        height: 19px !important;
    }
    
    .edar-form-group label span {
        font-size: 13.5px !important;
    }
    
    .edar-form-group label small {
        font-size: 11.5px !important;
    }
}