/* wp-manager: Aura Dark Mode Protocol */
:root {
    --aura-bg: #141416;
    --aura-bg-alt: #1c1c1e;
    --aura-text: #e1e1e6;
    --aura-accent: #ff2d55;
    --aura-cyan: #00f2ff;
    --aura-glass: rgba(255, 255, 255, 0.05);
}

body.wpm-dark-mode #wpwrap,
body.wpm-dark-mode #wpcontent,
body.wpm-dark-mode #wpadminbar {
    background: var(--aura-bg) !isImportant;
    color: var(--aura-text);
}

body.wpm-dark-mode #adminmenu,
body.wpm-dark-mode #adminmenuback,
body.wpm-dark-mode #adminmenuwrap {
    background: var(--aura-bg-alt) !isImportant;
}

body.wpm-dark-mode #adminmenu .wp-has-current-submenu .wp-submenu,
body.wpm-dark-mode #adminmenu .wp-has-current-submenu.opensub .wp-submenu,
body.wpm-dark-mode #adminmenu .wp-submenu,
body.wpm-dark-mode #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
    background: var(--aura-bg-alt);
}

body.wpm-dark-mode .wrap h1,
body.wpm-dark-mode .wrap h2,
body.wpm-dark-mode .wrap h3 {
    color: var(--aura-accent);
}

/* Toggle Switch Styling */
.wpm-theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    width: 44px;
    height: 44px;
    background: var(--aura-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.4);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpm-theme-toggle:hover {
    transform: scale(1.1);
    background: var(--aura-cyan);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
}

.wpm-theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ══════════════════════════════════════════════
   WPM AUTH — Sign In / Register / SMS / Dashboard
   ══════════════════════════════════════════════ */
.wpm-auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.wpm-auth-card {
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    color: var(--aura-text);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Tabs */
.wpm-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}
.wpm-auth-tab {
    background: none;
    border: none;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.wpm-auth-tab.active,
.wpm-auth-tab:hover {
    color: var(--aura-text);
    background: rgba(255, 255, 255, 0.07);
}
.wpm-auth-tab.active {
    color: var(--aura-accent);
}

/* Fields */
.wpm-auth-field {
    margin-bottom: 18px;
}
.wpm-auth-field label {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}
.wpm-auth-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--aura-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wpm-auth-input:focus {
    border-color: var(--aura-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.12);
}
.wpm-auth-field-row {
    display: flex;
    gap: 12px;
}
.wpm-auth-field-row .wpm-auth-field {
    flex: 1;
}
.wpm-auth-inline-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.wpm-auth-inline-row .wpm-auth-input {
    flex: 1;
}
.wpm-auth-inline-row .wpm-auth-btn {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
    padding: 10px 16px;
    height: 48px; /* Match input height */
}
.wpm-auth-input {
    height: 48px;
}

/* Buttons */
.wpm-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    text-decoration: none;
    width: 100%;
    margin-top: 6px;
}
.wpm-auth-btn-primary {
    background: linear-gradient(135deg, var(--aura-accent), #c026d3);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.35);
}
.wpm-auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 45, 85, 0.5);
}
.wpm-auth-btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    color: var(--aura-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.wpm-auth-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}
.wpm-auth-btn-blue {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
}
.wpm-auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* TOS row */
.wpm-auth-tos-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #94a3b8;
}
.wpm-auth-tos-row input[type=checkbox] {
    margin-top: 2px;
    accent-color: var(--aura-accent);
    flex-shrink: 0;
}

/* Message */
.wpm-auth-msg {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

/* SMS Lock Screen */
.wpm-auth-lock-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
}
.wpm-auth-card h2 {
    text-align: center;
    margin: 0 0 8px 0;
    font-size: 22px;
    color: var(--aura-text);
}
.wpm-auth-sub {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px 0;
}
.wpm-auth-otp-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    font-size: 28px;
    letter-spacing: 8px;
    color: var(--aura-cyan);
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.wpm-auth-otp-input:focus {
    border-color: var(--aura-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.15);
}
.wpm-auth-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
}
.wpm-auth-links a {
    color: var(--aura-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.wpm-auth-links a:hover { opacity: 0.75; }
.wpm-auth-sep { color: #334155; }
.wpm-auth-cancel {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
}

/* Dashboard */
.wpm-auth-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    cursor: pointer;
}
.wpm-auth-avatar-img img {
    border-radius: 50%;
    border: 3px solid var(--aura-cyan);
    width: 96px;
    height: 96px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.wpm-auth-avatar-wrap:hover .wpm-auth-avatar-img img {
    transform: scale(1.05);
}
.wpm-auth-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.2s;
}
.wpm-auth-avatar-wrap:hover .wpm-auth-avatar-overlay { opacity: 1; }
.wpm-auth-display-name {
    text-align: center;
    margin: 0 0 4px 0;
    font-size: 20px;
}
.wpm-auth-email {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
}
.wpm-auth-credits-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}
.wpm-auth-credits-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 6px;
}
.wpm-auth-credits-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--aura-accent);
}
.wpm-auth-actions {
    display: flex;
    gap: 10px;
}
.wpm-auth-actions .wpm-auth-btn {
    flex: 1;
    margin-top: 0;
    text-align: center;
}
