/**
 * EZ Hub: Premium SPA Layout
 * Aura Dark Theme & Glassmorphism
 */

:root {
    --hub-bg: #0a0a0c;
    --hub-sidebar-w: 260px;
    --hub-accent: #00f2ff;
    --hub-glass: rgba(255, 255, 255, 0.03);
    --hub-border: rgba(255, 255, 255, 0.08);
}

.wpm-hub-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--hub-bg);
    border-radius: 0;
    border: none;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #fff;
    
    /* Breakout of WordPress Container */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* LEFT SIDEBAR */
.wpm-hub-sidebar {
    width: var(--hub-sidebar-w);
    background: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--hub-border);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wpm-hub-logo {
    padding: 30px;
    border-bottom: 1px solid var(--hub-border);
}

.wpm-hub-logo h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--hub-accent);
}

.wpm-hub-logo span {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 2px;
}

.wpm-hub-nav {
    padding: 20px 10px;
}

.wpm-hub-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.wpm-hub-item:hover {
    background: var(--hub-glass);
    color: #fff;
}

.wpm-hub-item.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--hub-accent);
    box-shadow: inset 0 0 15px rgba(0, 242, 255, 0.05);
}

.wpm-hub-icon {
    font-size: 18px;
    margin-right: 12px;
}

/* MAIN STAGE */
.wpm-hub-main {
    flex: 1;
    padding: 0;
    background: radial-gradient(circle at top left, rgba(0, 242, 255, 0.02), transparent);
    position: relative;
    min-height: 600px;
}

.wpm-hub-welcome {
    text-align: center;
    margin-top: 100px;
}

.wpm-hub-welcome h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.wpm-hub-welcome p {
    opacity: 0.6;
}

/* RIGHT SIDEBAR: Wallet & Profile */
.wpm-hub-sidebar-right {
    width: 280px;
    padding: 30px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--hub-border);
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 100vh;
}

.wpm-hub-wallet h3, .wpm-hub-quick-audit h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 15px;
}

.wpm-hub-balance {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(0, 242, 255, 0.05));
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wpm-balance-val {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--hub-accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.wpm-balance-unit {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-top: 8px;
}

.wpm-buy-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--hub-accent), #00d2ff);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpm-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 242, 255, 0.4);
    filter: brightness(1.1);
}

.wpm-hub-welcome .wpm-welcome-icon {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.2));
}

.wpm-hub-auth-stage {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 20px;
    background: rgba(255,255,255,0.01);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.wpm-hub-auth-stage .wpm-hub-welcome {
    margin-top: 0;
    margin-bottom: 40px;
}

.wpm-hub-auth-stage .wpm-auth-wrapper {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--hub-border) !important;
    padding: 40px !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.wpm-hub-auth-stage input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.wpm-hub-auth-stage .wpm-auth-submit {
    background: var(--hub-accent) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

/* Eye Toggle Styles */
.wpm-auth-field-wrap {
    position: relative;
    width: 100%;
}

.wpm-eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
    padding: 5px;
}

.wpm-eye-toggle:hover {
    opacity: 1;
    color: var(--hub-accent);
}

.wpm-eye-toggle svg {
    width: 18px;
    height: 18px;
}

.wpm-auth-input {
    padding-right: 45px !important; /* Make room for the eye */
}

.wpm-hub-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--hub-border);
}

.wpm-user-avatar img {
    border-radius: 50%;
    border: 2px solid var(--hub-border);
}

.wpm-user-info { display: flex; flex-direction: column; }
.wpm-user-name { font-weight: 700; font-size: 14px; }
.wpm-logout-link { font-size: 11px; color: #ff2d55; text-decoration: none; margin-top: 2px; }
.wpm-logout-link:hover { text-decoration: underline; }

.wpm-mini-audit-list { list-style: none; padding: 0; margin: 0; }
.wpm-mini-audit-list li {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.wpm-audit-tool { opacity: 0.6; text-transform: capitalize; }
.wpm-audit-amt.neg { color: #ff2d55; }
.wpm-audit-amt.pos { color: #38ef7d; }

.wpm-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wpm-wallet-header h3 { margin: 0; }

.wpm-refresh-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
    display: flex;
}

.wpm-refresh-btn:hover { color: var(--hub-accent); transform: rotate(180deg); }
.wpm-refresh-btn.spinning { animation: wpm-spin 1s linear infinite; color: var(--hub-accent); }

/* --- Sidebar Plugin List Shortcode --- */
.wpm-sidebar-plugin-list {
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--hub-border);
    border-radius: 20px;
    padding: 25px;
    color: #fff;
}

.wpm-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--hub-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpm-plugin-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpm-plugin-item {
    margin-bottom: 12px;
}

.wpm-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 10px;
}

.wpm-item-link:hover {
    background: rgba(0, 242, 255, 0.05);
    color: var(--hub-accent);
    transform: translateX(5px);
}

.wpm-item-icon {
    font-size: 16px;
}

.wpm-item-name {
    font-weight: 500;
}

/* LOADER */
.wpm-hub-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.wpm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--hub-accent);
    border-radius: 50%;
    animation: wpm-spin 1s linear infinite;
}

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

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
    .wpm-hub-wrapper { flex-direction: column; }
    .wpm-hub-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--hub-border); }
    .wpm-hub-sidebar-right { display: none; }
}
