/* ================================================================
   TKD Camp Manager — Main Stylesheet
   ================================================================

   Color variables are defined here for easy global adjustment.
   ================================================================ */

:root {
    /* ── Brand colors ── */
    --tkd-primary:       #133C8B;
    --tkd-primary-light: #1a4fae;
    --tkd-primary-dark:  #0e2d68;
    --tkd-secondary:     #7ECEFF;
    --tkd-accent:        #FFCB08;
    --tkd-background:    #FFFDF5;

    /* ── Neutral palette ── */
    --tkd-white:         #ffffff;
    --tkd-gray-50:       #f9fafb;
    --tkd-gray-100:      #f3f4f6;
    --tkd-gray-200:      #e5e7eb;
    --tkd-gray-300:      #d1d5db;
    --tkd-gray-400:      #9ca3af;
    --tkd-gray-500:      #6b7280;
    --tkd-gray-600:      #4b5563;
    --tkd-gray-700:      #374151;
    --tkd-gray-800:      #1f2937;
    --tkd-gray-900:      #111827;

    /* ── Semantic colors ── */
    --tkd-success:       #16a34a;
    --tkd-success-bg:    #f0fdf4;
    --tkd-error:         #dc2626;
    --tkd-error-bg:      #fef2f2;

    /* ── Typography ── */
    --tkd-font-family:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                         "Helvetica Neue", Arial, sans-serif;
    --tkd-font-size-xs:  0.75rem;
    --tkd-font-size-sm:  0.875rem;
    --tkd-font-size-md:  1rem;
    --tkd-font-size-lg:  1.125rem;
    --tkd-font-size-xl:  1.5rem;
    --tkd-font-size-2xl: 2rem;

    /* ── Spacing ── */
    --tkd-radius:        12px;
    --tkd-radius-sm:     8px;
    --tkd-radius-lg:     16px;

    /* ── Shadows ── */
    --tkd-shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --tkd-shadow-md:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --tkd-shadow-lg:     0 10px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --tkd-shadow-xl:     0 20px 40px -10px rgba(0,0,0,.15);

    /* ── Transitions ── */
    --tkd-transition:    all .2s ease;
}

/* ================================================================
   Reset / Base
   ================================================================ */

.tkd-page {
    margin: 0;
    padding: 0;
    font-family: var(--tkd-font-family);
    font-size: var(--tkd-font-size-md);
    line-height: 1.6;
    color: var(--tkd-gray-800);
    background: var(--tkd-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tkd-page *,
.tkd-page *::before,
.tkd-page *::after {
    box-sizing: border-box;
}

/* ================================================================
   AUTH PAGES — Login & Register
   ================================================================ */

.tkd-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.tkd-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--tkd-white);
    border-radius: var(--tkd-radius-lg);
    box-shadow: var(--tkd-shadow-xl);
    padding: 2.5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 50px !important;
}

@media (max-width: 768px) {
    .tkd-auth-card {
        margin-top: 20px !important;
    }
}

/* Accent bar at top of card */
.tkd-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tkd-primary) 0%, var(--tkd-secondary) 100%);
}

/* Inline variant (shortcode fallback, inside theme) */
.tkd-auth-card--inline {
    margin: 2rem auto;
}

/* ── Brand name ── */
.tkd-brand {
    font-size: var(--tkd-font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tkd-primary);
    margin-bottom: 1.25rem;
}

/* ── Auth header ── */
.tkd-auth-header h1,
.tkd-auth-header h2 {
    margin: 0 0 0.25rem !important;
    font-size: var(--tkd-font-size-xl) !important;
    font-weight: 700 !important;
    color: var(--tkd-gray-900) !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.tkd-auth-header p {
    margin: 0 0 1.5rem !important;
    color: var(--tkd-gray-500) !important;
    font-size: var(--tkd-font-size-sm) !important;
}

/* ── Auth footer ── */
.tkd-auth-footer {
    text-align: center !important;
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid var(--tkd-gray-200) !important;
    font-size: var(--tkd-font-size-sm) !important;
    color: var(--tkd-gray-500) !important;
}

.tkd-separator {
    margin: 0 0.5rem;
    color: var(--tkd-gray-300);
}

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

.tkd-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.tkd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tkd-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tkd-form .tkd-form-group label {
    font-size: var(--tkd-font-size-sm) !important;
    font-weight: 600 !important;
    color: var(--tkd-gray-700) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tkd-required {
    color: #e53e3e;
    font-weight: 600;
}

.tkd-form .tkd-form-group input[type="text"],
.tkd-form .tkd-form-group input[type="email"],
.tkd-form .tkd-form-group input[type="password"],
.tkd-form .tkd-form-group input[type="tel"],
.tkd-form .tkd-form-group select,
.tkd-form .tkd-form-group textarea {
    width: 100% !important;
    padding: 0.7rem 0.875rem !important;
    font-size: var(--tkd-font-size-md) !important;
    font-family: var(--tkd-font-family) !important;
    color: var(--tkd-gray-800) !important;
    background: var(--tkd-gray-50) !important;
    border: 1.5px solid var(--tkd-gray-200) !important;
    border-radius: var(--tkd-radius-sm) !important;
    transition: var(--tkd-transition);
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.tkd-form .tkd-form-group input::placeholder {
    color: var(--tkd-gray-400) !important;
}

.tkd-form .tkd-form-group input:focus {
    background: var(--tkd-white) !important;
    border-color: var(--tkd-primary) !important;
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.12) !important;
}

/* ── Password toggle ── */
.tkd-input-password-wrap {
    position: relative !important;
}

.tkd-input-password-wrap input {
    width: 100% !important;
    padding-right: 2.75rem !important;
}

.tkd-form .tkd-toggle-password,
.tkd-toggle-password {
    position: absolute !important;
    right: 0.625rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0.25rem !important;
    cursor: pointer;
    color: var(--tkd-gray-400) !important;
    transition: color .2s;
    line-height: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.tkd-form .tkd-toggle-password:hover,
.tkd-toggle-password:hover {
    color: var(--tkd-gray-600) !important;
    background: none !important;
    background-color: transparent !important;
}

.tkd-toggle-password svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* ── Honeypot (anti-bot) ── */
.tkd-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* ── Consent text ── */
.tkd-form-consent p {
    margin: 0 !important;
    font-size: var(--tkd-font-size-xs) !important;
    color: var(--tkd-gray-400) !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.tkd-form-consent .tkd-link {
    font-size: var(--tkd-font-size-xs) !important;
    font-weight: 600 !important;
}

/* ── Account type selector ── */
.tkd-account-type-selector {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
}

.tkd-account-type-option {
    cursor: pointer !important;
    margin: 0 !important;
}

.tkd-account-type-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.tkd-account-type-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 0.75rem !important;
    border: 2px solid var(--tkd-gray-200) !important;
    border-radius: var(--tkd-radius-sm) !important;
    background: var(--tkd-gray-50) !important;
    transition: var(--tkd-transition) !important;
    text-align: center !important;
    color: var(--tkd-gray-400) !important;
}

.tkd-account-type-card:hover {
    border-color: var(--tkd-gray-300) !important;
    background: var(--tkd-white) !important;
    color: var(--tkd-gray-500) !important;
}

.tkd-account-type-option input[type="radio"]:checked + .tkd-account-type-card {
    border-color: var(--tkd-primary) !important;
    background: var(--tkd-white) !important;
    color: var(--tkd-primary) !important;
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.12) !important;
}

.tkd-account-type-card svg {
    width: 28px !important;
    height: 28px !important;
    stroke: currentColor !important;
    fill: none !important;
}

.tkd-account-type-label {
    font-size: var(--tkd-font-size-sm) !important;
    font-weight: 600 !important;
    color: inherit !important;
}

/* ── Form messages ── */
.tkd-form-message {
    min-height: 1.25rem;
    font-size: var(--tkd-font-size-sm);
    border-radius: var(--tkd-radius-sm);
    padding: 0;
    transition: var(--tkd-transition);
}

.tkd-form-message:empty {
    display: none;
}

.tkd-form-message--error {
    display: block;
    color: var(--tkd-error);
    background: var(--tkd-error-bg);
    padding: 0.625rem 0.875rem;
}

.tkd-form-message--success {
    display: block;
    color: var(--tkd-success);
    background: var(--tkd-success-bg);
    padding: 0.625rem 0.875rem;
}

.tkd-login-rate-limit-timer {
    font-size: var(--tkd-font-size-sm);
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--tkd-radius-sm);
}
.tkd-login-rate-limit-timer--active {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}
.tkd-login-rate-limit-timer--done {
    color: var(--tkd-success);
    background: var(--tkd-success-bg);
}

/* ================================================================
   PHONE PREFIX DROPDOWN
   ================================================================ */

.tkd-phone-wrap {
    display: flex;
    position: relative;
}

.tkd-phone-prefix-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.7rem 0.625rem !important;
    font-size: var(--tkd-font-size-sm) !important;
    font-family: var(--tkd-font-family) !important;
    color: var(--tkd-gray-700) !important;
    background: var(--tkd-gray-100) !important;
    border: 1.5px solid var(--tkd-gray-200) !important;
    border-right: none !important;
    border-radius: var(--tkd-radius-sm) 0 0 var(--tkd-radius-sm) !important;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
    transition: var(--tkd-transition);
    line-height: 1.4 !important;
}

.tkd-phone-prefix-btn:hover {
    background: var(--tkd-gray-200) !important;
}

.tkd-phone-flag {
    font-size: 1.15em;
    line-height: 1;
}

.tkd-phone-dial {
    font-weight: 600;
    font-size: var(--tkd-font-size-xs);
    color: var(--tkd-gray-600);
}

.tkd-phone-arrow {
    font-size: 0.65em;
    color: var(--tkd-gray-400);
    margin-left: 0.1rem;
}

/* Phone input (right side) — higher specificity to override .tkd-form rules */
.tkd-phone-wrap .tkd-phone-input,
.tkd-form .tkd-form-group .tkd-phone-wrap .tkd-phone-input {
    flex: 1 !important;
    width: auto !important;
    padding: 0.7rem 0.875rem !important;
    font-size: var(--tkd-font-size-md) !important;
    font-family: var(--tkd-font-family) !important;
    color: var(--tkd-gray-800) !important;
    background: var(--tkd-gray-50) !important;
    border: 1.5px solid var(--tkd-gray-200) !important;
    border-radius: 0 var(--tkd-radius-sm) var(--tkd-radius-sm) 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: var(--tkd-transition);
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

/* Phone hint text */
.tkd-phone-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--tkd-font-size-xs);
    color: var(--tkd-gray-400);
}

.tkd-phone-wrap .tkd-phone-input:focus {
    background: var(--tkd-white) !important;
    border-color: var(--tkd-primary) !important;
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.12) !important;
}

/* Dropdown panel */
.tkd-phone-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 320px;
    max-height: 0;
    overflow: hidden;
    background: var(--tkd-white);
    border-radius: var(--tkd-radius-sm);
    box-shadow: var(--tkd-shadow-lg);
    border: 1.5px solid var(--tkd-gray-200);
    opacity: 0;
    visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease, visibility .2s ease;
    margin-top: 4px;
}

.tkd-phone-dropdown.active {
    max-height: 340px;
    opacity: 1;
    visibility: visible;
    overflow: visible;
}

/* Search inside dropdown */
.tkd-phone-dropdown-search {
    padding: 0.625rem;
    border-bottom: 1px solid var(--tkd-gray-100);
}

.tkd-phone-search {
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    font-size: var(--tkd-font-size-sm) !important;
    border: 1.5px solid var(--tkd-gray-200) !important;
    border-radius: var(--tkd-radius-sm) !important;
    background: var(--tkd-gray-50) !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.tkd-phone-search:focus {
    border-color: var(--tkd-primary) !important;
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.12) !important;
}

/* Options list */
.tkd-phone-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.tkd-phone-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background .1s ease;
    font-size: var(--tkd-font-size-sm);
}

.tkd-phone-option:hover {
    background: var(--tkd-gray-50);
}

.tkd-phone-option--selected {
    background: rgba(19, 60, 139, 0.06);
    font-weight: 600;
}

.tkd-phone-option--selected:hover {
    background: rgba(19, 60, 139, 0.1);
}

.tkd-phone-option-name {
    flex: 1;
    color: var(--tkd-gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tkd-phone-option-dial {
    font-weight: 600;
    color: var(--tkd-gray-500);
    font-size: var(--tkd-font-size-xs);
    white-space: nowrap;
}

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

.tkd-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    padding: 0.75rem 1.5rem !important;
    font-size: var(--tkd-font-size-md) !important;
    font-weight: 600 !important;
    font-family: var(--tkd-font-family) !important;
    border-radius: var(--tkd-radius-sm) !important;
    border: 2px solid transparent !important;
    cursor: pointer;
    transition: var(--tkd-transition);
    text-decoration: none !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.tkd-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary */
.tkd-btn.tkd-btn-primary {
    background: var(--tkd-primary) !important;
    color: var(--tkd-white) !important;
    border-color: var(--tkd-primary) !important;
}

.tkd-btn.tkd-btn-primary:hover:not(:disabled) {
    background: var(--tkd-primary-light) !important;
    border-color: var(--tkd-primary-light) !important;
    box-shadow: var(--tkd-shadow-md) !important;
    transform: translateY(-1px);
}

.tkd-btn.tkd-btn-primary:active:not(:disabled) {
    background: var(--tkd-primary-dark) !important;
    transform: translateY(0);
}

/* Outline */
.tkd-btn.tkd-btn-outline {
    background: transparent !important;
    color: var(--tkd-primary) !important;
    border-color: var(--tkd-primary) !important;
}

.tkd-btn.tkd-btn-outline:hover:not(:disabled) {
    background: var(--tkd-primary) !important;
    color: var(--tkd-white) !important;
}

/* Small */
.tkd-btn.tkd-btn-sm {
    padding: 0.4rem 1rem !important;
    font-size: var(--tkd-font-size-sm) !important;
}

/* ── Links ── */
.tkd-link {
    color: var(--tkd-primary) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color .2s;
}

.tkd-link:hover {
    color: var(--tkd-primary-light) !important;
    text-decoration: underline !important;
}

/* ================================================================
   MODAL (Forgot Password)
   ================================================================ */

.tkd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

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

.tkd-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    background: var(--tkd-white);
    border-radius: var(--tkd-radius-lg);
    box-shadow: var(--tkd-shadow-xl);
    padding: 2rem;
    transform: translateY(20px) scale(0.97);
    transition: transform .25s ease;
}

.tkd-modal-overlay.active .tkd-modal {
    transform: translateY(0) scale(1);
}

.tkd-modal .tkd-modal-close {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    color: var(--tkd-gray-400) !important;
    cursor: pointer;
    padding: 0.25rem 0.5rem !important;
    border-radius: var(--tkd-radius-sm) !important;
    transition: var(--tkd-transition);
    min-height: 0 !important;
    min-width: 0 !important;
    box-shadow: none !important;
}

.tkd-modal .tkd-modal-close:hover {
    color: var(--tkd-gray-700) !important;
    background: var(--tkd-gray-100) !important;
}

.tkd-modal-header {
    margin-bottom: 1.25rem;
}

.tkd-modal-header h2 {
    margin: 0 0 0.375rem !important;
    font-size: var(--tkd-font-size-lg) !important;
    font-weight: 700 !important;
    color: var(--tkd-gray-900) !important;
    padding: 0 !important;
}

.tkd-modal-header p {
    margin: 0 !important;
    font-size: var(--tkd-font-size-sm) !important;
    color: var(--tkd-gray-500) !important;
    line-height: 1.5 !important;
}

/* ================================================================
   DASHBOARD
   ================================================================ */

/* ── Top bar ── */
.tkd-topbar {
    background: var(--tkd-white);
    border-bottom: 1px solid var(--tkd-gray-200);
    box-shadow: var(--tkd-shadow);
}

.tkd-topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tkd-topbar-brand {
    font-weight: 700;
    font-size: var(--tkd-font-size-lg);
    color: var(--tkd-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tkd-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tkd-topbar-user {
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-600);
}

/* ── Dashboard wrapper (inside theme template) ── */
.tkd-dashboard-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* ── Dashboard header: welcome + logout ── */
.tkd-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ── Main area (full-page template fallback) ── */
.tkd-dashboard-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.tkd-dashboard-title {
    margin: 0 0 0.25rem !important;
    font-size: var(--tkd-font-size-2xl) !important;
    font-weight: 700 !important;
    color: var(--tkd-gray-900) !important;
    padding: 0 !important;
}

.tkd-dashboard-subtitle {
    margin: 0 0 0 !important;
    font-size: var(--tkd-font-size-md);
    color: var(--tkd-gray-500);
}

/* ── Cards grid ── */
.tkd-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tkd-dashboard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: var(--tkd-white);
    border: 2px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius-lg);
    text-decoration: none !important;
    color: inherit !important;
    transition: var(--tkd-transition);
    overflow: hidden;
}

.tkd-dashboard-card:hover {
    text-decoration: none !important;
}

.tkd-dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tkd-primary);
    transition: height .2s ease;
}

.tkd-dashboard-card--accent::before {
    background: var(--tkd-accent);
}

.tkd-dashboard-card:hover {
    border-color: var(--tkd-primary);
    box-shadow: var(--tkd-shadow-lg);
    transform: translateY(-4px);
}

.tkd-dashboard-card--accent:hover {
    border-color: var(--tkd-accent);
}

.tkd-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--tkd-radius);
    background: rgba(19, 60, 139, 0.08);
    color: var(--tkd-primary);
    margin-bottom: 1.25rem;
}

.tkd-dashboard-card--accent .tkd-card-icon {
    background: rgba(255, 203, 8, 0.15);
    color: var(--tkd-gray-800);
}

.tkd-dashboard-card h2 {
    margin: 0 0 0.375rem !important;
    font-size: var(--tkd-font-size-lg) !important;
    font-weight: 700 !important;
    color: var(--tkd-gray-900) !important;
    padding: 0 !important;
}

.tkd-dashboard-card p {
    margin: 0 !important;
    font-size: var(--tkd-font-size-sm) !important;
    color: var(--tkd-gray-500) !important;
    flex-grow: 1;
}

.tkd-card-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-size: var(--tkd-font-size-lg);
    color: var(--tkd-primary);
    transition: transform .2s ease;
}

.tkd-dashboard-card--accent .tkd-card-arrow {
    color: var(--tkd-gray-700);
}

.tkd-dashboard-card:hover .tkd-card-arrow {
    transform: translateX(4px);
}

/* ── Card group (card + sublink) ── */
.tkd-dashboard-card-group {
    display: flex;
    flex-direction: column;
}
.tkd-dashboard-card-group .tkd-dashboard-card {
    flex: 1;
}

/* ── Dashboard: available tickets table ── */
.tkd-dashboard-camps-info {
    margin-top: 2rem;
}

.tkd-dashboard-section-title {
    margin: 0 0 1rem !important;
    font-size: var(--tkd-font-size-lg) !important;
    font-weight: 800 !important;
    color: var(--tkd-gray-900) !important;
}

.tkd-dashboard-camps-table-wrap {
    overflow-x: auto;
}

.tkd-dashboard-camps-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--tkd-white);
}

.tkd-dashboard-camps-table th,
.tkd-dashboard-camps-table td {
    border: 1px solid var(--tkd-gray-200);
    padding: 0.75rem;
    vertical-align: top;
    text-align: left;
}

.tkd-dashboard-camps-table th {
    background: var(--tkd-gray-50);
    font-weight: 800;
    color: var(--tkd-gray-700);
    font-size: 0.9rem;
    white-space: nowrap;
}

.tkd-dashboard-camps-table td {
    font-size: 0.9rem;
    color: var(--tkd-gray-800);
}

.tkd-dashboard-price {
    font-weight: 800;
}

.tkd-dashboard-no-prices {
    color: var(--tkd-gray-500);
    font-style: italic;
}

.tkd-dashboard-deadline {
    display: block;
    margin-top: 0.35rem;
    padding: 0.35rem 0.5rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

/* ── Dashboard: camps accordion ── */
.tkd-dashboard-camp-accordions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tkd-dashboard-camp-details {
    background: var(--tkd-white);
    border: 1px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius-lg);
    overflow: hidden;
}

.tkd-dashboard-camp-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    user-select: none;
    color: var(--tkd-gray-900);
}

.tkd-dashboard-camp-details > summary::-webkit-details-marker {
    display: none;
}

.tkd-dashboard-camp-details-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.tkd-dashboard-camp-details-title {
    font-size: 1rem;
    font-weight: 800;
}

.tkd-dashboard-camp-details-subtitle {
    font-size: 0.85rem;
    color: var(--tkd-gray-500);
}

.tkd-dashboard-camp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tkd-primary);
    transition: transform 0.22s ease;
}

/* Arrow rotation: down when closed, up when open */
.tkd-dashboard-camp-details[open] .tkd-dashboard-camp-arrow {
    transform: rotate(180deg);
}

.tkd-dashboard-camp-details-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, opacity 0.18s ease, transform 0.28s ease;
    padding: 0 1.25rem;
}

.tkd-dashboard-camp-details[open] .tkd-dashboard-camp-details-body {
    /* Big enough to fit the table */
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
    padding: 0 1.25rem 1.25rem;
}

.tkd-card-sublink {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: var(--tkd-font-size-sm);
    font-weight: 600;
    color: var(--tkd-primary) !important;
    text-decoration: none !important;
    transition: var(--tkd-transition);
}
.tkd-card-sublink:hover {
    text-decoration: underline !important;
    color: var(--tkd-primary-dark) !important;
}
.tkd-card-sublink--accent {
    color: var(--tkd-gray-700) !important;
}
.tkd-card-sublink--accent:hover {
    color: var(--tkd-gray-900) !important;
}
.tkd-card-sublink--disabled {
    visibility: hidden;
    pointer-events: none;
}

/* ================================================================
   PROFILE PAGE
   ================================================================ */

.tkd-profile-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.tkd-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tkd-profile-card {
    background: var(--tkd-white);
    border: 1px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius-lg);
    padding: 2rem;
    box-shadow: var(--tkd-shadow);
}

/* Role badge */
.tkd-profile-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--tkd-gray-200);
}

.tkd-profile-role-label {
    font-size: var(--tkd-font-size-sm) !important;
    font-weight: 600 !important;
    color: var(--tkd-gray-500) !important;
}

.tkd-profile-role-badge {
    display: inline-block !important;
    padding: 0.2rem 0.75rem !important;
    font-size: var(--tkd-font-size-xs) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--tkd-primary) !important;
    background: rgba(19, 60, 139, 0.08) !important;
    border-radius: 999px !important;
}

/* Gear icon button */
.tkd-btn.tkd-btn-icon {
    padding: 0.4rem !important;
    border: 2px solid var(--tkd-primary) !important;
    background: var(--tkd-accent) !important;
    color: var(--tkd-gray-500) !important;
    border-radius: var(--tkd-radius-sm) !important;
    line-height: 0 !important;
    transition: var(--tkd-transition);
}

.tkd-btn.tkd-btn-icon:hover {
    border-color: var(--tkd-primary) !important;
    color: var(--tkd-primary) !important;
    background: rgba(19, 60, 139, 0.04) !important;
}

.tkd-btn.tkd-btn-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: var(--tkd-primary) !important;
    fill: none !important;
}

/* Dashboard header actions (gear + logout side by side) */
.tkd-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================================================================
   PARTICIPANTS PAGE — Accordion, Toolbar, Consent
   ================================================================ */

/* ── Wrapper ── */
.tkd-participants-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.tkd-participants-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.tkd-participants-header > .tkd-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Toolbar ── */
.tkd-participant-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tkd-participant-search {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.tkd-participant-search svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tkd-gray-400);
    pointer-events: none;
}

.tkd-participant-search input {
    width: 100% !important;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem !important;
    font-size: var(--tkd-font-size-sm) !important;
    border: 1.5px solid var(--tkd-gray-200) !important;
    border-radius: var(--tkd-radius-sm) !important;
    background: var(--tkd-white) !important;
    outline: none !important;
    transition: var(--tkd-transition);
}

.tkd-participant-search input:focus {
    border-color: var(--tkd-primary) !important;
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.12) !important;
}

/* ── Empty state ── */
.tkd-participants-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--tkd-gray-400);
    font-size: var(--tkd-font-size-sm);
}

.tkd-participants-empty svg {
    display: block;
    margin: 0 auto 0.75rem;
}

/* ── Accordion list (card container) ── */
.tkd-participants-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--tkd-white);
    border: 1px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--tkd-shadow);
}

/* ── Accordion item ── */
.tkd-accordion-item {
    border: 1.5px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius);
    background: var(--tkd-white);
    overflow: hidden;
    transition: var(--tkd-transition);
}

.tkd-accordion-item:hover {
    border-color: var(--tkd-gray-300);
}

/* ── Accordion header ── */
.tkd-accordion-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
    transition: background .15s ease;
}

.tkd-accordion-header:hover {
    background: var(--tkd-gray-50);
}

.tkd-accordion-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tkd-accordion-bottom-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tkd-accordion-name {
    font-weight: 600;
    color: var(--tkd-gray-800);
    font-size: var(--tkd-font-size-md);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tkd-accordion-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Registration code badge */
.tkd-code-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: var(--tkd-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--tkd-primary);
    background: rgba(19, 60, 139, 0.08);
    border-radius: 999px;
    font-family: monospace, 'Courier New', Courier, sans-serif;
    white-space: nowrap;
}

.tkd-code-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 999px;
    padding: 0.1rem 0.1rem 0.1rem 0.5rem;
}

.tkd-code-badge-wrap .tkd-code-badge {
    padding: 0.15rem 0.4rem;
}
.tkd-code-copy-icon-wrap {
    display: inline-flex;
    align-items: center;
    color: var(--tkd-primary);
    opacity: 0.85;
}
.tkd-code-badge-wrap:hover .tkd-code-copy-icon-wrap {
    opacity: 1;
}
.tkd-code-copy-icon {
    display: block;
}
.tkd-code-copy {
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tkd-code-copied {
    background: #059669 !important;
    color: #fff !important;
}
.tkd-code-badge-wrap.tkd-code-copied .tkd-code-copy-icon-wrap {
    color: #fff;
}

/* Action buttons in accordion header */
.tkd-accordion-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: var(--tkd-radius-sm) !important;
    color: var(--tkd-gray-400) !important;
    cursor: pointer;
    transition: var(--tkd-transition);
}

.tkd-accordion-action-btn:hover {
    background: var(--tkd-gray-100) !important;
    color: var(--tkd-primary) !important;
}

.tkd-accordion-action-btn--danger:hover {
    background: var(--tkd-error-bg) !important;
    color: var(--tkd-error) !important;
}

.tkd-accordion-action-btn--muted {
    color: var(--tkd-gray-300) !important;
    cursor: default;
}

.tkd-accordion-action-btn--muted:hover {
    background: transparent !important;
    color: var(--tkd-gray-300) !important;
}

.tkd-accordion-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* ── Accordion order status badge ── */
.tkd-accordion-order-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: default;
    line-height: 1.4;
}

.tkd-accordion-order-badge--pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.tkd-accordion-order-badge--onhold {
    background: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
}

/* ── Accordion body (form) ── */
.tkd-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.tkd-accordion-item--open .tkd-accordion-body {
    max-height: 2000px;
}

.tkd-accordion-body .tkd-form {
    padding: 0 1.25rem 1.25rem;
}

/* ── Participant form extras ── */
.tkd-participant-form select {
    width: 100% !important;
    padding: 0.7rem 0.875rem !important;
    font-size: var(--tkd-font-size-md) !important;
    font-family: var(--tkd-font-family) !important;
    color: var(--tkd-gray-800) !important;
    background: var(--tkd-gray-50) !important;
    border: 1.5px solid var(--tkd-gray-200) !important;
    border-radius: var(--tkd-radius-sm) !important;
    transition: var(--tkd-transition);
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

.tkd-participant-form select:focus {
    background-color: var(--tkd-white) !important;
    border-color: var(--tkd-primary) !important;
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.12) !important;
}

.tkd-participant-form textarea {
    resize: vertical;
    min-height: 80px;
}

.tkd-checkbox-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
    font-size: var(--tkd-font-size-sm) !important;
    color: var(--tkd-gray-600) !important;
    cursor: pointer;
    font-weight: 400 !important;
}

.tkd-checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--tkd-primary);
}

.tkd-camp-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tkd-camp-check-item {
    overflow: hidden;
}
.tkd-camp-check-item .tkd-checkbox-label {
    padding: 0.5rem 0.75rem;
    width: 100%;
}
.tkd-camp-check-item .tkd-checkbox-label:hover {
    background: var(--tkd-gray-50);
}

/* Variant radio sub-options */
.tkd-camp-variants {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
    padding: 0 0.75rem;
    border-top: 1px solid transparent;
}
.tkd-camp-variants--open {
    max-height: 200px;
    opacity: 1;
    padding: 0.5rem 0.75rem 0.625rem 2.25rem;
    border-top-color: var(--tkd-gray-200);
}

.tkd-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.tkd-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
    font-size: var(--tkd-font-size-sm) !important;
    color: var(--tkd-gray-600) !important;
    cursor: pointer;
    font-weight: 400 !important;
    padding: 0.25rem 0;
}
.tkd-radio-label input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: var(--tkd-primary);
}

.tkd-radio-label--moderator-gated-locked {
    opacity: 0.65;
    cursor: pointer;
}

/* File input */
.tkd-participant-form input[type="file"] {
    font-size: var(--tkd-font-size-sm) !important;
    color: var(--tkd-gray-600) !important;
    padding: 0.5rem 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ── Custom file input ── */
.tkd-file-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.tkd-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}
.tkd-file-label {
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-500);
}

/* ── Consent preview ── */
.tkd-consent-preview {
    margin-top: 0.5rem;
}

.tkd-consent-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--tkd-radius-sm);
    border: 1.5px solid var(--tkd-gray-200);
    cursor: pointer;
    transition: var(--tkd-transition);
}

.tkd-consent-thumb:hover {
    border-color: var(--tkd-primary);
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.12);
}

.tkd-consent-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--tkd-font-size-sm);
    font-weight: 600;
    color: var(--tkd-primary);
    text-decoration: none;
}

.tkd-consent-link:hover {
    text-decoration: underline;
}

/* Consent info text */
.tkd-field-hint {
    font-size: var(--tkd-font-size-sm);
    color: #6b7280;
    margin: 0.25rem 0 0;
}

.tkd-consent-info {
    font-size: var(--tkd-font-size-sm);
    color: #991b1b;
    font-weight: 500;
    margin: 0.25rem 0 0.125rem;
}
.tkd-consent-download {
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-600);
    margin: 0 0 0.5rem;
}
.tkd-consent-download a {
    color: var(--tkd-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Consent preview wrapper with X button */
.tkd-consent-wrap {
    position: relative;
    display: inline-block;
    margin-top: 0.375rem;
}
.tkd-consent-x {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}
.tkd-consent-x:hover {
    background: #991b1b;
}

.tkd-consent-file-name {
    display: inline-block;
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-500);
}

/* ── Payment placeholder ── */
.tkd-payment-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--tkd-gray-50);
    border: 1px dashed var(--tkd-gray-300);
    border-radius: var(--tkd-radius-sm);
    color: var(--tkd-gray-400);
    font-size: var(--tkd-font-size-sm);
}

.tkd-payment-placeholder svg {
    flex-shrink: 0;
}

/* ── Form actions (Save + Cancel) ── */
.tkd-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── Delete modal actions ── */
.tkd-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Danger button */
.tkd-btn.tkd-btn-danger {
    background: var(--tkd-error) !important;
    color: var(--tkd-white) !important;
    border-color: var(--tkd-error) !important;
}

.tkd-btn.tkd-btn-danger:hover:not(:disabled) {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* ── Lightbox ── */
.tkd-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

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

.tkd-lightbox-close {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    color: var(--tkd-white) !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: var(--tkd-radius-sm) !important;
    cursor: pointer;
    transition: background .2s;
}

.tkd-lightbox-close:hover {
    background: rgba(255,255,255,0.3) !important;
}

.tkd-lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--tkd-radius);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

/* ── Split layout (login page) ── */
.tkd-login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

/* Remove theme spacing around the split layout */
.tkd-login-split.alignfull {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tkd-login-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--tkd-background);
}

.tkd-login-left-inner {
    width: 100%;
    max-width: 500px;
    padding: 0 1rem;
}

.tkd-login-headline {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: var(--tkd-primary) !important;
    margin: 0 0 2rem !important;
    padding: 0 !important;
}

.tkd-login-right {
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: sticky;
    top: 0;
    background-color: var(--tkd-background);
}

/* ================================================================
   Responsive
   ================================================================ */

/* ── Login split — tablet ── */
@media (max-width: 1024px) {
    .tkd-login-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tkd-login-left {
        min-height: auto;
        padding: 2.5rem 1.5rem;
    }

    /* Image below form, generous size */
    .tkd-login-right {
        height: 400px;
        position: static;
        background-size: contain;
    }
}

/* ── General mobile ── */
@media (max-width: 640px) {
    .tkd-login-left {
        padding: 2rem 1rem;
    }

    .tkd-login-right {
        height: 280px;
    }

    .tkd-auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .tkd-login-headline {
        font-size: 1.375rem;
    }

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

    .tkd-account-type-selector {
        grid-template-columns: 1fr !important;
    }

    .tkd-dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tkd-dashboard-header .tkd-dashboard-actions {
        align-self: flex-start;
    }

    .tkd-profile-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tkd-profile-header .tkd-btn {
        align-self: flex-start;
    }

    .tkd-profile-card {
        padding: 1.5rem 1.25rem;
    }

    .tkd-dashboard-cards {
        grid-template-columns: 1fr;
    }

    /* Participants page */
    .tkd-participants-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tkd-participants-header .tkd-btn {
        align-self: flex-start;
    }

    .tkd-participant-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tkd-participant-search {
        max-width: 100%;
    }

    /* ── Dashboard / register-participant title spacing ── */
    .tkd-dashboard-title {
        font-size: var(--tkd-font-size-xl);
        margin-bottom: 0.1rem !important;
    }

    .tkd-dashboard-subtitle {
        margin-bottom: 0 !important;
        font-size: var(--tkd-font-size-sm);
    }

    .tkd-dashboard-header,
    .tkd-participants-header {
        gap: 0.25rem;
    }

    /* ── Accordion header — mobile layout ── */
    .tkd-accordion-header {
        flex-wrap: wrap;
        padding: 0.75rem 0.75rem;
        gap: 0.25rem;
    }

    .tkd-accordion-name {
        flex: 1 1 auto;
        min-width: 0;
        font-size: var(--tkd-font-size-sm);
    }

    .tkd-accordion-actions {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    /* Registration code below name + status, full width row */
    .tkd-code-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Order badge smaller on mobile */
    .tkd-accordion-order-badge {
        font-size: 10px;
        padding: 2px 7px;
    }

    .tkd-accordion-action-btn {
        width: 28px;
        height: 28px;
    }

    .tkd-accordion-body .tkd-form {
        padding: 0 0.75rem 1rem;
    }

    /* ── Payment status row — stack on mobile ── */
    .tkd-payment-status-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.6rem 0.75rem;
    }

    .tkd-payment-status-row .tkd-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .tkd-payment-badge {
        font-size: var(--tkd-font-size-xs);
    }

    .tkd-topbar-user {
        display: none;
    }

    .tkd-ticket-cards {
        grid-template-columns: 1fr;
    }

    /* ── Participant wrapper — more side space ── */
    .tkd-participants-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ================================================================
   Buy Ticket Page
   ================================================================ */

.tkd-buy-ticket-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tkd-camp-group-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tkd-primary);
    margin: 2rem 0 1rem;
    text-align: center;
}

.tkd-camp-section {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius-lg);
    background: var(--tkd-white);
}

.tkd-camp-includes {
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-600);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--tkd-gray-50);
    border-radius: var(--tkd-radius-sm);
    line-height: 1.6;
}
.tkd-camp-includes strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--tkd-text);
}

.tkd-installment-notice {
    display: inline-flex;
    padding: 10px 14px;
    margin: 0 10px 10px 0;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: var(--tkd-font-size-sm);
    font-weight: 600;
    color: #92400e;
    line-height: 1.6;
}

.tkd-camp-no-variants {
    color: var(--tkd-gray-500);
    font-style: italic;
}

.tkd-loading {
    text-align: center;
    padding: 2rem;
    color: var(--tkd-gray-500);
    font-size: var(--tkd-font-size-sm);
}

.tkd-ticket-note {
    display: block;
    font-size: var(--tkd-font-size-xs);
    color: var(--tkd-gray-500);
    margin-bottom: 0.5rem;
}
.tkd-ticket-note--free {
    color: #16a34a;
    font-weight: 600;
}

.tkd-free-spots-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: var(--tkd-radius-sm);
    padding: 0.5rem 0.875rem;
    font-size: var(--tkd-font-size-sm);
    color: #15803d;
    font-weight: 500;
    margin-bottom: 1rem;
}
.tkd-free-spots-count {
    font-weight: 800;
    font-size: 1.125rem;
}

.tkd-extra-days-hp-notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-700);
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
}

.tkd-camp-section-title {
    font-size: var(--tkd-font-size-lg);
    font-weight: 700;
    color: var(--tkd-text);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tkd-primary);
}

.tkd-ticket-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.tkd-ticket-card {
    background: var(--tkd-white);
    border: 1px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius-lg);
    overflow: hidden;
    box-shadow: var(--tkd-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tkd-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tkd-shadow-lg);
}

.tkd-ticket-card--moderator-gated {
    opacity: 0.72;
}

.tkd-ticket-card--moderator-gated:hover {
    transform: none;
    box-shadow: var(--tkd-shadow);
}

.tkd-ticket-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
}

.tkd-ticket-card-header h3 {
    font-size: var(--tkd-font-size-base);
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.tkd-ticket-card-header--primary {
    border-top: 4px solid var(--tkd-primary);
}

.tkd-ticket-card-header--primary h3 {
    color: var(--tkd-primary);
}

.tkd-ticket-card-header--secondary {
    border-top: 4px solid var(--tkd-secondary);
}

.tkd-ticket-card-header--secondary h3 {
    color: var(--tkd-primary);
}

.tkd-ticket-card-header--accent {
    border-top: 4px solid var(--tkd-accent);
}

.tkd-ticket-card-header--accent h3 {
    color: #b8860b;
}

.tkd-ticket-prices {
    margin-top: 0.25rem;
}

.tkd-ticket-price {
    display: block;
    font-weight: 800;
    color: var(--tkd-text);
}

.tkd-ticket-price--eur {
    font-size: 1.5rem;
}

.tkd-ticket-price--rsd {
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-500);
    font-weight: 600;
    margin-top: 0.125rem;
}

.tkd-ticket-card-body {
    padding: 0 1.25rem 1.25rem;
}

.tkd-ticket-card-body p {
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-gray-500);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.tkd-ticket-card-body .tkd-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Paid banner */
.tkd-ticket-paid-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--tkd-radius-lg);
    color: #065f46;
    font-size: var(--tkd-font-size-base);
    margin-top: 0.5rem;
    font-size: 14px !important;
}

.tkd-ticket-paid-banner svg {
    flex-shrink: 0;
}

.tkd-ticket-paid-banner--partial {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

/* Pending payment notice */
.tkd-pending-payment-notice {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.3rem 0.8rem;
    margin-top: 0.5rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--tkd-radius-lg);
    color: #92400e;
    font-weight: 500;
    font-size: var(--tkd-font-size-sm);
    line-height: 1.5;
}

.tkd-pending-payment-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Button variants */
.tkd-btn-secondary {
    background-color: var(--tkd-secondary);
    color: var(--tkd-primary);
    border: 2px solid var(--tkd-secondary);
    font-weight: 600;
}

.tkd-btn-secondary:hover {
    background-color: #6bc0f5;
    border-color: #6bc0f5;
}

.tkd-btn-accent {
    background-color: var(--tkd-accent);
    color: #1f2937;
    border: 2px solid var(--tkd-accent);
    font-weight: 600;
}

.tkd-btn-accent:hover {
    background-color: #f5c200;
    border-color: #f5c200;
}

.tkd-btn-xs {
    padding: 0.15rem 0.45rem !important;
    font-size: 0.65rem !important;
    border-radius: 3px;
}
.tkd-btn-xxs {
    padding: 0.1rem 0.3rem !important;
    font-size: 0.6rem !important;
    border-radius: 3px !important;
    white-space: nowrap;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    gap: 0.2rem !important;
}

/* ================================================================
   Payment Status Row (in participant form)
   ================================================================ */

.tkd-payment-status-row {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 0.75rem;
    background: var(--tkd-bg);
    border: 1px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius);
}

.tkd-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
}

.tkd-payment-badge--success {
    background: #ecfdf5;
    color: #065f46;
}

.tkd-payment-badge--warning {
    background: #fffbeb;
    color: #92400e;
}

.tkd-payment-badge--muted {
    background: #f3f4f6;
    color: #6b7280;
}

.tkd-payment-badge--pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.tkd-payment-badge--onhold {
    background: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
}

/* ── Disabled buy button (pending order exists) ── */
.tkd-btn-disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: auto;
}
.tkd-btn-disabled:hover {
    transform: none !important;
}

/* ── Pending payment popup ── */
.tkd-pending-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: tkdFadeIn 0.15s ease;
}
.tkd-pending-popup {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2.25rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: tkdPopIn 0.2s ease;
}
.tkd-pending-popup-icon {
    margin-bottom: 0.75rem;
}
.tkd-pending-popup h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}
.tkd-pending-popup p {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}
@keyframes tkdFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes tkdPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* Confirm popup actions row */
.tkd-confirm-actions {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    margin-top: 0.25rem;
}

/* ── Upsell popup ── */
.tkd-upsell-popup {
    max-width: 440px;
}
.tkd-upsell-variant {
    background: var(--tkd-bg, #fffdf5);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin: 0.75rem 0;
}
.tkd-upsell-variant-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.tkd-upsell-variant-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tkd-upsell-price-eur {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tkd-primary, #133c8b);
}
.tkd-upsell-price-rsd {
    font-size: 0.85rem;
    color: #6b7280;
}
.tkd-upsell-spots {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.tkd-upsell-spots-count {
    display: inline-block;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    width: 1.3em;
    height: 1.3em;
    line-height: 1.3em;
    text-align: center;
    font-size: 0.8rem;
    margin-right: 0.15em;
}
.tkd-upsell-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tkd-upsell-actions .tkd-btn {
    width: 100%;
}

.tkd-payment-badge svg {
    flex-shrink: 0;
}

/* Payment icon colors in accordion actions */
.tkd-accordion-action-btn--success {
    color: #059669 !important;
}

.tkd-accordion-action-btn--warning {
    color: #d97706 !important;
}

/* ── Bulk Buy Tickets page ── */
.tkd-bulk-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--tkd-bg, #fffdf5);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.tkd-bulk-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.tkd-bulk-select-all input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--tkd-primary, #133c8b);
}
.tkd-bulk-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tkd-bulk-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s;
}
.tkd-bulk-item:has(.tkd-bulk-cb:checked) {
    border-color: var(--tkd-primary, #133c8b);
}
.tkd-bulk-item--disabled {
    opacity: 0.55;
    pointer-events: none;
}
.tkd-bulk-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tkd-bulk-item-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.tkd-bulk-item-check input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--tkd-primary, #133c8b);
}
.tkd-bulk-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
}
.tkd-bulk-camp-row {
    padding: 0.5rem 0 0.5rem 1.6rem;
    border-top: 1px solid #f3f4f6;
}
.tkd-bulk-camp-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.25rem;
}
.tkd-bulk-camp-variant-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tkd-primary, #133c8b);
    background: rgba(19, 60, 139, 0.08);
    padding: 0.1em 0.5em;
    border-radius: 4px;
}
.tkd-bulk-camp-status {
    font-size: 0.85rem;
    font-weight: 500;
}
.tkd-bulk-camp-status--paid {
    color: #059669;
}
.tkd-bulk-camp-status--muted {
    color: #9ca3af;
}
.tkd-bulk-camp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-top: 0.25rem;
}
.tkd-bulk-radio {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
}
.tkd-bulk-radio input[type="radio"],
.tkd-bulk-radio input[type="checkbox"] {
    accent-color: var(--tkd-primary, #133c8b);
}
.tkd-bulk-price {
    font-weight: 600;
    color: var(--tkd-primary, #133c8b);
}

.tkd-bulk-radio--moderator-gated {
    opacity: 0.65;
}

.tkd-moderator-gated-body a {
    word-break: break-all;
}

.tkd-moderator-gated-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.tkd-bulk-upsell {
    margin-top: 0.35rem;
    padding: 0.4rem 0.6rem;
    background: rgba(5, 150, 105, 0.05);
    border: 1px dashed #059669;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.tkd-bulk-upsell-label {
    color: #065f46;
}
.tkd-bulk-free-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
}
.tkd-bulk-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}
.tkd-bulk-total {
    font-size: 1rem;
    color: #1f2937;
}
.tkd-participant-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .tkd-bulk-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tkd-bulk-camp-row {
        padding-left: 0.5rem;
    }
    .tkd-bulk-camp-options {
        flex-direction: column;
        gap: 0.35rem;
    }
    .tkd-bulk-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ── Per-camp payment details in accordion ── */
.tkd-camp-pay-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}
.tkd-camp-pay-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.3;
    flex-wrap: wrap;
}
.tkd-camp-pay-item svg {
    flex-shrink: 0;
}
.tkd-camp-pay-item--success {
    color: #059669;
}
.tkd-camp-pay-item--warning {
    color: #d97706;
}
.tkd-camp-pay-item--muted {
    color: #6b7280;
}
.tkd-camp-pay-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1em 0.45em;
    border-radius: 3px;
    white-space: nowrap;
}
.tkd-camp-pay-item--success .tkd-camp-pay-tag {
    background: rgba(5, 150, 105, 0.1);
}
.tkd-camp-pay-item--warning .tkd-camp-pay-tag {
    background: rgba(217, 119, 6, 0.1);
}
.tkd-camp-pay-item .tkd-btn {
    color: #fff;
}
.tkd-camp-pay-item .tkd-payment-badge {
    font-size: 0.7rem;
}

/* ================================================================
   Make a Payment Page
   ================================================================ */
.tkd-make-payment-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.tkd-code-entry-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}
.tkd-code-entry-row .tkd-input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--tkd-font-mono, monospace);
}
.tkd-code-entry-row .tkd-btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem !important;
}
.tkd-code-entry-hint {
    font-size: var(--tkd-font-size-sm);
    color: var(--tkd-text-muted, #6b7280);
    margin-top: 0.5rem;
}
/* ── Parent accordion ── */
.tkd-parent-accordion {
    background: #fff;
    border: 1px solid var(--tkd-border, #e5e7eb);
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tkd-parent-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.tkd-parent-accordion-header:hover {
    background: var(--tkd-bg-subtle, #f9fafb);
}
.tkd-parent-accordion-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.tkd-parent-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tkd-parent-status--success { background: #059669; }
.tkd-parent-status--warning { background: #d97706; }
.tkd-parent-status--muted   { background: #9ca3af; }
.tkd-parent-accordion-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
    color: #9ca3af;
}
.tkd-parent-accordion--open .tkd-parent-accordion-arrow {
    transform: rotate(180deg);
}
.tkd-parent-accordion-body {
    display: none;
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--tkd-border, #e5e7eb);
}
.tkd-parent-accordion--open .tkd-parent-accordion-body {
    display: block;
}

/* Profile grid */
.tkd-parent-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1.5rem;
    margin-top: 0.75rem;
}
.tkd-parent-profile-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.tkd-parent-profile-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tkd-parent-profile-value {
    font-size: 0.85rem;
    color: #1f2937;
}

/* Section labels */
.tkd-parent-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

/* Camp tags */
.tkd-parent-camps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tkd-parent-camp-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(19, 60, 139, 0.07);
    color: var(--tkd-primary, #133C8B);
    border-radius: 3px;
    font-weight: 500;
}

/* Actions */
.tkd-parent-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Bulk section */
.tkd-parent-bulk-section {
    margin-top: 1.5rem;
}
.tkd-section-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.tkd-section-subtitle {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--tkd-text-muted, #6b7280);
}
.tkd-parent-bulk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tkd-border, #e5e7eb);
    gap: 1rem;
    flex-wrap: wrap;
}
.tkd-parent-bulk-total {
    font-size: 0.95rem;
    color: #374151;
}

/* Contact popup */
.tkd-contact-popup {
    max-width: 520px !important;
    text-align: left !important;
}
.tkd-contact-popup .tkd-form-group {
    margin-bottom: 0.75rem;
}
.tkd-contact-popup .tkd-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.tkd-contact-popup .tkd-input {
    width: 100%;
    box-sizing: border-box;
}
.tkd-contact-row {
    display: flex;
    gap: 0.75rem;
}
.tkd-contact-half {
    flex: 1;
}
.tkd-contact-popup input[readonly] {
    background: var(--tkd-bg-subtle, #f9fafb) !important;
    color: #6b7280 !important;
    cursor: default;
}
.tkd-contact-message {
    min-height: 120px;
    resize: vertical;
}
@media (max-width: 480px) {
    .tkd-contact-row {
        flex-direction: column;
        gap: 0;
    }
}
.tkd-form-success {
    color: #059669;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

#tkd-parent-participants {
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .tkd-code-entry-row {
        flex-direction: column;
    }
    .tkd-parent-profile-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tkd-parent-bulk-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ================================================================
   MODERATOR DASHBOARD
   ================================================================ */

.tkd-mod-wrapper {
    max-width: 1280px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    font-family: var(--tkd-font-family);
    color: var(--tkd-gray-800);
}
.tkd-mod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.tkd-mod-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--tkd-gray-900);
}
.tkd-mod-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--tkd-gray-500);
}

/* ── Layout: sidebar + content ── */
.tkd-mod-layout {
    display: flex;
    gap: 1rem;
    min-height: 600px;
}
.tkd-mod-sidebar {
    width: 52px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--tkd-white);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow);
    padding: 0.5rem;
    align-self: flex-start;
    position: sticky;
    top: 2rem;
    transition: width 0.25s ease;
    overflow: visible;
}
.tkd-mod-sidebar.expanded {
    width: 200px;
}
.tkd-mod-sidebar-toggle {
    position: absolute;
    top: -0.55rem;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: none;
    border-radius: 50%;
    background: var(--tkd-primary);
    color: var(--tkd-white);
    cursor: pointer;
    transition: var(--tkd-transition);
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.tkd-mod-sidebar-toggle:hover {
    background: var(--tkd-primary-light);
    color: var(--tkd-white);
}
.tkd-mod-sidebar-toggle svg {
    transition: transform 0.25s ease;
}
.tkd-mod-sidebar.expanded .tkd-mod-sidebar-toggle svg {
    transform: rotate(180deg);
}
.tkd-mod-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem;
    border: none;
    border-radius: var(--tkd-radius-sm);
    background: transparent;
    color: var(--tkd-gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.tkd-mod-nav-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
.tkd-mod-nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, width 0.2s ease;
}
.tkd-mod-sidebar.expanded .tkd-mod-nav-item {
    padding: 0.55rem 0.7rem;
}
.tkd-mod-sidebar.expanded .tkd-mod-nav-item span {
    opacity: 1;
    width: auto;
}
.tkd-mod-nav-item:hover {
    background: var(--tkd-gray-100);
    color: var(--tkd-gray-800);
}
.tkd-mod-nav-item.active {
    background: var(--tkd-primary);
    color: var(--tkd-white);
}
.tkd-mod-content {
    flex: 1;
    min-width: 0;
}
.tkd-mod-panel {
    animation: tkdFadeIn 0.2s ease;
}
@keyframes tkdFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tkd-mod-loading {
    text-align: center;
    padding: 3rem;
    color: var(--tkd-gray-400);
    font-size: 0.95rem;
}

/* ── Overview: stat cards ── */
.tkd-mod-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.tkd-mod-stat-card {
    background: var(--tkd-white);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow);
    padding: 1.25rem;
    text-align: center;
}
.tkd-mod-stat-icon {
    margin-bottom: 0.5rem;
}
.tkd-mod-stat-icon svg {
    width: 28px;
    height: 28px;
}
.tkd-mod-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tkd-gray-900);
    line-height: 1.2;
}
.tkd-mod-stat-label {
    font-size: 0.8rem;
    color: var(--tkd-gray-500);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ── Overview: section title ── */
.tkd-mod-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tkd-gray-700);
    margin: 0 0 0.75rem;
}

/* ── Overview: camp cards ── */
.tkd-mod-camp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.tkd-mod-camp-card {
    background: var(--tkd-white);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow);
    padding: 1rem;
    border-left: 4px solid var(--tkd-primary);
}
.tkd-mod-camp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.tkd-mod-camp-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tkd-gray-800);
}
.tkd-mod-camp-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tkd-primary);
}
.tkd-mod-camp-variants {
    border-top: 1px solid var(--tkd-gray-200);
    padding-top: 0.5rem;
}
.tkd-mod-variant-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--tkd-gray-600);
    padding: 0.15rem 0;
}
.tkd-mod-free-spots {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--tkd-accent);
    font-weight: 600;
    background: #fffbeb;
    padding: 0.35rem 0.5rem;
    border-radius: var(--tkd-radius-sm);
}
.tkd-mod-camp-revenue {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--tkd-success);
    font-weight: 600;
    background: #f0fdf4;
    padding: 0.35rem 0.5rem;
    border-radius: var(--tkd-radius-sm);
}

/* ── Overview: payment bar ── */
.tkd-mod-payment-overview {
    background: var(--tkd-white);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow);
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.tkd-mod-payment-bar {
    height: 12px;
    background: var(--tkd-gray-200);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.tkd-mod-bar-paid {
    background: var(--tkd-success);
    transition: width 0.3s ease;
}
.tkd-mod-bar-partial {
    background: var(--tkd-accent);
    transition: width 0.3s ease;
}
.tkd-mod-payment-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--tkd-gray-600);
    margin-bottom: 0.5rem;
}
.tkd-mod-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.tkd-mod-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tkd-mod-dot--paid    { background: var(--tkd-success); }
.tkd-mod-dot--partial { background: var(--tkd-accent); }
.tkd-mod-dot--unpaid  { background: var(--tkd-gray-300); }
.tkd-mod-revenue {
    font-size: 0.9rem;
    color: var(--tkd-gray-700);
}

/* ── Participants: change highlight ── */
.tkd-mod-row--changed {
    background: rgba(59, 130, 246, 0.06) !important;
    border-left: 5px solid orange;
}
.tkd-mod-row--changed:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}
.tkd-mod-field--changed {
    position: relative;
}
.tkd-mod-field--changed label::after,
.tkd-mod-field--changed h4::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: orange;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}
.tkd-mod-field--changed .tkd-mod-consent-upload-label::after {
    display: none;
}
.tkd-mod-review-btn {
    background: orange !important;
    color: #fff !important;
    border: none !important;
}
.tkd-mod-review-btn:hover {
    background: #2563eb !important;
}

/* ── Participants: toolbar ── */
.tkd-mod-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.tkd-mod-search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.tkd-mod-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tkd-gray-400);
    pointer-events: none;
}
.tkd-mod-search {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 40px !important;
    border: 1px solid var(--tkd-gray-300);
    border-radius: var(--tkd-radius-sm);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}
.tkd-mod-search:focus {
    border-color: var(--tkd-primary);
    box-shadow: 0 0 0 3px rgba(19, 60, 139, 0.1);
}

/* ── Participants: filters ── */
.tkd-mod-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.tkd-mod-filter-select {
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--tkd-gray-300);
    border-radius: var(--tkd-radius-sm);
    font-size: 0.825rem;
    background: var(--tkd-white);
    color: var(--tkd-gray-700);
    cursor: pointer;
    min-width: 120px;
}

/* ── Participants: table ── */
.tkd-mod-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}
.tkd-mod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--tkd-white);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow);
    overflow: hidden;
}
.tkd-mod-table thead th {
    background: var(--tkd-gray-50);
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--tkd-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--tkd-gray-200);
    white-space: nowrap;
}
.tkd-mod-table tbody tr {
    border-bottom: 1px solid var(--tkd-gray-100);
    cursor: pointer;
    transition: background 0.15s;
}
.tkd-mod-table tbody tr:hover {
    background: var(--tkd-gray-50);
}
.tkd-mod-table tbody tr.tkd-mod-row--expanded {
    background: rgba(19, 60, 139, 0.04);
}
.tkd-mod-table tbody td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tkd-mod-table tbody td:nth-child(7) {
    white-space: normal;
    overflow: visible;
    max-width: 220px;
}
.tkd-mod-cell-name {
    font-weight: 600;
    color: var(--tkd-gray-800);
    position: relative;
    padding-left: 1rem !important;
}
.tkd-mod-name-with-consent {
    display: inline-block;
}
.tkd-mod-consent-emoji {
    position: absolute;
    top: 0.2rem;
    left: 0.25rem;
    line-height: 1;
    font-size: 0.55rem;
    margin-right: 10px !important;
}
.tkd-mod-notes-indicator {
    position: absolute;
    right: 0.35rem;
    bottom: 0.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tkd-primary);
}
.tkd-mod-cell-code code {
    font-size: 0.75rem;
    background: var(--tkd-gray-100);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    color: var(--tkd-gray-700);
}
.tkd-mod-cell-camps {
    max-width: 180px;
}
.tkd-mod-empty {
    text-align: center;
    padding: 2rem !important;
    color: var(--tkd-gray-400);
    font-style: italic;
}

/* ── Participants: badges ── */
.tkd-mod-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tkd-mod-badge--paid    { background: var(--tkd-success-bg); color: var(--tkd-success); }
.tkd-mod-badge--partial { background: #fffbeb; color: #b45309; }
.tkd-mod-badge--unpaid  { background: var(--tkd-error-bg); color: var(--tkd-error); }
.tkd-mod-badge--cash           { background: #e0f2fe; color: #0369a1; }
.tkd-mod-badge--cash-completed { background: #ccfbf1; color: #0f766e; }

/* ── Invoice column badges ── */
.tkd-mod-badge--invoice-done    { background: var(--tkd-success-bg); color: var(--tkd-success); }
.tkd-mod-badge--invoice-partial { background: #fffbeb; color: #b45309; }
.tkd-mod-badge--invoice-pending { background: #f3f4f6; color: #6b7280; }
.tkd-mod-badge--invoice-na      { background: #f9fafb; color: #d1d5db; }

/* ── Participants: payment detail in table ── */
.tkd-mod-pay-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.tkd-mod-pay-line {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.tkd-mod-pay-camp {
    font-size: 0.7rem;
    color: var(--tkd-gray-500);
    font-weight: 500;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Participants: detail panel ── */
.tkd-mod-detail-row {
    cursor: default !important;
}
.tkd-mod-detail-row:hover {
    background: transparent !important;
}
.tkd-mod-detail {
    padding: 1rem;
}
.tkd-mod-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.tkd-mod-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tkd-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}
.tkd-mod-field input,
.tkd-mod-field select,
.tkd-mod-field textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--tkd-gray-300);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.tkd-mod-field input:focus,
.tkd-mod-field select:focus,
.tkd-mod-field textarea:focus {
    outline: none;
    border-color: var(--tkd-primary);
    box-shadow: 0 0 0 2px rgba(19, 60, 139, 0.1);
}
.tkd-mod-field--full {
    grid-column: 1 / -1;
}
.tkd-mod-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--tkd-gray-700);
    cursor: pointer;
}
.tkd-mod-checkbox input[type="checkbox"] {
    width: auto;
}

/* ── Detail sections ── */
.tkd-mod-detail-section {
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tkd-gray-200);
}
.tkd-mod-detail-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tkd-gray-700);
    margin: 0 0 0.5rem;
}
.tkd-mod-created-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.tkd-mod-created-by-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tkd-gray-800);
}
.tkd-mod-created-by-email {
    font-size: 0.82rem;
    color: var(--tkd-gray-500);
}
.tkd-mod-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tkd-mod-consent-upload-label {
    cursor: pointer;
}
.tkd-mod-muted {
    font-size: 0.85rem;
    color: var(--tkd-gray-400);
    font-style: italic;
}

/* ── Camps editor in detail ── */
.tkd-mod-camps-editor {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tkd-mod-camp-check label {
    font-size: 0.875rem;
    color: var(--tkd-gray-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
}
.tkd-mod-camp-check input[type="checkbox"] {
    width: auto;
}
.tkd-mod-camp-variants-edit {
    margin: 0.25rem 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tkd-mod-variant-radio {
    font-size: 0.825rem !important;
    font-weight: 400 !important;
    color: var(--tkd-gray-600) !important;
}
.tkd-mod-variant-radio input[type="radio"] {
    width: auto;
}

/* ── Payment list in detail ── */
.tkd-mod-payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.tkd-mod-payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--tkd-gray-700);
    padding: 0.5rem 0.65rem;
    background: var(--tkd-gray-50);
    border-radius: 6px;
}
.tkd-mod-payment-item--pending {
    background: #fffbeb;
    border-left: 3px solid var(--tkd-accent);
}
.tkd-mod-payment-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.tkd-mod-payment-item-camp {
    font-weight: 500;
    color: var(--tkd-gray-800);
}
.tkd-mod-payment-item-amounts {
    font-size: 0.75rem;
    color: var(--tkd-gray-500);
}
.tkd-mod-payment-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}
.tkd-mod-payment-item-total {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tkd-gray-700);
}
.tkd-mod-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

/* ── Detail actions ── */
.tkd-mod-detail-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tkd-gray-200);
}

/* ── Pagination ── */
.tkd-mod-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--tkd-gray-500);
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tkd-mod-pagination-btns {
    display: flex;
    gap: 0.25rem;
}
.tkd-mod-page-btn {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--tkd-gray-300);
    border-radius: 6px;
    background: var(--tkd-white);
    color: var(--tkd-gray-700);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--tkd-transition);
}
.tkd-mod-page-btn:hover:not(:disabled) {
    background: var(--tkd-gray-100);
}
.tkd-mod-page-btn.active {
    background: var(--tkd-primary);
    color: var(--tkd-white);
    border-color: var(--tkd-primary);
}
.tkd-mod-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Toast ── */
.tkd-mod-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--tkd-gray-800);
    color: var(--tkd-white);
    padding: 0.65rem 1.25rem;
    border-radius: var(--tkd-radius-sm);
    font-size: 0.875rem;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: var(--tkd-shadow-lg);
}
.tkd-mod-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.tkd-mod-toast--error {
    background: var(--tkd-error);
}

/* ── Payments tab: bulk bar ── */
.tkd-mod-bulk-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--tkd-primary-bg, #eff6ff);
    border: 1px solid var(--tkd-primary-light, #93c5fd);
    border-radius: var(--tkd-radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.tkd-mod-bulk-bar #tkd-mod-bulk-count {
    font-weight: 600;
    color: var(--tkd-primary);
    min-width: 80px;
}
.tkd-mod-bulk-bar .tkd-mod-filter-select {
    max-width: 200px;
}

/* ── Payments tab: internal notes indicator (pencil) ── */
.tkd-mod-order-num-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.tkd-mod-order-has-notes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tkd-accent);
    line-height: 1;
    flex-shrink: 0;
}
.tkd-mod-order-has-notes svg {
    display: block;
}
.tkd-mod-order-has-notes--header {
    margin-left: 0.35rem;
}
.tkd-mod-order-popup-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
}
/* ── Payments tab: orders table ── */
.tkd-mod-orders-table .tkd-mod-th-cb {
    width: 36px;
    text-align: center;
}
.tkd-mod-orders-table td:first-child {
    text-align: center;
}
.tkd-mod-cell-items {
    max-width: 260px;
    font-size: 0.8rem;
    line-height: 1.4;
}
.tkd-mod-cell-items small {
    color: var(--tkd-gray-500);
}
.tkd-mod-cell-total {
    white-space: nowrap;
    font-weight: 600;
}
/* ── Payments tab: action icon buttons ── */
td.tkd-mod-cell-actions {
    overflow: visible;
    max-width: none;
    text-overflow: clip;
    text-align: center;
}
.tkd-mod-actions-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.tkd-mod-participant-delete-btn,
.tkd-mod-order-view-btn,
.tkd-mod-order-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--tkd-gray-300);
    border-radius: var(--tkd-radius-sm);
    cursor: pointer;
    padding: 0.3rem;
    line-height: 1;
    color: var(--tkd-gray-500);
    transition: var(--tkd-transition);
    flex-shrink: 0;
}
.tkd-mod-order-view-btn:hover {
    background: var(--tkd-gray-100);
    border-color: var(--tkd-primary);
    color: var(--tkd-primary);
}
.tkd-mod-order-delete-btn:hover,
.tkd-mod-participant-delete-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}
.tkd-mod-order-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--tkd-gray-300);
    border-radius: var(--tkd-radius-sm);
    cursor: pointer;
    padding: 0.3rem;
    line-height: 1;
    color: var(--tkd-gray-500);
    transition: var(--tkd-transition);
    flex-shrink: 0;
}
.tkd-mod-order-edit-btn:hover {
    background: #fffbeb;
    border-color: var(--tkd-accent);
    color: var(--tkd-accent);
}

/* ── Status dropdown ── */
.tkd-mod-order-status-wrap {
    position: relative;
}
.tkd-mod-order-status-dropdown {
    display: none;
    position: fixed;
    z-index: 10000;
    background: var(--tkd-white);
    border: 1px solid var(--tkd-gray-200);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow-lg);
    padding: 0.35rem;
    min-width: 160px;
}
.tkd-mod-order-status-dropdown.open {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tkd-mod-order-status-option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0.4rem 0.6rem;
    text-align: left;
    cursor: pointer;
    border-radius: var(--tkd-radius-sm);
    transition: background 0.15s;
}
.tkd-mod-order-status-option:hover {
    background: var(--tkd-gray-50);
}

/* ── Payments tab: delete confirm popup ── */
.tkd-mod-order-delete-body {
    text-align: center;
    padding: 0.5rem 0 1rem;
}
.tkd-mod-order-delete-icon {
    margin-bottom: 0.75rem;
}
.tkd-mod-order-delete-body p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--tkd-gray-700);
}
.tkd-mod-order-delete-info {
    font-size: 0.9rem !important;
    color: var(--tkd-gray-600) !important;
}
.tkd-mod-order-delete-warn {
    font-size: 0.8rem !important;
    color: var(--tkd-gray-400) !important;
}
.tkd-mod-order-delete-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 0.25rem;
}

/* ── Payments tab: order detail popup ── */
.tkd-mod-order-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.tkd-mod-order-popup {
    background: var(--tkd-white);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow-lg);
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    animation: tkdModPopupIn 0.2s ease-out;
}
@keyframes tkdModPopupIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.tkd-mod-order-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.tkd-mod-order-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--tkd-gray-800);
}
.tkd-mod-order-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--tkd-gray-500);
    padding: 0.2rem 0.5rem;
    line-height: 1;
    border-radius: var(--tkd-radius-sm);
    transition: var(--tkd-transition);
}
.tkd-mod-order-popup-close:hover {
    background: var(--tkd-gray-100);
    color: var(--tkd-gray-800);
}
.tkd-mod-order-popup-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--tkd-gray-600);
}
.tkd-mod-order-popup-section {
    margin-bottom: 1.25rem;
}
.tkd-mod-order-popup-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tkd-gray-500);
    margin: 0 0 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--tkd-gray-200);
}
.tkd-mod-order-popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.tkd-mod-order-popup-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tkd-mod-order-popup-grid label {
    font-size: 0.75rem;
    color: var(--tkd-gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tkd-mod-order-popup-grid span {
    font-size: 0.9rem;
    color: var(--tkd-gray-800);
}
.tkd-mod-order-popup-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.tkd-mod-order-popup-items th {
    text-align: left;
    padding: 0.45rem 0.5rem;
    background: var(--tkd-gray-50);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tkd-gray-600);
    border-bottom: 1px solid var(--tkd-gray-200);
}
.tkd-mod-order-popup-items td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--tkd-gray-100);
    color: var(--tkd-gray-700);
}
.tkd-mod-order-popup-items small {
    color: var(--tkd-gray-400);
}
.tkd-mod-order-popup-items tfoot td {
    border-top: 2px solid var(--tkd-gray-300);
    border-bottom: none;
    font-size: 0.9rem;
}
.tkd-mod-text-right {
    text-align: right !important;
}
.tkd-mod-order-popup-status-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.tkd-mod-order-popup-status-row .tkd-mod-filter-select {
    flex: 1;
    max-width: 250px;
}

/* ── Payments tab: date filter ── */
.tkd-mod-filter-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--tkd-gray-300);
    border-radius: var(--tkd-radius-sm);
    font-size: 0.8rem;
    background: var(--tkd-white);
    min-width: 0;
    max-width: 160px;
    width: 160px;
    flex: 0 0 auto;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
}
.tkd-mod-filter-date::-webkit-datetime-edit-text,
.tkd-mod-filter-date::-webkit-datetime-edit-month-field,
.tkd-mod-filter-date::-webkit-datetime-edit-day-field,
.tkd-mod-filter-date::-webkit-datetime-edit-year-field {
    -webkit-appearance: none;
    display: none;
}
.tkd-mod-filter-date::-webkit-datetime-edit {
    display: none;
}
.tkd-mod-filter-date.has-value::-webkit-datetime-edit {
    display: initial;
}
.tkd-mod-filter-date.has-value::-webkit-datetime-edit-text,
.tkd-mod-filter-date.has-value::-webkit-datetime-edit-month-field,
.tkd-mod-filter-date.has-value::-webkit-datetime-edit-day-field,
.tkd-mod-filter-date.has-value::-webkit-datetime-edit-year-field {
    display: initial;
}
.tkd-mod-filter-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
}
.tkd-mod-filter-date::before {
    content: attr(placeholder);
    color: var(--tkd-gray-500);
    pointer-events: none;
}
.tkd-mod-filter-date.has-value::before {
    display: none;
}

/* Toggle changes button */
.tkd-mod-log-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--tkd-primary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.2rem 0;
    margin-top: 0.35rem;
}
.tkd-mod-log-toggle:hover {
    text-decoration: underline;
}
.tkd-mod-notif-arrow {
    transition: transform 0.2s;
    display: inline-block;
}
.tkd-mod-log-toggle.open .tkd-mod-notif-arrow {
    transform: rotate(180deg);
}

/* Changes diff table */
.tkd-mod-changes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 0.5rem;
}
.tkd-mod-changes-table th {
    background: var(--tkd-gray-100);
    padding: 0.35rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--tkd-gray-600);
}
.tkd-mod-changes-table td {
    padding: 0.35rem 0.5rem;
    border-top: 1px solid var(--tkd-gray-200);
    vertical-align: top;
}
.tkd-mod-change-old {
    color: #dc2626;
    text-decoration: line-through;
}
.tkd-mod-change-new {
    color: #16a34a;
    font-weight: 500;
}

/* ================================================================
   Activity Log Tab
   ================================================================ */

.tkd-mod-log-date {
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--tkd-gray-600);
}
.tkd-mod-log-user {
    font-size: 0.8rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tkd-mod-log-desc {
    font-size: 0.82rem;
    max-width: 400px;
}
.tkd-mod-log-ip {
    font-size: 0.78rem;
    color: var(--tkd-gray-500);
    font-family: monospace;
}

/* Action badges */
.tkd-mod-log-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.tkd-mod-log-badge--green  { background: #dcfce7; color: #16a34a; }
.tkd-mod-log-badge--blue   { background: #dbeafe; color: #2563eb; }
.tkd-mod-log-badge--red    { background: #fee2e2; color: #dc2626; }
.tkd-mod-log-badge--orange { background: #fef3c7; color: #d97706; }
.tkd-mod-log-badge--gray   { background: #f3f4f6; color: #6b7280; }

.tkd-mod-log-changes {
    margin-top: 0.5rem;
}

/* Clickable log rows */
.tkd-mod-log-row {
    cursor: pointer;
    transition: background 0.15s;
}
.tkd-mod-log-row:hover {
    background: var(--tkd-gray-50);
}
.tkd-mod-log-changes-hint {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--tkd-primary);
    background: #eff6ff;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 0.3rem;
    font-weight: 500;
}

/* ── Activity Log detail popup ── */
.tkd-mod-log-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 1rem;
}
.tkd-mod-log-popup {
    background: var(--tkd-white);
    border-radius: var(--tkd-radius);
    box-shadow: var(--tkd-shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}
.tkd-mod-log-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--tkd-gray-500);
    line-height: 1;
    padding: 0.25rem;
}
.tkd-mod-log-popup-close:hover {
    color: var(--tkd-gray-800);
}
.tkd-mod-log-popup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}
.tkd-mod-log-popup-time {
    font-size: 0.8rem;
    color: var(--tkd-gray-500);
    margin-left: auto;
}
.tkd-mod-log-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.tkd-mod-log-popup-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tkd-mod-log-popup-grid label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--tkd-gray-500);
    letter-spacing: 0.03em;
}
.tkd-mod-log-popup-grid span {
    font-size: 0.85rem;
    color: var(--tkd-gray-800);
}
.tkd-mod-log-popup-section {
    margin-bottom: 1rem;
}
.tkd-mod-log-popup-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tkd-gray-600);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tkd-mod-log-popup-desc {
    font-size: 0.85rem;
    color: var(--tkd-gray-700);
    line-height: 1.5;
    margin: 0;
    padding: 0.75rem;
    background: var(--tkd-gray-50);
    border-radius: var(--tkd-radius-sm);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tkd-mod-layout {
        flex-direction: column;
    }
    .tkd-mod-sidebar {
        width: 100% !important;
        flex-direction: row;
        position: static;
        overflow-x: auto;
        gap: 0.25rem;
        padding: 0.5rem;
    }
    .tkd-mod-sidebar-toggle {
        display: none;
    }
    .tkd-mod-nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .tkd-mod-nav-item span {
        opacity: 1 !important;
        width: auto !important;
    }
    .tkd-mod-stats-grid {
        grid-template-columns: 1fr;
    }
    .tkd-mod-camp-grid {
        grid-template-columns: 1fr;
    }
    .tkd-mod-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tkd-mod-table tbody td {
        font-size: 0.8rem;
        padding: 0.45rem 0.5rem;
    }
    .tkd-mod-filters {
        flex-wrap: wrap;
    }
    .tkd-mod-filter-select {
        flex: 1 1 45%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .tkd-mod-detail-grid {
        grid-template-columns: 1fr;
    }
    .tkd-mod-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Progress Modal ── */
.tkd-mod-progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.tkd-mod-progress-modal {
    background: var(--tkd-white, #fff);
    border-radius: var(--tkd-radius, 12px);
    box-shadow: var(--tkd-shadow-lg, 0 8px 30px rgba(0,0,0,0.12));
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    text-align: center;
}
.tkd-mod-progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tkd-gray-800, #1f2937);
    margin-bottom: 1.25rem;
}
.tkd-mod-progress-bar-wrap {
    width: 100%;
    height: 10px;
    background: var(--tkd-gray-200, #e5e7eb);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.tkd-mod-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--tkd-primary, #2563eb);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.tkd-mod-progress-text {
    font-size: 0.85rem;
    color: var(--tkd-gray-500, #6b7280);
}

