/* ============================================
   Modern Account Pages - Unified Styling
   ============================================ */

/* ============================================
   Global Typography - Reduced Sizes
   ============================================ */

/* H1 - Main Page Titles (Reduced from 2.5rem to 1.75rem) */
#account-login h1,
#account-register h1,
#account-account h1,
#account-edit h1,
#account-password h1,
#account-address h1,
#account-order h1,
#account-wishlist h1,
#account-newsletter h1,
#account-subscription h1,
#account-download h1,
#account-reward h1,
#account-transaction h1,
#account-return h1,
#account-payment-method h1 {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem !important;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px !important;
    margin-top: 0 !important;
}

/* H2 - Section Titles (Reduced from 1.75rem to 1.25rem) */
#account-login h2,
#account-register h2,
#account-account h2,
#account-edit h2,
#account-password h2,
#account-address h2,
#account-order h2,
#account-wishlist h2,
#account-newsletter h2,
#account-subscription h2,
#account-download h2,
#account-reward h2,
#account-transaction h2,
#account-return h2,
#account-payment-method h2 {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px !important;
    margin-top: 32px !important;
}

/* H3 - Card/Item Titles (Reduced from 1.5rem to 1.125rem) */
#account-login h3,
#account-register h3,
#account-account h3,
#account-edit h3,
#account-password h3,
#account-address h3,
#account-order h3,
#account-wishlist h3,
#account-newsletter h3,
#account-subscription h3,
#account-download h3,
#account-reward h3,
#account-transaction h3,
#account-return h3,
#account-payment-method h3 {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem !important;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px !important;
}

/* H4 - Sub-section Titles (New - 1rem) */
#account-login h4,
#account-register h4,
#account-account h4,
#account-edit h4,
#account-password h4,
#account-address h4,
#account-order h4,
#account-wishlist h4,
#account-newsletter h4,
#account-subscription h4,
#account-download h4,
#account-reward h4,
#account-transaction h4,
#account-return h4,
#account-payment-method h4 {
    font-size: 1rem !important;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px !important;
}

/* ============================================
   Account Page Container - Unified Background
   ============================================ */

#account-login,
#account-register,
#account-account,
#account-edit,
#account-password,
#account-address,
#account-order,
#account-wishlist,
#account-newsletter,
#account-subscription,
#account-download,
#account-reward,
#account-transaction,
#account-return,
#account-payment-method {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* ============================================
   Content Container - Unified Card Style
   ============================================ */

#account-login #content,
#account-register #content,
#account-account #content,
#account-edit #content,
#account-password #content,
#account-address #content,
#account-order #content,
#account-wishlist #content,
#account-newsletter #content,
#account-subscription #content,
#account-download #content,
#account-reward #content,
#account-transaction #content,
#account-return #content,
#account-payment-method #content {
    border-radius: 16px;
    padding: 0 40px 40px 40px;
}

/* ============================================
   Modern Card Styling for Nested Content
   ============================================ */

.account-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.account-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   Form Styling - Unified
   ============================================ */

/* Form Groups */
.modern-form-group,
.form-group {
    margin-bottom: 20px;
}

/* Form Labels */
.modern-form-label,
label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modern-form-label .text-danger,
label .text-danger {
    color: #ef4444;
    margin-left: 4px;
}

/* Form Controls */
.modern-form-control,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #1f2937;
}

.modern-form-control:focus,
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modern-form-control.is-invalid,
.form-control.is-invalid,
input.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.modern-form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Form Text / Hints */
.modern-form-text,
.form-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 6px;
    display: block;
}

.modern-form-text a,
.form-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.modern-form-text a:hover,
.form-text a:hover {
    text-decoration: underline;
}

/* ============================================
   Buttons - Unified Style
   ============================================ */

/* Primary Buttons */
.btn-primary,
.btn-modern-primary {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white !important;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover,
.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    color: white !important;
}

.btn-primary i,
.btn-modern-primary i {
    margin-right: 6px;
}

/* Secondary Buttons */
.btn-secondary,
.btn-modern-secondary,
.btn-light {
    display: inline-block;
    background: white;
    color: #2563eb !important;
    padding: 14px 28px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-secondary:hover,
.btn-modern-secondary:hover,
.btn-light:hover {
    background: #f9fafb;
    border-color: #2563eb;
    transform: translateY(-1px);
    color: #2563eb !important;
}

/* Danger Buttons */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* ============================================
   Account Dashboard Grid - Unified
   ============================================ */

.account-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.account-dashboard-item {
    background: white;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.account-dashboard-item:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.account-dashboard-item i {
    font-size: 2.25rem;
    color: #2563eb;
    margin-bottom: 12px;
    display: block;
}

.account-dashboard-item h3 {
    font-size: 1.125rem !important;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px !important;
}

.account-dashboard-item p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   List Styling - Unified
   ============================================ */

.account-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.account-list-item {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.account-list-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.account-list-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.account-list-item-icon i {
    color: #2563eb;
    font-size: 1.5rem;
}

.account-list-item-content {
    flex: 1;
}

.account-list-item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.account-list-item-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ============================================
   Table Styling - Unified
   ============================================ */

.table,
.table-bordered,
.table-hover {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead,
.table-bordered thead,
.table-hover thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.table th,
.table-bordered th,
.table-hover th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    color: #1f2937;
    font-size: 0.9rem;
    border-bottom: 2px solid #e5e7eb;
}

.table td,
.table-bordered td,
.table-hover td {
    padding: 14px 20px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.table tbody tr:hover,
.table-hover tbody tr:hover {
    background: #f9fafb;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Alert Messages - Unified
   ============================================ */

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: none;
    font-size: 0.95rem;
}

.alert-success,
.modern-alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #2563eb;
}

/* ============================================
   Checkbox and Radio - Unified
   ============================================ */

.modern-checkbox,
.modern-radio {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    cursor: pointer;
}

.modern-checkbox input[type="checkbox"],
.modern-radio input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #2563eb;
}

.modern-checkbox label,
.modern-radio label {
    cursor: pointer;
    color: #374151;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Breadcrumbs - Hide/Simplify
   ============================================ */

.breadcrumb {
    display: none;
}

/* ============================================
   Newsletter Toggle - Unified
   ============================================ */

.newsletter-toggle {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.newsletter-toggle-content {
    flex: 1;
}

.newsletter-toggle-content h3 {
    margin-bottom: 8px !important;
}

.newsletter-toggle-switch {
    width: 60px;
    height: 32px;
    background: #d1d5db;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-toggle-switch.active {
    background: #2563eb;
}

.newsletter-toggle-switch::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}

.newsletter-toggle-switch.active::after {
    left: 30px;
}

/* ============================================
   Fieldset/Legend - Unified
   ============================================ */

fieldset {
    border: none;
    padding: 0;
    margin-bottom: 32px;
}

legend {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

legend i {
    color: #2563eb;
    margin-right: 8px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    #account-login h1,
    #account-register h1,
    #account-account h1,
    #account-edit h1,
    #account-password h1,
    #account-address h1,
    #account-order h1,
    #account-wishlist h1,
    #account-newsletter h1,
    #account-subscription h1,
    #account-download h1,
    #account-reward h1,
    #account-transaction h1,
    #account-return h1,
    #account-payment-method h1 {
        font-size: 1.5rem !important;
    }

    #account-login h2,
    #account-register h2,
    #account-account h2,
    #account-edit h2,
    #account-password h2,
    #account-address h2,
    #account-order h2,
    #account-wishlist h2,
    #account-newsletter h2,
    #account-subscription h2,
    #account-download h2,
    #account-reward h2,
    #account-transaction h2,
    #account-return h2,
    #account-payment-method h2 {
        font-size: 1.125rem !important;
    }

    .account-card {
        padding: 24px 20px;
    }

    #account-login #content,
    #account-register #content,
    #account-account #content,
    #account-edit #content,
    #account-password #content,
    #account-address #content,
    #account-order #content,
    #account-wishlist #content,
    #account-newsletter #content,
    #account-subscription #content,
    #account-download #content,
    #account-reward #content,
    #account-transaction #content,
    #account-return #content,
    #account-payment-method #content {
        padding: 24px;
    }

    .account-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .table th,
    .table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.text-start {
    text-align: left;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.d-grid {
    display: grid;
}

.gap-3 {
    gap: 1rem;
}
