/* ==================== OPTIMIZED FONT SIZE (20% smaller than previous) ==================== */

/* Base font - BALANCED SIZE */
html {
    font-size: 15px !important;
    /* Was 18px, now reduced by ~17% for balance */
}

body,
body * {
    font-size: 1rem !important;
}

/* Headers - Well balanced */
h1,
.h1 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
}

h2,
.h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}

h3,
.h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

h4,
.h4 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

h5,
.h5 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

h6,
.h6 {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Page heading */
.page_heading,
#current_page_title {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
}

/* Tables */
.table,
.table * {
    font-size: 0.95rem !important;
}

.table thead th {
    font-size: 0.95rem !important;
}

/* Buttons */
.btn,
button {
    font-size: 0.95rem !important;
}

.btn-sm {
    font-size: 0.875rem !important;
}

/* Forms */
label,
.form-label {
    font-size: 0.95rem !important;
}

.form-control,
input,
select,
textarea {
    font-size: 0.95rem !important;
}

/* Badges */
.badge {
    font-size: 0.875rem !important;
}

/* Cards */
.card-title {
    font-size: 1.2rem !important;
}

.card-text,
.card-body {
    font-size: 0.95rem !important;
}

/* Sidebar */
.sidebar-nav .nav-link {
    font-size: 0.95rem !important;
}

/* Order details - Balanced */
.c-orders-info--title {
    font-size: 1.8rem !important;
}

.c-order-details-itembox-item--name span {
    font-size: 1.1rem !important;
}

.c-order-details-itembox-item--total {
    font-size: 1.3rem !important;
}

.c-order-details-paymemntbox--listTotal .c-order-details-paymentbox--count {
    font-size: 1.6rem !important;
}

/* Paragraphs */
p {
    font-size: 0.95rem !important;
}

/* Lists */
li {
    font-size: 0.95rem !important;
}

/* Small text */
small,
.small {
    font-size: 0.8125rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px !important;
    }
}

/* ==================== MODAL FIXES ==================== */

.modal-backdrop {
    z-index: 1040 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1051 !important;
}

.modal.show {
    display: block !important;
    opacity: 1 !important;
}

.modal.show .modal-dialog {
    transform: translate(0, 0) !important;
}

#domainWizardModal {
    z-index: 1055 !important;
}

#domainWizardModal .modal-dialog {
    margin: 1.75rem auto;
    max-width: 800px;
}

#domainWizardModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-title {
    font-size: 1.3rem !important;
}

.modal-body {
    font-size: 0.95rem !important;
}