/**
 * TODEY Clean Enterprise Gateway Stylesheet
 * 
 * Clean, modern enterprise minimalism:
 * - Base surface: Pure Solid Black (#000000)
 * - Borders: 1px solid #141414 (8% opacity white)
 * - Corner radii: 0px (Sharp orthogonal geometry)
 * - Typography: Human, calm, elegant DM Sans + Inter body typography
 * - Standardized ergonomics: 42px uniform height for all inputs, provider buttons & action CTAs
 * - Zero skew, zero fake sci-fi telemetry, zero AI glow blobs
 */

.todey-identity-viewport-bg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #000000 !important;
    background: #000000 !important;
    background-image: none !important;
    padding: clamp(60px, 12vh, 120px) 16px 60px;
    box-sizing: border-box;
}

.todey-identity-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: var(--todey-font-body, 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    color: #ffffff;
    z-index: 10;
}

/* Brand Header */
.todey-identity-header {
    text-align: center;
    margin-bottom: 24px;
}

.todey-brand-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.todey-brand-icon-wrapper img,
.todey-brand-icon-wrapper svg {
    height: 36px;
    width: auto;
    max-width: 180px;
    display: block;
}

/* Enclave Container Box */
.todey-identity-box {
    position: relative;
    background-color: #000000;
    border: 1px solid #141414;
    border-radius: 0 !important;
    padding: 28px 24px 30px;
    box-shadow: none !important;
}

/* Mode Segment Toggle Tabs (Sign In vs Claim Handle) */
.todey-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #000000;
    border: 1px solid #141414;
    border-radius: 0 !important;
    padding: 2px;
    gap: 3px;
    margin-bottom: 22px;
}

.todey-mode-tab {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #777777;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0 !important;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.todey-mode-tab:hover {
    color: #ffffff;
}

.todey-mode-tab.active {
    color: #000000 !important;
    background: #ff4400 !important;
    border-color: #ff4400 !important;
    font-weight: 700;
}

/* Provider Authentication Buttons */
.todey-provider-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.todey-auth-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    padding: 0 16px;
    background-color: #000000 !important;
    border: 1px solid #141414 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.todey-auth-provider-btn:hover {
    background-color: #000000 !important;
    border-color: #141414 !important;
}

.todey-auth-provider-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Google Sign-in Icon Hover Swap */
.todey-google-icon-hover {
    display: none !important;
}

.todey-google-btn:hover .todey-google-icon-default {
    display: none !important;
}

.todey-google-btn:hover .todey-google-icon-hover {
    display: inline-block !important;
}

/* Passkey Sign-in Icon Hover Highlight */
.todey-passkey-btn:hover svg {
    fill: #ff4400 !important;
    color: #ff4400 !important;
    stroke: #ff4400 !important;
    transition: fill 0.15s ease, color 0.15s ease, stroke 0.15s ease;
}

/* Form Divider */
.todey-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: #555555;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    font-size: 11px;
}

.todey-auth-divider::before,
.todey-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #141414;
}

.todey-auth-divider span {
    padding: 0 12px;
}

/* Form Groups & Forced Input Overrides */
.todey-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.todey-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.todey-form-label {
    display: block;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #888888 !important;
    margin-bottom: 6px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.todey-form-label-row .todey-form-label {
    margin-bottom: 0 !important;
}

.todey-handle-input-group {
    position: relative;
}

.todey-handle-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--todey-font-mono, monospace);
    font-size: 14px;
    line-height: 1;
    color: var(--todey-accent-orange, #ff4400);
    font-weight: 700;
    pointer-events: none;
    z-index: 5;
}

/* Force All Form Inputs to 42px, Zero Radius, Pure Black, and DM Sans Font */
#todey-identity-app input,
#todey-identity-app input[type="email"],
#todey-identity-app input[type="text"],
#todey-identity-app .todey-form-input {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 42px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    margin: 0 !important;
    background-color: #000000 !important;
    background: #000000 !important;
    border: 1px solid #141414 !important;
    border-radius: 0px !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    color: #ffffff !important;
    font-family: var(--todey-font-body, 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease !important;
}

/* Specific Handle Input Left Padding Offset (Ensures Clean Clearance for @ Prefix) */
#todey-identity-app .todey-handle-input,
#todey-identity-app input.todey-handle-input {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 42px !important;
    box-sizing: border-box !important;
    padding-left: 36px !important;
    padding-right: 14px !important;
    margin: 0 !important;
    background-color: #000000 !important;
    background: #000000 !important;
    border: 1px solid #141414 !important;
    border-radius: 0px !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    color: #ffffff !important;
    font-family: var(--todey-font-mono, monospace) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Forced Focus States */
#todey-identity-app input:focus,
#todey-identity-app input:active,
#todey-identity-app input[type="email"]:focus,
#todey-identity-app input[type="email"]:active,
#todey-identity-app input[type="text"]:focus,
#todey-identity-app input[type="text"]:active,
#todey-identity-app .todey-form-input:focus,
#todey-identity-app .todey-form-input:active,
#todey-identity-app .todey-handle-input:focus,
#todey-identity-app .todey-handle-input:active,
#todey-identity-app .todey-handle-input-group:focus-within {
    border-color: #141414 !important;
    background-color: #000000 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Forced High-Specificity Placeholder Overrides */
#todey-identity-app input::placeholder,
#todey-identity-app textarea::placeholder,
#todey-identity-app .todey-form-input::placeholder,
#todey-identity-app .todey-handle-input::placeholder {
    font-family: var(--todey-font-body, 'DM Sans', 'Inter', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    opacity: 1 !important;
    line-height: 42px !important;
}

#todey-identity-app input::-webkit-input-placeholder,
#todey-identity-app textarea::-webkit-input-placeholder,
#todey-identity-app .todey-form-input::-webkit-input-placeholder,
#todey-identity-app .todey-handle-input::-webkit-input-placeholder {
    font-family: var(--todey-font-body, 'DM Sans', 'Inter', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    opacity: 1 !important;
    line-height: 42px !important;
}

#todey-identity-app input::-moz-placeholder,
#todey-identity-app textarea::-moz-placeholder,
#todey-identity-app .todey-form-input::-moz-placeholder,
#todey-identity-app .todey-handle-input::-moz-placeholder {
    font-family: var(--todey-font-body, 'DM Sans', 'Inter', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    opacity: 1 !important;
    line-height: 42px !important;
}

#todey-identity-app input:-ms-input-placeholder,
#todey-identity-app textarea:-ms-input-placeholder,
#todey-identity-app .todey-form-input:-ms-input-placeholder,
#todey-identity-app .todey-handle-input:-ms-input-placeholder {
    font-family: var(--todey-font-body, 'DM Sans', 'Inter', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    opacity: 1 !important;
    line-height: 42px !important;
}

/* Pure Text Status Indicators in Label Row */
.todey-handle-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    font-weight: 600;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    line-height: 1;
}

.todey-handle-status-badge.status-available {
    color: #00e353 !important;
}

.todey-handle-status-badge.status-checking {
    color: #666666 !important;
}

.todey-handle-status-badge.status-taken,
.todey-handle-status-badge.status-restricted,
.todey-handle-status-badge.status-unavailable {
    color: #ff0000 !important;
}

.todey-handle-status-badge.status-invalid,
.todey-handle-status-badge.status-invalid_syntax {
    color: #ff0000 !important;
}

/* Feedback & Suggestions */
.todey-handle-feedback {
    font-size: 12px;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    color: #888888;
    margin-top: 6px;
}

.todey-handle-feedback:empty,
.todey-handle-suggestions:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.todey-handle-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.todey-suggestion-chip {
    background: #000000;
    border: 1px solid #141414;
    border-radius: 0 !important;
    padding: 4px 8px;
    font-size: 11px;
    color: #aaaaaa;
    font-family: var(--todey-font-mono, monospace);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.todey-suggestion-chip:hover {
    background: #000000 !important;
    border-color: #141414 !important;
    color: var(--todey-accent-orange, #ff4400);
}

/* Clean Rectangular CTA Action Button (Zero Radius, Zero Skew, Zero Shadow) */
.todey-identity-cta-container {
    margin-top: 20px;
    text-align: center;
}

.todey-skewed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box;
    padding: 0 20px;
    background-color: var(--todey-accent-orange, #ff4400) !important;
    border: 1px solid var(--todey-accent-orange, #ff4400) !important;
    border-radius: 0 !important;
    cursor: pointer;
    text-decoration: none;
    transform: none !important;
    box-shadow: none !important;
}

.todey-skewed-btn .btn-inner-text {
    display: inline-block;
    transform: none !important;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.todey-skewed-btn:not(:disabled):hover {
    background-color: var(--todey-accent-orange, #ff4400) !important;
    border-color: #141414 !important;
    transform: none !important;
    box-shadow: none !important;
}

.todey-skewed-btn:disabled {
    background-color: #000000 !important;
    border-color: #141414 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.todey-skewed-btn:disabled .btn-inner-text {
    color: #444444 !important;
}

/* Hold Navigation Controls */
.todey-hold-nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.todey-hold-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #141414;
    border-radius: 0 !important;
    color: #888888;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.todey-hold-back-btn svg {
    stroke: currentColor;
    transition: stroke 0.15s ease, color 0.15s ease;
}

.todey-hold-back-btn:hover {
    color: #888888 !important;
    background: transparent !important;
    border-color: #141414 !important;
}

.todey-hold-back-btn:hover svg {
    stroke: #ff4400 !important;
    color: #ff4400 !important;
    transform: none !important;
}

/* Digital Passport Credential Card */
.todey-credential-card {
    background: #000000;
    border: 1px solid #141414;
    border-radius: 0 !important;
    padding: 22px 20px;
    margin-bottom: 20px;
    position: relative;
}

.todey-credential-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #141414;
}

.todey-credential-tag-label {
    font-family: var(--todey-font-mono, monospace);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666666;
}

.todey-credential-status-tag {
    font-family: var(--todey-font-mono, monospace);
    font-size: 9px;
    font-weight: 700;
    padding: 0 !important;
    border-radius: 0 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent !important;
    color: #ffaa00;
    border: none !important;
}

.todey-credential-identity-display {
    font-family: var(--todey-font-mono, monospace);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.todey-credential-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 10px;
    font-family: var(--todey-font-mono, monospace);
}

.todey-credential-meta-item label {
    display: block;
    color: #555555;
    margin-bottom: 3px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.todey-credential-meta-item span {
    color: #b3b3b3;
}

#todey-timer-display {
    color: var(--todey-accent-orange, #ff4400);
    font-weight: 700;
}

/* Security Telemetry Footer */
.todey-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    font-size: 11px;
    font-weight: 400;
    color: #555555;
    margin-top: 24px;
}

.todey-security-footer svg {
    width: 12px;
    height: 12px;
    color: #666666;
}

/* Standalone Premium Micro-Badge Component (Recovery Notification) */
.todey-standalone-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #000000;
    /* Ultra-fine professional 1px luxury border scale */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 8px 16px;
    box-sizing: border-box;
    vertical-align: middle;
    border-radius: 0px !important; /* Enforces strict zero-radius platform-wide */
    width: 100%;
}

.todey-standalone-badge * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0px !important;
}

/* High-Intensity Operational Accent Tag */
.badge-accent-tag {
    font-family: 'Space Grotesk', 'SF Mono', SFMono-Regular, Consolas, Monaco, monospace !important;
    color: var(--todey-accent-orange, #ff4400); 
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 12px;
    line-height: 1;
    flex-shrink: 0;
}

/* Premium Editorial Typography */
.badge-main-text {
    font-family: var(--todey-font-body, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: #a1a1a6; /* Premium silver text */
    font-size: 11px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.todey-error-badge .badge-main-text,
#todey-feedback-badge.todey-is-error .badge-main-text,
#todey-feedback-msg.todey-is-error,
.todey-identity-wrapper .todey-error-badge .badge-main-text,
.todey-identity-wrapper #todey-feedback-badge.todey-is-error .badge-main-text,
.todey-identity-wrapper #todey-feedback-msg.todey-is-error {
    color: #ff0000 !important;
}

#todey-feedback-badge.todey-is-error .badge-accent-tag {
    color: #ff0000 !important;
}

#todey-feedback-badge.todey-is-success .badge-main-text,
#todey-feedback-msg.todey-is-success,
.todey-identity-wrapper #todey-feedback-badge.todey-is-success .badge-main-text,
.todey-identity-wrapper #todey-feedback-msg.todey-is-success {
    color: #00e353 !important;
}

#todey-feedback-badge.todey-is-success .badge-accent-tag {
    color: #00e353 !important;
}

.todey-error-badge,
#todey-feedback-badge,
.todey-recovery-badge,
#todey-passkey-recovery-badge {
    display: none !important;
    margin-top: 12px;
    justify-content: flex-start;
    animation: todeyBadgeFadeIn 0.2s ease-out;
}

#todey-feedback-badge.todey-visible,
#todey-passkey-recovery-badge.todey-visible {
    display: inline-flex !important;
}

#todey-top-notice-badge,
.todey-top-notice-badge,
.todey-identity-wrapper .todey-top-notice-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0px !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    animation: todeyBadgeFadeIn 0.2s ease-out;
}

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

.todey-badge-google-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.todey-badge-google-link svg {
    stroke: currentColor;
    transition: stroke 0.15s ease;
}

.todey-badge-google-link:hover {
    color: var(--todey-accent-orange, #ff4400) !important;
}

.todey-badge-google-link:hover svg {
    stroke: var(--todey-accent-orange, #ff4400) !important;
    transform: none !important;
}

.todey-recovery-info-box {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #888888;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
}

/* Terms and Policies Checkbox */
.todey-terms-checkbox-wrapper {
    margin-top: 16px;
    margin-bottom: 8px;
}

.todey-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--todey-font-body, 'DM Sans', sans-serif);
    font-size: 12px;
    color: #888888;
    user-select: none;
    line-height: 1.4;
}

.todey-custom-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.todey-checkbox-custom-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background: #000000;
    border: 1px solid #141414;
    border-radius: 0 !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.todey-checkbox-custom-box svg {
    display: none;
    stroke: #000000;
}

.todey-custom-checkbox:checked + .todey-checkbox-custom-box {
    background: var(--todey-accent-orange, #ff4400) !important;
    border-color: var(--todey-accent-orange, #ff4400) !important;
}

.todey-custom-checkbox:checked + .todey-checkbox-custom-box svg {
    display: block;
}

.todey-checkbox-text {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--todey-text-secondary, #b3b3b3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.todey-checkbox-label:hover .todey-checkbox-text,
.todey-checkbox-text:hover {
    color: var(--todey-text-secondary, #b3b3b3) !important;
}

.todey-checkbox-text a {
    color: #aaaaaa;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.todey-checkbox-text a:hover {
    color: var(--todey-accent-orange, #ff4400);
}

/* ==========================================================================
   THE "IT'S YOURS" EDITORIAL POSTER ART DESIGN
   ========================================================================== */

.todey-poster-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
    padding: 10px 0 20px 0;
}

/* Top Left Brand Bar */
.todey-top-brand-bar {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
    padding-left: 2px;
}

.todey-top-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: opacity 0.15s ease;
    user-select: none;
}

.todey-top-brand-link:hover {
    opacity: 0.85;
}

.todey-top-brand-logo {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}

.todey-top-brand-text {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
    line-height: 1 !important;
}

/* The Cream/Ivory Poster Card */
.todey-poster-card {
    position: relative;
    width: 100%;
    background: #f4ede4 !important;
    background: #f0e8dc !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 24px 28px 28px 28px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

/* Tactile Film Grain / Paper Noise Texture Overlay */
.todey-poster-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.14;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 5;
}

/* Top Typography Row */
.todey-poster-header {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.todey-poster-title {
    display: flex;
    flex-direction: column;
    font-family: 'Clash Display', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 38px !important;
    font-weight: 900 !important;
    color: #000000 !important;
    line-height: 0.88 !important;
    letter-spacing: -0.04em !important;
    text-transform: uppercase !important;
    user-select: none;
}

.todey-poster-handle {
    font-family: 'Clash Display', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #000000 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    user-select: all;
    display: inline-flex;
    align-items: center;
}

.todey-at-symbol {
    font-family: 'Clash Display', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 900 !important;
    font-size: 0.94em !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transform: translateY(-2px) !important;
    margin-right: 1px !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
}

/* Inner Artwork Frame */
.todey-poster-art-wrap {
    position: relative;
    z-index: 6;
    width: 100%;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
}

.todey-poster-art-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0 !important;
}

/* Below Card Footer (Right-Aligned, Text-Only Share on X) */
.todey-poster-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 0 4px;
    box-sizing: border-box;
}

.todey-poster-aux-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Roboto Mono', monospace !important;
    font-size: 11px !important;
}

.todey-text-copy-btn {
    background: transparent !important;
    border: none !important;
    color: #666666 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.todey-text-copy-btn:hover {
    color: #ffffff !important;
}

.todey-text-sep {
    color: #333333 !important;
}

.todey-text-logout {
    color: #555555 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.todey-text-logout:hover {
    color: #ffffff !important;
}

.todey-text-share-btn {
    background: transparent !important;
    border: none !important;
    color: #888888 !important;
    font-family: 'Roboto Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.15s ease !important;
}

.todey-text-share-btn:hover {
    color: #ffffff !important;
}

.todey-text-share-btn svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* Early Access Tagline (Left-Aligned, Hover-Only Reveal) */
.todey-poster-tagline {
    width: 100% !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
    font-family: 'Roboto Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #777777 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-top: 14px !important;
    padding-left: 4px !important;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    user-select: none;
}

/* Reveal when hovering DOWNLOAD POSTER or SHARE ON X */
.todey-poster-stage:has(.todey-text-copy-btn:hover) .todey-poster-tagline,
.todey-poster-stage:has(.todey-text-share-btn:hover) .todey-poster-tagline,
.todey-poster-tagline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Comprehensive Responsive & Multi-Screen Adjustments */
@media (max-width: 768px) {
    .todey-identity-viewport-bg {
        padding: clamp(32px, 8vh, 60px) 5px 40px !important;
    }

    .todey-identity-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .todey-identity-box {
        padding: 22px 14px 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .todey-poster-stage {
        width: 100% !important;
        max-width: 100% !important;
    }

    .todey-poster-card {
        padding: 20px 14px 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .todey-poster-title {
        font-size: 22px !important;
    }

    .todey-poster-handle {
        font-size: 15px !important;
    }

    .todey-at-symbol {
        transform: translateY(-1px) !important;
    }
}

@media (max-width: 480px) {
    .todey-identity-viewport-bg {
        padding: 20px 5px 24px !important;
    }

    .todey-identity-box {
        padding: 18px 10px 20px !important;
    }

    .todey-mode-toggle {
        gap: 2px !important;
        margin-bottom: 16px !important;
    }

    .todey-mode-tab {
        font-size: 12px !important;
        height: 34px !important;
    }

    .todey-auth-provider-btn {
        height: 40px !important;
        font-size: 12px !important;
        padding: 0 10px !important;
    }

    .todey-identity-input {
        font-size: 14px !important;
        height: 40px !important;
    }

    .todey-identity-btn {
        height: 42px !important;
        font-size: 13px !important;
    }

    .todey-poster-card {
        padding: 16px 10px 14px !important;
    }

    .todey-poster-title {
        font-size: 18px !important;
    }

    .todey-poster-handle {
        font-size: 13px !important;
    }

    .todey-at-symbol {
        transform: translateY(-1px) !important;
    }

    .todey-poster-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .todey-poster-aux-links {
        justify-content: center !important;
    }

    .todey-text-share-btn {
        justify-content: center !important;
        width: 100% !important;
    }
}

/* Mobile Landscape & Short Viewport Support */
@media (max-height: 600px), (orientation: landscape) and (max-height: 500px) {
    .todey-identity-viewport-bg {
        padding: 16px 5px 24px !important;
        align-items: flex-start !important;
        min-height: 100% !important;
    }

    .todey-identity-header {
        margin-bottom: 12px !important;
    }

    .todey-identity-box {
        padding: 16px 14px 18px !important;
    }

    .todey-mode-toggle {
        margin-bottom: 12px !important;
    }

    .todey-provider-btn-stack {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    .todey-auth-provider-btn {
        height: 36px !important;
    }

    .todey-poster-stage {
        padding-top: 10px !important;
    }

    .todey-poster-card {
        padding: 14px 12px 12px !important;
    }
}

/* Zero-Visibility Anti-Bot Honeypot Field */
.todey-hp-field {
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -9999 !important;
}










