/* Profile Page Styles */
.profile-main {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar Styles */
.profile-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-card {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.user-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #667eea;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.user-card h3 {
    margin: 0.5rem 0;
    color: #333;
}

.user-card p {
    color: #666;
    margin: 0.25rem 0;
}

.member-since {
    font-size: 0.9rem;
    color: #888;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-item.logout-btn {
    color: #ff4757;
    margin-top: 1rem;
}

.nav-item.logout-btn:hover {
    background: #ffeaea;
}

/* Main Content Styles */
.profile-main-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.profile-section h2 {
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Form Styles */
.profile-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    outline: none;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e9ecef;
}

/* Orders Section */
.orders-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.orders-list {
    min-height: 400px;
}

.no-orders,
.no-addresses {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-orders i,
.no-addresses i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.browse-products-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.browse-products-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Addresses Section */
.addresses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.add-address-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-address-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    min-height: 200px;
}

/* Security Section */
.security-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.security-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.security-card h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.toggle-switch label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #667eea;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.view-sessions-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-sessions-btn:hover {
    background: #5a6268;
}

/* Preferences Section */
.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.preference-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.preference-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preference-option {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preference-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.preference-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .security-options,
    .preferences-grid {
        grid-template-columns: 1fr;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
}



/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all {
    font-size: 0.85rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.widget-content {
    min-height: 150px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.summary-item i {
    width: 36px;
    height: 36px;
    background: #f0f4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.summary-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.quick-action i {
    font-size: 1.2rem;
}

/* Orders Page Specific */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.orders-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
}

.stat-item i {
    color: #667eea;
}

.orders-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-box select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: #f0f0f0;
}

.page-number.active {
    background: #667eea;
    color: white;
}

.order-actions-info {
    margin-top: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.action-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.action-card span {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-card small {
    color: #666;
    font-size: 0.85rem;
}

/* Addresses Page Specific */
.address-types-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.address-type-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e9ecef;
}

.address-type-card i {
    font-size: 1.5rem;
    color: #667eea;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.management-tips {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f0ff 100%);
    border-radius: 12px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.tip-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.bulk-actions {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.bulk-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.bulk-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.bulk-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.bulk-btn.danger {
    color: #ff4757;
    border-color: #ff4757;
}

.bulk-btn.danger:hover {
    background: #ff4757;
    color: white;
}

/* Security Page Specific */
.security-status {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.status-meter {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #5cb85c);
    border-radius: 4px;
}

.status-text {
    font-weight: 600;
    color: #28a745;
}

.status-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-item.good i {
    color: #28a745;
}

.status-item.medium i {
    color: #ffc107;
}

.status-item.low i {
    color: #ff4757;
}

.security-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.security-form {
    margin-top: 1.5rem;
}

.2fa-setup {
    margin-top: 1.5rem;
}

.2fa-methods {
    margin-top: 2rem;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.method-card i {
    font-size: 2rem;
    color: #667eea;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setup-btn {
    padding: 0.5rem 1.5rem;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.setup-btn:hover {
    background: #667eea;
    color: white;
}

.sessions-list {
    margin: 1.5rem 0;
}

.session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #6c757d;
}

.session-card.current {
    border-left-color: #28a745;
    background: #f0f9f0;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.session-info i {
    font-size: 1.5rem;
    color: #667eea;
}

.session-status {
    padding: 0.25rem 0.75rem;
    background: #6c757d;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
}

.session-status.current {
    background: #28a745;
}

.recovery-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recovery-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.recovery-card i {
    font-size: 2rem;
    color: #667eea;
}

.add-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: #667eea;
    color: white;
}

.alert-settings {
    margin-top: 1.5rem;
}

.danger-zone {
    background: #fff5f5;
    border: 1px solid #ff6b6b;
}

.danger-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.danger-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #ff4757;
    color: #ff4757;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: #ff4757;
    color: white;
}

.danger-warning {
    background: #ffeaea;
    padding: 1rem;
    border-radius: 6px;
    color: #cc0000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Preferences Page Specific */
.preferences-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.display-settings {
    margin-top: 1.5rem;
}

.privacy-settings,
.shopping-preferences {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.preference-option label span {
    font-weight: 500;
}

.preference-option small {
    display: block;
    color: #666;
    margin-left: 2rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.preference-option input[type="radio"] {
    margin-right: 0.5rem;
}

.accessibility-settings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preferences-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.export-btn {
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #5a6268;
}

/* Verification Section */
.verification-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.verification-status {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.verification-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e9ecef;
}

.verification-item.verified {
    border-color: #28a745;
    background: #f0f9f0;
}

.verification-item.pending {
    border-color: #ffc107;
    background: #fff9e6;
}

.verification-item i {
    font-size: 1.5rem;
}

.verification-item.verified i {
    color: #28a745;
}

.verification-item.pending i {
    color: #ffc107;
}

.verify-btn {
    padding: 0.5rem 1.5rem;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background: #e0a800;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* No Content States */
.no-orders,
.no-addresses,
.no-notifications {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-orders i,
.no-addresses i,
.no-notifications i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .orders-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .orders-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .address-types-info,
    .tips-grid,
    .recovery-options,
    .privacy-settings,
    .shopping-preferences {
        grid-template-columns: 1fr;
    }
    
    .preferences-actions {
        flex-direction: column;
    }
    
    .preferences-actions button {
        width: 100%;
    }
}

/* Order Cards */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.shipped {
    background: #d4edda;
    color: #155724;
}

.order-status.delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-actions button {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.order-actions button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Address Cards */
.address-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.address-card.default-address {
    border-color: #667eea;
    background: #f0f4ff;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.default-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.address-details p {
    margin: 0.5rem 0;
    color: #555;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.address-actions button {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.address-actions button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}


/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    border-left: 4px solid #28a745;
    font-weight: 500;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #ff4757;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #ff4757;
}

.notification.info i {
    color: #17a2b8;
}

/* ================================
   ENHANCED RESPONSIVE DESIGN
   ================================ */

/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .profile-main {
        max-width: 1600px;
    }
    
    .profile-content {
        grid-template-columns: 350px 1fr;
    }
    
    .dashboard-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .addresses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large tablets and small desktops (1024px to 1199px) */
@media (max-width: 1199px) and (min-width: 1025px) {
    .profile-content {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .addresses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    
    .dashboard-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .addresses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .security-options,
    .preferences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .verification-status {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small tablets and large phones (600px to 768px) */
@media (max-width: 768px) and (min-width: 601px) {
    .profile-main {
        padding: 1rem;
    }
    
    .profile-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-sidebar,
    .profile-main-content {
        padding: 1.5rem;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .security-options,
    .preferences-grid,
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .address-types-info {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .verification-status {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Mobile devices (480px to 600px) */
@media (max-width: 600px) and (min-width: 481px) {
    .profile-main {
        padding: 0.75rem;
    }
    
    .profile-header {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .profile-header h1 {
        font-size: 1.75rem;
    }
    
    .profile-header p {
        font-size: 1rem;
    }
    
    .profile-sidebar,
    .profile-main-content {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .user-avatar {
        width: 80px;
        height: 80px;
    }
    
    .change-avatar-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .nav-item {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .profile-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }
    
    .save-btn,
    .cancel-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .orders-filter {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .order-header,
    .address-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-actions,
    .address-actions {
        justify-content: center;
        width: 100%;
    }
    
    .order-actions button,
    .address-actions button {
        flex: 1;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .preferences-actions {
        flex-direction: column;
    }
    
    .preferences-actions button {
        width: 100%;
    }
    
    .dashboard-widget {
        padding: 1.25rem;
    }
    
    .summary-value {
        font-size: 1.1rem;
    }
    
    .method-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .session-card {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Small mobile devices (320px to 480px) */
@media (max-width: 480px) {
    .profile-main {
        padding: 0.5rem;
    }
    
    .profile-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .profile-header p {
        font-size: 0.9rem;
    }
    
    .profile-content {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .profile-sidebar,
    .profile-main-content {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .user-card {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .user-avatar {
        width: 70px;
        height: 70px;
    }
    
    .user-card h3 {
        font-size: 1.25rem;
    }
    
    .user-card p {
        font-size: 0.9rem;
    }
    
    .nav-item {
        padding: 0.65rem;
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
    
    .profile-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .profile-form {
        margin-top: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        border-width: 1px;
    }
    
    .form-actions {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .save-btn,
    .cancel-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .dashboard-widgets {
        margin-top: 1rem;
        gap: 0.75rem;
    }
    
    .dashboard-widget {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .widget-header {
        margin-bottom: 1rem;
    }
    
    .widget-header h3 {
        font-size: 1rem;
    }
    
    .summary-item {
        padding: 0.5rem 0;
    }
    
    .summary-value {
        font-size: 1rem;
    }
    
    .quick-action {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .orders-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-item {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
    
    .order-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .order-actions {
        justify-content: center;
    }
    
    .order-actions button {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    .address-card {
        padding: 1rem;
    }
    
    .address-details p {
        font-size: 0.9rem;
    }
    
    .address-actions button {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
    
    .security-card,
    .preference-card {
        padding: 1rem;
    }
    
    .toggle-switch label {
        width: 50px;
        height: 25px;
    }
    
    .toggle-slider:before {
        height: 18px;
        width: 18px;
        bottom: 3.5px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(25px);
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .notification {
        max-width: 90%;
        right: 5%;
        left: 5%;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 320px) {
    .profile-header h1 {
        font-size: 1.25rem;
    }
    
    .profile-header p {
        font-size: 0.85rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-card h3 {
        font-size: 1.1rem;
    }
    
    .nav-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .dashboard-widget {
        padding: 0.75rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
    
    .stat-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }
    
    .order-actions button,
    .address-actions button {
        min-width: 80px;
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .profile-main {
        padding: 0.5rem;
    }
    
    .profile-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .profile-content {
        margin-top: 0.5rem;
    }
    
    .profile-sidebar {
        position: static;
        padding: 1rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-main-content {
        padding: 1rem;
    }
    
    .dashboard-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .dashboard-widget {
        padding: 0.75rem;
    }
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
    .profile-header,
    .save-btn,
    .nav-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* Print styles */
@media print {
    .profile-sidebar,
    .profile-header,
    .form-actions,
    .order-actions,
    .address-actions,
    .dashboard-widget,
    .modal-overlay,
    .notification {
        display: none !important;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .profile-main-content {
        box-shadow: none;
        padding: 0;
    }
    
    .profile-section {
        display: block !important;
    }
    
    .order-card,
    .address-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}