/* ==========================================================================
   ACCOUNTS PAGE - Passwordless Login & Account Dashboard
   clearTime Care — Version C: Split Layout
   ========================================================================== */

:root {
    --ct-acc-red: #EF5350;
    --ct-acc-red-hover: #E53935;
    --ct-acc-red-light: #FF8A80;
    --ct-acc-dark: #1a1a2e;
    --ct-acc-dark-soft: #2D2D44;
    --ct-acc-gray: #6B7280;
    --ct-acc-gray-light: #F3F4F6;
    --ct-acc-border: #E5E7EB;
    --ct-acc-success: #10B981;
    --ct-acc-error: #EF4444;
    --ct-acc-font: var(--ct-font-display, 'Plus Jakarta Sans', sans-serif);
    --ct-acc-font-body: var(--ct-font-body, 'DM Sans', sans-serif);
    --ct-text-headline: clamp(2rem, 5vw, 3rem);
    --ct-text-headline-weight: 800;
    --ct-text-headline-lh: 1.2;
    --ct-text-body: 1.25rem;
    --ct-text-body-weight: 400;
    --ct-text-body-lh: 1.7;
    --ct-text-detail: 0.95rem;
    --ct-text-detail-weight: 400;
    --ct-text-detail-lh: 1.6;
    --ct-acc-radius: 16px;
    --ct-acc-radius-sm: 12px;
    --ct-acc-ease: cubic-bezier(0.16, 1, 0.3, 1);
    color-scheme: light only;
}

/* ==========================================================================
   Page Layout — Split: Dark brand left, white form right
   ========================================================================== */

.ct-accounts-main {
    display: flex !important;
    min-height: 100vh !important;
    opacity: 1 !important;
    position: relative;
}

.ct-acc-version {
    position: fixed;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.18);
    font-family: var(--ct-acc-font-body, 'DM Sans', sans-serif);
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* ==========================================================================
   Left Panel — Dark Branded
   ========================================================================== */

.ct-split-brand {
    flex: 0 0 40%;
    background: linear-gradient(160deg, #1A1A2E 0%, #2D2D44 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle red radial glow behind text */
.ct-split-brand::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.ct-split-brand__content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 440px;
}

.ct-split-brand__video-wrap {
    width: 100%;
    max-width: 340px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 32px;
    animation: ct-acc-float 6s ease-in-out infinite;
}

.ct-split-brand__video {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes ct-acc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.ct-split-brand__headline {
    font-family: var(--ct-acc-font);
    font-size: var(--ct-text-headline);
    font-weight: var(--ct-text-headline-weight);
    color: #fff;
    line-height: var(--ct-text-headline-lh);
    margin: 0 0 16px;
}

.ct-split-brand__subline {
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-body);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--ct-text-body-lh);
    margin: 0 0 48px;
}

/* Trust indicators */
.ct-split-brand__trust {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    margin: 0;
}

.ct-split-brand__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 20px rgba(239, 83, 80, 0.08);
    transition: transform 0.25s var(--ct-acc-ease), background 0.25s var(--ct-acc-ease), box-shadow 0.25s var(--ct-acc-ease);
}

.ct-split-brand__trust-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.10));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 24px rgba(239, 83, 80, 0.12);
}

.ct-split-brand__trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.25), rgba(239, 83, 80, 0.35));
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-split-brand__trust-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.ct-split-brand__trust-text {
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-detail);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Right Panel — White Form Area
   ========================================================================== */

.ct-split-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 80px;
    background: #fff;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Auth Container
   ========================================================================== */

.ct-acc-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Card — no shadow, the white panel IS the container */
.ct-acc-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Icon — glassmorphism + breathe */
.ct-acc-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 240, 240, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 83, 80, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--ct-acc-red);
    position: relative;
    animation: ct-acc-breathe 4s ease-in-out infinite;
}

@keyframes ct-acc-breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(239, 83, 80, 0.12); }
    50% { transform: scale(1.03); box-shadow: 0 8px 30px rgba(239, 83, 80, 0.25); }
}

.ct-acc-card__icon svg {
    width: 28px;
    height: 28px;
}

/* Lock icon underglow */
.ct-acc-card__icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.2) 0%, transparent 70%);
    opacity: 0;
    animation: ct-acc-glow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes ct-acc-glow {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Lock shackle lift — synced with breathe peak */
.ct-acc-card__icon .lock-shackle {
    animation: ct-acc-unlock 4s ease-in-out infinite;
}

@keyframes ct-acc-unlock {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(0); }
    55% { transform: translateY(-1.5px); }
    65% { transform: translateY(0); }
}

/* Title — centered */
.ct-acc-card__title {
    font-family: var(--ct-acc-font);
    font-size: var(--ct-text-headline);
    font-weight: var(--ct-text-headline-weight);
    color: var(--ct-acc-dark);
    text-align: center;
    margin: 0 0 8px;
    line-height: var(--ct-text-headline-lh);
}

/* Subtitle — centered */
.ct-acc-card__subtitle {
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-body);
    color: var(--ct-acc-gray);
    text-align: center;
    margin: 0 0 32px;
    line-height: var(--ct-text-body-lh);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.ct-acc-form-group {
    margin-bottom: 24px;
}

.ct-acc-label {
    display: block;
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-detail);
    font-weight: 600;
    color: var(--ct-acc-dark);
    margin-bottom: 8px;
}

.ct-acc-input {
    width: 100%;
    padding: 14px 20px;
    font-family: var(--ct-acc-font-body);
    font-size: 16px;
    color: var(--ct-acc-dark);
    background: var(--ct-acc-gray-light);
    border: 2px solid transparent;
    border-radius: 50px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.ct-acc-input:focus {
    border-color: var(--ct-acc-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.1),
                0 4px 12px rgba(239, 83, 80, 0.08);
}

.ct-acc-input::placeholder {
    color: #9CA3AF;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ct-acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--ct-acc-font-body);
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
    text-decoration: none;
}

.ct-acc-btn--primary {
    background: var(--ct-acc-red);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 83, 80, 0.35),
                0 0 20px rgba(239, 83, 80, 0.15);
}

.ct-acc-btn--primary:hover {
    background: var(--ct-acc-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(239, 83, 80, 0.5),
                0 0 30px rgba(239, 83, 80, 0.3);
}

.ct-acc-btn--primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

.ct-acc-btn--primary:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ct-acc-btn--secondary {
    background: var(--ct-acc-gray-light);
    color: var(--ct-acc-dark);
}

.ct-acc-btn--secondary:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

.ct-acc-btn--outline {
    background: transparent;
    color: var(--ct-acc-red);
    border: 2px solid var(--ct-acc-red);
}

.ct-acc-btn--outline:hover {
    background: rgba(239, 83, 80, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 83, 80, 0.2);
}

/* ==========================================================================
   Code Input
   ========================================================================== */

.ct-acc-code-inputs {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.ct-acc-code-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--ct-acc-dark);
    background: var(--ct-acc-gray-light);
    border: 2px solid transparent;
    border-radius: var(--ct-acc-radius-sm);
    outline: none;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
}

.ct-acc-code-input::-webkit-inner-spin-button,
.ct-acc-code-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.ct-acc-code-input:focus {
    border-color: var(--ct-acc-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.1);
}

.ct-acc-code-input.filled {
    background: #FFF0F0;
    border-color: var(--ct-acc-red);
}

/* ==========================================================================
   Resend
   ========================================================================== */

.ct-acc-resend {
    text-align: left;
    margin-bottom: 24px;
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    color: var(--ct-acc-gray);
}

.ct-acc-resend__link {
    background: none;
    border: none;
    color: var(--ct-acc-red);
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-acc-resend__link:disabled {
    color: var(--ct-acc-gray);
    cursor: not-allowed;
    text-decoration: none;
}

.ct-acc-resend__countdown {
    color: var(--ct-acc-gray);
    margin-left: 4px;
}

/* ==========================================================================
   Login Mode Toggle (Code ↔ Password)
   ========================================================================== */

.ct-acc-mode-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.ct-acc-mode-link {
    background: none;
    border: none;
    color: var(--ct-acc-red);
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ct-acc-mode-link:hover {
    color: var(--ct-acc-red-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-acc-mode-links--secondary {
    margin-top: 8px;
    margin-bottom: 64px;
}

.ct-acc-mode-links__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ct-acc-gray);
    flex-shrink: 0;
}

/* ==========================================================================
   Error Message
   ========================================================================== */

.ct-acc-error {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--ct-acc-radius-sm);
    margin-bottom: 20px;
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-detail);
    color: #991B1B;
    animation: ct-acc-shake 0.4s ease;
}

.ct-acc-error.active {
    display: flex;
}

.ct-acc-error__icon {
    flex-shrink: 0;
    font-size: 16px;
}

.ct-acc-error__text {
    flex: 1;
}

.ct-acc-error__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #991B1B;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

@keyframes ct-acc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.ct-acc-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    border-radius: var(--ct-acc-radius);
}

.ct-acc-loading.active {
    display: flex;
}

.ct-acc-loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--ct-acc-gray-light);
    border-top-color: var(--ct-acc-red);
    border-radius: 50%;
    animation: ct-acc-spin 0.7s linear infinite;
}

.ct-acc-loading__text {
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    color: var(--ct-acc-gray);
}

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

/* Panel-level loader — static flex, no absolute overlay */
.ct-acc-loading--panel {
    position: static;
    background: none;
    min-height: 200px;
}

/* ==========================================================================
   Skeleton – Login Form Placeholder
   ========================================================================== */

.ct-acc-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 460px;
    width: 100%;
}

.ct-acc-skeleton__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 8px;
}

.ct-acc-skeleton__title {
    width: 60%;
    height: 36px;
    border-radius: 8px;
}

.ct-acc-skeleton__subtitle {
    width: 80%;
    height: 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ct-acc-skeleton__label {
    width: 30%;
    height: 14px;
    border-radius: 4px;
    align-self: flex-start;
}

.ct-acc-skeleton__input {
    width: 100%;
    height: 52px;
    border-radius: var(--ct-acc-radius-sm, 12px);
}

.ct-acc-skeleton__btn {
    width: 100%;
    height: 56px;
    border-radius: var(--ct-acc-radius-sm, 12px);
    margin-top: 8px;
}

.ct-acc-skeleton__links {
    width: 50%;
    height: 14px;
    border-radius: 4px;
    margin-top: 4px;
}

/* ==========================================================================
   Back Link
   ========================================================================== */

.ct-acc-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ct-acc-gray);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.ct-acc-back:hover {
    color: var(--ct-acc-dark);
}

/* ==========================================================================
   Dashboard (Authenticated State)
   ========================================================================== */

.ct-acc-dashboard {
    text-align: left;
}

/* Header: avatar + name side by side */
.ct-acc-dashboard__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.ct-acc-dashboard__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ct-acc-red), #FF7043);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--ct-acc-font);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(239,83,80,0.12);
    transition: transform 0.25s var(--ct-acc-ease);
}

.ct-acc-dashboard__header-text {
    min-width: 0;
}

.ct-acc-dashboard__name {
    font-family: var(--ct-acc-font);
    font-size: var(--ct-text-headline);
    font-weight: var(--ct-text-headline-weight);
    color: var(--ct-acc-dark);
    margin: 0 0 2px;
    line-height: var(--ct-text-headline-lh);
}

.ct-acc-dashboard__greeting {
    font-family: var(--ct-acc-font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin: 0 0 2px;
    line-height: var(--ct-text-body-lh);
}

.ct-acc-dashboard__welcome-sub {
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-detail);
    color: var(--ct-acc-gray);
    margin: 4px 0 0;
}

.ct-acc-dashboard__user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ct-acc-border);
}

.ct-acc-dashboard__display-name {
    font-family: var(--ct-acc-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--ct-acc-dark);
}

.ct-acc-dashboard__badge {
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-acc-red);
    background: #FFF0F0;
    padding: 4px 12px;
    border-radius: 20px;
}

.ct-acc-dashboard__email {
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    color: var(--ct-acc-gray);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Info rows */
.ct-acc-dashboard__info {
    background: var(--ct-acc-gray-light);
    border-radius: var(--ct-acc-radius-sm);
    padding: 4px 0;
    margin-bottom: 24px;
}

.ct-acc-dashboard__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ct-acc-border);
}

.ct-acc-dashboard__row:last-child {
    border-bottom: none;
}

.ct-acc-dashboard__row-label {
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-detail);
    font-weight: 500;
    color: var(--ct-acc-gray);
    flex-shrink: 0;
    margin-right: 16px;
}

.ct-acc-dashboard__row-value {
    font-family: var(--ct-acc-font-body);
    font-size: var(--ct-text-detail);
    font-weight: 600;
    color: var(--ct-acc-dark);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ct-acc-dashboard__mono {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 400;
    color: var(--ct-acc-gray);
    letter-spacing: -0.3px;
}

/* Status dot */
/* Status/Verification Tags */
.ct-acc-tag {
    display: inline-block;
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
}

.ct-acc-tag--green {
    color: #065F46;
    background: #D1FAE5;
}

.ct-acc-tag--orange {
    color: #92400E;
    background: #FEF3C7;
}

.ct-acc-tag--red {
    color: #991B1B;
    background: #FEE2E2;
}

.ct-acc-dashboard__status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ct-acc-dashboard__status-dot--active {
    background: var(--ct-acc-success);
}

.ct-acc-dashboard__status-dot--inactive {
    background: var(--ct-acc-gray);
}

/* ==========================================================================
   No Account State
   ========================================================================== */

.ct-acc-no-account__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #FEF2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    color: var(--ct-acc-error);
}

.ct-acc-no-account__icon svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Email Display in Code Step
   ========================================================================== */

.ct-acc-email-display {
    font-weight: 600;
    color: var(--ct-acc-dark);
}

/* ==========================================================================
   Session-Detected Initial State (eliminates FOUC for authenticated users).
   .ct-acc-has-session is set by inline <head> script reading localStorage.
   ========================================================================== */

html.ct-acc-has-session #ct-acc-brand-content { display: none; }
html.ct-acc-has-session #ct-acc-profile { display: block !important; }
html.ct-acc-has-session .ct-split-brand {
    background: #FAFAFA;
    justify-content: flex-start;
    padding-top: 120px;
}
html.ct-acc-has-session .ct-split-brand::before { display: none; }
html.ct-acc-has-session .ct-split-form { align-items: flex-start; }

/* ==========================================================================
   Authenticated Left Panel
   ========================================================================== */

.ct-split-brand--authenticated {
    background: #FAFAFA;
    justify-content: flex-start;
    padding-top: 120px;
}

.ct-split-brand--authenticated::before {
    display: none;
}

/* ==========================================================================
   Profile Card (Left Panel — Authenticated)
   ========================================================================== */

#ct-acc-profile {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 0 24px;
    box-sizing: border-box;
}

.ct-acc-profile__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ct-acc-profile__title {
    font-family: var(--ct-acc-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ct-acc-gray);
    margin: 0;
}

.ct-acc-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-acc-gray);
    background: transparent;
    border: 1px solid var(--ct-acc-border);
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.ct-acc-logout-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ct-acc-logout-btn:hover {
    color: var(--ct-acc-red);
    border-color: var(--ct-acc-red);
    background: rgba(239, 83, 80, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.15);
}

.ct-acc-profile__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ct-acc-profile__header:hover .ct-acc-dashboard__avatar {
    transform: scale(1.04);
}

.ct-acc-profile__header-text {
    min-width: 0;
}

.ct-acc-profile .ct-acc-dashboard__info {
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    padding: 4px 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ct-acc-profile .ct-acc-dashboard__row {
    padding: 14px 20px;
    border-bottom-color: var(--ct-acc-gray-light);
}

/* ==========================================================================
   Subscription Card (Right Panel — Authenticated)
   ========================================================================== */

/* Right panel: top-align when authenticated to match left panel */
.ct-split-form--authenticated {
    align-items: flex-start;
    padding-top: 148px;
}

.ct-split-form--authenticated .ct-acc-container {
    max-width: 640px;
}

.ct-acc-subscription {
    text-align: left;
}

.ct-acc-subscription__header {
    margin-bottom: 28px;
    text-align: left;
}

.ct-acc-subscription__header .ct-acc-card__title {
    margin-bottom: 0;
    text-align: left;
}

.ct-acc-subscription__status {
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.ct-acc-subscription__status--free {
    color: var(--ct-acc-gray);
    background: var(--ct-acc-gray-light);
}

.ct-acc-subscription__status--active {
    color: #065F46;
    background: #D1FAE5;
}

.ct-acc-subscription__status--expired {
    color: #991B1B;
    background: #FEE2E2;
}

.ct-acc-subscription__plan-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0E8 100%);
    border: 1px solid #FFE4DE;
    border-radius: var(--ct-acc-radius-sm);
    margin-bottom: 28px;
}

.ct-acc-subscription__plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ct-acc-red), #FF7043);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.ct-acc-subscription__plan-icon svg {
    width: 22px;
    height: 22px;
}

.ct-acc-subscription__plan-name {
    font-family: var(--ct-acc-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--ct-acc-dark);
}

/* Testing banner — prominent alert below plan badge */
.ct-acc-subscription__testing-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: var(--ct-acc-radius-sm);
    color: #9A3412;
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.15);
}

.ct-acc-subscription__testing-banner svg {
    flex-shrink: 0;
    color: #EA580C;
}

/* Preview banner — prominent notice above feature tab titles */
.ct-acc-preview-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FB923C;
    border-radius: var(--ct-acc-radius-sm);
    color: #9A3412;
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.15);
}

.ct-acc-preview-banner svg {
    flex-shrink: 0;
    color: #EA580C;
}

/* Card expiry (subtle, inline) */
.ct-acc-card-expiry {
    font-size: 12px;
    color: var(--ct-acc-gray);
    margin-left: 4px;
}

/* Manage subscription button inside card */
.ct-acc-subscription__manage-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ct-acc-border);
    margin-bottom: 16px;
}

.ct-acc-subscription__manage-wrap .ct-acc-btn--primary {
    font-size: 18px;
    padding: 18px 36px;
    box-shadow: 0 4px 14px rgba(239, 83, 80, 0.35);
}

.ct-acc-subscription__manage-wrap .ct-acc-btn--primary:hover {
    box-shadow: 0 6px 20px rgba(239, 83, 80, 0.45);
}

/* Invoice button below subscription info rows */
.ct-acc-subscription__invoice-btn-wrap {
    margin-top: 4px;
}

.ct-acc-subscription__invoice-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    cursor: pointer;
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ct-acc-dark);
    text-align: left;
    transition: background 0.2s ease;
    gap: 14px;
}

.ct-acc-subscription__invoice-btn:hover {
    background: var(--ct-acc-gray-light);
}

.ct-acc-subscription__invoice-btn__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4F46E5;
}

.ct-acc-subscription__invoice-btn__icon svg {
    width: 18px;
    height: 18px;
}

.ct-acc-subscription__invoice-btn__text {
    flex: 1;
}

.ct-acc-subscription__invoice-btn__arrow {
    font-size: 20px;
    color: var(--ct-acc-gray);
    font-weight: 300;
    flex-shrink: 0;
}

/* Invoice list in overlay */
.ct-acc-invoice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ct-acc-invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--ct-acc-gray-light);
    border-radius: var(--ct-acc-radius-sm);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.ct-acc-invoice-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ct-acc-invoice-item__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ct-acc-invoice-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4F46E5;
}

.ct-acc-invoice-item__icon svg {
    width: 18px;
    height: 18px;
}

.ct-acc-invoice-item__info {
    min-width: 0;
}

.ct-acc-invoice-item__number {
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-acc-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-acc-invoice-item__date {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: var(--ct-acc-gray);
    margin-top: 2px;
}

.ct-acc-invoice-item__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.ct-acc-invoice-item__amount {
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--ct-acc-dark);
}

.ct-acc-invoice-item__download {
    color: var(--ct-acc-gray);
    flex-shrink: 0;
}

.ct-acc-invoice-item__download svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Action Buttons (Profile Panel)
   ========================================================================== */

.ct-acc-profile__actions {
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    overflow: hidden;
}

.ct-acc-action-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ct-acc-gray-light);
    cursor: pointer;
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ct-acc-dark);
    text-align: left;
    transition: background 0.2s ease;
    gap: 14px;
}

.ct-acc-action-btn:last-child {
    border-bottom: none;
}

.ct-acc-action-btn:hover {
    background: var(--ct-acc-gray-light);
}

.ct-acc-action-btn__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFF0F0 0%, #FFE0E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ct-acc-red);
}

.ct-acc-action-btn__icon svg {
    width: 18px;
    height: 18px;
}

.ct-acc-action-btn__text {
    flex: 1;
}

.ct-acc-action-btn__arrow {
    font-size: 20px;
    color: var(--ct-acc-gray);
    font-weight: 300;
    flex-shrink: 0;
}

/* ==========================================================================
   Device List ("Ihre Geräte")
   ========================================================================== */

.ct-acc-devices {
    margin-top: 24px;
}

.ct-acc-devices__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ct-acc-devices__title {
    font-family: var(--ct-acc-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ct-acc-gray);
    margin: 0;
}

.ct-acc-devices__refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ct-acc-gray);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.ct-acc-devices__refresh-btn:hover {
    color: var(--ct-acc-dark);
    background: var(--ct-acc-gray-light);
}

.ct-acc-devices__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Device card */
.ct-acc-device-card {
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    padding: 14px 16px;
    transition: box-shadow 0.2s ease;
}

.ct-acc-device-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Assistant device accent */
.ct-acc-device-card--assistant {
    border-left: 3px solid var(--ct-acc-red);
}

.ct-acc-device-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* Device avatar — 40px circle */
.ct-acc-device-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-acc-device-card__avatar--img {
    background: var(--ct-acc-gray-light);
}

.ct-acc-device-card__avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-acc-device-card__avatar--icon {
    background: linear-gradient(135deg, #FFF0F0 0%, #FFE0E0 100%);
    color: var(--ct-acc-red);
}

.ct-acc-device-card__avatar--assistant {
    background: linear-gradient(135deg, #FFF0F0 0%, #FFD6D6 100%);
    color: var(--ct-acc-red);
}

.ct-acc-device-card__avatar--icon svg,
.ct-acc-device-card__avatar--assistant svg {
    width: 20px;
    height: 20px;
}

/* Name + type badge wrapper */
.ct-acc-device-card__name-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ct-acc-device-card__icon {
    color: var(--ct-acc-red);
    flex-shrink: 0;
    display: flex;
}

.ct-acc-device-card__name {
    font-family: var(--ct-acc-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--ct-acc-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Device type badge (shown for assistants) */
.ct-acc-device-card__type {
    font-family: var(--ct-acc-font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--ct-acc-red);
    line-height: 1.2;
}

.ct-acc-device-card__access {
    font-family: var(--ct-acc-font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ct-acc-device-card__access--admin {
    color: #991B1B;
    background: #FEE2E2;
}

.ct-acc-device-card__access--user {
    color: #1E40AF;
    background: #DBEAFE;
}

.ct-acc-device-card__access--external {
    color: var(--ct-acc-gray);
    background: var(--ct-acc-gray-light);
}

.ct-acc-device-card__status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ct-acc-device-card__status--online {
    background: var(--ct-acc-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ct-acc-device-card__status--offline {
    background: #D1D5DB;
}

.ct-acc-device-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 50px; /* align with name (avatar 40px + gap 10px) */
    margin-top: 4px;
}

.ct-acc-device-card__info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 18px;
}

.ct-acc-device-card__status-row {
    margin-top: 2px;
}

.ct-acc-device-card__sep {
    color: #D1D5DB;
    font-size: 10px;
}

.ct-acc-device-card__model {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: var(--ct-acc-gray);
}

.ct-acc-device-card__battery {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ct-acc-device-card__battery--green {
    color: #059669;
}

.ct-acc-device-card__battery--orange {
    color: #D97706;
}

.ct-acc-device-card__battery--red {
    color: #DC2626;
}

.ct-acc-device-card__charging {
    font-size: 11px;
}

.ct-acc-device-card__wifi {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: var(--ct-acc-gray);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ct-acc-device-card__wifi--offline {
    color: #9CA3AF;
}

.ct-acc-device-card__wifi-band {
    font-size: 11px;
    color: #9CA3AF;
}

.ct-acc-device-card__wifi-icon--excellent {
    color: #059669;
}

.ct-acc-device-card__wifi-icon--good {
    color: #10B981;
}

.ct-acc-device-card__wifi-icon--mid {
    color: #D97706;
}

.ct-acc-device-card__wifi-icon--bad {
    color: #DC2626;
}

.ct-acc-device-card__android {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: #9CA3AF;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ct-acc-device-card__android-icon {
    color: #9CA3AF;
}

.ct-acc-device-card__time {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: var(--ct-acc-gray);
    margin-left: auto;
}

/* Empty & Error states */
.ct-acc-devices__empty {
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    padding: 24px 16px;
    text-align: center;
}

.ct-acc-devices__empty p {
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    color: var(--ct-acc-gray);
    margin: 0 0 12px;
}

.ct-acc-devices__retry-btn {
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-acc-red);
    background: none;
    border: 1px solid var(--ct-acc-red);
    border-radius: 50px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ct-acc-devices__retry-btn:hover {
    background: rgba(239, 83, 80, 0.05);
}

/* Skeleton loading */
.ct-acc-device-card--skeleton {
    pointer-events: none;
}

.ct-acc-skel {
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: ct-acc-skel-pulse 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.ct-acc-skel--circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ct-acc-skel--avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ct-acc-skel--line-lg {
    height: 14px;
    flex: 1;
}

.ct-acc-skel--line-md {
    height: 12px;
    width: 80px;
}

.ct-acc-skel--line-sm {
    height: 12px;
    width: 50px;
    flex-shrink: 0;
}

@keyframes ct-acc-skel-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Overlay System
   ========================================================================== */

.ct-acc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ct-acc-ease), visibility 0.3s;
}

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

.ct-acc-overlay__dialog {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.35s var(--ct-acc-ease), opacity 0.35s var(--ct-acc-ease);
}

.ct-acc-overlay.active .ct-acc-overlay__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ct-acc-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ct-acc-border);
    flex-shrink: 0;
    position: relative;
}

.ct-acc-overlay__back {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--ct-acc-gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ct-acc-gray);
    transition: all 0.2s;
    z-index: 1;
    padding: 0;
    flex-shrink: 0;
}

.ct-acc-overlay__back:hover {
    background: var(--ct-acc-red);
    color: #fff;
}

.ct-acc-overlay__back svg {
    width: 20px;
    height: 20px;
}

.ct-acc-overlay__title {
    font-family: var(--ct-acc-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.ct-acc-overlay__close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--ct-acc-gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ct-acc-gray);
    font-size: 22px;
    line-height: 1;
    transition: all 0.2s;
    z-index: 1;
    padding: 0;
    flex-shrink: 0;
}

.ct-acc-overlay__close:hover {
    background: var(--ct-acc-red);
    color: #fff;
    transform: rotate(90deg);
}

/* Focus-visible styles for overlay accessibility */
.ct-acc-overlay__close:focus-visible,
.ct-acc-overlay__back:focus-visible {
    outline: 2px solid var(--ct-acc-red);
    outline-offset: 2px;
}

.ct-acc-overlay .ct-acc-btn:focus-visible {
    outline: 2px solid var(--ct-acc-red);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.2);
}

.ct-acc-overlay__body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px;
    -webkit-overflow-scrolling: touch;
}

.ct-acc-overlay__body-inner {
    max-width: 480px;
    margin: 0 auto;
}

.ct-acc-overlay__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--ct-acc-border);
    flex-shrink: 0;
}

.ct-acc-overlay__footer:empty {
    display: none;
    padding: 0;
    border: none;
}

.ct-acc-overlay__footer .ct-acc-btn {
    max-width: 480px;
    margin: 0 auto;
    display: block;
}

/* ==========================================================================
   Password Reset Overlay
   ========================================================================== */

.ct-acc-pw-email {
    font-family: var(--ct-acc-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--ct-acc-dark);
    background: var(--ct-acc-gray-light);
    padding: 14px 20px;
    border-radius: 50px;
    text-align: center;
    margin-bottom: 16px;
}

.ct-acc-pw-rules {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.ct-acc-pw-rules li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    color: var(--ct-acc-gray);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.ct-acc-pw-rules li.valid {
    color: var(--ct-acc-success);
}

.ct-acc-pw-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ct-acc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ct-acc-pw-check svg {
    width: 10px;
    height: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ct-acc-pw-rules li.valid .ct-acc-pw-check {
    border-color: var(--ct-acc-success);
    background: var(--ct-acc-success);
}

.ct-acc-pw-rules li.valid .ct-acc-pw-check svg {
    opacity: 1;
}

.ct-acc-pw-input-wrap {
    position: relative;
    margin-bottom: 8px;
}

.ct-acc-pw-input-wrap .ct-acc-input {
    padding-right: 48px;
}

.ct-acc-pw-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ct-acc-gray);
    cursor: pointer;
    padding: 4px;
}

.ct-acc-pw-toggle:hover {
    color: var(--ct-acc-dark);
}

.ct-acc-pw-toggle svg {
    width: 20px;
    height: 20px;
}

/* Success State */
.ct-acc-success-state {
    text-align: center;
    padding: 40px 0;
}

.ct-acc-success-state__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--ct-acc-success);
}

.ct-acc-success-state__icon svg {
    width: 32px;
    height: 32px;
}

.ct-acc-success-state__text {
    font-family: var(--ct-acc-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--ct-acc-dark);
}

/* ==========================================================================
   Notification Settings Overlay
   ========================================================================== */

.ct-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--ct-acc-gray-light);
}

.ct-acc-toggle:last-child {
    border-bottom: none;
}

.ct-acc-toggle__label {
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ct-acc-dark);
}

.ct-acc-toggle__switch {
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: #D1D5DB;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.ct-acc-toggle__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.ct-acc-toggle__switch.active {
    background: var(--ct-acc-red);
}

.ct-acc-toggle__switch.active::after {
    transform: translateX(20px);
}

.ct-acc-notif-features {
    padding: 8px 0;
}

.ct-acc-notif-section-title {
    font-family: var(--ct-acc-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ct-acc-gray);
    margin: 24px 0 8px;
}

/* Email Chips */
.ct-acc-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ct-acc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--ct-acc-gray-light);
    border-radius: 20px;
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--ct-acc-dark);
}

.ct-acc-chip__remove {
    background: none;
    border: none;
    color: var(--ct-acc-gray);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.ct-acc-chip__remove:hover {
    color: var(--ct-acc-red);
}

.ct-acc-add-receiver {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ct-acc-add-receiver .ct-acc-input {
    flex: 1;
}

.ct-acc-add-receiver .ct-acc-btn {
    width: auto;
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: 14px;
}

.ct-acc-field-error {
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    color: var(--ct-acc-error);
    margin-top: 6px;
    display: none;
}

.ct-acc-field-error.active {
    display: block;
}

/* Overlay loading (centered in body) */
.ct-acc-overlay__body .ct-acc-loading {
    position: relative;
    min-height: 200px;
}

/* ==========================================================================
   Device QR Code Overlay
   ========================================================================== */

.ct-acc-qr-wrap {
    text-align: center;
    padding: 20px 0;
}

.ct-acc-qr-wrap canvas,
.ct-acc-qr-wrap img {
    max-width: 240px;
    border-radius: var(--ct-acc-radius-sm);
    border: 1px solid var(--ct-acc-border);
    padding: 16px;
    background: #fff;
}

.ct-acc-qr-countdown {
    font-family: var(--ct-acc-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin: 16px 0 4px;
}

.ct-acc-qr-countdown.expired {
    color: var(--ct-acc-error);
}

.ct-acc-qr-countdown-label {
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    color: var(--ct-acc-gray);
    margin-bottom: 24px;
}

.ct-acc-qr-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    line-height: 1.5;
    color: #1E40AF;
    margin-bottom: 16px;
}

.ct-acc-qr-hint svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #3B82F6;
}

.ct-acc-qr-instructions {
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    color: var(--ct-acc-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.ct-acc-qr-version-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FEF3C7;
    border-radius: 8px;
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    font-weight: 500;
    color: #92400E;
    margin-top: 16px;
}

/* ==========================================================================
   Overlay — Inline Code Input (reused in password reset)
   ========================================================================== */

.ct-acc-overlay .ct-acc-code-inputs {
    justify-content: center;
}

/* Overlay — Code Verifying State */
.ct-acc-code-verifying {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 8px;
}

.ct-acc-code-verifying .ct-acc-loading__spinner {
    width: 22px;
    height: 22px;
    border-width: 2.5px;
}

.ct-acc-code-verifying span {
    font-family: var(--ct-acc-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ct-acc-gray);
}

/* Overlay — Inline Error */
.ct-acc-overlay .ct-acc-error {
    margin-bottom: 16px;
}

/* ==========================================================================
   Mobile Nav Overrides — ensure hidden by default
   ========================================================================== */

/* Hide mobile nav completely when closed — prevents backdrop-filter bleed from header */
.ct-accounts-page .ct-header__mobile-nav {
    display: none !important;
}

.ct-accounts-page .ct-header__mobile-nav[data-ct-menu-open="true"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ct-accounts-page .ct-header__mobile-close {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ct-accounts-page .ct-header__mobile-nav[data-ct-menu-open="true"] .ct-header__mobile-close {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   Responsive — Mobile: Stack vertically
   ========================================================================== */

@media (max-width: 900px) {
    .ct-accounts-main {
        flex-direction: column;
        min-height: auto !important;
    }

    .ct-split-brand {
        flex: none;
        padding: 100px 24px 32px;
    }

    /* Reduce glow effect on mobile */
    .ct-split-brand::before {
        width: 250px;
        height: 250px;
        opacity: 0.6;
    }

    .ct-split-brand__content {
        text-align: center;
    }

    .ct-split-brand__video-wrap {
        max-width: 200px;
        margin: 0 auto 16px;
    }

    .ct-split-brand__headline {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 8px;
    }

    .ct-split-brand__subline {
        font-size: 1.05rem;
        margin-bottom: 0;
    }

    .ct-acc-dashboard__name {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .ct-split-brand__trust {
        display: none;
    }

    .ct-split-form {
        flex: 1;
        padding: 48px 20px 60px;
        overflow: visible;
    }

    /* Authenticated left panel on mobile */
    .ct-split-brand--authenticated {
        padding: 100px 20px 32px;
    }

    html.ct-acc-has-session .ct-split-brand { padding: 100px 20px 32px; }

    #ct-acc-profile {
        max-width: 100%;
        padding: 0;
        margin-top: 24px;
    }

    .ct-acc-subscription__header {
        text-align: center;
    }

    .ct-acc-device-card__info {
        padding-left: 0;
    }

    /* Overlay mobile adjustments */
    .ct-acc-overlay__body {
        padding: 24px 16px;
    }

    .ct-acc-overlay__header {
        padding: 16px;
    }

    .ct-acc-overlay__footer {
        padding: 16px;
    }

    .ct-acc-overlay__title {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .ct-acc-card__title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .ct-acc-card__subtitle {
        font-size: 1.05rem;
    }

    .ct-acc-code-input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }

    .ct-acc-code-inputs {
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .ct-acc-code-input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    .ct-acc-code-inputs {
        gap: 4px;
    }
}

/* ======================================================================
   Subscription Purchase Flow
   ====================================================================== */

/* Subscribe Banner — Cinematic Video Card */
.ct-acc-subscribe-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    animation: ctAccFadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-acc-subscribe-banner:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.ct-acc-subscribe-banner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-acc-subscribe-banner__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(26, 26, 46, 0.4) 40%,
        rgba(26, 26, 46, 0.05) 100%
    );
    z-index: 1;
}

/* Bottom overlay — vertical: title, text, CTA */
.ct-acc-subscribe-banner__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.ct-acc-subscribe-banner__text h3 {
    font-family: var(--ct-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.ct-acc-subscribe-banner__text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 240px;
    margin: 0;
}

/* CTA button — full-width pill */
.ct-acc-subscribe-banner__btn {
    width: 100%;
    font-size: 14px !important;
    padding: 14px 28px !important;
    border-radius: 9999px !important;
}

/* Manage Banner */
.ct-acc-manage-banner {
    margin-bottom: 20px;
    text-align: right;
}

.ct-acc-manage-banner__btn {
    font-size: 0.875rem;
}

/* Step Indicator */
.ct-acc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 16px;
}

.ct-acc-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ct-acc-steps__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #d1d5db;
    color: #9ca3af;
    background: #fff;
    transition: all 0.2s;
}

.ct-acc-steps__label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.ct-acc-steps__item--active .ct-acc-steps__circle {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
}

.ct-acc-steps__item--active .ct-acc-steps__label {
    color: #c8102e;
    font-weight: 600;
}

.ct-acc-steps__item--completed .ct-acc-steps__circle {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.ct-acc-steps__item--completed .ct-acc-steps__label {
    color: #16a34a;
}

.ct-acc-steps__line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-bottom: 22px;
    min-width: 24px;
}

/* Guidance text below step indicator */
.ct-acc-overlay-guidance {
    text-align: center;
    font-family: var(--ct-acc-font-body);
    font-size: 1rem;
    color: var(--ct-acc-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Registration form — single-column flex layout */
.ct-acc-reg-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ct-acc-reg-form .ct-acc-form-group {
    margin-bottom: 16px;
}

.ct-acc-reg-form .ct-acc-edit-profile__field {
    margin-bottom: 16px;
}

.ct-acc-reg-form .ct-acc-edit-profile__row-pair {
    display: flex;
    gap: 12px;
}

.ct-acc-reg-form .ct-acc-edit-profile__row-pair .ct-acc-edit-profile__field {
    flex: 1;
}

.ct-acc-reg-form .ct-acc-pw-rules {
    margin-bottom: 8px;
}

/* No-account registration CTA section */
.ct-acc-no-account__register {
    margin-top: 32px;
}

.ct-acc-no-account__divider {
    height: 1px;
    background: var(--ct-acc-border);
    margin-bottom: 24px;
}

.ct-acc-no-account__register-text {
    font-family: var(--ct-acc-font-body);
    font-size: 0.95rem;
    color: var(--ct-acc-gray);
    margin-bottom: 12px;
}

/* 4-step indicator compact sizing */
.ct-acc-steps--4 .ct-acc-steps__circle {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.ct-acc-steps--4 .ct-acc-steps__label {
    font-size: 0.78rem;
}

.ct-acc-steps--4 .ct-acc-steps__line {
    min-width: 16px;
    margin: 0 4px;
}

@media (max-width: 400px) {
    .ct-acc-steps--4 .ct-acc-steps__circle {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .ct-acc-steps--4 .ct-acc-steps__label {
        font-size: 0.7rem;
    }

    .ct-acc-steps--4 .ct-acc-steps__line {
        min-width: 10px;
        margin: 0 2px;
    }
}

/* Wide body-inner for step 1 (side-by-side plan cards) */
.ct-acc-overlay__body-inner--wide {
    max-width: 720px;
}

/* Plan Selection Cards — side-by-side grid */
.ct-acc-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ct-acc-plan-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.ct-acc-plan-card:hover {
    border-color: #c8102e;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.1);
    transform: translateY(-2px);
}

/* Video hero */
.ct-acc-plan-card__hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    background: #f3f4f6;
}

.ct-acc-plan-card__hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-acc-plan-card__header {
    margin-bottom: 16px;
}

.ct-acc-plan-card__name {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.ct-acc-plan-card__price {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: #c8102e;
    margin: 0 0 8px;
}

.ct-acc-plan-card__tagline {
    font-size: var(--ct-text-detail);
    color: #6b7280;
    line-height: var(--ct-text-detail-lh);
    margin: 0;
}

.ct-acc-plan-card__btn {
    width: 100%;
    margin-bottom: 16px;
}

/* Feature list below button */
.ct-acc-plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.ct-acc-plan-card__features li {
    display: flex;
    gap: 8px;
    padding: 5px 0;
    align-items: center;
}

.ct-acc-plan-card__features li svg {
    color: #c8102e;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.ct-acc-plan-card__feat-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0;
}

/* Billing Cycle Selector */
.ct-acc-cycle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ct-acc-cycle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.ct-acc-cycle-row:hover {
    border-color: #c8102e;
}

.ct-acc-cycle-row--selected {
    border-color: #c8102e;
    background: linear-gradient(135deg, rgba(200,16,46,0.02) 0%, rgba(200,16,46,0.06) 100%);
    border-left-width: 4px;
}

.ct-acc-cycle-row input[type="radio"] {
    accent-color: #c8102e;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ct-acc-cycle-row__info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.ct-acc-cycle-row__label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.ct-acc-cycle-row__price {
    font-weight: 700;
    color: #1a1a2e;
    font-size: clamp(1.05rem, 2vw, 1.175rem);
    white-space: nowrap;
}

.ct-acc-cycle-row__price small {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.875rem;
}

.ct-acc-cycle-row__save {
    font-size: 0.8rem;
    font-weight: 600;
    color: #065F46;
    background: #D1FAE5;
    padding: 3px 10px;
    border-radius: 10px;
}

.ct-acc-cycle-row__popular {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c8102e;
    background: rgba(200,16,46,0.1);
    padding: 3px 10px;
    border-radius: 10px;
}

.ct-acc-cycle-total {
    text-align: center;
    padding: 12px 0 0;
    font-size: 0.95rem;
    color: #374151;
}

.ct-acc-cycle-total strong {
    color: #1a1a2e;
}

/* Per-month sub-price in cycle row */
.ct-acc-cycle-row__price-monthly {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}

/* Reassurance chips */
.ct-acc-cycle-reassurance {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 0;
    flex-wrap: wrap;
}

.ct-acc-cycle-reassurance__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 16px;
}

.ct-acc-cycle-reassurance__item svg {
    color: #16a34a;
    flex-shrink: 0;
}

/* Tag: red (popular badge) */
.ct-acc-tag--red {
    background: rgba(200, 16, 46, 0.1);
    color: #c8102e;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Review Summary */
.ct-acc-review__summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px 0;
    margin-bottom: 20px;
}

/* Review — choice header */
.ct-acc-review__choice {
    text-align: center;
    margin-bottom: 24px;
}

.ct-acc-review__choice-plan {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.15;
}

.ct-acc-review__choice-price {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: #c8102e;
    margin: 0 0 16px;
}

.ct-acc-review__choice-note {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    color: #6b7280;
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 480px;
}

.ct-acc-review__checkout-btn {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.ct-acc-review .ct-acc-cycle-reassurance {
    padding-bottom: 36px;
    margin-bottom: 16px;
}

/* Review — two-column info grid */
.ct-acc-review__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ct-acc-review__grid-col {
    min-width: 0;
}

.ct-acc-review__grid-title {
    font-family: var(--ct-acc-font);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 16px;
    line-height: 1.2;
}

/* Step cards (left column) */
.ct-acc-review__step-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-acc-review__step-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.ct-acc-review__step-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ct-acc-review__step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #16a34a;
}

.ct-acc-review__step-card span {
    font-family: var(--ct-acc-font-body);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.4;
}

/* Benefits list (right column) */
.ct-acc-review__benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ct-acc-review__benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.ct-acc-review__benefit-list li:last-child {
    border-bottom: none;
}

.ct-acc-review__benefit-list li:hover {
    background: #f9fafb;
    border-radius: 10px;
}

.ct-acc-review__benefit-list li svg {
    color: #16a34a;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.ct-acc-review__benefit-list li span {
    font-family: var(--ct-acc-font-body);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
}

.ct-acc-review__notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ct-acc-review__notice svg {
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.ct-acc-review__notice p {
    margin: 0;
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.5;
}

.ct-acc-review__trust {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    margin-top: 8px;
}

.ct-acc-review__trust svg {
    color: #16a34a;
}

/* Checkout Order Summary */
.ct-acc-checkout-summary {
    background: linear-gradient(135deg, rgba(200,16,46,0.03), rgba(200,16,46,0.07));
    border: 1px solid rgba(200,16,46,0.12);
    border-radius: var(--ct-acc-radius-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.ct-acc-checkout-summary__plan {
    font-family: var(--ct-acc-font);
    font-weight: 800;
    color: var(--ct-acc-dark);
    font-size: 1.25rem;
    line-height: 1.3;
}

.ct-acc-checkout-summary__price {
    font-family: var(--ct-acc-font-body);
    color: var(--ct-acc-red);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 4px;
}

/* Read-only email input */
.ct-acc-input--readonly {
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

/* Checkout 2-column grid */
.ct-acc-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 8px;
}

.ct-acc-checkout-grid__left,
.ct-acc-checkout-grid__right {
    min-width: 0;
}

/* Stripe Element containers */
.ct-acc-stripe-payment,
.ct-acc-stripe-address {
    min-height: 100px;
}

/* Section labels above Stripe elements */
.ct-acc-checkout-section-label {
    font-family: var(--ct-acc-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin-bottom: 12px;
    display: block;
}

/* Trust footer below pay button */
.ct-acc-checkout-trust {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    margin-top: 4px;
}

.ct-acc-checkout-trust svg {
    color: #16a34a;
}

/* Checkout Result (success/cancel) */
.ct-acc-checkout-result {
    text-align: center;
    padding: 32px 16px;
}

.ct-acc-checkout-result__icon {
    margin-bottom: 16px;
}

.ct-acc-checkout-result__icon--success svg {
    color: #16a34a;
}

.ct-acc-checkout-result__icon--info svg {
    color: #3b82f6;
}

.ct-acc-checkout-result__icon--error svg {
    color: #ef4444;
}

.ct-acc-checkout-result h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.ct-acc-checkout-result p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Stripe mock elements — premium checkout (dummy page) */

/* --- Order summary with icon --- */
.ct-acc-stripe-mock__summary {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ct-acc-stripe-mock__summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ct-acc-red), #c62828);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-acc-stripe-mock__summary-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.ct-acc-stripe-mock__summary-plan {
    font-weight: 800;
    color: #1a1a2e;
    font-size: 1.05rem;
    line-height: 1.3;
}

.ct-acc-stripe-mock__summary-price {
    color: var(--ct-acc-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* --- Individual field rows --- */
.ct-acc-stripe-mock__field {
    margin-bottom: 16px;
}

.ct-acc-stripe-mock__field-label {
    display: block;
    font-family: var(--ct-acc-font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    margin-bottom: 6px;
}

.ct-acc-stripe-mock__field-input,
.ct-acc-stripe-mock__field-select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    color: #30313d;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ct-acc-stripe-mock__field-input:focus,
.ct-acc-stripe-mock__field-select:focus {
    border-color: var(--ct-acc-red);
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.1);
}

.ct-acc-stripe-mock__field-input::placeholder {
    color: #9ca3af;
}

.ct-acc-stripe-mock__field-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236d6e78' stroke-width='2'%3e%3cpath d='M2 4l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ct-acc-stripe-mock__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ct-acc-stripe-mock__field-error {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: var(--ct-acc-error);
    margin-top: 4px;
    display: none;
}

.ct-acc-stripe-mock__input--error {
    border-color: var(--ct-acc-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* --- Payment method cards --- */
.ct-acc-stripe-mock__methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.ct-acc-stripe-mock__method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.ct-acc-stripe-mock__method:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

.ct-acc-stripe-mock__method--selected {
    border-color: var(--ct-acc-red);
    background: linear-gradient(135deg, #fff, #FEF2F2);
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.1);
}

.ct-acc-stripe-mock__method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ct-acc-stripe-mock__method-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.ct-acc-stripe-mock__method--selected .ct-acc-stripe-mock__method-radio {
    border-color: var(--ct-acc-red);
}

.ct-acc-stripe-mock__method-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ct-acc-red);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.ct-acc-stripe-mock__method--selected .ct-acc-stripe-mock__method-radio::after {
    transform: scale(1);
}

.ct-acc-stripe-mock__method-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.ct-acc-stripe-mock__method-icon svg {
    height: 20px;
    width: auto;
    max-width: 48px;
}

.ct-acc-stripe-mock__method-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ct-acc-stripe-mock__method-label {
    font-family: var(--ct-acc-font-body);
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}

.ct-acc-stripe-mock__method-desc {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: #9ca3af;
    margin-top: 1px;
}

/* --- Card / SEPA containers --- */
.ct-acc-stripe-mock__card-fields,
.ct-acc-stripe-mock__sepa-fields {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    font-family: var(--ct-acc-font-body);
    font-size: 14px;
    margin-bottom: 20px;
}

.ct-acc-stripe-mock__card-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.ct-acc-stripe-mock__card-row:last-child {
    border-bottom: none;
}

.ct-acc-stripe-mock__card-row input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #30313d;
    background: transparent;
    box-sizing: border-box;
    font-family: inherit;
}

.ct-acc-stripe-mock__card-row input::placeholder {
    color: #9ca3af;
}

.ct-acc-stripe-mock__card-row--split {
    display: flex;
}

.ct-acc-stripe-mock__card-row--split > div {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.ct-acc-stripe-mock__card-row--split > div:first-child {
    border-right: 1px solid #e0e0e0;
}

.ct-acc-stripe-mock__card-icon,
.ct-acc-stripe-mock__cvc-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #9ca3af;
    pointer-events: none;
}

.ct-acc-stripe-mock__card-icon svg,
.ct-acc-stripe-mock__cvc-icon svg {
    width: 18px;
    height: 18px;
}

.ct-acc-stripe-mock__card-row--split input {
    padding-right: 36px;
}

/* SEPA specific */
.ct-acc-stripe-mock__sepa-row {
    display: flex;
    align-items: center;
    position: relative;
}

.ct-acc-stripe-mock__sepa-row input {
    width: 100%;
    padding: 12px 14px;
    padding-right: 40px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #30313d;
    background: transparent;
    box-sizing: border-box;
    font-family: inherit;
}

.ct-acc-stripe-mock__sepa-row input::placeholder {
    color: #9ca3af;
}

.ct-acc-stripe-mock__sepa-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #9ca3af;
    pointer-events: none;
}

.ct-acc-stripe-mock__sepa-icon svg {
    width: 18px;
    height: 18px;
}

.ct-acc-stripe-mock__mandate {
    font-family: var(--ct-acc-font-body);
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
    padding: 10px 14px;
    border-top: 1px solid #e0e0e0;
}

/* --- Trust bar --- */
.ct-acc-stripe-mock__trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 0 0;
    margin-top: 4px;
}

.ct-acc-stripe-mock__trust-secure {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: #16a34a;
    font-weight: 500;
}

.ct-acc-stripe-mock__trust-secure svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ct-acc-stripe-mock__trust-brands {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ct-acc-stripe-mock__trust-brands svg {
    height: 18px;
    width: auto;
    opacity: 0.5;
}

.ct-acc-stripe-mock__trust-cancel {
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    color: #9ca3af;
}

/* --- Checkout 2-column grid --- */
.ct-acc-stripe-mock__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.ct-acc-stripe-mock__grid-left,
.ct-acc-stripe-mock__grid-right {
    min-width: 0;
}

/* --- Intro text --- */
.ct-acc-stripe-mock__intro {
    margin: 0 0 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(239,68,68,0.04), rgba(239,68,68,0.08));
    border-left: 3px solid var(--ct-acc-red);
    border-radius: 8px;
}

.ct-acc-stripe-mock__intro p {
    margin: 0;
    font-family: var(--ct-acc-font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: #374151;
}

/* --- Redirect / wallet info boxes --- */
.ct-acc-stripe-mock__redirect-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ct-acc-stripe-mock__redirect-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.ct-acc-stripe-mock__redirect-icon svg {
    height: 24px;
    width: auto;
    max-width: 36px;
}

.ct-acc-stripe-mock__redirect-text {
    font-family: var(--ct-acc-font-body);
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
}

/* --- Shake animation --- */
@keyframes ct-acc-shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-4px); }
    30%, 70% { transform: translateX(4px); }
}

.ct-acc-stripe-mock__shake {
    animation: ct-acc-shake 0.4s ease;
}

/* Sub loading */
.ct-acc-sub-loading {
    text-align: center;
    padding: 48px 16px;
}

.ct-acc-sub-loading p {
    margin-top: 12px;
    color: #6b7280;
}

/* Spinner inside button */
.ct-acc-spinner--btn {
    width: 20px;
    height: 20px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* Footer row (back + next buttons) */
.ct-acc-overlay__footer-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.ct-acc-overlay__footer-row .ct-acc-btn {
    flex: 1;
}

/* Timeline */
.ct-acc-timeline {
    margin-bottom: 32px;
}

.ct-acc-timeline__track {
    display: flex;
    align-items: flex-start;
}

.ct-acc-timeline__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 130px;
}

.ct-acc-timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}

.ct-acc-timeline__dot--green {
    background: #16a34a;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(22, 163, 74, 0.2);
}

.ct-acc-timeline__dot--blue {
    background: #3b82f6;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(59, 130, 246, 0.2);
}

.ct-acc-timeline__label {
    font-family: var(--ct-acc-font);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.ct-acc-timeline__date {
    font-family: var(--ct-acc-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.ct-acc-timeline__sub {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    max-width: 120px;
}

.ct-acc-timeline__bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    position: relative;
}

.ct-acc-timeline__bar::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #3b82f6);
    border-radius: 2px;
}

.ct-acc-timeline__bar-label {
    font-family: var(--ct-acc-font);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a2e;
    background: #fff;
    padding: 2px 12px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.ct-acc-timeline__bar-sub {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ==========================================================================
   Subscription Payment Timeline
   ========================================================================== */

.ct-acc-sub-tl {
    background: #F8F9FA;
    border-radius: 14px;
    padding: 20px 24px 22px;
    margin: 20px 0 28px;
}

.ct-acc-sub-tl__title {
    font-family: var(--ct-acc-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.ct-acc-sub-tl__track {
    display: flex;
    align-items: flex-start;
}

/* Nodes (start / end) */
.ct-acc-sub-tl__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    flex-shrink: 0;
    text-align: center;
    cursor: default;
}

.ct-acc-sub-tl__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #9ca3af;
    background: #fff;
    position: relative;
    z-index: 2;
}

.ct-acc-sub-tl__dot--green { border-color: #16a34a; }
.ct-acc-sub-tl__dot--blue  { border-color: #3b82f6; }
.ct-acc-sub-tl__dot--orange { border-color: #f59e0b; }
.ct-acc-sub-tl__dot--red   { border-color: #EF5350; }
.ct-acc-sub-tl__dot--gray  { border-color: #9ca3af; }

.ct-acc-sub-tl__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ct-acc-sub-tl__label {
    font-family: var(--ct-acc-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

.ct-acc-sub-tl__date {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 2px;
}

.ct-acc-sub-tl__sub {
    font-family: var(--ct-acc-font-body);
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 2px;
}

/* Bar track */
.ct-acc-sub-tl__bar {
    flex: 1;
    position: relative;
    min-height: 14px;
    margin: 0 -7px;
    cursor: default;
}

.ct-acc-sub-tl__bar::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.ct-acc-sub-tl__bar:hover::before {
    filter: brightness(0.96);
}

/* Bar fill (gradient) */
.ct-acc-sub-tl__bar-fill {
    position: absolute;
    top: 5px;
    left: 0;
    height: 4px;
    border-radius: 2px;
    transition: width 1s ease;
}

.ct-acc-sub-tl__bar--active .ct-acc-sub-tl__bar-fill {
    background: linear-gradient(90deg, #16a34a, #3b82f6);
}

.ct-acc-sub-tl__bar--trialing .ct-acc-sub-tl__bar-fill {
    background: linear-gradient(90deg, #16a34a, #f59e0b);
}

.ct-acc-sub-tl__bar--canceled_active .ct-acc-sub-tl__bar-fill {
    background: linear-gradient(90deg, #16a34a, #9ca3af);
}

.ct-acc-sub-tl__bar--canceled_expired .ct-acc-sub-tl__bar-fill {
    background: #9ca3af;
}

.ct-acc-sub-tl__bar--past_due .ct-acc-sub-tl__bar-fill {
    background: linear-gradient(90deg, #16a34a, #EF5350);
}

.ct-acc-sub-tl__bar--trial_only .ct-acc-sub-tl__bar-fill {
    background: linear-gradient(90deg, #22c55e 0%, #f59e0b 100%);
}

/* Duration label centered under bar */
.ct-acc-sub-tl__bar-label {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--ct-acc-font);
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

/* Today marker */
.ct-acc-sub-tl__today {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.ct-acc-sub-tl__today-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    animation: subtl-pulse 2s ease-in-out infinite;
}

.ct-acc-sub-tl__today-dot--orange {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    animation: subtl-pulse-orange 2s ease-in-out infinite;
}

.ct-acc-sub-tl__today-dot--red {
    background: #EF5350;
    box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.4);
    animation: subtl-pulse-red 2s ease-in-out infinite;
}

.ct-acc-sub-tl__today-dot--gray {
    background: #9ca3af;
    animation: none;
}

@keyframes subtl-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

@keyframes subtl-pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

@keyframes subtl-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 83, 80, 0); }
}

/* Today tooltip */
.ct-acc-sub-tl__today-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 12px;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.ct-acc-sub-tl__today:hover .ct-acc-sub-tl__today-tip {
    opacity: 1;
    transform: translateY(0);
}

.ct-acc-sub-tl__today-label {
    font-family: var(--ct-acc-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ct-acc-sub-tl__today-date {
    font-family: var(--ct-acc-font);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a2e;
}

.ct-acc-sub-tl__today-sub {
    font-family: var(--ct-acc-font-body);
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1px;
}

/* Mobile: ≤480px — stacked vertical layout, tooltip always visible */
@media (max-width: 480px) {
    .ct-acc-sub-tl {
        padding: 16px 16px 18px;
    }

    .ct-acc-sub-tl__track {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .ct-acc-sub-tl__node {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 10px;
        padding: 6px 0;
    }

    .ct-acc-sub-tl__node .ct-acc-sub-tl__info {
        align-items: flex-start;
        margin-top: 0;
    }

    .ct-acc-sub-tl__bar {
        min-height: 30px;
        margin: 4px 0 4px 6px;
        padding-left: 20px;
    }

    .ct-acc-sub-tl__bar::before {
        top: 0;
        bottom: 0;
        left: 6px;
        right: auto;
        width: 4px;
        height: auto;
    }

    .ct-acc-sub-tl__bar-fill {
        top: 0;
        left: 6px;
        width: 4px !important;
        height: 100%;
    }

    .ct-acc-sub-tl__bar-label {
        position: static;
        transform: none;
        margin-top: 4px;
        margin-left: 10px;
    }

    .ct-acc-sub-tl__today {
        position: relative;
        top: auto;
        left: auto !important;
        transform: none;
        flex-direction: row;
        gap: 8px;
        padding: 4px 0;
        margin-left: 0;
    }

    .ct-acc-sub-tl__today-tip {
        opacity: 1;
        transform: none;
        flex-direction: row;
        gap: 6px;
        margin-top: 0;
        padding: 4px 10px;
        pointer-events: auto;
    }
}

/* ==========================================================================
   Edit Profile Form — 2-column overlay
   ========================================================================== */

.ct-acc-edit-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.ct-acc-edit-profile__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-acc-edit-profile__intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f4ff;
    border: 1px solid #d0d9f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.ct-acc-edit-profile__intro-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #4a6fa5;
    margin-top: 1px;
}

.ct-acc-edit-profile__intro p {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #374151;
    margin: 0;
}

.ct-acc-edit-profile__section-title {
    font-family: var(--ct-acc-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin: 0 0 2px;
    padding-bottom: 0;
    border-bottom: none;
}

.ct-acc-edit-profile__section-desc {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ct-acc-gray);
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ct-acc-border);
}

.ct-acc-edit-profile__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ct-acc-edit-profile__label {
    font-family: var(--ct-acc-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.ct-acc-edit-profile__label--required::after {
    content: ' *';
    color: var(--ct-acc-error);
}

.ct-acc-edit-profile__input,
.ct-acc-edit-profile__select {
    font-family: var(--ct-acc-font-body);
    font-size: 0.9375rem;
    padding: 11px 14px;
    border: 1.5px solid var(--ct-acc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ct-acc-dark);
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.ct-acc-edit-profile__input:focus,
.ct-acc-edit-profile__select:focus {
    border-color: var(--ct-acc-red);
}

.ct-acc-edit-profile__input[readonly] {
    background: var(--ct-acc-gray-light);
    color: var(--ct-acc-gray);
    cursor: not-allowed;
}

.ct-acc-edit-profile__input--error {
    border-color: var(--ct-acc-error);
}

.ct-acc-edit-profile__field-hint {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--ct-acc-gray);
    margin-top: 2px;
}

.ct-acc-edit-profile__field-error {
    font-family: var(--ct-acc-font-body);
    font-size: 0.82rem;
    color: var(--ct-acc-error);
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
    margin-top: 0;
}

.ct-acc-edit-profile__field-error.active {
    max-height: 40px;
    opacity: 1;
    margin-top: 4px;
}

.ct-acc-edit-profile__privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ct-acc-border);
}

.ct-acc-edit-profile__privacy svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--ct-acc-gray);
}

.ct-acc-edit-profile__privacy span {
    font-family: var(--ct-acc-font-body);
    font-size: 0.75rem;
    color: var(--ct-acc-gray);
}

.ct-acc-edit-profile__row-pair {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .ct-acc-edit-profile {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ct-acc-edit-profile__col:last-child {
        margin-top: 16px;
    }
}

/* ---- Responsive: Subscription Flow ---- */
@media (max-width: 600px) {
    .ct-acc-subscribe-banner__glass {
        margin: 14px;
        padding: 22px 18px 20px;
    }

    .ct-acc-subscribe-banner__orb--3 {
        display: none;
    }

    .ct-acc-steps__label {
        display: none;
    }

    .ct-acc-plan-grid {
        grid-template-columns: 1fr;
    }

    .ct-acc-overlay__body-inner--wide {
        max-width: 480px;
    }

    .ct-acc-cycle-row {
        padding: 14px 16px;
    }

    .ct-acc-cycle-row__info {
        gap: 4px;
    }

    .ct-acc-timeline__node {
        width: 100px;
    }

    .ct-acc-timeline__sub {
        font-size: 0.75rem;
        max-width: 90px;
    }

    .ct-acc-review__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ct-acc-review__step-card {
        padding: 12px 14px;
    }

    .ct-acc-review__step-icon {
        width: 40px;
        height: 40px;
    }

    .ct-acc-checkout-grid,
    .ct-acc-stripe-mock__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ct-acc-stripe-mock__field-row {
        grid-template-columns: 1fr;
    }

    .ct-acc-stripe-mock__trust-bar {
        flex-direction: column;
        gap: 6px;
    }
}

/* ==========================================================================
   Action Button — Danger Variant (Delete Account)
   ========================================================================== */

.ct-acc-action-btn--danger {
    color: #991B1B;
}

.ct-acc-action-btn--danger:hover {
    background: #FEF2F2;
}

.ct-acc-action-btn__icon--danger {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

/* ==========================================================================
   Device Card — Remove Button
   ========================================================================== */

.ct-acc-device-card__remove {
    width: 32px;
    height: 32px;
    border: 1px solid #FECACA;
    background: #FEF2F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #DC2626;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
}

.ct-acc-device-card__remove:hover {
    color: #fff;
    background: #DC2626;
    border-color: #DC2626;
    transform: scale(1.1);
}

.ct-acc-device-card__remove svg {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   Confirmation Dialog (inline in overlay)
   ========================================================================== */

.ct-acc-confirm-dialog {
    text-align: center;
    padding: 20px 0;
}

.ct-acc-confirm-dialog__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #D97706;
}

.ct-acc-confirm-dialog__icon svg {
    width: 28px;
    height: 28px;
}

.ct-acc-confirm-dialog__icon--danger {
    background: #FEE2E2;
    color: #DC2626;
}

.ct-acc-confirm-dialog__title {
    font-family: var(--ct-acc-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin: 0 0 12px;
}

.ct-acc-confirm-dialog__text {
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    color: var(--ct-acc-gray);
    line-height: 1.6;
    margin: 0 0 24px;
}

.ct-acc-confirm-dialog__actions {
    display: flex;
    gap: 12px;
}

.ct-acc-confirm-dialog__actions .ct-acc-btn {
    flex: 1;
}

/* Danger button variant */
.ct-acc-btn--danger {
    background: #DC2626;
    color: #fff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.ct-acc-btn--danger:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.ct-acc-btn--danger:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Delete account confirmation input */
.ct-acc-confirm-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--ct-acc-font-body);
    font-size: 15px;
    color: var(--ct-acc-dark);
    background: var(--ct-acc-gray-light);
    border: 2px solid transparent;
    border-radius: var(--ct-acc-radius-sm);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ct-acc-confirm-input:focus {
    border-color: #DC2626;
    background: #fff;
}

/* Device card fade-out animation */
.ct-acc-device-card--removing {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

/* ==========================================================================
   Device Card — Call Buttons
   ========================================================================== */

.ct-acc-device-card__call-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #D1FAE5;
    background: #ECFDF5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #059669;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.ct-acc-device-card__call-btn:hover {
    color: #fff;
    background: #059669;
    border-color: #059669;
    transform: scale(1.1);
}

.ct-acc-device-card__call-btn svg {
    width: 15px;
    height: 15px;
}

.ct-acc-device-card__call-btn--video {
    border-color: #BFDBFE;
    background: #EFF6FF;
    color: #2563EB;
}

.ct-acc-device-card__call-btn--video:hover {
    color: #fff;
    background: #2563EB;
    border-color: #2563EB;
}

/* Buttons group in device card top row */
.ct-acc-device-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   Call Overlay — Full-Screen
   ========================================================================== */

.ct-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ct-acc-ease, ease), visibility 0.4s;
}

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

.ct-call-overlay__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1A1A2E 0%, #0D0D1A 100%);
}

.ct-call-overlay__content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Remote video — fills entire overlay */
.ct-call-overlay__remote-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Remote video — visually hidden for audio-only calls (element still needed for audio playback) */
/* NOTE: Do NOT use display:none, visibility:hidden, or clip:rect(0,0,0,0) — browsers
   may refuse to play audio from a fully-hidden <video> element. opacity:0 keeps playback. */
.ct-call-overlay__remote-video--audio-only {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Audio-only avatar */
.ct-call-overlay__avatar {
    position: relative;
    margin-bottom: 32px;
}

.ct-call-overlay__avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.3), rgba(255, 112, 67, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ct-call-overlay__avatar-circle svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.9);
}

.ct-call-overlay__pulse-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(239, 83, 80, 0.4);
    animation: ct-call-pulse 2s ease-out infinite;
}

@keyframes ct-call-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Local video PIP */
.ct-call-overlay__pip {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 140px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.ct-call-overlay__local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* Call info (name, status, timer) */
.ct-call-overlay__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.ct-call-overlay__device-name {
    font-family: var(--ct-acc-font, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
}

.ct-call-overlay__status {
    font-family: var(--ct-acc-font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.ct-call-overlay__timer {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    min-height: 22px;
}

/* Controls bar */
.ct-call-overlay__controls {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.ct-call-ctrl {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ct-call-ctrl svg {
    width: 24px;
    height: 24px;
}

.ct-call-ctrl:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

/* Active state (muted/camera off) */
.ct-call-ctrl--active {
    background: rgba(255, 255, 255, 0.9);
    color: #1A1A2E;
}

.ct-call-ctrl--active:hover {
    background: #fff;
}

/* End call button — red */
.ct-call-ctrl--end {
    width: 64px;
    height: 64px;
    background: #DC2626;
    color: #fff;
}

.ct-call-ctrl--end:hover {
    background: #EF4444;
    transform: scale(1.1);
}

.ct-call-ctrl--end svg {
    width: 28px;
    height: 28px;
}

/* Error toast */
.ct-call-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 100001;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--ct-acc-font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.ct-call-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ct-call-toast--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ==========================================================================
   Call UI — Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .ct-call-overlay__pip {
        width: 100px;
        height: 75px;
        top: 16px;
        right: 16px;
        border-radius: 10px;
    }

    .ct-call-overlay__controls {
        bottom: 32px;
        gap: 16px;
    }

    .ct-call-ctrl {
        width: 48px;
        height: 48px;
    }

    .ct-call-ctrl svg {
        width: 20px;
        height: 20px;
    }

    .ct-call-ctrl--end {
        width: 56px;
        height: 56px;
    }

    .ct-call-ctrl--end svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   Processing Overlay (multi-step checkout animation)
   ========================================================================== */

.ct-acc-processing {
    text-align: center;
    padding: 40px 24px;
}

.ct-acc-processing__logo {
    margin-bottom: 28px;
    animation: ct-acc-processing-pulse 2s ease-in-out infinite;
}

.ct-acc-processing__logo svg {
    color: #1a1a2e;
    width: 40px;
    height: 40px;
}

@keyframes ct-acc-processing-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
}

.ct-acc-processing__steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 300px;
    margin: 0 auto 28px;
    text-align: left;
}

.ct-acc-processing__step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.35;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ct-acc-processing__step--active {
    opacity: 1;
    transform: translateX(0);
}

.ct-acc-processing__step--done {
    opacity: 0.7;
    transform: translateX(0);
}

.ct-acc-processing__step-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-acc-processing__step-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--ct-acc-red, #c8102e);
    border-radius: 50%;
    animation: ct-acc-spin 0.7s linear infinite;
    display: none;
}

.ct-acc-processing__step--active .ct-acc-processing__step-spinner {
    display: block;
}

.ct-acc-processing__step--done .ct-acc-processing__step-spinner {
    display: none;
}

.ct-acc-processing__step-check {
    display: none;
    color: #16a34a;
}

.ct-acc-processing__step--done .ct-acc-processing__step-check {
    display: block;
    animation: ct-acc-check-pop 0.35s ease;
}

@keyframes ct-acc-check-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.ct-acc-processing__step-label {
    font-size: 0.92rem;
    color: #374151;
    font-weight: 500;
}

.ct-acc-processing__step--done .ct-acc-processing__step-label {
    color: #6b7280;
}

.ct-acc-processing__bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.ct-acc-processing__bar-fill {
    height: 100%;
    background: var(--ct-acc-red, #c8102e);
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s ease;
}

/* ==========================================================================
   Animated Checkmark (checkout success)
   ========================================================================== */

.ct-acc-result-checkmark {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.ct-acc-result-checkmark__circle {
    stroke: #16a34a;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: ct-acc-draw-circle 0.6s ease forwards;
}

@keyframes ct-acc-draw-circle {
    to { stroke-dashoffset: 0; }
}

.ct-acc-result-checkmark__check {
    stroke: #16a34a;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: ct-acc-draw-check 0.4s ease 0.5s forwards;
}

@keyframes ct-acc-draw-check {
    to { stroke-dashoffset: 0; }
}

.ct-acc-checkout-result--animated {
    opacity: 0;
    transform: translateY(12px);
    animation: ct-acc-fade-slide-up 0.5s ease 0.3s forwards;
}

@keyframes ct-acc-fade-slide-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Session Verification Loading State
   ========================================================================== */


/* ==========================================================================
   Registration Trust Badges
   ========================================================================== */

.ct-acc-reg-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ct-acc-border);
}

.ct-acc-reg-trust__item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F0FAF4;
    border: 1px solid #D1FAE5;
    border-radius: 20px;
    padding: 6px 12px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.78rem;
    color: #065F46;
    white-space: nowrap;
}

.ct-acc-reg-trust__item svg {
    flex-shrink: 0;
    color: #059669;
}

/* ==========================================================================
   Registration Gender Buttons
   ========================================================================== */

.ct-acc-reg-gender {
    display: flex;
    gap: 8px;
}

.ct-acc-reg-gender__btn {
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--ct-acc-border);
    border-radius: 8px;
    padding: 11px 0;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ct-acc-dark);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    outline: none;
}

.ct-acc-reg-gender__btn:hover {
    border-color: #D1D5DB;
    background: var(--ct-acc-gray-light);
}

.ct-acc-reg-gender__btn--active {
    border-color: var(--ct-acc-red);
    background: #FFF0F0;
    color: var(--ct-acc-red);
    font-weight: 600;
}

.ct-acc-reg-gender__btn--active:hover {
    border-color: var(--ct-acc-red);
    background: #FFF0F0;
}

/* ==========================================================================
   Registration Country Dropdown
   ========================================================================== */

.ct-acc-reg-country {
    position: relative;
}

.ct-acc-reg-country__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--ct-acc-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9375rem;
    color: var(--ct-acc-dark);
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
    text-align: left;
}

.ct-acc-reg-country__trigger:focus,
.ct-acc-reg-country--open .ct-acc-reg-country__trigger {
    border-color: var(--ct-acc-red);
}

.ct-acc-reg-country__flag {
    font-size: 1.15rem;
    line-height: 1;
}

.ct-acc-reg-country__label {
    flex: 1;
}

.ct-acc-reg-country__arrow {
    font-size: 0.85rem;
    color: var(--ct-acc-gray);
    transition: transform 0.2s;
}

.ct-acc-reg-country--open .ct-acc-reg-country__arrow {
    transform: rotate(180deg);
}

.ct-acc-reg-country__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 10;
    overflow: hidden;
}

.ct-acc-reg-country--open .ct-acc-reg-country__dropdown {
    display: block;
}

.ct-acc-reg-country__option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9375rem;
    color: var(--ct-acc-dark);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.ct-acc-reg-country__option:hover {
    background: var(--ct-acc-gray-light);
}

.ct-acc-reg-country__option--active {
    background: #FFF0F0;
    color: var(--ct-acc-red);
    font-weight: 600;
}

.ct-acc-reg-country__option--active:hover {
    background: #FFF0F0;
}

/* ==========================================================================
   Registration Phone Info Box
   ========================================================================== */

.ct-acc-reg-phone-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 4px;
}

.ct-acc-reg-phone-info svg {
    flex-shrink: 0;
    color: #0284C7;
    margin-top: 1px;
}

.ct-acc-reg-phone-info strong {
    display: block;
    font-family: var(--ct-acc-font);
    font-size: 0.8rem;
    font-weight: 600;
    color: #0C4A6E;
    margin-bottom: 3px;
}

.ct-acc-reg-phone-info p {
    font-family: var(--ct-acc-font-body);
    font-size: 0.78rem;
    line-height: 1.5;
    color: #0369A1;
    margin: 0;
}

/* ==========================================================================
   Registration Birthdate Selects
   ========================================================================== */

.ct-acc-reg-birthdate {
    display: flex;
    gap: 8px;
}

.ct-acc-reg-birthdate__select {
    flex: 1;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid var(--ct-acc-border);
    border-radius: 8px;
    padding: 11px 30px 11px 14px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ct-acc-dark);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    outline: none;
    text-align: center;
}

.ct-acc-reg-birthdate__select:hover {
    border-color: #D1D5DB;
    background-color: var(--ct-acc-gray-light);
}

.ct-acc-reg-birthdate__select:focus {
    border-color: var(--ct-acc-red);
    background-color: #fff;
}

.ct-acc-reg-birthdate__select--month {
    flex: 1.6;
    text-align: left;
}

/* ==========================================================================
   Registration Birthdate Info Box
   ========================================================================== */

.ct-acc-reg-birthdate-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: -8px;
    margin-bottom: 16px;
}

.ct-acc-reg-birthdate-info svg {
    flex-shrink: 0;
    color: #0284C7;
}

.ct-acc-reg-birthdate-info span {
    font-family: var(--ct-acc-font-body);
    font-size: 0.78rem;
    line-height: 1.4;
    color: #0369A1;
}

/* ==========================================================================
   Registration Terms Checkbox
   ========================================================================== */

.ct-acc-reg-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1.5px solid var(--ct-acc-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
    user-select: none;
}

.ct-acc-reg-terms:hover {
    border-color: #D1D5DB;
}

.ct-acc-reg-terms--error {
    border-color: var(--ct-acc-error);
}

.ct-acc-reg-terms__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ct-acc-reg-terms__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--ct-acc-border);
    border-radius: 4px;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 1px;
}

.ct-acc-reg-terms__check::after {
    content: '';
    display: none;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.ct-acc-reg-terms__checkbox:checked + .ct-acc-reg-terms__check {
    background: var(--ct-acc-red);
    border-color: var(--ct-acc-red);
}

.ct-acc-reg-terms__checkbox:checked + .ct-acc-reg-terms__check::after {
    display: block;
}

.ct-acc-reg-terms__checkbox:focus-visible + .ct-acc-reg-terms__check {
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.2);
}

.ct-acc-reg-terms__text {
    font-family: var(--ct-acc-font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ct-acc-dark);
}

.ct-acc-reg-terms__text a {
    color: var(--ct-acc-red);
    text-decoration: underline;
    font-weight: 600;
}

.ct-acc-reg-terms__text a:hover {
    color: var(--ct-acc-red-hover);
}

/* ==========================================================================
   Payment Method Selector
   ========================================================================== */

.ct-acc-pm-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.ct-acc-pm-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1.5px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s var(--ct-acc-ease), box-shadow 0.2s var(--ct-acc-ease), transform 0.15s var(--ct-acc-ease);
}

.ct-acc-pm-card:hover {
    border-color: var(--ct-acc-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
    transform: translateY(-1px);
}

.ct-acc-pm-card:focus-visible {
    border-color: var(--ct-acc-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
    outline: none;
}

.ct-acc-pm-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ct-acc-gray-light);
    border-radius: 10px;
    color: var(--ct-acc-dark);
}

.ct-acc-pm-card:hover .ct-acc-pm-card__icon {
    background: #FEF2F2;
    color: var(--ct-acc-red);
}

.ct-acc-pm-card__text {
    flex: 1;
    min-width: 0;
}

.ct-acc-pm-card__title {
    font-family: var(--ct-acc-font);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ct-acc-dark);
    margin-bottom: 2px;
}

.ct-acc-pm-card__desc {
    font-family: var(--ct-acc-font-body);
    font-size: 0.875rem;
    color: var(--ct-acc-gray);
    line-height: 1.4;
}

.ct-acc-pm-card__arrow {
    flex-shrink: 0;
    color: var(--ct-acc-gray);
    transition: color 0.2s, transform 0.2s;
}

.ct-acc-pm-card:hover .ct-acc-pm-card__arrow {
    color: var(--ct-acc-red);
    transform: translateX(2px);
}

/* ==========================================================================
   Bank Transfer Form
   ========================================================================== */

.ct-acc-bank-billing-title {
    font-family: var(--ct-acc-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin: 20px 0 12px;
}

.ct-acc-bank-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-acc-form-row {
    display: flex;
    gap: 12px;
}

.ct-acc-form-group--plz {
    flex: 0 0 120px;
}

.ct-acc-form-group--city {
    flex: 1;
}

.ct-acc-bank-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    padding: 12px 14px;
    background: rgba(107, 114, 128, 0.06);
    border-left: 3px solid var(--ct-acc-gray);
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ct-acc-gray);
}

.ct-acc-bank-info-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--ct-acc-gray);
}

/* ==========================================================================
   Bank Transfer Details Display
   ========================================================================== */

.ct-acc-bank-details {
    text-align: center;
}

.ct-acc-bank-details__header {
    margin-bottom: 20px;
}

.ct-acc-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ct-acc-border);
}

.ct-acc-bank-row:last-of-type {
    border-bottom: none;
}

.ct-acc-bank-row__label {
    font-family: var(--ct-acc-font-body);
    font-size: 0.875rem;
    color: var(--ct-acc-gray);
    flex-shrink: 0;
    margin-right: 16px;
}

.ct-acc-bank-row__value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ct-acc-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ct-acc-dark);
    text-align: right;
    word-break: break-all;
}

.ct-acc-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--ct-acc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ct-acc-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.ct-acc-copy-btn:hover {
    border-color: var(--ct-acc-red);
    color: var(--ct-acc-red);
    background: #FEF2F2;
}

.ct-acc-copy-btn--copied {
    border-color: var(--ct-acc-success);
    color: var(--ct-acc-success);
    background: #ECFDF5;
    font-size: 0.75rem;
    font-weight: 600;
    width: auto;
    padding: 0 8px;
}

.ct-acc-bank-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
}

.ct-acc-bank-qr canvas {
    border-radius: 8px;
}

.ct-acc-bank-qr__label {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    color: var(--ct-acc-gray);
    margin: 10px 0 0;
}

.ct-acc-bank-details__due {
    font-family: var(--ct-acc-font);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ct-acc-dark);
    margin: 16px 0 8px;
}

.ct-acc-bank-details__note {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    color: var(--ct-acc-gray);
    line-height: 1.5;
    margin: 0 0 16px;
}

.ct-acc-bank-details__link {
    display: inline-block;
    font-family: var(--ct-acc-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ct-acc-red);
    text-decoration: none;
    transition: color 0.2s;
}

.ct-acc-bank-details__link:hover {
    color: var(--ct-acc-red-hover);
    text-decoration: underline;
}

.ct-acc-bank-details__link--primary {
    display: inline-block;
    margin: 16px 0 8px;
    padding: 10px 20px;
    background: var(--ct-acc-red);
    color: #fff;
    border-radius: var(--ct-acc-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.ct-acc-bank-details__link--primary:hover {
    background: var(--ct-acc-red-hover);
    color: #fff;
    text-decoration: none;
}

/* Payment method intro text */
.ct-acc-pm-intro {
    font-family: var(--ct-acc-font-body);
    font-size: 0.9rem;
    color: var(--ct-acc-gray);
    margin: 0 0 4px;
    line-height: 1.5;
}

/* Billing form hint */
.ct-acc-bank-billing-hint {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    color: var(--ct-acc-gray);
    margin: 0 0 12px;
    line-height: 1.4;
}

/* Bank details activation, email notice, support */
.ct-acc-bank-details__activation {
    font-family: var(--ct-acc-font-body);
    font-size: 0.875rem;
    color: var(--ct-acc-dark);
    line-height: 1.5;
    margin: 12px 0 8px;
    padding: 12px 16px;
    background: #F0FDF4;
    border-radius: var(--ct-acc-radius-sm);
    border: 1px solid #BBF7D0;
}

.ct-acc-bank-details__email-notice {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    color: var(--ct-acc-gray);
    line-height: 1.5;
    margin: 8px 0 0;
}

.ct-acc-bank-done {
    margin-top: 20px;
    width: 100%;
}

.ct-acc-bank-details__support {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    color: var(--ct-acc-gray);
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--ct-acc-border);
}

/* Copy button accessibility */
.ct-acc-copy-btn:focus-visible {
    border-color: var(--ct-acc-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
    outline: none;
}

.ct-acc-copy-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   Mobile Breakpoints — Bank Transfer & Payment
   ========================================================================== */

@media (max-width: 600px) {
    .ct-acc-form-row {
        flex-direction: column;
    }

    .ct-acc-form-group--plz {
        flex: 1;
    }

    .ct-acc-bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ct-acc-bank-row__label {
        margin-right: 0;
    }

    .ct-acc-pm-card {
        padding: 16px;
    }

    .ct-acc-pm-card__icon {
        width: 40px;
        height: 40px;
    }

    .ct-acc-copy-btn {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   Reduced Motion — Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .ct-acc-overlay__dialog { transition-duration: 0.01ms !important; }
    .ct-acc-spinner,
    .ct-acc-processing__step-spinner,
    .ct-acc-result-checkmark__circle,
    .ct-acc-result-checkmark__check { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .ct-acc-edit-profile__field-error { transition-duration: 0.01ms !important; }
    .ct-acc-reg-gender__btn,
    .ct-acc-reg-country__trigger,
    .ct-acc-reg-country__arrow { transition-duration: 0.01ms !important; }
    .ct-split-brand__video-wrap { animation: none !important; }
    .ct-acc-loading__spinner { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   Tab Switcher — Glass Morphism Segmented Control
   ========================================================================== */

.ct-acc-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 6px;
    background: rgba(241, 243, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ct-acc-tabs__slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.ct-acc-tabs__btn {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    font-family: var(--ct-acc-font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: #78909C;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 12px;
}

.ct-acc-tabs__btn:hover {
    color: #546E7A;
}

.ct-acc-tabs__btn--active {
    color: #263238;
}

.ct-acc-tabs__btn-icon {
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.ct-acc-tabs__btn--active .ct-acc-tabs__btn-icon {
    opacity: 0.8;
}

.ct-acc-tabs__btn-icon svg {
    width: 16px;
    height: 16px;
}

.ct-acc-tab-content {
    min-height: 200px;
}

/* ==========================================================================
   Events Timeline
   ========================================================================== */

.ct-acc-events__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ct-acc-events__title {
    font-family: var(--ct-acc-font);
    font-size: var(--ct-text-headline);
    font-weight: var(--ct-text-headline-weight);
    line-height: var(--ct-text-headline-lh);
    color: var(--ct-acc-dark);
    margin: 0;
}

.ct-acc-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ct-acc-events__day {
    margin-bottom: 8px;
}

.ct-acc-events__day-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 16px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: #455A64;
    background: #F8F9FA;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ct-acc-events__day-header--today {
    color: #EF5350;
    background: #FFF5F5;
}

/* ==========================================================================
   Event Card (Android-matched layout)
   ========================================================================== */

.ct-acc-event-card {
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.ct-acc-event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.ct-acc-event-card:active {
    transform: translateY(0);
}

.ct-acc-event-card--skeleton {
    cursor: default;
    pointer-events: none;
}

/* Category header */
.ct-acc-event-card__cat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ct-acc-event-card__cat-icon {
    display: flex;
    align-items: center;
}

.ct-acc-event-card__cat-icon svg {
    width: 16px;
    height: 16px;
}

.ct-acc-event-card__cat-name {
    font-family: var(--ct-acc-font-body);
}

/* Title row */
.ct-acc-event-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.ct-acc-event-card__contact-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ct-acc-event-card__title {
    font-family: var(--ct-acc-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ct-acc-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Time row */
.ct-acc-event-card__time-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    color: #455A64;
    margin-bottom: 6px;
}

.ct-acc-event-card__time-row svg {
    flex-shrink: 0;
    color: #607D8B;
}

/* Recurrence row */
.ct-acc-event-card__repeat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    color: #607D8B;
    margin-bottom: 6px;
}

.ct-acc-event-card__repeat-row svg {
    flex-shrink: 0;
    color: #90A4AE;
}

/* Weekday circles */
.ct-acc-event-card__weekdays {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.ct-acc-event-card__weekday {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ct-acc-font-body);
    font-size: 0.65rem;
    font-weight: 700;
    color: #90A4AE;
    background: #ECEFF1;
}

.ct-acc-event-card__weekday--active {
    color: #fff;
    background: #41B046;
}

/* Indicator icons */
.ct-acc-event-card__indicators {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ct-acc-event-card__indicator {
    display: flex;
    align-items: center;
    color: #90A4AE;
}

/* Todo progress bar */
.ct-acc-event-card__progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.ct-acc-event-card__progress-bar {
    flex: 1;
    height: 6px;
    background: #E3F2FD;
    border-radius: 3px;
    overflow: hidden;
}

.ct-acc-event-card__progress-fill {
    height: 100%;
    background: #41B046;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ct-acc-event-card__progress-text {
    font-family: var(--ct-acc-font-body);
    font-size: 0.75rem;
    color: #607D8B;
    white-space: nowrap;
}

/* Bottom row (badges + device name) */
.ct-acc-event-card__bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.ct-acc-event-card__badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ct-acc-event-card__badge--private {
    color: #fff;
    background: #EF5350;
}

.ct-acc-event-card__created {
    font-family: var(--ct-acc-font-body);
    font-size: 0.75rem;
    font-style: italic;
    color: #90A4AE;
}

/* ==========================================================================
   Event Viewer (Fullscreen Overlay)
   ========================================================================== */

.ct-acc-ev-viewer__header {
    margin: -32px -32px 24px;
    padding: 40px 32px 28px;
    border-radius: var(--ct-acc-radius) var(--ct-acc-radius) 0 0;
    color: #fff;
    position: relative;
}

.ct-acc-ev-viewer__header-icon {
    margin-bottom: 12px;
}

.ct-acc-ev-viewer__header-icon svg {
    width: 32px;
    height: 32px;
    stroke: rgba(255, 255, 255, 0.9);
}

.ct-acc-ev-viewer__header-title {
    font-family: var(--ct-acc-font);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.ct-acc-ev-viewer__header-cat {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ct-acc-ev-viewer__badges {
    margin-bottom: 20px;
}

.ct-acc-ev-viewer__section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ct-acc-border);
}

.ct-acc-ev-viewer__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ct-acc-ev-viewer__section--meta {
    border-bottom: none;
    padding-bottom: 0;
}

.ct-acc-ev-viewer__section-title {
    font-family: var(--ct-acc-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: #90A4AE;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ct-acc-ev-viewer__time {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ct-acc-ev-viewer__time-date {
    font-family: var(--ct-acc-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ct-acc-dark);
}

.ct-acc-ev-viewer__time-clock {
    font-family: var(--ct-acc-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #2196F3;
}

.ct-acc-ev-viewer__time-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: #E3F2FD;
    color: #1976D2;
    border-radius: 20px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

.ct-acc-ev-viewer__duration {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    color: #607D8B;
    margin-top: 6px;
}

.ct-acc-ev-viewer__notes {
    font-family: var(--ct-acc-font-body);
    font-size: 0.95rem;
    color: var(--ct-acc-dark);
    line-height: 1.6;
    font-style: italic;
    white-space: pre-wrap;
}

.ct-acc-ev-viewer__location-btns {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.ct-acc-btn--sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: auto;
}

.ct-acc-ev-viewer__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.ct-acc-ev-viewer__gallery-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.ct-acc-ev-viewer__todos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-acc-ev-viewer__todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #F8F9FA;
    border-radius: 8px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9rem;
    color: var(--ct-acc-dark);
}

.ct-acc-ev-viewer__todo-item--done {
    text-decoration: line-through;
    color: #90A4AE;
}

.ct-acc-ev-viewer__todo-check {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #CFD8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #41B046;
    flex-shrink: 0;
}

.ct-acc-ev-viewer__todo-item--done .ct-acc-ev-viewer__todo-check {
    background: #E8F5E9;
    border-color: #41B046;
}

.ct-acc-ev-viewer__chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ct-acc-ev-viewer__chat-msg {
    padding: 10px 14px;
    background: #F0F4F8;
    border-radius: 12px 12px 12px 4px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9rem;
    color: var(--ct-acc-dark);
}

.ct-acc-ev-viewer__chat-sender {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #607D8B;
    margin-bottom: 4px;
}

.ct-acc-ev-viewer__attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F8F9FA;
    border-radius: 8px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.9rem;
    color: var(--ct-acc-dark);
    margin-bottom: 6px;
}

.ct-acc-ev-viewer__attachment svg {
    flex-shrink: 0;
    color: #607D8B;
}

/* ==========================================================================
   Events — Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .ct-acc-ev-viewer__header {
        margin: -24px -20px 20px;
        padding: 32px 20px 24px;
    }

    .ct-acc-ev-viewer__header-title {
        font-size: 1.25rem;
    }

    .ct-acc-ev-viewer__location-btns {
        flex-direction: column;
    }

    .ct-acc-ev-viewer__gallery {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .ct-acc-event-card__weekdays {
        gap: 3px;
    }

    .ct-acc-event-card__weekday {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
}

/* ==========================================================================
   Events V2 — Time Range Selector
   ========================================================================== */

.ct-acc-ev-timerange {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.ct-acc-ev-timerange__btn {
    padding: 6px 14px;
    border: 1.5px solid #CFD8DC;
    border-radius: 20px;
    background: #fff;
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #546E7A;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ct-acc-ev-timerange__btn:hover {
    border-color: #90A4AE;
    background: #F5F7FA;
}

.ct-acc-ev-timerange__btn--active {
    background: #263238;
    color: #fff;
    border-color: #263238;
}

.ct-acc-ev-timerange__btn--active:hover {
    background: #37474F;
    border-color: #37474F;
}

/* ==========================================================================
   Events V2 — Day Selector
   ========================================================================== */

.ct-acc-ev-dayselector {
    margin-bottom: 14px;
    position: relative;
}

.ct-acc-ev-dayselector__scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px;
}

.ct-acc-ev-dayselector__scroll::-webkit-scrollbar {
    display: none;
}

.ct-acc-ev-dayselector__chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 56px;
    padding: 6px 8px;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ct-acc-ev-dayselector__chip:hover {
    border-color: #BDBDBD;
    background: #FAFAFA;
}

.ct-acc-ev-dayselector__chip--today {
    border-color: #EF5350;
}

.ct-acc-ev-dayselector__chip--active {
    background: #EF5350;
    border-color: #EF5350;
    color: #fff;
}

.ct-acc-ev-dayselector__chip--active .ct-acc-ev-dayselector__chip-day,
.ct-acc-ev-dayselector__chip--active .ct-acc-ev-dayselector__chip-num {
    color: #fff;
}

.ct-acc-ev-dayselector__chip-day {
    font-family: var(--ct-acc-font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #90A4AE;
    letter-spacing: 0.3px;
}

.ct-acc-ev-dayselector__chip-num {
    font-family: var(--ct-acc-font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: #263238;
    line-height: 1.2;
}

.ct-acc-ev-dayselector__chip--today .ct-acc-ev-dayselector__chip-num {
    color: #EF5350;
}

/* ==========================================================================
   Events V2 — Category Filter
   ========================================================================== */

.ct-acc-ev-catfilter {
    margin-bottom: 16px;
}

.ct-acc-ev-catfilter__scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px;
}

.ct-acc-ev-catfilter__scroll::-webkit-scrollbar {
    display: none;
}

.ct-acc-ev-catfilter__chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1.5px solid #E0E0E0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.ct-acc-ev-catfilter__chip:hover {
    border-color: #BDBDBD;
    background: #FAFAFA;
}

.ct-acc-ev-catfilter__chip--active {
    background: var(--chip-color, #263238);
    border-color: var(--chip-color, #263238);
    color: #fff;
}

.ct-acc-ev-catfilter__chip--active .ct-acc-ev-catfilter__icon svg {
    stroke: #fff;
    fill: none;
}

.ct-acc-ev-catfilter__chip--active .ct-acc-ev-catfilter__label,
.ct-acc-ev-catfilter__chip--active .ct-acc-ev-catfilter__count {
    color: #fff;
}

/* "Alle" chip active — use dark style since no category color */
.ct-acc-ev-catfilter__chip--active:not([style]) {
    background: #263238;
    border-color: #263238;
}

.ct-acc-ev-catfilter__icon {
    display: flex;
    align-items: center;
}

.ct-acc-ev-catfilter__icon svg {
    width: 14px;
    height: 14px;
    color: var(--chip-color, #607D8B);
}

.ct-acc-ev-catfilter__label {
    font-family: var(--ct-acc-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: #455A64;
}

.ct-acc-ev-catfilter__count {
    font-family: var(--ct-acc-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: #90A4AE;
    background: #F0F4F8;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.ct-acc-ev-catfilter__chip--active .ct-acc-ev-catfilter__count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ==========================================================================
   Events V2 — Card Redesign
   ========================================================================== */

.ct-acc-event-card--v2 {
    border: none;
    border-left: 4px solid var(--card-cat-color, #607D8B);
    background: color-mix(in srgb, var(--card-cat-color, #607D8B) 4%, #fff);
    border-radius: 12px;
    padding: 16px 16px 14px;
}

.ct-acc-event-card--v2:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ct-acc-event-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ct-acc-event-card__cat-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-cat-color, #607D8B) 12%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--card-cat-color, #607D8B);
}

.ct-acc-event-card__cat-circle svg {
    width: 18px;
    height: 18px;
}

.ct-acc-event-card__header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ct-acc-event-card--v2 .ct-acc-event-card__cat-name {
    font-family: var(--ct-acc-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--card-cat-color, #607D8B);
}

.ct-acc-event-card__time-inline {
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1976D2;
}

.ct-acc-event-card--v2 .ct-acc-event-card__title-row {
    margin-bottom: 6px;
}

.ct-acc-event-card--v2 .ct-acc-event-card__contact-pic {
    width: 40px;
    height: 40px;
}

.ct-acc-event-card--v2 .ct-acc-event-card__title {
    font-size: 1.05rem;
    font-weight: 700;
}

/* Date row (short date, secondary) */
.ct-acc-event-card__date-row {
    font-family: var(--ct-acc-font-body);
    font-size: 0.78rem;
    color: #90A4AE;
    margin-bottom: 8px;
}

/* Repeat badge (pill) */
.ct-acc-event-card__repeat-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 12px;
    background: #ECEFF1;
    font-family: var(--ct-acc-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: #546E7A;
    margin-bottom: 8px;
}

/* Gallery preview strip */
.ct-acc-event-card__gallery-preview {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.ct-acc-event-card__gallery-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.ct-acc-event-card__gallery-more {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ECEFF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ct-acc-font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: #607D8B;
}

/* ==========================================================================
   Events V2 — Lightbox
   ========================================================================== */

.ct-acc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-acc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.ct-acc-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.ct-acc-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ct-acc-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ct-acc-lightbox__prev,
.ct-acc-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ct-acc-lightbox__prev { left: 16px; }
.ct-acc-lightbox__next { right: 16px; }

.ct-acc-lightbox__prev:hover,
.ct-acc-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ct-acc-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 14px;
    border-radius: 16px;
}

/* ==========================================================================
   Events V2 — Viewer Enhancements
   ========================================================================== */

.ct-acc-ev-viewer__header-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.ct-acc-ev-viewer__section-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ct-acc-ev-viewer__section-title svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.ct-acc-ev-viewer__gallery-img {
    cursor: pointer;
    transition: opacity 0.2s;
}

.ct-acc-ev-viewer__gallery-img:hover {
    opacity: 0.85;
}

/* Medical info key-value rows */
.ct-acc-ev-viewer__medinfo-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #F0F4F8;
}

.ct-acc-ev-viewer__medinfo-row:last-child {
    border-bottom: none;
}

.ct-acc-ev-viewer__medinfo-label {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #546E7A;
}

.ct-acc-ev-viewer__medinfo-value {
    font-family: var(--ct-acc-font-body);
    font-size: 0.85rem;
    color: var(--ct-acc-dark);
    text-align: right;
}

/* ==========================================================================
   Events V2 — Empty State Illustration
   ========================================================================== */

.ct-acc-ev-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.ct-acc-ev-empty__svg {
    margin-bottom: 16px;
    opacity: 0.6;
}

.ct-acc-ev-empty__text {
    font-family: var(--ct-acc-font-body);
    font-size: 0.9rem;
    color: #90A4AE;
    margin: 0;
}

/* ==========================================================================
   Events V2 — Mobile Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .ct-acc-ev-timerange {
        gap: 4px;
    }

    .ct-acc-ev-timerange__btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .ct-acc-ev-dayselector__chip {
        min-width: 42px;
        height: 50px;
    }

    .ct-acc-ev-dayselector__chip-num {
        font-size: 0.95rem;
    }

    .ct-acc-ev-catfilter__chip {
        padding: 5px 10px;
    }

    .ct-acc-ev-catfilter__label {
        font-size: 0.72rem;
    }

    .ct-acc-event-card__cat-circle {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .ct-acc-event-card__cat-circle svg {
        width: 16px;
        height: 16px;
    }

    .ct-acc-event-card__gallery-thumb {
        width: 38px;
        height: 38px;
    }

    .ct-acc-event-card__gallery-more {
        width: 38px;
        height: 38px;
        font-size: 0.75rem;
    }

    .ct-acc-lightbox__prev,
    .ct-acc-lightbox__next {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .ct-acc-lightbox__prev { left: 8px; }
    .ct-acc-lightbox__next { right: 8px; }
}

/* ==========================================================================
   Native Subscription Management Overlay
   ========================================================================== */

/* Management home — 3-column action card grid */
.ct-acc-manage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .ct-acc-manage-grid {
        grid-template-columns: 1fr;
    }
}

.ct-acc-manage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center;
    font-family: var(--ct-acc-font-body);
}

.ct-acc-manage-card:hover {
    border-color: var(--ct-acc-red);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.12);
    transform: translateY(-2px);
}

.ct-acc-manage-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--ct-acc-gray-light);
    color: var(--ct-acc-dark);
}

.ct-acc-manage-card__icon svg {
    width: 20px;
    height: 20px;
}

.ct-acc-manage-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-acc-dark);
    line-height: 1.3;
}

.ct-acc-manage-card__desc {
    font-size: 12px;
    color: var(--ct-acc-gray);
    line-height: 1.4;
}

/* Danger variant — cancel card */
.ct-acc-manage-card--danger:hover {
    border-color: var(--ct-acc-error);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

.ct-acc-manage-card--danger .ct-acc-manage-card__icon {
    background: #FEF2F2;
    color: var(--ct-acc-error);
}

/* Current plan summary block */
.ct-acc-manage-summary {
    background: var(--ct-acc-gray-light);
    border-radius: var(--ct-acc-radius-sm);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}

.ct-acc-manage-summary__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ct-acc-manage-summary__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ct-acc-gray);
}

.ct-acc-manage-summary__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ct-acc-dark);
}

/* Reactivation banner (undo cancellation) */
.ct-acc-reactivate-banner {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: var(--ct-acc-radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.ct-acc-reactivate-banner__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #D97706;
}

.ct-acc-reactivate-banner__icon svg {
    width: 24px;
    height: 24px;
}

.ct-acc-reactivate-banner__text {
    flex: 1;
    font-size: 14px;
    color: #92400E;
    line-height: 1.4;
}

.ct-acc-reactivate-banner__btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #D97706;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--ct-acc-font-body);
    transition: background 0.2s ease;
}

.ct-acc-reactivate-banner__btn:hover {
    background: #B45309;
}

.ct-acc-reactivate-banner__btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* Plan comparison block (old → new) */
.ct-acc-plan-compare {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.ct-acc-plan-compare__arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--ct-acc-gray);
}

.ct-acc-plan-compare__arrow svg {
    width: 24px;
    height: 24px;
}

.ct-acc-plan-compare__side {
    flex: 1;
    padding: 16px;
    border-radius: var(--ct-acc-radius-sm);
    text-align: center;
}

.ct-acc-plan-compare__side--old {
    background: var(--ct-acc-gray-light);
    border: 1px solid var(--ct-acc-border);
}

.ct-acc-plan-compare__side--new {
    background: #FEF2F2;
    border: 2px solid var(--ct-acc-red);
}

.ct-acc-plan-compare__plan {
    font-size: 15px;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin-bottom: 4px;
}

.ct-acc-plan-compare__price {
    font-size: 13px;
    color: var(--ct-acc-gray);
}

.ct-acc-plan-compare__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.ct-acc-plan-compare__side--old .ct-acc-plan-compare__badge {
    background: var(--ct-acc-border);
    color: var(--ct-acc-gray);
}

.ct-acc-plan-compare__side--new .ct-acc-plan-compare__badge {
    background: var(--ct-acc-red);
    color: #fff;
}

/* Confirmation dialog styles */
.ct-acc-manage-confirm {
    text-align: center;
    padding: 16px 0;
}

.ct-acc-manage-confirm__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ct-acc-gray-light);
}

.ct-acc-manage-confirm__icon--success {
    background: #D1FAE5;
    color: var(--ct-acc-success);
}

.ct-acc-manage-confirm__icon--warning {
    background: #FEF3C7;
    color: #D97706;
}

.ct-acc-manage-confirm__icon--danger {
    background: #FEE2E2;
    color: var(--ct-acc-error);
}

.ct-acc-manage-confirm__icon svg {
    width: 28px;
    height: 28px;
}

.ct-acc-manage-confirm__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ct-acc-dark);
    margin-bottom: 8px;
}

.ct-acc-manage-confirm__text {
    font-size: 14px;
    color: var(--ct-acc-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ct-acc-manage-confirm__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ct-acc-manage-confirm__actions .ct-acc-btn {
    flex: 1;
    max-width: 200px;
}

/* Outline danger button for cancel action */
.ct-acc-btn--outline-danger {
    background: transparent;
    color: var(--ct-acc-error);
    border: 2px solid var(--ct-acc-error);
}

.ct-acc-btn--outline-danger:hover {
    background: #FEE2E2;
    transform: translateY(-2px);
}

.ct-acc-btn--outline-danger:disabled {
    border-color: #D1D5DB;
    color: #D1D5DB;
    cursor: not-allowed;
    transform: none;
}

/* Payment method radio cards */
.ct-acc-manage-pm-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.ct-acc-manage-pm-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 2px solid var(--ct-acc-border);
    border-radius: var(--ct-acc-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease;
    font-family: var(--ct-acc-font-body);
}

.ct-acc-manage-pm-card:hover {
    border-color: #9CA3AF;
}

.ct-acc-manage-pm-card--selected {
    border-color: var(--ct-acc-red);
    background: #FEF2F2;
}

.ct-acc-manage-pm-card--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ct-acc-manage-pm-card__radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ct-acc-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-acc-manage-pm-card--selected .ct-acc-manage-pm-card__radio {
    border-color: var(--ct-acc-red);
}

.ct-acc-manage-pm-card--selected .ct-acc-manage-pm-card__radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ct-acc-red);
}

.ct-acc-manage-pm-card__info {
    flex: 1;
}

.ct-acc-manage-pm-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ct-acc-dark);
}

.ct-acc-manage-pm-card__desc {
    font-size: 12px;
    color: var(--ct-acc-gray);
    margin-top: 2px;
}

.ct-acc-manage-pm-card__current {
    font-size: 11px;
    font-weight: 600;
    color: var(--ct-acc-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stripe Element mount inside management overlay */
.ct-acc-manage-stripe-mount {
    margin: 20px 0;
    min-height: 100px;
}

/* Native manage button secondary style */
.ct-acc-subscription__manage-wrap .ct-acc-btn--secondary {
    font-size: 15px;
    padding: 14px 28px;
    box-shadow: none;
}

.ct-acc-subscription__manage-wrap .ct-acc-btn--secondary:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Cancellation Banner (main page)
   ========================================================================== */

.ct-acc-cancel-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.ct-acc-cancel-banner__icon {
    color: #DC2626;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.ct-acc-cancel-banner__icon svg {
    width: 24px;
    height: 24px;
}

.ct-acc-cancel-banner__content {
    flex: 1;
    min-width: 0;
}

.ct-acc-cancel-banner__title {
    font-weight: 600;
    font-size: 14px;
    color: #991B1B;
}

.ct-acc-cancel-banner__text {
    font-size: 13px;
    color: #B91C1C;
    margin-top: 2px;
}

.ct-acc-cancel-banner__btn {
    flex-shrink: 0;
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--ct-acc-font-body);
    transition: background 0.2s ease;
}

.ct-acc-cancel-banner__btn:hover {
    background: #B91C1C;
}

.ct-acc-cancel-banner__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* "Wird gekündigt" status badge */
.ct-acc-subscription__status--canceling {
    background: #FEF3C7;
    color: #92400E;
}

/* ==========================================================================
   Pending Plan Change Banner
   ========================================================================== */

.ct-acc-change-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.ct-acc-change-banner__icon {
    color: #2563EB;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.ct-acc-change-banner__icon svg {
    width: 24px;
    height: 24px;
}

.ct-acc-change-banner__content {
    flex: 1;
    min-width: 0;
}

.ct-acc-change-banner__title {
    font-weight: 600;
    font-size: 14px;
    color: #1E40AF;
}

.ct-acc-change-banner__text {
    font-size: 13px;
    color: #1D4ED8;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .ct-acc-change-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Payment History (manage overlay)
   ========================================================================== */

.ct-acc-manage-history {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.ct-acc-manage-history__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.ct-acc-manage-history__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
    color: #6B7280;
}

.ct-acc-manage-history__date {
    width: 90px;
}

.ct-acc-manage-history__amount {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

/* ==========================================================================
   Responsive — Cancel Banner
   ========================================================================== */

@media (max-width: 600px) {
    .ct-acc-cancel-banner {
        flex-direction: column;
        text-align: center;
    }

    .ct-acc-cancel-banner__btn {
        width: 100%;
    }
}

/* ==========================================================================
   Section Title (shared across profile sections)
   ========================================================================== */

.ct-acc-section-title {
    font-family: var(--ct-acc-font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ct-acc-gray);
    margin: 0 0 12px 4px;
}

/* ==========================================================================
   Left-Panel Navigation Menu
   ========================================================================== */

.ct-acc-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 28px 0;
    padding: 0;
}

.ct-acc-nav__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    background: #fff;
    border: none;
    border-radius: 14px;
    font-family: var(--ct-acc-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #78909C;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: left;
    width: 100%;
}

.ct-acc-nav__item:hover {
    background: rgba(241, 243, 245, 0.85);
    color: #546E7A;
    transform: translateX(2px);
}

.ct-acc-nav__item--active {
    background: rgba(239, 83, 80, 0.08);
    color: var(--ct-acc-red);
    font-weight: 600;
    box-shadow: inset 0 0 0 1.5px rgba(239, 83, 80, 0.2);
    border-left: 3px solid var(--ct-acc-red);
    padding-left: 17px;
}

.ct-acc-nav__item--active:hover {
    background: rgba(239, 83, 80, 0.12);
}

.ct-acc-nav__icon {
    display: flex;
    align-items: center;
    opacity: 0.45;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.ct-acc-nav__item:hover .ct-acc-nav__icon {
    opacity: 0.7;
}

.ct-acc-nav__item--active .ct-acc-nav__icon {
    opacity: 1;
    color: var(--ct-acc-red);
}

.ct-acc-nav__icon svg {
    width: 20px;
    height: 20px;
}

.ct-acc-nav__label {
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   Adventure Cards
   ========================================================================== */

.ct-acc-adv-card {
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #607D8B;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ct-acc-adv-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ct-acc-adv-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ct-acc-adv-card__type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.ct-acc-adv-card__type-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ct-acc-adv-card__importance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
}

.ct-acc-adv-card__pin {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #9CA3AF;
    font-size: 12px;
    margin-left: auto;
}

.ct-acc-adv-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 8px;
}

.ct-acc-adv-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.ct-acc-adv-card__tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.ct-acc-adv-card__meta {
    font-size: 11px;
    color: #9CA3AF;
}

.ct-acc-adv-card__bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.ct-acc-adv-card__receiver {
    font-size: 11px;
    color: #9CA3AF;
    background: #F9FAFB;
    padding: 2px 6px;
    border-radius: 4px;
}

.ct-acc-adv-card__att-icon {
    font-size: 14px;
}

/* ==========================================================================
   Adventure Viewer
   ========================================================================== */

.ct-acc-adv-viewer__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ct-acc-adv-viewer__header-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ct-acc-adv-viewer__text {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.ct-acc-adv-viewer__section {
    border-top: 1px solid #F3F4F6;
    padding-top: 16px;
    margin-top: 16px;
}

.ct-acc-adv-viewer__section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    margin-bottom: 10px;
}

.ct-acc-adv-viewer__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ct-acc-adv-viewer__gallery-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ct-acc-adv-viewer__gallery-img:hover {
    transform: scale(1.05);
}

.ct-acc-adv-viewer__att-row {
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 6px;
}

.ct-acc-adv-viewer__link {
    display: block;
    color: #3B82F6;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 4px;
    word-break: break-all;
}

.ct-acc-adv-viewer__link:hover {
    text-decoration: underline;
}

.ct-acc-adv-viewer__checklist {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

.ct-acc-adv-viewer__checklist li {
    font-size: 13px;
    color: #4B5563;
    padding: 2px 0;
    padding-left: 20px;
    position: relative;
}

.ct-acc-adv-viewer__checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
}

.ct-acc-adv-viewer__comment {
    background: #F9FAFB;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #374151;
}

.ct-acc-adv-viewer__meta {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

/* ==========================================================================
   Contact Cards & Grid
   ========================================================================== */

.ct-acc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .ct-acc-contact-grid {
        grid-template-columns: 1fr;
    }
}

.ct-acc-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #F3F4F6;
}

.ct-acc-contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ct-acc-contact-card__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ct-acc-contact-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-acc-contact-card__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
}

.ct-acc-contact-card__info {
    flex: 1;
    min-width: 0;
}

.ct-acc-contact-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-acc-contact-card__relation {
    font-size: 11px;
    color: #9CA3AF;
}

.ct-acc-contact-card__phone {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.ct-acc-contact-card__badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ct-acc-contact-card__group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ct-acc-contact-card__fav {
    color: #F59E0B;
    font-size: 14px;
}

.ct-acc-contact-card__emergency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #DC2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* ==========================================================================
   Unified Search Bar
   ========================================================================== */

.ct-acc-search {
    position: relative;
    margin-bottom: 16px;
}

.ct-acc-search__inner {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FAFBFC 0%, #F3F4F6 100%);
    border: 1.5px solid #E5E7EB;
    border-radius: 16px;
    padding: 0 6px 0 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.ct-acc-search__inner:focus-within {
    border-color: #EF5350;
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.08), 0 2px 8px rgba(239, 83, 80, 0.06);
    background: #fff;
}

.ct-acc-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9CA3AF;
    transition: color 0.25s ease, transform 0.25s ease;
    display: flex;
    align-items: center;
}

.ct-acc-search__inner:focus-within .ct-acc-search__icon {
    color: #EF5350;
    transform: translateY(-50%) scale(1.1);
}

.ct-acc-search__input {
    flex: 1;
    min-width: 0;
    padding: 12px 8px 12px 42px;
    border: none;
    background: transparent;
    font-family: var(--ct-acc-font-body);
    font-size: 14.5px;
    font-weight: 500;
    color: #1F2937;
    outline: none;
    letter-spacing: 0.01em;
}

.ct-acc-search__input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* Clear button */
.ct-acc-search__clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #E5E7EB;
    color: #6B7280;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ct-acc-search__clear:hover {
    background: #D1D5DB;
    color: #374151;
}

.ct-acc-search__clear:active {
    transform: scale(0.9);
}

.ct-acc-search--has-value .ct-acc-search__clear {
    display: flex;
}

/* Divider between clear and mic */
.ct-acc-search__divider {
    width: 1px;
    height: 20px;
    background: #E5E7EB;
    margin: 0 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ct-acc-search--has-value .ct-acc-search__divider,
.ct-acc-search--voice-supported .ct-acc-search__divider {
    opacity: 1;
}

/* Hide divider if neither clear nor mic visible */
.ct-acc-search:not(.ct-acc-search--has-value):not(.ct-acc-search--voice-supported) .ct-acc-search__divider {
    display: none;
}

/* Show divider only when both clear AND mic are visible */
.ct-acc-search:not(.ct-acc-search--has-value) .ct-acc-search__divider {
    opacity: 0;
    width: 0;
    margin: 0;
}

/* Voice / Mic button */
.ct-acc-search__mic {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    position: relative;
}

.ct-acc-search--voice-supported .ct-acc-search__mic {
    display: flex;
}

.ct-acc-search__mic:hover {
    background: #FEE2E2;
    color: #EF5350;
}

.ct-acc-search__mic:active {
    transform: scale(0.9);
}

/* Mic recording state */
.ct-acc-search__mic--recording {
    color: #EF5350;
    background: #FEE2E2;
    animation: ct-acc-mic-pulse 1.5s ease-in-out infinite;
}

.ct-acc-search__mic--recording::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #EF5350;
    opacity: 0;
    animation: ct-acc-mic-ring 1.5s ease-out infinite;
}

@keyframes ct-acc-mic-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes ct-acc-mic-ring {
    0% { opacity: 0.6; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.4); }
}

/* Voice feedback text */
.ct-acc-search__voice-hint {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-top: 6px;
    border-radius: 10px;
    background: #FEF2F2;
    font-family: var(--ct-acc-font-body);
    font-size: 12px;
    font-weight: 500;
    color: #EF5350;
    animation: ct-acc-fade-in 0.2s ease;
}

.ct-acc-search--recording .ct-acc-search__voice-hint {
    display: flex;
}

@keyframes ct-acc-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Result count badge */
.ct-acc-search__count {
    display: none;
    position: absolute;
    right: 8px;
    top: -8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #EF5350;
    color: #fff;
    font-family: var(--ct-acc-font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    animation: ct-acc-fade-in 0.2s ease;
}

.ct-acc-search--has-results .ct-acc-search__count {
    display: block;
}

/* ==========================================================================
   Contact Viewer
   ========================================================================== */

.ct-acc-contact-viewer__header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 16px;
}

.ct-acc-contact-viewer__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
}

.ct-acc-contact-viewer__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-acc-contact-viewer__name {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.ct-acc-contact-viewer__relation {
    font-size: 13px;
    color: #9CA3AF;
}

.ct-acc-contact-viewer__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.ct-acc-contact-viewer__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #F3F4F6;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.ct-acc-contact-viewer__action:hover {
    background: #E5E7EB;
}

.ct-acc-contact-viewer__action svg {
    color: #EF5350;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.ct-acc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

@media (max-width: 480px) {
    .ct-acc-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ct-acc-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #F3F4F6;
}

.ct-acc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ct-acc-gallery-item:hover img {
    transform: scale(1.05);
}

.ct-acc-gallery-item__video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ct-acc-gal-monthgroup {
    margin-bottom: 20px;
}

/* ==========================================================================
   Gallery Lightbox — Info Panel & Toggle
   ========================================================================== */

.ct-acc-lightbox__info-toggle {
    position: absolute;
    top: 20px;
    right: 60px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ct-acc-lightbox__info-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ct-acc-lightbox__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-height: 40vh;
    overflow-y: auto;
}

.ct-acc-lightbox__info--visible {
    transform: translateY(0);
}

.ct-acc-lightbox__info-row {
    font-size: 13px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.ct-acc-lightbox__info-row strong {
    color: #fff;
}

/* ==========================================================================
   Usage Dashboard — Glass Metric Cards
   ========================================================================== */

.ct-acc-usage__title {
    font-family: var(--ct-acc-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--ct-acc-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 28px 0 16px;
}

.ct-acc-usage__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .ct-acc-usage__grid {
        grid-template-columns: 1fr;
    }
}

/* Glass metric card */
.ct-acc-usage__card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    padding: 16px 20px;
    transition: transform 0.2s var(--ct-acc-ease), box-shadow 0.2s;
}

.ct-acc-usage__card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Full-width card (gallery spans both columns) */
.ct-acc-usage__card--wide {
    grid-column: 1 / -1;
}

/* Card header: icon + label */
.ct-acc-usage__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ct-acc-usage__card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-acc-usage__card-icon svg {
    width: 18px;
    height: 18px;
}

.ct-acc-usage__card-label {
    font-family: var(--ct-acc-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-acc-gray);
}

/* Prominent count number */
.ct-acc-usage__card-value {
    font-family: var(--ct-acc-font);
    font-size: 28px;
    font-weight: 800;
    color: var(--ct-acc-dark);
    line-height: 1.1;
}

.ct-acc-usage__card-limit {
    font-size: 14px;
    font-weight: 500;
    color: var(--ct-acc-gray);
    margin-left: 4px;
}

.ct-acc-usage__card-sub {
    font-size: 13px;
    color: var(--ct-acc-gray);
    margin-top: 4px;
}

/* Progress bar (for devices) */
.ct-acc-usage__progress {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.ct-acc-usage__progress-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 0.8s var(--ct-acc-ease);
}

.ct-acc-usage__progress-fill--green {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.ct-acc-usage__progress-fill--amber {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.ct-acc-usage__progress-fill--red {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

/* Skeleton loading state */
.ct-acc-usage__card--skeleton {
    min-height: 80px;
    background: linear-gradient(90deg, #F3F4F6, #E5E7EB, #F3F4F6);
    background-size: 200% 100%;
    animation: ct-acc-shimmer 1.5s ease infinite;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.ct-acc-usage__card--skeleton:hover {
    transform: none;
    box-shadow: none;
}

@keyframes ct-acc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Hidden until ready for production --- */
.ct-acc-section-title:has(+ .ct-acc-nav),
.ct-acc-nav,
.ct-acc-devices,
#ct-acc-manage-native { display: none !important; }
