/* ============================================
   PUBLIC PAGES - SHARED DESIGN SYSTEM
   Reuses :root variables from home-page.css
   BEM naming, responsive-first, Inter font
   ============================================ */

/* ============================================
   BASE
   ============================================ */

.public-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--home-n700, #3F3F46);
    background: var(--home-n100, #F5F5F5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.public-main {
    min-height: calc(100vh - 70px - 300px);
    padding-top: 0; /* member-header-spacer handles this */
}

/* ============================================
   PAGE SHELL (Container widths)
   ============================================ */

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.page-shell--narrow {
    max-width: 520px;
}

.page-shell--medium {
    max-width: 800px;
}

.page-shell--wide {
    max-width: 1200px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--home-n900, #171717);
    line-height: 1.2;
    margin: 0;
}

.page-subtitle {
    font-size: 15px;
    color: var(--home-n500, #737373);
    margin-top: 8px;
    line-height: 1.5;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--home-n900, #171717);
    margin-bottom: 16px;
}

/* ============================================
   CARDS
   ============================================ */

.card-public {
    background: #fff;
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 16px;
    padding: 32px;
}

.card-public--elevated {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: none;
}

/* ============================================
   AUTH LAYOUT - Split background + card
   ============================================ */

.auth-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Decorative left panel */
.auth-bg {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1A0A00 0%, #3D1700 35%, #F36707 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
}

.auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(243,103,7,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(116,154,23,0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.auth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%),
        linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%),
        linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%),
        linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    pointer-events: none;
}

.auth-bg__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.auth-bg__logo-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--home-n50, #FAFAFA);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
    animation: authLogoFloat 6s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.auth-bg__logo-wrap:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 24px rgba(243,103,7,0.4));
}

@keyframes authLogoFloat {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 12px rgba(243,103,7,0.25));
    }
    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 0 20px rgba(243,103,7,0.35));
    }
}

.auth-bg__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-bg__tagline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
    max-width: 360px;
}

.auth-bg__text {
    font-size: 15px;
    opacity: 0.75;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

/* ---- Role-based dynamic blocks (register page) ---- */

.auth-bg__role {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    text-align: center;
}

.auth-bg__role.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-bg__role.is-entering {
    animation: authRoleEnter 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.auth-bg__role.is-exiting {
    display: block;
    animation: authRoleExit 0.15s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

@keyframes authRoleExit {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}

/* Tagline — hero text, tight tracking, centered */
.auth-bg__role .auth-bg__tagline {
    margin: 0 auto 8px;
    font-size: 26px;
    letter-spacing: -0.02em;
    max-width: 320px;
}

/* Subtitle — secondary, muted, aligned with tagline */
.auth-bg__role .auth-bg__text {
    font-size: 14px;
    opacity: 0.5;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
}

/* Features list */
.auth-bg__features {
    list-style: none;
    padding: 0;
    margin: 20px auto 0;
    max-width: 280px;
    text-align: left;
}

.auth-bg__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

/* Icon container — glass orange box, white icon */
.auth-bg__feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(243, 103, 7, 0.35);
    border: 1px solid rgba(243, 103, 7, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

/* Right side - card area */
.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #09090B;
    overflow-y: auto;
}

/* Auth card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px 36px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Register variant: wider card, tighter spacing */
.auth-card--register {
    max-width: 560px;
    padding: 32px 28px;
}

.auth-card--register .form-field {
    margin-bottom: 14px;
}

.auth-card--register .form-input,
.auth-card--register .form-select {
    padding: 10px 14px;
}

.auth-card--register .form-label {
    margin-bottom: 4px;
}

.auth-card--register .form-radio-group {
    margin-bottom: 14px;
}

/* Bootstrap form class bridge for dynamic fields (handle_field.blade.php)
   Scoped to .auth-card so it doesn't leak to other pages */
.auth-card .js-form-fields-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.auth-card .form-group {
    margin-bottom: 14px;
}

.auth-card .input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(250,250,250,0.55);
    margin-bottom: 4px;
}

.auth-card .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #FAFAFA;
    background-color: rgba(255,255,255,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-card .form-control:focus {
    outline: none;
    border-color: var(--home-primary, #F36707);
    box-shadow: 0 0 0 3px rgba(243,103,7,0.1);
}

.auth-card .form-control.is-invalid {
    border-color: #EF4444;
}

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

.auth-card .invalid-feedback {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
}

.auth-card .invalid-feedback.d-block {
    display: block;
}

.auth-card textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Textarea and toggle groups span full width in 2-col grid */
.auth-card .js-form-fields-card > .form-group:has(textarea),
.auth-card .js-form-fields-card > .mb-20 {
    grid-column: 1 / -1;
}

/* Input group (upload, date picker) */
.auth-card .input-group {
    display: flex;
    align-items: stretch;
}

.auth-card .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    flex: 1;
}

.auth-card .input-group-prepend {
    display: flex;
}

.auth-card .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--home-primary, #F36707);
    border: 1px solid var(--home-primary, #F36707);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* Select/dropdown */
.auth-card select.form-control {
    appearance: none;
    background: rgba(255,255,255,0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FAFAFA80'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 16px;
    cursor: pointer;
}

/* Native dropdown list items - dark bg so text is visible */
.auth-card select.form-control option,
.auth-card .form-select option {
    background: #18181B;
    color: #FAFAFA;
}

/* Checkbox / Radio / Toggle - custom controls */
.auth-card .custom-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.auth-card .custom-control-input {
    width: 18px;
    height: 18px;
    accent-color: var(--home-primary, #F36707);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-card .custom-control-label {
    font-size: 14px;
    color: rgba(250,250,250,0.55);
    cursor: pointer;
    line-height: 1.4;
}

/* Toggle/switch override */
.auth-card .custom-switch .custom-control-input {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255,255,255,0.15);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-card .custom-switch .custom-control-input::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.auth-card .custom-switch .custom-control-input:checked {
    background: var(--home-primary, #F36707);
}

.auth-card .custom-switch .custom-control-input:checked::before {
    transform: translateX(18px);
}

.auth-card .custom-switch .custom-control-label {
    display: none;
}

/* Bootstrap utility bridges for dynamic fields */
.auth-card .mb-20 { margin-bottom: 14px; }
.auth-card .mt-10 { margin-top: 8px; }
.auth-card .mr-10 { margin-right: 8px; }
.auth-card .mb-0 { margin-bottom: 0; }
.auth-card .font-14 { font-size: 14px; }
.auth-card .d-flex { display: flex; }
.auth-card .d-block { display: block; }
.auth-card .align-items-center { align-items: center; }
.auth-card .cursor-pointer { cursor: pointer; }
.auth-card .text-white { color: #fff; }

.auth-card__title {
    font-size: 26px;
    font-weight: 700;
    color: #FAFAFA;
    text-align: center;
    margin: 0 0 4px;
}

.auth-card__subtitle {
    font-size: 14px;
    color: rgba(250,250,250,0.5);
    text-align: center;
    margin: 0 0 28px;
}

.auth-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(243,103,7,0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.auth-card__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(250,250,250,0.5);
}

/* ============================================
   FORMS
   ============================================ */

.form-field {
    margin-bottom: 18px;
}

.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--home-n700, #3F3F46);
    margin-bottom: 6px;
}

.auth-card .form-label {
    color: rgba(250,250,250,0.55);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--home-n900, #171717);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-card .form-input,
.auth-card .form-select {
    background-color: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #FAFAFA;
}

.form-input:focus {
    outline: none;
    border-color: var(--home-primary, #F36707);
    box-shadow: 0 0 0 3px rgba(243,103,7,0.1);
}

.form-input::placeholder {
    color: var(--home-n400, #A3A3A3);
}

.auth-card .form-input::placeholder {
    color: rgba(250,250,250,0.22);
}

.form-input--error {
    border-color: #EF4444;
}

.form-input--error:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
}

.form-hint {
    font-size: 12px;
    color: var(--home-n400, #A3A3A3);
    margin-top: 4px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--home-n900, #171717);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23A3A3A3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 16px;
    appearance: none;
    box-sizing: border-box;
    cursor: pointer;
}

.auth-card .form-select {
    background: rgba(255,255,255,0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FAFAFA80'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 16px;
}

.form-select:focus {
    outline: none;
    border-color: var(--home-primary, #F36707);
    box-shadow: 0 0 0 3px rgba(243,103,7,0.1);
}

/* Checkbox / Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check__input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--home-primary, #F36707);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check__label {
    font-size: 14px;
    color: var(--home-n700, #3F3F46);
    cursor: pointer;
    line-height: 1.4;
}

.auth-card .form-check__label {
    color: rgba(250,250,250,0.55);
}

/* Radio group (role selection) */
.form-radio-group {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.form-radio-item {
    flex: 1;
    position: relative;
}

.form-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-radio-item label {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--home-n600, #525252);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-card .form-radio-item label {
    border-color: rgba(255,255,255,0.1);
    color: rgba(250,250,250,0.55);
}

.form-radio-item input[type="radio"]:checked + label {
    border-color: var(--home-primary, #F36707);
    background: rgba(243,103,7,0.05);
    color: var(--home-primary, #F36707);
    font-weight: 600;
}

.auth-card .form-radio-item input[type="radio"]:checked + label {
    background: rgba(243,103,7,0.1);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary-public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--home-primary, #F36707);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-primary-public:hover {
    background: var(--home-primary-hover, #e55a00);
    box-shadow: 0 4px 12px rgba(243,103,7,0.25);
}

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

.btn-outline-public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: var(--home-n700, #3F3F46);
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-card .btn-outline-public {
    color: rgba(250,250,250,0.7);
    border-color: rgba(255,255,255,0.15);
}

.btn-outline-public:hover {
    border-color: var(--home-n300, #D4D4D4);
    background: var(--home-n100, #F5F5F5);
}

.auth-card .btn-outline-public:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
}

.btn-green-public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--home-green, #749A17);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-green-public:hover {
    background: var(--home-green-hover, #628214);
}

.btn-sm-public {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 8px;
    width: auto;
}

.btn-inline {
    width: auto;
    display: inline-flex;
}

/* ============================================
   CAPTCHA
   ============================================ */

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row__input {
    flex: 1;
    max-width: 140px;
}

.captcha-row__image {
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--home-n200, #E5E5E5);
}

.auth-card .captcha-row__image {
    border-color: rgba(255,255,255,0.1);
}

.captcha-row__refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 8px;
    background: #fff;
    color: var(--home-n500, #737373);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.auth-card .captcha-row__refresh {
    background: transparent;
    border-color: rgba(255,255,255,0.1);
    color: rgba(250,250,250,0.35);
}

.captcha-row__refresh:hover {
    border-color: var(--home-primary, #F36707);
    color: var(--home-primary, #F36707);
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--home-n400, #A3A3A3);
    font-size: 13px;
    margin: 24px 0;
}

.auth-card .divider {
    color: rgba(250,250,250,0.35);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--home-n200, #E5E5E5);
}

.auth-card .divider::before,
.auth-card .divider::after {
    background: rgba(255,255,255,0.1);
}

/* ============================================
   LINKS
   ============================================ */

.link {
    color: var(--home-primary, #F36707);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link:hover {
    text-decoration: underline;
    color: var(--home-primary-hover, #e55a00);
}

/* ============================================
   ALERTS
   ============================================ */

.alert-public {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-public--success {
    background: rgba(116,154,23,0.08);
    color: var(--home-green, #749A17);
    border: 1px solid rgba(116,154,23,0.2);
}

.alert-public--error {
    background: rgba(239,68,68,0.06);
    color: #DC2626;
    border: 1px solid rgba(239,68,68,0.15);
}

.alert-public--info {
    background: rgba(59,130,246,0.06);
    color: #2563EB;
    border: 1px solid rgba(59,130,246,0.15);
}

.alert-public__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--home-n700, #3F3F46);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 10px;
}

.auth-card .social-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: rgba(250,250,250,0.7);
}

.social-btn:hover {
    border-color: var(--home-n300, #D4D4D4);
    background: var(--home-n100, #F5F5F5);
}

.auth-card .social-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.social-btn__icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   CART STYLES
   ============================================ */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: flex-start;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--home-n200, #E5E5E5);
}

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

.cart-item__image {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--home-n900, #171717);
    margin: 0 0 4px;
}

.cart-item__meta {
    font-size: 13px;
    color: var(--home-n500, #737373);
}

.cart-item__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--home-primary, #F36707);
    white-space: nowrap;
}

.cart-item__price--old {
    font-size: 13px;
    color: var(--home-n400, #A3A3A3);
    text-decoration: line-through;
    font-weight: 400;
}

.cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--home-n100, #F5F5F5);
    color: var(--home-n500, #737373);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-item__remove:hover {
    background: rgba(239,68,68,0.1);
    color: #EF4444;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    position: sticky;
    top: 90px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--home-n600, #525252);
}

.cart-summary__row--total {
    border-top: 1px solid var(--home-n200, #E5E5E5);
    margin-top: 8px;
    padding-top: 16px;
    font-weight: 700;
    font-size: 16px;
    color: var(--home-n900, #171717);
}

.cart-summary__value {
    font-weight: 600;
}

/* Payment gateways */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border: 2px solid var(--home-n200, #E5E5E5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fff;
}

.payment-option input[type="radio"]:checked + .payment-option__label {
    border-color: var(--home-primary, #F36707);
    background: rgba(243,103,7,0.03);
}

.payment-option__image {
    width: 80px;
    height: 40px;
    object-fit: contain;
}

.payment-option__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--home-n700, #3F3F46);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.empty-state__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-state__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--home-n900, #171717);
    margin: 0 0 8px;
}

.empty-state__text {
    font-size: 15px;
    color: var(--home-n500, #737373);
    margin: 0 0 24px;
}

/* ============================================
   STATUS PAGE
   ============================================ */

.status-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.status-page__icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.status-page__icon--success {
    background: rgba(116,154,23,0.1);
    color: var(--home-green, #749A17);
}

.status-page__icon--error {
    background: rgba(239,68,68,0.1);
    color: #EF4444;
}

.status-page__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--home-n900, #171717);
    margin: 0 0 8px;
}

.status-page__text {
    font-size: 15px;
    color: var(--home-n500, #737373);
    margin: 0 0 32px;
    max-width: 500px;
}

/* ============================================
   STATIC PAGE CONTENT
   ============================================ */

.static-content {
    line-height: 1.7;
    color: var(--home-n700, #3F3F46);
}

.static-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--home-n900, #171717);
    margin: 32px 0 12px;
}

.static-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--home-n800, #27272A);
    margin: 24px 0 8px;
}

.static-content p {
    margin: 0 0 16px;
    font-size: 15px;
}

.static-content ul,
.static-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.static-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

.static-content a {
    color: var(--home-primary, #F36707);
}

.static-content strong {
    font-weight: 600;
    color: var(--home-n800, #27272A);
}

/* Last updated badge */
.static-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--home-n400, #A3A3A3);
    margin-bottom: 24px;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
    border-bottom: 1px solid var(--home-n200, #E5E5E5);
}

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

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--home-n900, #171717);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 16px;
}

.faq-item__question:hover {
    color: var(--home-primary, #F36707);
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--home-n400, #A3A3A3);
}

.faq-item__answer {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--home-n600, #525252);
    line-height: 1.6;
}

/* ============================================
   INSTRUCTOR CARDS
   ============================================ */

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.instructor-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.instructor-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.instructor-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.instructor-card__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--home-n900, #171717);
    margin: 0 0 4px;
}

.instructor-card__bio {
    font-size: 13px;
    color: var(--home-n500, #737373);
    margin: 0 0 12px;
}

.instructor-card__stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--home-n500, #737373);
}

.instructor-card__stat-value {
    font-weight: 600;
    color: var(--home-n800, #27272A);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.contact-info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-info-card__icon--orange {
    background: rgba(243,103,7,0.1);
    color: var(--home-primary, #F36707);
}

.contact-info-card__icon--green {
    background: rgba(116,154,23,0.1);
    color: var(--home-green, #749A17);
}

.contact-info-card__icon--blue {
    background: rgba(59,130,246,0.1);
    color: #3B82F6;
}

.contact-info-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--home-n900, #171717);
    margin: 0 0 4px;
}

.contact-info-card__text {
    font-size: 14px;
    color: var(--home-n500, #737373);
    margin: 0;
    line-height: 1.5;
}

/* Form two-column row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   PRICING / PACKAGES
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--home-n200, #E5E5E5);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.pricing-card--featured {
    border: 2px solid var(--home-primary, #F36707);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--home-primary, #F36707);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--home-n900, #171717);
    margin: 0 0 8px;
}

.pricing-card__price {
    font-size: 36px;
    font-weight: 700;
    color: var(--home-primary, #F36707);
    margin: 0 0 4px;
}

.pricing-card__period {
    font-size: 14px;
    color: var(--home-n500, #737373);
    margin: 0 0 24px;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.pricing-card__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--home-n700, #3F3F46);
}

.pricing-card__feature-icon {
    width: 18px;
    height: 18px;
    color: var(--home-green, #749A17);
    flex-shrink: 0;
}

/* ============================================
   HERO / BANNER
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, var(--home-n900, #171717) 0%, #2D1B0E 100%);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
}

.page-hero__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
}

.page-hero__subtitle {
    font-size: 16px;
    opacity: 0.8;
    margin: 0;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 24px;
}

.error-page__code {
    font-size: 120px;
    font-weight: 800;
    color: var(--home-n200, #E5E5E5);
    line-height: 1;
    margin: 0;
}

.error-page__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--home-n900, #171717);
    margin: 16px 0 8px;
}

.error-page__text {
    font-size: 15px;
    color: var(--home-n500, #737373);
    margin: 0 0 32px;
    max-width: 400px;
}

/* ============================================
   BECOME INSTRUCTOR
   ============================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.benefit-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(243,103,7,0.1);
    color: var(--home-primary, #F36707);
}

.benefit-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--home-n900, #171717);
    margin: 0 0 6px;
}

.benefit-card__text {
    font-size: 14px;
    color: var(--home-n500, #737373);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet: narrower left panel */
@media (min-width: 769px) and (max-width: 1024px) {
    .auth-bg {
        flex: 0 0 38%;
        max-width: 38%;
        padding: 40px 24px;
    }

    .auth-bg__logo-wrap {
        width: 96px;
        height: 96px;
        padding: 12px;
        margin-bottom: 20px;
    }

    .auth-bg__role .auth-bg__tagline {
        font-size: 20px;
        max-width: 240px;
    }

    .auth-bg__role .auth-bg__text {
        font-size: 13px;
        max-width: 220px;
    }

    .auth-bg__feature {
        font-size: 13px;
        gap: 10px;
        padding: 5px 0;
    }

    .auth-bg__feature-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 6px;
    }

    .auth-bg__features {
        max-width: 240px;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding: 40px 16px;
    }

    .page-title {
        font-size: 24px;
    }

    /* Auth wrapper stacks on mobile */
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-bg {
        flex: none;
        max-width: 100%;
        padding: 40px 24px 32px;
        min-height: auto;
    }

    .auth-bg__tagline {
        font-size: 22px;
    }

    .auth-bg__features {
        display: none;
    }

    .auth-bg__role .auth-bg__tagline {
        font-size: 20px;
        max-width: 260px;
    }

    .auth-bg__logo-wrap {
        width: 88px;
        height: 88px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .auth-content {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card .js-form-fields-card {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .page-hero__title {
        font-size: 24px;
    }

    .error-page__code {
        font-size: 80px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY CLASSES (container, spacing)
   Replaces Bootstrap/Tailwind utilities used by
   existing pages (home, cart, etc.)
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 16px; padding-right: 16px; }

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 32px; padding-right: 32px; }
    .container { max-width: 1200px; }
}

/* ============================================
   BOOTSTRAP MODAL COMPATIBILITY
   Minimal styles so .modal.fade + data-dismiss
   work for checkout modal and other Bootstrap
   modals included on public pages.
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show { display: block; }

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.15s linear;
}
.modal-backdrop.show { opacity: 0.5; }

/* Modal open body scroll lock */
body.modal-open { overflow: hidden; }

/* ============================================
   BOOTSTRAP MODAL JS REPLACEMENT
   Lightweight JS is handled via a small inline
   script. This CSS ensures .fade transitions.
   ============================================ */

.modal.fade .modal-dialog {
    transform: translateY(-20px);
    transition: transform 0.2s ease-out;
}
.modal.fade.show .modal-dialog {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .page-shell {
        padding: 28px 12px;
    }

    .auth-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .auth-bg {
        padding: 32px 16px 24px;
    }

    .auth-bg__logo-wrap {
        width: 90px;
        height: 90px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .auth-bg__tagline {
        font-size: 18px;
    }

    .auth-bg__role .auth-bg__tagline {
        font-size: 18px;
    }

    .auth-bg__logo-wrap {
        width: 72px;
        height: 72px;
        padding: 10px;
        margin-bottom: 8px;
    }

    .form-radio-group {
        flex-direction: column;
    }
}
