.wcmg-header-user-btn,
.wcmg-user-dropdown-toggle,
.wcmg-close-btn,
.wcmg-password-toggle,
.wcmg-link-btn,
.wcmg-tab-pill,
.wcmg-member-card,
.wcmg-submit-btn {
    border: 0;
    outline: 0;
    cursor: pointer;
}

.wcmg-header-user-btn,
.wcmg-user-dropdown-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
    transition: .25s ease;
}

.wcmg-header-user-btn:hover,
.wcmg-user-dropdown-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.wcmg-header-user-btn i,
.wcmg-user-dropdown-toggle i {
    font-size: 1.25rem;
}

.wcmg-user-dropdown {
    position: relative;
    display: inline-block;
}

.wcmg-user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 280px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .14);
    padding: 10px;
    display: none;
    z-index: 99999;
}

.wcmg-user-dropdown.open .wcmg-user-dropdown-menu {
    display: block;
}

.wcmg-user-dropdown-head {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    margin-bottom: 8px;
}

.wcmg-user-dropdown-head strong {
    display: block;
    color: #111827;
    font-size: .96rem;
}

.wcmg-user-dropdown-head span {
    display: block;
    color: #6b7280;
    font-size: .84rem;
    margin-top: 3px;
}

.wcmg-user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    padding: 12px 14px;
    border-radius: 14px;
    transition: .2s ease;
}

.wcmg-user-dropdown-menu a:hover {
    background: #f8fafc;
}

.wcmg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 99997;
}

.wcmg-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wcmg-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: min(720px, 100%);
    height: 100vh;
    z-index: 99998;
    transform: translateX(100%);
    transition: .35s ease;
    pointer-events: none;
}

.wcmg-offcanvas.active {
    transform: translateX(0);
    pointer-events: auto;
}

.wcmg-offcanvas-dialog {
    height: 100%;
    background: #f8fafc;
    box-shadow: -30px 0 80px rgba(15, 23, 42, .18);
    display: flex;
    flex-direction: column;
}

.wcmg-offcanvas-head,
.wcmg-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
}

.wcmg-offcanvas-head h3,
.wcmg-modal-head h3 {
    margin: 8px 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.wcmg-offcanvas-body {
    padding: 24px;
    overflow: auto;
}

.wcmg-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 99999;
    padding: 20px;
}

.wcmg-modal.active {
    opacity: 1;
    visibility: visible;
}

.wcmg-modal-dialog {
    width: min(980px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(15, 23, 42, .24);
}

.wcmg-modal-body {
    padding: 24px;
}

.wcmg-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wcmg-auth-page-shell {
    max-width: 1220px;
    margin: 30px auto;
}

.wcmg-auth-ui {
    width: 100%;
}

.wcmg-auth-grid {
    display: grid;
    grid-template-columns: 1.25fr .85fr;
    gap: 24px;
    align-items: stretch;
}

.wcmg-auth-main,
.wcmg-auth-side {
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.wcmg-auth-main {
    background: #fff;
    padding: 30px;
}

.wcmg-auth-side {
    background: linear-gradient(135deg, #c89b3c 0%, #5f4630 50%, #1b1411 100%);
    color: #fff;
    padding: 30px;
    position: relative;
}

.wcmg-auth-side:before,
.wcmg-auth-side:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.wcmg-auth-side:before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -60px;
}

.wcmg-auth-side:after {
    width: 160px;
    height: 160px;
    left: -50px;
    bottom: -50px;
}

.wcmg-auth-header {
    margin-bottom: 22px;
}

.wcmg-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f6ecda;
    color: #c89b3c;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
}

.wcmg-auth-title {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
    margin: 16px 0 10px;
}

.wcmg-auth-subtitle {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.wcmg-auth-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.wcmg-step-box {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    background: #fafafa;
}

.wcmg-step-box small {
    display: block;
    color: #6b7280;
    margin-bottom: 4px;
}

.wcmg-step-box strong {
    display: block;
    color: #111827;
}

.wcmg-member-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.wcmg-member-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    text-align: left;
    transition: .25s ease;
}

.wcmg-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(200, 155, 60, .12);
}

.wcmg-member-card.active {
    border-color: #c89b3c;
    background: linear-gradient(180deg, #fbf6eb 0%, #f4ead4 100%);
    box-shadow: 0 18px 40px rgba(200, 155, 60, .18);
}

.wcmg-member-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex: 0 0 54px;
}

.wcmg-member-card.active .wcmg-member-icon {
    background: #c89b3c;
    color: #fff;
}

.wcmg-member-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.wcmg-member-content span {
    display: block;
    color: #6b7280;
    font-size: .92rem;
    line-height: 1.55;
}

.wcmg-tab-switch {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: #f3f4f6;
    border-radius: 18px;
    margin-bottom: 22px;
}

.wcmg-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    background: transparent;
    color: #4b5563;
    font-weight: 700;
    transition: .2s ease;
}

.wcmg-tab-pill.active {
    background: #fff;
    color: #c89b3c;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.wcmg-form-panel {
    display: none;
}

.wcmg-form-panel.active {
    display: block;
}

.wcmg-form-group {
    margin-bottom: 16px;
}

.wcmg-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 700;
    font-size: .95rem;
}

.wcmg-input-wrap {
    position: relative;
}

.wcmg-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.wcmg-form input.form-control,
.wcmg-form textarea.form-control {
    border-radius: 16px;
    min-height: 54px;
    border: 1px solid #d1d5db;
    padding-left: 44px;
    box-shadow: none;
}

.wcmg-form textarea.form-control {
    padding-left: 16px;
    padding-top: 14px;
    min-height: 120px;
}

.wcmg-form input.form-control:focus,
.wcmg-form textarea.form-control:focus {
    border-color: #d9b66b;
    box-shadow: 0 0 0 .25rem rgba(200, 155, 60, .18);
}

.wcmg-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wcmg-form-message {
    display: none;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.wcmg-form-message.show {
    display: block;
}

.wcmg-form-message.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wcmg-form-message.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.wcmg-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.wcmg-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: .94rem;
}

.wcmg-link-btn {
    background: transparent;
    color: #c89b3c;
    font-weight: 700;
    padding: 0;
}

.wcmg-submit-btn {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #c89b3c 0%, #6a4e34 100%);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .25s ease;
    position: relative;
}

.wcmg-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(13, 110, 253, .18);
}

.wcmg-submit-btn.secondary {
    background: #f3f4f6;
    color: #111827;
}

.wcmg-submit-btn.is-loading {
    pointer-events: none;
    opacity: .88;
}

.wcmg-btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: wcmg-spin .8s linear infinite;
}

.wcmg-submit-btn.secondary .wcmg-btn-loader {
    border: 2px solid rgba(17, 24, 39, .2);
    border-top-color: #111827;
}

.wcmg-submit-btn.is-loading .wcmg-btn-loader {
    display: inline-block;
}

.wcmg-register-stepper {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.wcmg-register-stepper.show {
    display: grid;
}

.wcmg-register-step {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wcmg-register-step span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.wcmg-register-step strong {
    font-size: .95rem;
    color: #111827;
}

.wcmg-register-step.active {
    border-color: #c89b3c;
    background: #f4ead4;
}

.wcmg-register-step.active span {
    background: #c89b3c;
    color: #fff;
}

.wcmg-wizard-step {
    display: none;
}

.wcmg-wizard-step.active {
    display: block;
}

.wcmg-wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.wcmg-company-box {
    border: 1px dashed #d8b980;
    background: linear-gradient(180deg, #fdf9f1 0%, #fbf6eb 100%);
    border-radius: 22px;
    padding: 20px;
}

.wcmg-company-box-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.wcmg-company-box-head i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #c89b3c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wcmg-company-box-head strong {
    display: block;
    color: #111827;
    font-size: 1rem;
}

.wcmg-company-box-head span {
    display: block;
    color: #6b7280;
    margin-top: 3px;
}

.wcmg-tax-feedback {
    margin-top: 8px;
    font-size: .88rem;
    font-weight: 700;
    display: none;
}

.wcmg-tax-feedback.show {
    display: block;
}

.wcmg-tax-feedback.valid {
    color: #166534;
}

.wcmg-tax-feedback.invalid {
    color: #be123c;
}

.wcmg-auth-side .wcmg-side-card {
    position: relative;
    z-index: 1;
    display: none;
}

.wcmg-auth-side .wcmg-side-card.active {
    display: block;
}

.wcmg-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
}

.wcmg-auth-side h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 18px 0 12px;
    color: #fff;
}

.wcmg-auth-side p {
    color: rgba(255, 255, 255, .9);
    line-height: 1.75;
    margin: 0 0 22px;
}

.wcmg-auth-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.wcmg-auth-side li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 14px 16px;
    line-height: 1.6;
}

.wcmg-auth-side li i {
    margin-top: 3px;
}

.wcmg-auth-context-offcanvas .wcmg-auth-grid,
.wcmg-auth-context-modal .wcmg-auth-grid {
    grid-template-columns: 1fr;
}

.wcmg-auth-context-offcanvas .wcmg-auth-side,
.wcmg-auth-context-modal .wcmg-auth-side {
    display: none;
}

@keyframes wcmg-spin {
    to {
        transform: rotate(360deg);
    }
}

body.wcmg-no-scroll {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .wcmg-auth-grid {
        grid-template-columns: 1fr;
    }

    .wcmg-auth-side {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .wcmg-offcanvas-body,
    .wcmg-modal-body,
    .wcmg-auth-main {
        padding: 18px;
    }

    .wcmg-auth-title {
        font-size: 1.55rem;
    }

    .wcmg-member-switch,
    .wcmg-auth-steps,
    .wcmg-register-stepper {
        grid-template-columns: 1fr;
    }

    .wcmg-tab-switch {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .wcmg-tab-pill {
        justify-content: center;
    }

    .wcmg-wizard-actions {
        flex-direction: column;
    }

    .wcmg-wizard-actions .wcmg-submit-btn {
        width: 100%;
    }

    .wcmg-modal {
        padding: 12px;
    }

    .wcmg-modal-dialog {
        border-radius: 22px;
    }
}

.wcmg-auth-logged-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
    padding: 32px;
    max-width: 760px;
    margin: 0 auto;
}

.wcmg-auth-logged-card h2 {
    margin: 16px 0 10px;
    color: #111827;
    font-size: 2rem;
    font-weight: 800;
}

.wcmg-auth-logged-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.75;
}

.wcmg-auth-logged-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 22px 0;
}

.wcmg-auth-logged-meta > div {
    border: 1px solid #eadfcb;
    background: #fbf6eb;
    border-radius: 18px;
    padding: 16px;
}

.wcmg-auth-logged-meta small {
    display: block;
    color: #6b7280;
    margin-bottom: 6px;
}

.wcmg-auth-logged-meta strong {
    display: block;
    color: #111827;
    font-size: 1rem;
}

.wcmg-auth-logged-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wcmg-auth-logged-actions .wcmg-submit-btn {
    width: auto;
    min-width: 200px;
    text-decoration: none;
}
