/* Layout styles: core section and structural layout rules. */

/* Section Styles */
section {
    padding: 15px;
    padding-bottom: 80px; /* Extra padding to ensure content is visible above navbar */
    transition: var(--transition);
}

.active-section {
    display: block;
}

.hidden-section {
    display: none;
}

.section-header {
    margin-bottom: 20px;
    text-align: center;
    position: sticky;
    top: 12px;
    z-index: 1100;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32));
    backdrop-filter: blur(34px) saturate(180%) contrast(108%);
    -webkit-backdrop-filter: blur(34px) saturate(180%) contrast(108%);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 15px;
    padding: 10px 14px;
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.section-header:has(.top-links-inline) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-header:has(.top-links-inline) h1 {
    order: 1;
}

.section-header:has(.top-links-inline) .top-links-inline {
    order: 2;
}

/* Shared glass style to match wholesale/retail headers exactly */
.glass-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32)) !important;
    backdrop-filter: blur(34px) saturate(180%) contrast(108%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(180%) contrast(108%) !important;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.24) !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 15px !important;
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    position: sticky !important;
    top: 12px !important;
    z-index: 1200 !important;
    margin-left: 0;
    margin-right: 0;
}

.section-header h1 {
    font-size: 1.12rem;
    line-height: 1.35;
    color: #1f2937;
    font-weight: 500;
    padding: 0;
    margin: 0;
    position: relative;
    text-shadow: none;
    max-width: 100%;
    overflow-wrap: break-word;
}

.section-header h1::after {
    content: none;
}

.wholesale-lock-modal {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wholesale-lock-modal.hidden {
    display: none;
}

.wholesale-lock-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.wholesale-lock-card {
    position: relative;
    width: min(420px, 100%);
    border-radius: 18px;
    padding: 20px 18px 16px;
    text-align: center;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
    animation: confirm-pop-in 0.18s ease-out;
}

.wholesale-lock-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: grid;
    place-items: center;
    font-size: 23px;
    position: relative;
}

.wholesale-lock-icon-badge {
    position: absolute;
    left: 50%;
    bottom: 13px;
    width: 24px;
    height: 20px;
    border-radius: 6px;
    background: #16a34a;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.22);
    transform: translateX(-50%);
}

.wholesale-lock-icon-badge::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -13px;
    width: 16px;
    height: 15px;
    border: 3px solid #16a34a;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    transform: translateX(-50%);
}

.wholesale-lock-icon-badge::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #dcfce7;
    transform: translateX(-50%);
}

.wholesale-lock-card h3 {
    margin: 0 0 16px;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.9;
    font-weight: 400;
}

.wholesale-lock-register-btn {
    width: 100%;
    border: 1px solid #16a34a;
    border-radius: 10px;
    padding: 11px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    background: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wholesale-lock-register-btn:active {
    transform: translateY(1px);
}

.wholesale-lock-register-btn:hover {
    background: #15803d;
    border-color: #15803d;
}
