/* ═══════════════════════════════════════════════
   PrySai Auth – Login / Register / Account Pages
   ═══════════════════════════════════════════════ */

/* Reset & Container */
.prysai-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 3rem 1rem;
    font-family: var(--font-body, "Gail Rock", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
}

.prysai-auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(0, 255, 170, 0.12);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(0, 255, 170, 0.02);
    animation: prysaiCardIn 0.4s ease-out;
}
@keyframes prysaiCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.prysai-auth-title {
    font-family: var(--font-display, "Gail Rock", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #e0ffe0;
    text-align: center;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.prysai-auth-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a0ffa0;
    margin: 1.5rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 170, 0.08);
}
.prysai-auth-subtitle small {
    font-weight: 400;
    color: #7a8a7a;
}

/* Messages */
.prysai-auth-msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.prysai-auth-msg--error {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: #ff8080;
}
.prysai-auth-msg--success {
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid rgba(0, 255, 170, 0.25);
    color: #80ffcc;
}

/* Form Fields */
.prysai-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prysai-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.prysai-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b0c0b0;
    letter-spacing: 0.02em;
}
.prysai-field label small {
    font-weight: 400;
    color: #7a8a7a;
}
.prysai-field input[type="text"],
.prysai-field input[type="email"],
.prysai-field input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 170, 0.15);
    border-radius: 8px;
    color: #e0ffe0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.prysai-field input:focus {
    outline: none;
    border-color: rgba(0, 255, 170, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.08);
}
.prysai-field input::placeholder {
    color: #5a6a5a;
}

/* Row layout */
.prysai-field--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Checkbox */
.prysai-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #b0c0b0;
    cursor: pointer;
}
.prysai-checkbox input[type="checkbox"] {
    accent-color: #00ffaa;
    width: 16px;
    height: 16px;
}

/* Links */
.prysai-link {
    color: #00ffaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.prysai-link:hover {
    color: #66ffcc;
    text-decoration: underline;
}

/* Buttons */
.prysai-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    border: none;
    line-height: 1.4;
}
.prysai-btn:hover {
    transform: translateY(-1px);
}
.prysai-btn:active {
    transform: translateY(0);
}
.prysai-btn--primary {
    background: linear-gradient(135deg, #00ffaa 0%, #00cc88 100%);
    color: #0a0a0f;
    box-shadow: 0 4px 16px rgba(0, 255, 170, 0.25);
    height: 44px;
}
.prysai-btn--primary:hover {
    box-shadow: 0 6px 24px rgba(0, 255, 170, 0.35);
}
.prysai-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.prysai-btn--google {
    background: #fff;
    color: #3c4043;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-weight: 500;
    width: 80%;
    max-width: 260px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 44px;
    font-size: 0.9rem;
    border-radius: 8px;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}
.prysai-btn--google::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
}
.prysai-btn--google:hover {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.prysai-btn--google:hover::before {
    background: rgba(0, 0, 0, 0.03);
}
.prysai-btn--google:active::before {
    background: rgba(0, 0, 0, 0.06);
}
.prysai-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.prysai-google-icon svg {
    width: 18px;
    height: 18px;
}
.prysai-google-text {
    flex: 1;
    text-align: center;
}

/* Policy links footer */
.prysai-auth-policy {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 255, 170, 0.06);
    font-size: 0.75rem;
    color: #5a6a5a;
    line-height: 1.6;
}
.prysai-auth-policy a {
    color: #7a9a7a;
    text-decoration: none;
    transition: color 0.2s;
}
.prysai-auth-policy a:hover {
    color: #00ffaa;
    text-decoration: underline;
}

.prysai-btn--outline {
    background: transparent;
    color: #ff6666;
    border: 1px solid rgba(255, 102, 102, 0.3);
    width: 100%;
}
.prysai-btn--outline:hover {
    background: rgba(255, 102, 102, 0.08);
    border-color: rgba(255, 102, 102, 0.5);
}

/* Divider */
.prysai-auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 0.75rem;
}
.prysai-auth-divider::before,
.prysai-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 255, 170, 0.1);
}
.prysai-auth-divider span {
    font-size: 0.8rem;
    color: #7a8a7a;
    white-space: nowrap;
}

/* Footer */
.prysai-auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #7a8a7a;
}

/* Notice (already logged in) */
.prysai-auth-notice {
    text-align: center;
    padding: 3rem 1rem;
    color: #b0c0b0;
}
.prysai-auth-notice .prysai-btn {
    margin-top: 1rem;
}

/* Account header */
.prysai-account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 170, 0.04);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.prysai-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 170, 0.2);
}
.prysai-account-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.prysai-account-info strong {
    color: #e0ffe0;
    font-size: 1.1rem;
}
.prysai-account-info span {
    color: #8a9a8a;
    font-size: 0.85rem;
}

.prysai-account-code {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.2rem;
}

.prysai-account-code > span {
    color: #7f987f;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prysai-account-code__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.prysai-account-code__row strong {
    color: #effff0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    font-family: var(--prysai-mono, monospace);
}

.prysai-copy-btn {
    min-width: 84px;
    justify-content: center;
}

/* Badge */
.prysai-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.prysai-badge--google {
    background: rgba(66, 133, 244, 0.15);
    color: #4285F4;
    border: 1px solid rgba(66, 133, 244, 0.3);
}

/* Loading spinner */
.prysai-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.prysai-btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 10, 15, 0.3);
    border-top-color: #0a0a0f;
    border-radius: 50%;
    animation: prysaiSpin 0.6s linear infinite;
}
@keyframes prysaiSpin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════
   Password Strength Meter
   ═══════════════════════════════════════════════ */
.prysai-pw-strength {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: -0.25rem;
}
.prysai-pw-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}
.prysai-pw-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.35s ease, background 0.35s ease;
}
.prysai-pw-bar-fill[data-level="0"] {
    width: 0%;
    background: transparent;
}
.prysai-pw-bar-fill[data-level="1"] {
    width: 33%;
    background: #ff4444;
}
.prysai-pw-bar-fill[data-level="2"] {
    width: 66%;
    background: #ffaa00;
}
.prysai-pw-bar-fill[data-level="3"] {
    width: 100%;
    background: #00ff88;
}
.prysai-pw-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.prysai-pw-label span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #7a8a7a;
    transition: color 0.3s ease;
}
.prysai-pw-label span[data-level="1"] {
    color: #ff4444;
}
.prysai-pw-label span[data-level="2"] {
    color: #ffaa00;
}
.prysai-pw-label span[data-level="3"] {
    color: #00ff88;
}
.prysai-pw-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-top: 0.1rem;
}
.prysai-pw-tip {
    font-size: 0.7rem;
    color: #5a6a5a;
    transition: color 0.2s;
}
.prysai-pw-tip.met {
    color: #00cc66;
}

/* Light theme overrides for password strength */
html[data-theme="light"] .prysai-pw-bar-track {
    background: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .prysai-pw-label span {
    color: #999;
}
html[data-theme="light"] .prysai-pw-tip {
    color: #aaa;
}
html[data-theme="light"] .prysai-pw-tip.met {
    color: #0a8a40;
}


/* Responsive */
@media (max-width: 500px) {
    .prysai-auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }
    .prysai-auth-title {
        font-size: 1.4rem;
    }
    .prysai-account-header {
        flex-direction: column;
        text-align: center;
    }
}


/* ── Light Theme: Auth Forms ── */
html[data-theme="light"] .prysai-auth-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .prysai-auth-title {
    color: #0c0c0c;
}
html[data-theme="light"] .prysai-auth-subtitle {
    color: #333;
    border-top-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .prysai-auth-subtitle small {
    color: #999;
}
html[data-theme="light"] .prysai-field label {
    color: #555;
}
html[data-theme="light"] .prysai-field label small {
    color: #999;
}
html[data-theme="light"] .prysai-field input[type="text"],
html[data-theme="light"] .prysai-field input[type="email"],
html[data-theme="light"] .prysai-field input[type="password"] {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0c0c0c;
}
html[data-theme="light"] .prysai-field input:focus {
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .prysai-field input::placeholder {
    color: #bbb;
}
html[data-theme="light"] .prysai-checkbox {
    color: #555;
}
html[data-theme="light"] .prysai-link {
    color: #121212;
}
html[data-theme="light"] .prysai-link:hover {
    color: #333;
}
html[data-theme="light"] .prysai-btn--primary {
    background: linear-gradient(135deg, #121212 0%, #333 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .prysai-btn--primary:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .prysai-btn--google {
    background: #fff;
    color: #3c4043;
    border-color: #dadce0;
}
html[data-theme="light"] .prysai-auth-divider::before,
html[data-theme="light"] .prysai-auth-divider::after {
    background: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .prysai-auth-divider span {
    color: #999;
}
html[data-theme="light"] .prysai-auth-footer {
    color: #999;
}
html[data-theme="light"] .prysai-auth-policy {
    border-top-color: rgba(0, 0, 0, 0.05);
    color: #aaa;
}
html[data-theme="light"] .prysai-auth-policy a {
    color: #666;
}
html[data-theme="light"] .prysai-auth-policy a:hover {
    color: #121212;
}
html[data-theme="light"] .prysai-auth-msg--error {
    background: rgba(255, 60, 60, 0.06);
    border-color: rgba(255, 60, 60, 0.2);
    color: #cc3333;
}
html[data-theme="light"] .prysai-auth-msg--success {
    background: rgba(0, 180, 100, 0.06);
    border-color: rgba(0, 180, 100, 0.2);
    color: #0a8a40;
}
html[data-theme="light"] .prysai-account-header {
    background: rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .prysai-account-info strong {
    color: #0c0c0c;
}
html[data-theme="light"] .prysai-account-info span {
    color: #777;
}
html[data-theme="light"] .prysai-avatar img {
    border-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .prysai-btn--outline {
    color: #cc3333;
    border-color: rgba(200, 0, 0, 0.2);
}
html[data-theme="light"] .prysai-btn--outline:hover {
    background: rgba(200, 0, 0, 0.04);
    border-color: rgba(200, 0, 0, 0.35);
}
html[data-theme="light"] .prysai-btn--loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

/* ═══════════════════════════════════════════════
   Header Auth Button & Dropdown
   ═══════════════════════════════════════════════ */
.prysai-header-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    position: relative;
    z-index: 9999;
    flex-shrink: 0;
}

/* Trigger button (logged-in state) */
.prysai-header-auth__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    border: none;
    background: transparent;
    font-family: inherit;
    line-height: 1;
}
.prysai-header-auth__trigger:hover {
    background: rgba(0, 255, 170, 0.08);
}
.prysai-header-auth__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 170, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}
.prysai-header-auth__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text, #e0ffe0);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prysai-header-auth__caret {
    color: var(--muted, #7a8a7a);
    flex-shrink: 0;
    transition: transform 0.2s;
}

/* Signed-out: Sign In / Sign Up links */
.prysai-header-auth__signin {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text, #e0ffe0) !important;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: var(--font-body, "Gail Rock", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
}
.prysai-header-auth__signin:hover {
    background: rgba(0, 255, 170, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.15);
}
.prysai-header-auth__signup {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a0a0f !important;
    background: linear-gradient(135deg, #00ffaa 0%, #00cc88 100%);
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 255, 170, 0.2);
    transition: transform 0.15s, box-shadow 0.2s;
    font-family: var(--font-body, "Gail Rock", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
}
.prysai-header-auth__signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 255, 170, 0.3);
}

/* Dropdown — uses position: fixed, set by JS */
.prysai-header-auth__dropdown {
    position: fixed;
    min-width: 190px;
    background: rgba(15, 15, 20, 0.97);
    border: 1px solid rgba(0, 255, 170, 0.12);
    border-radius: 10px;
    padding: 0.4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
}
.prysai-header-auth__sep {
    height: 1px;
    background: rgba(0, 255, 170, 0.08);
    margin: 0.25rem 0.5rem;
}
.prysai-header-auth__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 550;
    color: #c0e0c0;
    text-decoration: none !important;
    transition: background 0.15s;
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
    line-height: 1.3;
}
.prysai-header-auth__item:hover {
    background: rgba(0, 255, 170, 0.08);
    color: #e0ffe0;
}
.prysai-header-auth__item svg {
    flex-shrink: 0;
    color: #00ffaa;
    opacity: 0.7;
}
.prysai-header-auth__item--logout {
    color: #ff8080;
}
.prysai-header-auth__item--logout svg {
    color: #ff6060;
}
.prysai-header-auth__item--logout:hover {
    background: rgba(255, 60, 60, 0.08);
    color: #ff9999;
}

/* ── Light theme overrides: Header ── */
html[data-theme="light"] .prysai-header-auth__signin {
    color: var(--text, #0c0c0c) !important;
}
html[data-theme="light"] .prysai-header-auth__signin:hover {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .prysai-header-auth__signup {
    color: #fff !important;
    background: linear-gradient(135deg, #121212 0%, #333 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .prysai-header-auth__signup:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .prysai-header-auth__name {
    color: var(--text, #0c0c0c);
}
html[data-theme="light"] .prysai-header-auth__avatar {
    border-color: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .prysai-header-auth__caret {
    color: var(--muted, #666);
}
html[data-theme="light"] .prysai-header-auth__trigger:hover {
    background: rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .prysai-header-auth__dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .prysai-header-auth__sep {
    background: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .prysai-header-auth__item {
    color: #333;
}
html[data-theme="light"] .prysai-header-auth__item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0c0c0c;
}
html[data-theme="light"] .prysai-header-auth__item svg {
    color: #121212;
}
html[data-theme="light"] .prysai-header-auth__item--logout {
    color: #cc3333;
}
html[data-theme="light"] .prysai-header-auth__item--logout:hover {
    background: rgba(200, 0, 0, 0.06);
    color: #aa0000;
}

/* Mobile: compact auth buttons */
@media (max-width: 700px) {
    .prysai-header-auth {
        gap: 0.35rem;
    }
    .prysai-header-auth__name {
        display: none;
    }
    .prysai-header-auth__signin {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
    .prysai-header-auth__signup {
        padding: 5px 10px;
        font-size: 0.78rem;
        box-shadow: none;
    }
    .prysai-header-auth__trigger {
        padding: 2px 6px 2px 2px;
    }
    .prysai-header-auth__avatar {
        width: 24px;
        height: 24px;
    }
    .prysai-header-auth__caret {
        width: 10px;
        height: 10px;
    }
    .prysai-header-auth__dropdown {
        min-width: 170px;
        padding: 0.3rem;
    }
    .prysai-header-auth__item {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .prysai-header-auth__signin {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
    .prysai-header-auth__signup {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
    .prysai-header-auth__avatar {
        width: 22px;
        height: 22px;
    }
}

/* ═══════════════════════════════════════════════
   Creator Hub Account Layout
   ═══════════════════════════════════════════════ */
.prysai-auth-card.prysai-account-hub {
    max-width: 960px;
    width: min(100%, 960px);
}

.prysai-account-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.prysai-account-tab {
    min-height: 42px;
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: #b9cfb9;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.6rem;
}

.prysai-account-tab:hover {
    border-color: rgba(0, 255, 170, 0.35);
}

.prysai-account-tab.is-active {
    color: #d9ffe4;
    background: rgba(0, 255, 170, 0.12);
    border-color: rgba(0, 255, 170, 0.4);
}

.prysai-account-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 255, 170, 0.18);
    font-size: 0.72rem;
}

.prysai-account-panel {
    display: none;
}

.prysai-account-panel.is-active {
    display: block;
}

.prysai-account-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.prysai-account-overview-card {
    border: 1px solid rgba(0, 255, 170, 0.12);
    border-radius: 12px;
    background: rgba(0, 255, 170, 0.03);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.prysai-account-overview-card span {
    color: #8ba48b;
    font-size: 0.78rem;
}

.prysai-account-overview-card strong {
    color: #d8ffd8;
    font-size: 1.24rem;
}

.prysai-account-overview-card small {
    color: #8ba48b;
    font-size: 0.76rem;
    line-height: 1.45;
}

.prysai-account-overview-card .prysai-btn {
    margin-top: 0.2rem;
    width: fit-content;
}

.prysai-account-list-wrap {
    margin-top: 1.1rem;
}

.prysai-account-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.prysai-account-list {
    display: grid;
    gap: 0.62rem;
    margin-top: 0.8rem;
}

.prysai-account-row {
    border: 1px solid rgba(0, 255, 170, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.8rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.prysai-account-row--info {
    border-color: rgba(56, 189, 248, 0.18);
}

.prysai-account-row--notice {
    border-color: rgba(52, 211, 153, 0.18);
}

.prysai-account-row--warning {
    border-color: rgba(251, 191, 36, 0.24);
    background: rgba(251, 191, 36, 0.04);
}

.prysai-account-row--critical {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(248, 113, 113, 0.06);
}

.prysai-account-row.is-read {
    opacity: 0.76;
}

.prysai-account-row__main {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.prysai-account-row__icon {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.prysai-account-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.prysai-account-row__source {
    color: #7fd4b7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prysai-account-row__state {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: rgba(0, 255, 170, 0.08);
    color: #7be8bc;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prysai-account-row__state--unread {
    background: rgba(248, 113, 113, 0.16);
    color: #ffb3b3;
}

.prysai-priority-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 28px;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.prysai-priority-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prysai-priority-chip__icon svg {
    display: block;
}

.prysai-priority-chip--info {
    background: rgba(56, 189, 248, 0.12);
    color: #8ddcff;
    border-color: rgba(56, 189, 248, 0.22);
}

.prysai-priority-chip--notice {
    background: rgba(52, 211, 153, 0.12);
    color: #7ef0bb;
    border-color: rgba(52, 211, 153, 0.22);
}

.prysai-priority-chip--warning {
    background: rgba(251, 191, 36, 0.14);
    color: #ffd66a;
    border-color: rgba(251, 191, 36, 0.28);
}

.prysai-priority-chip--critical {
    background: rgba(248, 113, 113, 0.18);
    color: #ffb0b0;
    border-color: rgba(248, 113, 113, 0.32);
}

.prysai-account-row__main strong {
    color: #deffdf;
    font-size: 0.92rem;
}

.prysai-account-row__main p {
    margin: 0;
    color: #8da58d;
    font-size: 0.82rem;
    line-height: 1.45;
}

.prysai-account-row__main span {
    color: #6f826f;
    font-size: 0.74rem;
}

.prysai-account-row__link {
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 8px;
    color: #bbffda;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 34px;
    padding: 0 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prysai-account-row--critical .prysai-account-row__link {
    border-color: rgba(248, 113, 113, 0.35);
    color: #ffd0d0;
}

.prysai-account-row--warning .prysai-account-row__link {
    border-color: rgba(251, 191, 36, 0.35);
    color: #ffe9a7;
}

.prysai-account-empty {
    border: 1px dashed rgba(0, 255, 170, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: #8ca28c;
    font-size: 0.85rem;
    text-align: center;
}

.prysai-btn--small {
    min-height: 36px;
    padding: 0 0.85rem;
    font-size: 0.8rem;
    width: auto;
}

.prysai-header-auth__item span:first-of-type {
    flex: 1;
}

html[data-theme="light"] .prysai-account-tab {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
    color: #474747;
}

html[data-theme="light"] .prysai-account-tab.is-active {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #121212;
}

html[data-theme="light"] .prysai-account-tab__count {
    background: rgba(0, 0, 0, 0.1);
    color: #1f1f1f;
}

html[data-theme="light"] .prysai-account-overview-card,
html[data-theme="light"] .prysai-account-row {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .prysai-account-overview-card span,
html[data-theme="light"] .prysai-account-row__main p,
html[data-theme="light"] .prysai-account-row__main span,
html[data-theme="light"] .prysai-account-empty {
    color: #686868;
}

html[data-theme="light"] .prysai-account-overview-card strong,
html[data-theme="light"] .prysai-account-row__main strong {
    color: #121212;
}

html[data-theme="light"] .prysai-account-row__link {
    border-color: rgba(0, 0, 0, 0.14);
    color: #111;
}

@media (max-width: 900px) {
    .prysai-account-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .prysai-account-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .prysai-auth-card.prysai-account-hub {
        padding: 1.2rem;
    }
    .prysai-account-tabs {
        grid-template-columns: minmax(0, 1fr);
    }
    .prysai-account-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .prysai-account-panel__head {
        flex-direction: column;
        align-items: stretch;
    }
    .prysai-account-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .prysai-account-row__link {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .prysai-auth-wrap,
    .prysai-auth-card,
    .prysai-auth-card.prysai-account-hub {
        --wp--style--global--content-size: 100% !important;
        --wp--style--global--wide-size: 100% !important;
    }

    .prysai-auth-wrap,
    .prysai-auth-card.prysai-account-hub,
    .prysai-auth-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .prysai-auth-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1.2rem 0.75rem !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    .prysai-auth-card,
    .prysai-auth-card.prysai-account-hub {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1.1rem 1rem !important;
        box-sizing: border-box !important;
    }

    .prysai-account-tabs,
    .prysai-account-overview-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .prysai-account-panel__head,
    .prysai-account-row {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .prysai-account-row__link,
    .prysai-btn,
    .prysai-btn--small,
    .prysai-btn--google {
        width: 100% !important;
        max-width: 100% !important;
    }

    .prysai-account-tab,
    .prysai-account-row__link {
        min-height: 44px !important;
    }

    .prysai-account-row__main,
    .prysai-account-row__main strong,
    .prysai-account-row__main p,
    .prysai-account-row__main span {
        width: 100% !important;
        max-width: 100% !important;
    }

    .prysai-account-code,
    .prysai-account-code__row {
        width: 100% !important;
    }

    .prysai-account-code__row strong {
        word-break: break-word;
    }
}

@media (max-width: 420px) {
    .prysai-auth-wrap,
    .prysai-auth-card,
    .prysai-auth-card.prysai-account-hub {
        --wp--style--global--content-size: 100% !important;
        --wp--style--global--wide-size: 100% !important;
    }

    .prysai-auth-wrap {
        padding-inline: 0.5rem !important;
    }

    .prysai-auth-card,
    .prysai-auth-card.prysai-account-hub {
        padding: 1rem 0.85rem !important;
    }

    .prysai-account-tabs {
        gap: 0.45rem !important;
    }

    .prysai-account-overview-card,
    .prysai-account-row {
        padding: 0.75rem 0.8rem !important;
    }
}
