/* ===== Account Pages Styling ===== */

.account-section {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Account Card */
.account-card {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.account-card.register-card,
.account-card.address-form-card {
    max-width: 600px;
}

/* Account Header */
.account-header {
    text-align: center;
    margin-bottom: 32px;
}

.account-header.success .account-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.account-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e5002b 0%, #ff3d5a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(229, 0, 43, 0.25);
}

.account-icon i {
    font-size: 2rem;
    color: white;
}

.account-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.account-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Form Styling */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.form-label i {
    color: #64748b;
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 200ms ease;
}

.form-control:focus {
    outline: none;
    border-color: #e5002b;
    background: white;
    box-shadow: 0 0 0 4px rgba(229, 0, 43, 0.1);
}

.form-control:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: #e5002b;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
}

.checkbox-label input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #e5002b;
}

.checkbox-label.required span::after {
    content: '*';
    color: #e5002b;
    margin-left: 2px;
}

.forgot-link {
    color: #e5002b;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Submit Button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #e5002b 0%, #ff3d5a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 4px 16px rgba(229, 0, 43, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 0, 43, 0.4);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Account Footer */
.account-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.account-footer p {
    color: #64748b;
    margin-bottom: 16px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-warning div {
    flex: 1;
}

.alert-warning strong {
    display: block;
    margin-bottom: 4px;
}

.alert-warning p {
    margin: 0 0 8px;
    font-size: 0.85rem;
}

.btn-link {
    background: none;
    border: none;
    color: #e5002b;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    color: #0369a1;
    margin-bottom: 24px;
}

.info-box i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Profile Section */
.profile-section {
    padding: 40px 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.profile-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-header h1 i {
    color: #e5002b;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

.btn-logout:hover {
    background: #fecaca;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.profile-card.addresses-card {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card.addresses-card {
        grid-column: span 1;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.card-header h2 i {
    color: #e5002b;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e5002b;
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

.btn-add:hover {
    background: #c7002a;
    color: white;
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form .form-control {
    padding: 12px 14px;
    font-size: 0.95rem;
}

.profile-form .btn-submit {
    margin-top: 8px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #059669;
    margin-top: 4px;
}

.account-info {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.account-info p {
    margin: 8px 0;
}

/* Addresses */
.addresses-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .addresses-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .addresses-list {
        grid-template-columns: 1fr;
    }
}

.address-item,
.address-card {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.address-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge.shipping {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge.billing {
    background: #fef3c7;
    color: #b45309;
}

.address-item h4,
.address-card h3 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.address-item p,
.address-details p {
    font-size: 0.85rem;
    color: #475569;
    margin: 2px 0;
    line-height: 1.4;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px;
    color: #e5002b;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px dashed #e2e8f0;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
}

.btn-add-first {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #e5002b;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

.btn-add-first:hover {
    background: #c7002a;
    color: white;
}

/* Addresses Section */
.addresses-section .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 200ms ease;
}

.back-link:hover {
    background: #e5002b;
    color: white;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .addresses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

.address-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid transparent;
    transition: all 200ms ease;
}

.address-card:hover {
    border-color: #e5002b;
    box-shadow: 0 8px 24px rgba(229, 0, 43, 0.1);
}

.address-card h3 {
    font-size: 1.1rem;
}

.address-details {
    margin: 16px 0;
}

.address-details p i {
    margin-right: 6px;
    color: #64748b;
}

.address-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.btn-edit,
.btn-delete {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: #f1f5f9;
    color: #475569;
}

.btn-edit:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fecaca;
}

/* Address Form */
.address-form-card .page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.address-form-card h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.address-form-card h1 i {
    color: #e5002b;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.form-actions .btn-secondary {
    flex: 0 0 auto;
    width: auto;
    padding: 14px 24px;
}

.form-actions .btn-submit {
    flex: 1;
}

/* Text Validation */
.text-danger {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 4px;
}

/* Select Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding: 14px 40px 14px 16px;
    line-height: 1.5;
    display: block;
    height: auto;
    min-height: 48px;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Profile form select boxes - ensure proper vertical alignment */
.profile-form select.form-control {
    padding: 12px 40px 12px 14px;
    line-height: 1.5;
    display: block;
    height: auto;
    min-height: 44px;
    box-sizing: border-box;
    vertical-align: middle;
}

.profile-form select.form-control option {
    padding: 8px 12px;
    line-height: 1.5;
}

/* Account form select boxes (login, register, address forms) */
.account-form select.form-control,
.address-form select.form-control {
    padding: 14px 40px 14px 16px;
    line-height: 1.5;
    display: block;
    height: auto;
    min-height: 48px;
    box-sizing: border-box;
    vertical-align: middle;
}

.account-form select.form-control option,
.address-form select.form-control option {
    padding: 10px 12px;
    line-height: 1.5;
}

