/* My Account — black / #4f83a8 / white */

html.otm-account-portal,
body.otm-account-portal {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    background: #f5f5f5;
}

/* Hide site-wide floating widgets on the standalone portal */
body.otm-account-portal .gtranslate_wrapper,
body.otm-account-portal .gt_switcher_wrapper,
body.otm-account-portal .qlwapp {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.otm-account-portal {
    --otm-font-body: 'Montserrat', Helvetica, Arial, sans-serif;
    --otm-font-display: 'Montserrat', Helvetica, Arial, sans-serif;
    font-family: var(--otm-font-body);
    color: #111;
}

/* Hide WP admin bar and kill the space it reserves on html */
body.otm-account-portal #wpadminbar {
    display: none !important;
}

html.otm-account-portal.admin-bar,
html.otm-account-portal.wp-toolbar,
body.otm-account-portal.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.otm-account-wrap.is-member .otm-account__alert[hidden],
.otm-account-wrap.is-member .otm-account__alert:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
}

.otm-account-splash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: opacity 0.28s ease;
}

.otm-account-splash[hidden] {
    display: none !important;
}

.otm-account-splash.is-done {
    opacity: 0;
    pointer-events: none;
}

.otm-account-splash__logo {
    display: block;
    width: min(220px, 46vw);
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

html.otm-account-has-splash,
body.otm-account-has-splash {
    overflow: hidden;
}

.otm-account-wrap {
    --otm-red: #4f83a8;
    --otm-red-dark: #3a688a;
    --otm-black: #111111;
    --otm-muted: #6b6b6b;
    --otm-line: #e8e8e8;
    --otm-field-border: #ddd;
    --otm-bg: #f5f5f5;
    --otm-font-body: 'Montserrat', Helvetica, Arial, sans-serif;
    --otm-font-display: 'Montserrat', Helvetica, Arial, sans-serif;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #f5f5f5;
    background-image: url(assets/court-alpha.png);
    background-repeat: no-repeat;
    background-position: bottom -4px right;
    background-size: 25%;
    padding: 0 20px 88px;
    font-family: var(--otm-font-body);
    color: var(--otm-black);
}

/* Display + body: Montserrat (Community Links theme) */
.otm-account-wrap h1,
.otm-account-wrap h2,
.otm-account-wrap h3,
.otm-account__title,
.otm-account__eyebrow,
.otm-account__brand-mark,
.otm-account__brand-text,
.otm-account__panel-title,
.otm-pp__welcome,
.otm-pp__logo-name,
.otm-pp__topbar-label,
.otm-pp__panel-title,
.otm-pp__section-head h2,
.otm-pp__stat strong {
    font-family: var(--otm-font-display);
}

.otm-account,
.otm-pp,
.otm-account__lead,
.otm-pp__welcome-sub,
.otm-pp__nav-item,
.otm-pp__meta,
.otm-pp__status-line,
.otm-pp__text-link,
.otm-account__input,
.otm-account__label,
.otm-account__empty,
.otm-pp__table {
    font-family: var(--otm-font-body);
}

.otm-account {
    max-width: 920px;
    margin: 0 auto;
    padding-top: 28px;
}

.otm-account__portal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 28px;
    padding: 14px 18px;
    background: #111;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
}

.otm-account__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #fff !important;
}

.otm-account__brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.otm-account__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--otm-red);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.otm-account__brand-text {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.otm-account__portal-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.otm-account__portal-bar-actions[hidden] {
    display: none !important;
}

.otm-account__portal-bar .otm-account__btn--secondary {
    background: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
}

.otm-account__portal-bar .otm-account__btn--ghost {
    background: transparent !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.35) !important;
}

.otm-account__portal-bar .otm-account__btn--ghost:hover,
.otm-account__portal-bar .otm-account__btn--ghost:focus {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: #fff !important;
}

.otm-account-wrap.is-member {
    padding: 0 !important;
    margin: 0 !important;
    background-image: none;
    background-color: #f3f3f3;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

body.otm-account-is-member,
html.otm-account-portal:has(body.otm-account-is-member),
body.otm-account-portal.otm-account-is-member {
    overflow: hidden !important;
    height: 100%;
}

.otm-account-wrap.is-member .otm-account {
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

.otm-account-wrap.is-member #otm-account-member {
    height: 100%;
}

.otm-account-wrap.is-member .otm-account__alert {
    /* toast is fixed — do not sticky-shift layout */
    position: fixed;
}

.otm-account-wrap.is-member .otm-account__portal-bar {
    display: none !important;
}

.otm-account-wrap.is-member .otm-account__eyebrow,
.otm-account-wrap.is-member .otm-account__title,
.otm-account-wrap.is-member .otm-account__lead {
    display: none !important;
}

.otm-account-wrap.is-member .otm-account__toolbar-actions--member {
    display: none;
}

.otm-account__welcome-sub {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--otm-muted);
}

.otm-account-wrap.is-member .otm-account__toolbar {
    margin-bottom: 22px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--otm-line);
    border-top: 3px solid var(--otm-red);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}

.otm-account-wrap.is-member .otm-account__welcome {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.otm-account__eyebrow {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--otm-red);
    text-align: center;
}

.otm-account__title {
    margin: 0 0 12px;
    font-family: var(--otm-font-display);
    font-size: clamp(38px, 5vw, 50px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.otm-account__lead {
    margin: 0 auto 28px;
    max-width: 38em;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--otm-muted);
    text-align: center;
}

.otm-account__lead[hidden] {
    display: none !important;
}

.otm-account__loader {
    display: flex;
    justify-content: center;
    margin: 8px auto 36px;
    min-height: 180px;
}

.otm-account__loader[hidden] {
    display: none !important;
}

.otm-account__loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 360px;
    min-height: 160px;
    padding: 28px 22px;
    background: #fff;
    border: 1px solid var(--otm-line);
    border-top: 3px solid var(--otm-red);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}

.otm-account__loader-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--otm-muted);
}

.otm-account__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--otm-red);
    border-radius: 50%;
    animation: otm-account-spin 0.75s linear infinite;
}

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

.otm-account__body[hidden] {
    display: none !important;
}

.otm-account-wrap.is-booting .otm-account__alert {
    display: none !important;
}

.otm-account__alert {
    position: fixed;
    top: auto;
    bottom: 24px;
    left: 50%;
    z-index: 100050;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    margin: 0;
    padding: 12px 14px 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    border-left: 4px solid #4f83a8;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.22);
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.otm-account__alert.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.otm-account__alert[hidden] {
    display: none !important;
}

.otm-account__alert-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.otm-account__alert-icon .otm-icon,
.otm-account__alert-icon svg {
    width: 16px;
    height: 16px;
}

.otm-account__alert-text {
    flex: 1 1 auto;
    min-width: 0;
}

.otm-account__alert-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
}

.otm-account__alert-close:hover,
.otm-account__alert-close:focus {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.otm-account__alert.is-error {
    background: #111;
    border-color: #111;
    color: #fff;
}

.otm-account__alert.is-error .otm-account__alert-icon {
    background: rgba(79, 131, 168, 0.2);
    color: #4f83a8;
}

.otm-account__alert.is-error .otm-account__alert-close:hover,
.otm-account__alert.is-error .otm-account__alert-close:focus {
    background: rgba(255, 255, 255, 0.1);
}

.otm-account__alert.is-success {
    background: #111;
    border-color: #111;
    color: #fff;
}

.otm-account__alert.is-success .otm-account__alert-icon {
    background: rgba(79, 131, 168, 0.2);
    color: #4f83a8;
}

.otm-account__alert.is-success .otm-account__alert-close:hover,
.otm-account__alert.is-success .otm-account__alert-close:focus {
    background: rgba(255, 255, 255, 0.1);
}

.otm-account__grid--auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.otm-account__panel {
    background: #fff;
    border: 1px solid var(--otm-line);
    border-top: 3px solid var(--otm-red);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
    padding: 24px 22px;
    margin-bottom: 20px;
}

.otm-account__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.otm-account__panel-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 800;
}

.otm-account__panel-head .otm-account__panel-title {
    margin-bottom: 0;
}

.otm-account__label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--otm-muted);
}

.otm-account__input,
.otm-account-wrap select.otm-account__input,
.otm-account-wrap textarea.otm-account__input,
.otm-account-wrap input[type="file"].otm-account__input,
.otm-account-wrap .flatpickr-alt-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1.5px solid var(--otm-field-border, #ddd) !important;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fafafa;
    box-shadow: none;
}

.otm-account__input:focus,
.otm-account-wrap select.otm-account__input:focus,
.otm-account-wrap textarea.otm-account__input:focus,
.otm-account-wrap input[type="file"].otm-account__input:focus,
.otm-account-wrap .flatpickr-alt-input:focus {
    outline: none;
    border-color: var(--otm-red) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 131, 168, 0.12);
}

.otm-account__input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.otm-account .form-group {
    margin: 0 0 14px;
}

.otm-account .form-group .otm-account__input {
    margin-bottom: 0;
}

.otm-account .otm-date-field {
    position: relative;
    display: block;
    width: 100%;
}

.otm-account .otm-date-field::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    pointer-events: none;
    z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

.otm-account .otm-date-field .otm-account__input,
.otm-account .otm-date-field .flatpickr-input,
.otm-account .otm-date-field .flatpickr-alt-input {
    width: 100%;
    padding-right: 42px;
    cursor: pointer;
    background-image: none !important;
}

.otm-account input.flatpickr-input[type="hidden"],
.otm-account input.flatpickr-input.flatpickr-mobile {
    display: none !important;
}

.otm-account__textarea {
    min-height: 90px;
    resize: vertical;
}

.otm-account__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.otm-account__check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.otm-account-wrap .otm-account__btn,
.otm-account-wrap button.otm-account__btn,
.otm-account-wrap a.otm-account__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px !important;
    border-radius: 0 !important;
    border: none !important;
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.otm-account-wrap .otm-account__btn--primary,
.otm-account-wrap button.otm-account__btn--primary,
.otm-account-wrap a.otm-account__btn--primary {
    width: 100%;
    background: var(--otm-red) !important;
    border-color: var(--otm-red) !important;
    color: #fff !important;
}

.otm-account-wrap .otm-account__btn--primary:hover,
.otm-account-wrap .otm-account__btn--primary:focus,
.otm-account-wrap button.otm-account__btn--primary:hover,
.otm-account-wrap button.otm-account__btn--primary:focus,
.otm-account-wrap a.otm-account__btn--primary:hover,
.otm-account-wrap a.otm-account__btn--primary:focus {
    background: var(--otm-red-dark) !important;
    border-color: var(--otm-red-dark) !important;
    color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

.otm-account-wrap .otm-account__btn--secondary,
.otm-account-wrap button.otm-account__btn--secondary,
.otm-account-wrap a.otm-account__btn--secondary {
    background: var(--otm-black) !important;
    border-color: var(--otm-black) !important;
    color: #fff !important;
    width: auto;
}

.otm-account-wrap .otm-account__btn--secondary:hover,
.otm-account-wrap .otm-account__btn--secondary:focus,
.otm-account-wrap button.otm-account__btn--secondary:hover,
.otm-account-wrap button.otm-account__btn--secondary:focus,
.otm-account-wrap a.otm-account__btn--secondary:hover,
.otm-account-wrap a.otm-account__btn--secondary:focus {
    background: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

.otm-account-wrap .otm-account__btn--ghost,
.otm-account-wrap button.otm-account__btn--ghost,
.otm-account-wrap a.otm-account__btn--ghost {
    background: #fff !important;
    color: var(--otm-black) !important;
    border: 1.5px solid #ddd !important;
    width: auto;
}

.otm-account-wrap .otm-account__btn--ghost:hover,
.otm-account-wrap .otm-account__btn--ghost:focus,
.otm-account-wrap button.otm-account__btn--ghost:hover,
.otm-account-wrap button.otm-account__btn--ghost:focus,
.otm-account-wrap a.otm-account__btn--ghost:hover,
.otm-account-wrap a.otm-account__btn--ghost:focus {
    background: var(--otm-black) !important;
    border-color: var(--otm-black) !important;
    color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

.otm-account-wrap .otm-account__btn--small,
.otm-account-wrap button.otm-account__btn--small {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    width: auto !important;
}

.otm-account-wrap .otm-account__actions .otm-account__btn--primary {
    width: auto !important;
    min-width: 140px;
}

.otm-account__panel--narrow {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.otm-account__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--otm-red) !important;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    cursor: pointer;
}

button.otm-account__link {
    font-family: inherit;
    line-height: inherit;
}

.otm-account__link:hover,
.otm-account__link:focus,
.otm-account__link:focus-visible,
button.otm-account__link:hover,
button.otm-account__link:focus,
.otm-account-wrap button.otm-account__link:hover,
.otm-account-wrap button.otm-account__link:focus {
    color: var(--otm-red-dark, #3a688a) !important;
    background: transparent !important;
    text-decoration: underline;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
    outline: none;
}

.otm-account__hint {
    margin: 4px 0 10px;
    font-size: 13px;
    color: var(--otm-muted);
}

.otm-account__footer-note {
    margin: 8px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--otm-muted);
}

.otm-account__footer-note a {
    color: var(--otm-red) !important;
    font-weight: 700;
    text-decoration: none;
}

.otm-account__footer-note a:hover,
.otm-account__footer-note a:focus {
    color: var(--otm-red-dark) !important;
    text-decoration: underline;
}

.otm-account__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.otm-account__welcome {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.otm-account__toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.otm-account__players,
.otm-account__regs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.otm-account__player-card,
.otm-account__reg-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.otm-account__player-card strong,
.otm-account__reg-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.otm-account__meta {
    margin: 0;
    font-size: 13px;
    color: var(--otm-muted);
    line-height: 1.45;
}

.otm-account__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.otm-account__empty {
    margin: 0;
    padding: 18px;
    text-align: center;
    color: var(--otm-muted);
    font-size: 14px;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

.otm-account__empty a {
    color: var(--otm-red) !important;
    font-weight: 700;
    text-decoration: none;
}

.otm-account__empty a:hover,
.otm-account__empty a:focus {
    color: var(--otm-red-dark) !important;
    text-decoration: underline;
}

.otm-account__player-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.otm-account__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.otm-account-wrap .otm-account__actions .otm-account__btn--primary {
    width: auto !important;
    min-width: 140px;
}

.otm-account__badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #111;
    color: #fff;
}

.otm-account__badge--recurring {
    background: var(--otm-red);
}

@media (max-width: 800px) {
    .otm-account__grid--auth {
        grid-template-columns: 1fr;
    }

    .otm-account__row {
        grid-template-columns: 1fr;
    }

    .otm-account__player-card,
    .otm-account__reg-card {
        flex-direction: column;
    }

    .otm-account-wrap {
        padding: 0 14px 64px;
        background-size: 40%;
    }

    .otm-account {
        padding-top: 16px;
    }

    .otm-account__portal-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .otm-account__portal-bar-actions {
        width: 100%;
    }

    .otm-account__portal-bar-actions .otm-account__btn {
        flex: 1;
        text-align: center;
    }
}

/* ——— Parent Portal dashboard ——— */
.otm-pp {
    --pp-red: #4f83a8;
    --pp-red-dark: #3a688a;
    --pp-black: #111;
    --pp-muted: #6b6b6b;
    --pp-line: #e6e6e6;
    --pp-bg: #f3f3f3;
    --pp-sidebar: #f7f7f7;
    --pp-green: #1f9d55;
    --pp-topbar-h: 64px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: var(--pp-bg);
    color: var(--pp-black);
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif);
}

.otm-pp__stat strong,
.otm-pp__child-card strong,
.otm-pp__reg-top strong,
.otm-pp__meta,
.otm-pp__status-line,
.otm-pp__reg-meta,
.otm-pp__reg-meta li,
.otm-pp__stat span {
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif);
}

.otm-pp__stat strong {
    font-family: var(--otm-font-display, 'Montserrat', Helvetica, Arial, sans-serif);
}

.otm-pp__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 var(--pp-topbar-h);
    min-height: var(--pp-topbar-h);
    padding: 0 22px;
    background: #0d0d0d;
    color: #fff;
    z-index: 5;
}

.otm-pp__topbar-left,
.otm-pp__topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.otm-pp__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: #fff !important;
    line-height: 0;
}

.otm-pp__nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.otm-pp__nav-toggle:hover,
.otm-pp__nav-toggle:focus {
    background: rgba(255, 255, 255, 0.16);
}

.otm-pp__nav-toggle .otm-icon,
.otm-pp__nav-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}

.otm-pp__nav-backdrop {
    display: none;
}

.otm-pp__logo-img {
    display: block;
    height: 55px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.otm-pp__topbar-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.28);
}

.otm-pp__topbar-label {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.otm-pp__top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.otm-pp__top-link:hover {
    color: #fff !important;
}

.otm-pp__user-menu {
    position: relative;
    padding-left: 4px;
}

.otm-pp__user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 4px 4px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.otm-pp__user:hover,
.otm-pp__user:focus,
.otm-pp__user[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
}

.otm-pp__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #2a2a2a;
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
}

.otm-pp__user-name {
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.otm-pp__user[aria-expanded="true"] .otm-pp__user-caret {
    transform: rotate(180deg);
}

.otm-pp__user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 180px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--pp-line, #e6e6e6);
    border-radius: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.otm-pp__user-dropdown[hidden] {
    display: none !important;
}

.otm-pp__user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111 !important;
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

.otm-pp__user-dropdown-item .otm-icon,
.otm-pp__user-dropdown-item svg,
.otm-pp__user-dropdown-item [data-lucide] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #666;
    stroke: currentColor;
}

.otm-pp__user-dropdown-item--danger .otm-icon,
.otm-pp__user-dropdown-item--danger svg,
.otm-pp__user-dropdown-item--danger [data-lucide] {
    color: currentColor;
}

.otm-pp__user-dropdown-item:hover,
.otm-pp__user-dropdown-item:focus {
    background: #f5f5f5 !important;
    color: #111 !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.otm-pp__user-dropdown-item--danger {
    color: var(--pp-red, #4f83a8) !important;
}

.otm-pp__user-dropdown-item--danger:hover,
.otm-pp__user-dropdown-item--danger:focus {
    background: rgba(79, 131, 168, 0.08) !important;
    color: var(--pp-red, #4f83a8) !important;
}

.otm-pp__shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - var(--pp-topbar-h));
}

.otm-pp__sidebar {
    position: sticky;
    top: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    max-height: 100%;
    padding: 22px 14px;
    background: var(--pp-sidebar);
    border-right: 1px solid var(--pp-line);
    overflow: hidden;
}

.otm-pp__nav {
    flex: 0 0 auto;
}

.otm-pp__sidebar-foot {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pp-line);
}

.otm-pp__nav,
.otm-pp__sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.otm-pp__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

.otm-pp__nav-item--help {
    align-items: center;
}

.otm-pp__nav-help-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    line-height: 1.25;
}

.otm-pp__nav-help-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.otm-pp__nav-help-text > span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--pp-muted, #777);
}

.otm-pp__nav-item svg,
.otm-pp__nav-item .otm-icon,
.otm-pp__nav-item [data-lucide] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #666;
}

.otm-pp__top-link .otm-icon,
.otm-pp__top-link [data-lucide] {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.otm-pp__user-caret,
.otm-pp__user-caret.otm-icon,
.otm-pp__user [data-lucide="chevron-down"] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.15s ease;
}

.otm-pp__nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--pp-black);
}

.otm-pp__nav-item.is-active {
    background: rgba(79, 131, 168, 0.1);
    color: var(--pp-red);
}

.otm-pp__nav-item.is-active svg,
.otm-pp__nav-item.is-active .otm-icon {
    color: var(--pp-red);
}

a.otm-pp__nav-item {
    color: #333;
}

.otm-pp__content {
    display: flex;
    flex-direction: column;
    padding: 28px 32px 12px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.otm-pp__content-footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 40px 8px 4px;
    text-align: center;
}

.otm-pp__content-footer p {
    margin: 0;
    color: #9a9a9a !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.otm-pp__content > .otm-pp-view {
    flex: 1 0 auto;
    padding-bottom: 8px;
}

.otm-pp__download-link {
    gap: 6px !important;
}

.otm-pp__download-link .otm-icon,
.otm-pp__download-link svg,
.otm-pp__download-link [data-lucide] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: currentColor;
    stroke: currentColor;
}

.otm-pp-view[hidden] {
    display: none !important;
}

.otm-pp__page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.otm-pp__welcome {
    margin: 0;
    font-family: var(--otm-font-display, 'Montserrat', sans-serif);
    font-size: clamp(34px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.otm-pp__welcome-sub {
    margin: 6px 0 0;
    color: var(--pp-muted);
    font-size: 14px;
    font-weight: 500;
}

.otm-pp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 0;
    border: 1px solid transparent;
    font: inherit;
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}

.otm-pp__btn.is-loading,
.otm-account-wrap .otm-account__btn.is-loading,
.otm-pp__text-link.is-loading {
    pointer-events: none;
    opacity: 0.88;
    cursor: wait;
}

.otm-btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: otm-account-spin 0.7s linear infinite;
}

.otm-pp__btn--ghost.is-loading .otm-btn-spinner,
.otm-account-wrap .otm-account__btn--ghost.is-loading .otm-btn-spinner,
.otm-pp__text-link.is-loading .otm-btn-spinner {
    border-color: rgba(17, 17, 17, 0.18);
    border-top-color: #111;
}

.otm-pp__btn--primary {
    background: var(--pp-red) !important;
    border-color: var(--pp-red) !important;
    color: #fff !important;
}

.otm-pp__btn--primary:hover {
    background: var(--pp-red-dark) !important;
    border-color: var(--pp-red-dark) !important;
}

.otm-pp__btn--ghost {
    background: #fff !important;
    border-color: #d8d8d8 !important;
    color: var(--pp-black) !important;
}

.otm-pp__btn--ghost:hover {
    border-color: #bbb !important;
}

.otm-pp__btn--body {
    font-family: var(--otm-font-body, 'Montserrat', Helvetica, Arial, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    min-height: 36px;
    padding: 0 14px;
}

.otm-pp__text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--pp-red) !important;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    cursor: pointer;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.otm-pp__text-link--muted {
    color: var(--pp-muted) !important;
    font-weight: 600;
}

.otm-pp__text-link:hover,
.otm-pp__text-link:focus,
.otm-pp__text-link:active,
.otm-account-wrap button.otm-pp__text-link:hover,
.otm-account-wrap button.otm-pp__text-link:focus,
.otm-account-wrap a.otm-pp__text-link:hover,
.otm-account-wrap a.otm-pp__text-link:focus,
body.otm-account-portal .otm-pp__text-link:hover,
body.otm-account-portal .otm-pp__text-link:focus {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--pp-red) !important;
    text-decoration: underline !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.otm-pp__text-link--muted:hover,
.otm-pp__text-link--muted:focus {
    color: var(--pp-black) !important;
}

/* Kill Hello / Elementor default button hover on portal controls */
body.otm-account-portal .otm-pp button,
body.otm-account-portal .otm-pp .otm-pp__btn,
body.otm-account-portal .otm-pp .otm-pp__text-link,
body.otm-account-portal .otm-pp .otm-pp__nav-item {
    -webkit-appearance: none !important;
    appearance: none !important;
}

body.otm-account-portal .otm-pp__btn:hover,
body.otm-account-portal .otm-pp__btn:focus,
body.otm-account-portal .otm-pp__nav-item:hover,
body.otm-account-portal .otm-pp__nav-item:focus,
body.otm-account-portal button.otm-pp__btn:hover,
body.otm-account-portal button.otm-pp__nav-item:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
}

body.otm-account-portal .otm-pp__btn--primary:hover,
body.otm-account-portal .otm-pp__btn--primary:focus {
    background: var(--pp-red-dark) !important;
    background-color: var(--pp-red-dark) !important;
    border-color: var(--pp-red-dark) !important;
    color: #fff !important;
}

body.otm-account-portal .otm-pp__btn--ghost:hover,
body.otm-account-portal .otm-pp__btn--ghost:focus {
    background: #fff !important;
    background-color: #fff !important;
    border-color: #bbb !important;
    color: var(--pp-black) !important;
}

.otm-pp__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.otm-pp__stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 12px;
}

.otm-pp__stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(79, 131, 168, 0.1);
    color: var(--pp-red);
    flex-shrink: 0;
}

.otm-pp__stat-icon .otm-icon,
.otm-pp__stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.otm-pp__stat strong {
    display: block;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.otm-pp__stat span:last-child {
    display: block;
    margin-top: 4px;
    color: var(--pp-muted);
    font-size: 13px;
    font-weight: 600;
}

.otm-pp__section {
    margin-bottom: 28px;
}

.otm-pp__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.otm-pp__section-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.otm-pp__child-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#otm-players-list.otm-pp__child-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 980px) {
    #otm-players-list.otm-pp__child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.otm-pp__child-card,
.otm-pp__reg-card,
.otm-pp__panel {
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
}

.otm-pp__table-wrap {
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
}

.otm-pp__stat {
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
}

.otm-pp__child-card--compact {
    display: flex;
    gap: 16px;
    padding: 18px;
    justify-content: space-between;
}

.otm-pp__child-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.otm-pp__child-avatar,
.otm-pp__child-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    flex-shrink: 0;
}

.otm-pp__child-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.otm-pp__child-photo {
    object-fit: cover;
}

.otm-pp__child-card strong,
.otm-pp__child-card-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.otm-pp__meta {
    margin: 3px 0 0;
    color: var(--pp-muted);
    font-size: 13px;
    font-weight: 500;
}

.otm-pp__status-line {
    margin: 4px 0 0;
    color: var(--pp-red);
    font-size: 13px;
    font-weight: 700;
}

.otm-pp__child-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 0;
    flex-shrink: 0;
}

.otm-pp__child-card--rich {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 168px;
}

.otm-pp__child-card-media {
    background: #1a1a1a;
    min-height: 100%;
}

.otm-pp__child-card-media .otm-pp__child-photo--card,
.otm-pp__child-card-media .otm-pp__child-avatar--card {
    width: 100%;
    height: 100%;
    min-height: 168px;
    border-radius: 0;
    display: block;
}

.otm-pp__child-card-media .otm-pp__child-avatar--card {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #111;
}

.otm-pp__child-card-media .otm-pp__child-photo--card {
    object-fit: cover;
}

.otm-pp__child-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 16px;
    min-width: 0;
}

.otm-pp__child-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.otm-pp__child-card-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.otm-pp__child-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.otm-pp__child-facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pp-muted);
    font-size: 13px;
    font-weight: 500;
}

.otm-pp__child-fact-icon,
.otm-pp__child-facts .otm-icon,
.otm-pp__child-facts svg {
    width: 14px;
    height: 14px;
    color: #888;
    flex-shrink: 0;
}

.otm-pp__child-programs-label {
    display: block;
    margin-bottom: 6px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.otm-pp__child-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.otm-pp__child-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid #e8e8e8;
    background: #f7f7f7;
    color: #222;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.otm-pp__child-chip--more {
    background: #111;
    border-color: #111;
    color: #fff;
}

.otm-pp__child-empty-note {
    margin: 0;
    color: var(--pp-muted);
    font-size: 13px;
    font-weight: 500;
}

.otm-pp__child-notes {
    margin: 0;
    padding: 10px 12px;
    background: #fafafa;
    border-left: 3px solid var(--pp-red);
    color: #444;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.otm-pp__child-card--rich .otm-pp__child-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.otm-pp__reg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.otm-pp__reg-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
    min-height: 148px;
}

#otm-pp-view-registrations .otm-pp__reg-card {
    grid-template-columns: 220px minmax(0, 1fr);
}

#otm-pp-view-registrations .otm-pp__reg-action {
    margin-top: 4px;
    width: 100%;
    align-self: stretch;
}

.otm-pp__reg-media,
.otm-pp__reg-media img,
.otm-pp__reg-media-fallback {
    width: 100%;
    height: 100%;
    min-height: 148px;
    object-fit: cover;
    background: #1a1a1a;
}

.otm-pp__reg-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.otm-pp__reg-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    justify-content: center;
}

.otm-pp__reg-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.otm-pp__reg-top strong {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.otm-pp__reg-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.otm-pp__reg-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
}

.otm-pp__reg-meta-icon,
.otm-pp__reg-meta .otm-icon,
.otm-pp__reg-meta svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--pp-muted);
    stroke: currentColor;
}

.otm-pp__reg-body > .otm-pp__text-link {
    margin-top: 4px;
    padding-top: 10px !important;
    border-top: 1px solid #e8e8e8 !important;
    align-self: flex-start;
    width: 100%;
}

.otm-pp__reg-body > .otm-pp__text-link:hover,
.otm-pp__reg-body > .otm-pp__text-link:focus,
.otm-pp__reg-body > .otm-pp__text-link:active,
.otm-account-wrap .otm-pp__reg-body > .otm-pp__text-link:hover,
.otm-account-wrap .otm-pp__reg-body > .otm-pp__text-link:focus,
.otm-account-wrap .otm-pp__reg-body > .otm-pp__text-link:active,
body.otm-account-portal .otm-pp__reg-body > .otm-pp__text-link:hover,
body.otm-account-portal .otm-pp__reg-body > .otm-pp__text-link:focus,
body.otm-account-portal .otm-pp__reg-body > .otm-pp__text-link:active {
    border-top: 1px solid #e8e8e8 !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    border-left-color: transparent !important;
}

.otm-pp__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.otm-pp__pill--active,
.otm-pp__pill--paid {
    background: rgba(31, 157, 85, 0.1);
    color: var(--pp-green);
}

.otm-pp__pill--ended {
    background: rgba(107, 107, 107, 0.12);
    color: #6b6b6b;
}

.otm-pp__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.otm-pp__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    margin: 0;
    border: 0;
}

/* Kill theme/Hello table top-border on first header row */
body.otm-account-portal .otm-pp__table caption + thead tr:first-child td,
body.otm-account-portal .otm-pp__table caption + thead tr:first-child th,
body.otm-account-portal .otm-pp__table colgroup + thead tr:first-child td,
body.otm-account-portal .otm-pp__table colgroup + thead tr:first-child th,
body.otm-account-portal .otm-pp__table thead:first-child tr:first-child td,
body.otm-account-portal .otm-pp__table thead:first-child tr:first-child th,
body.otm-account-portal table.otm-pp__table thead:first-child tr:first-child th,
body.otm-account-portal table.otm-pp__table thead:first-child tr:first-child td {
    border-block-start: 0 !important;
    border-top: 0 !important;
}

.otm-pp__table th,
.otm-pp__table td {
    padding: 14px 16px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--pp-line);
    vertical-align: middle;
    background: transparent;
}

.otm-pp__table th {
    color: var(--pp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Outer wrap draws the bottom edge so it matches row separators (no collapse quirk) */
.otm-pp__table tbody tr:last-child td {
    border-bottom: 0;
}

.otm-pp__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.otm-pp__muted {
    color: var(--pp-muted);
}

.otm-pp__panel {
    padding: 22px;
    max-width: 640px;
}

.otm-pp__panel--full {
    max-width: none;
    width: 100%;
}

#otm-profile-save {
    width: 100%;
    display: flex;
    box-sizing: border-box;
}

/* Child form photo field — match solid account inputs (override registration.css dashed) */
.otm-account-wrap .otm-player-photo-group .otm-player-photo-input,
.otm-account__player-form .otm-player-photo-group .otm-player-photo-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1.5px solid var(--otm-field-border, #ddd) !important;
    border-radius: 10px !important;
    background: #fafafa !important;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.otm-account-wrap .otm-player-photo-group .otm-player-photo-input:hover,
.otm-account__player-form .otm-player-photo-group .otm-player-photo-input:hover {
    border-color: #bbb !important;
    background: #fff !important;
}

.otm-account-wrap .otm-player-photo-group .otm-player-photo-input:focus,
.otm-account__player-form .otm-player-photo-group .otm-player-photo-input:focus {
    border-color: var(--otm-red, #4f83a8) !important;
    background: #fff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 131, 168, 0.12) !important;
}

.otm-account__player-form .otm-player-photo-group .otm-photo-hint {
    margin-top: 6px;
}

.otm-account__player-form .otm-player-photo-group .otm-photo-preview {
    border: 1.5px solid var(--otm-field-border, #ddd);
    border-radius: 10px;
    background: #fff;
}

.otm-pp__back-link {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
}

.otm-pp__child-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--pp-line);
}

.otm-pp__child-avatar--lg,
.otm-pp__child-photo--lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
}

.otm-pp__child-avatar--lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.otm-pp__child-photo--lg {
    object-fit: cover;
}

.otm-pp__child-profile-head strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.otm-pp__panel-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 800;
}

.otm-pp__reg-detail {
    padding: 22px;
}

.otm-pp__reg-detail-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--pp-line);
}

.otm-pp__reg-detail-head strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.otm-pp__reg-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0;
}

.otm-pp__reg-detail-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pp-line);
}

.otm-pp__reg-detail-row dt {
    margin: 0;
    color: var(--pp-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.otm-pp__reg-detail-row dd {
    margin: 0;
    color: var(--pp-black);
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .otm-pp__reg-detail-grid {
        grid-template-columns: 1fr;
    }
}

.otm-pp .otm-account__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.otm-pp .otm-account__empty {
    margin: 0;
    padding: 22px;
    background: #fff;
    border: 1px dashed #d6d6d6;
    border-radius: 12px;
    color: var(--pp-muted);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .otm-pp__stats,
    .otm-pp__child-grid,
    .otm-pp__reg-grid {
        grid-template-columns: 1fr;
    }

    .otm-pp__reg-card {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    #otm-pp-view-registrations .otm-pp__reg-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    html.otm-account-portal:has(body.otm-account-is-member),
    html.otm-account-portal body.otm-account-is-member,
    body.otm-account-is-member,
    body.otm-account-portal.otm-account-is-member {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100%;
        position: static !important;
    }

    .otm-account-wrap.is-member {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .otm-account-wrap.is-member .otm-account,
    .otm-account-wrap.is-member #otm-account-member {
        height: auto !important;
        overflow: visible !important;
    }

    .otm-pp {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        min-height: 100vh;
        --pp-topbar-h: 56px;
        padding-top: calc(56px + env(safe-area-inset-top, 0px));
    }

    .otm-pp__shell {
        display: block;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .otm-pp__nav-toggle {
        display: inline-flex;
    }

    .otm-pp__nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(17, 17, 17, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .otm-pp__nav-backdrop:not([hidden]) {
        opacity: 1;
        pointer-events: auto;
    }

    .otm-pp__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 50;
        display: flex;
        flex-direction: column;
        width: min(300px, 86vw);
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 72px 14px max(16px, env(safe-area-inset-bottom, 0px));
        border-right: 1px solid var(--pp-line);
        border-bottom: 0;
        background: #fff;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: none;
    }

    .otm-pp.is-nav-open .otm-pp__sidebar {
        transform: translateX(0);
        box-shadow: 12px 0 32px rgba(17, 17, 17, 0.18);
    }

    .otm-pp__nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .otm-pp__nav,
    .otm-pp__sidebar-foot {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 4px;
    }

    .otm-pp__sidebar-foot {
        flex: 0 0 auto;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid var(--pp-line);
    }

    .otm-pp__nav-item {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .otm-pp__content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 18px 14px 12px;
    }

    .otm-pp__page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 18px;
    }

    .otm-pp__page-head .otm-pp__btn {
        width: 100%;
    }

    .otm-pp__welcome {
        font-size: clamp(26px, 7vw, 34px);
    }

    .otm-pp__section-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .otm-pp__section-head h2 {
        font-size: 22px;
    }

    .otm-pp__topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        gap: 10px;
        padding: 10px 12px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        min-height: 56px;
        z-index: 60;
        box-sizing: border-box;
    }

    .otm-pp__topbar-left,
    .otm-pp__topbar-right {
        gap: 8px;
        min-width: 0;
    }

    .otm-pp__logo,
    .otm-pp__topbar-sep {
        display: none !important;
    }

    .otm-pp__topbar-label {
        font-size: 18px;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .otm-pp__top-link {
        font-size: 12px;
        white-space: nowrap;
    }

    .otm-pp__user-name {
        display: none;
    }

    .otm-pp__user-menu {
        display: none !important;
    }

    .otm-pp__child-card--compact {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .otm-pp__child-card--compact .otm-pp__child-card-actions {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 15px;
        border-top: 1px solid var(--pp-line);
    }

    .otm-pp__child-card--rich {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .otm-pp__child-card-media .otm-pp__child-photo--card,
    .otm-pp__child-card-media .otm-pp__child-avatar--card {
        min-height: 250px;
        height: 250px;
        object-position: top;
    }

    .otm-pp__child-card--rich .otm-pp__child-card-actions {
        border-top: 0;
        padding-top: 2px;
    }

    .otm-pp__reg-card,
    #otm-pp-view-registrations .otm-pp__reg-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .otm-pp__reg-media,
    .otm-pp__reg-media img,
    .otm-pp__reg-media-fallback,
    #otm-pp-view-registrations .otm-pp__reg-media,
    #otm-pp-view-registrations .otm-pp__reg-media img,
    #otm-pp-view-registrations .otm-pp__reg-media-fallback {
        min-height: 250px;
        height: 250px;
        object-position: top;
    }

    .otm-pp__reg-body {
        padding: 14px 16px 16px;
    }

    #otm-pp-overview-regs .otm-pp__reg-body > .otm-pp__text-link {
        justify-content: center;
        width: 100%;
        padding-top: 15px !important;
        box-sizing: border-box;
    }

    .otm-pp__reg-top {
        gap: 8px;
    }

    .otm-pp__stat strong {
        font-size: 30px;
    }

    .otm-pp__panel {
        padding: 16px;
        max-width: none;
    }

    .otm-pp .otm-account__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .otm-pp .otm-account__actions .otm-pp__btn {
        width: 100%;
    }

    .otm-pp__table {
        min-width: 640px;
    }

    .otm-pp__table th,
    .otm-pp__table td {
        padding: 12px 12px;
        font-size: 13px;
    }

    .otm-account__alert {
        bottom: 16px;
        max-width: calc(100vw - 24px);
    }

    /* When drawer is open, lock page scroll under the overlay */
    body.otm-account-is-member.otm-pp-nav-open,
    body.otm-account-portal.otm-account-is-member.otm-pp-nav-open {
        overflow: hidden !important;
    }
}

@media (max-width: 560px) {
    .otm-pp__child-card-main {
        align-items: flex-start;
    }

    .otm-pp__reg-detail-head {
        flex-wrap: wrap;
    }

    .otm-pp__child-profile-head {
        flex-wrap: wrap;
    }
}

/* Square buttons — match Home / About (0px radius) */
.checkout-btn,
.campaign-page .checkout-btn,
.campaign-page input[type="submit"],
.player-registration-wrap .checkout-btn,
.player-registration-wrap input[type="submit"],
.player-registration-wrap input[type="button"],
.otm-password-gate .post-password-form input[type="submit"],
.otm-photo-remove,
.otm-account__btn,
.otm-account-wrap button.otm-account__btn,
.otm-pp__btn,
.otm-account-wrap .otm-pp__btn,
body.otm-account-portal .otm-pp__btn,
.otm-success__btn,
.otm-manage__btn,
.otm-manage__actions .otm-manage__btn,
button.otm-manage__btn,
a.otm-manage__btn,
a.otm-success__btn,
a.otm-pp__btn,
.btn-gold,
.btn-gold-dark,
.btn-white,
.btn-outline,
.service-cta,
.nav-cta {
    border-radius: 0 !important;
}
