/**
 * AIOX Unified Dashboard - Dark Theme
 * Version: 7.0.0 - Fully Self-Contained / Plugin Independent
 * 
 * This CSS is fully isolated from WordPress themes and other plugins.
 * No external dependencies required (except the Inter font).
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --aiox-bg-primary: #0a0b10;
    --aiox-bg-secondary: #0d0f17;
    --aiox-bg-card: #12141f;
    --aiox-bg-card-hover: #181b28;
    --aiox-bg-input: #1a1d2e;
    --aiox-border-primary: #1e2235;
    --aiox-border-secondary: #2a2f45;
    --aiox-border-accent: #3b4160;
    --aiox-text-primary: #ffffff;
    --aiox-text-secondary: #b8c4d4;
    --aiox-text-muted: #8892a6;
    --aiox-accent-cyan: #22d3ee;
    --aiox-accent-purple: #a855f7;
    --aiox-accent-yellow: #eab308;
    --aiox-accent-green: #10b981;
    --aiox-accent-blue: #3b82f6;
    --aiox-accent-red: #ef4444;
}

/* ============================================
   COMPREHENSIVE RESET - DASHBOARD SCOPE
   This ensures complete isolation from WP themes
   ============================================ */

/* Main dashboard reset */
.aiox-dashboard-wide,
.aiox-auth-wrapper {
    all: initial;
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--aiox-text-primary);
    background: var(--aiox-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

/* Box sizing reset for all descendants */
.aiox-dashboard-wide *,
.aiox-dashboard-wide *::before,
.aiox-dashboard-wide *::after,
.aiox-auth-wrapper *,
.aiox-auth-wrapper *::before,
.aiox-auth-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

/* Element-level resets within dashboard */
.aiox-dashboard-wide article,
.aiox-dashboard-wide aside,
.aiox-dashboard-wide details,
.aiox-dashboard-wide figcaption,
.aiox-dashboard-wide figure,
.aiox-dashboard-wide footer,
.aiox-dashboard-wide header,
.aiox-dashboard-wide hgroup,
.aiox-dashboard-wide main,
.aiox-dashboard-wide menu,
.aiox-dashboard-wide nav,
.aiox-dashboard-wide section,
.aiox-auth-wrapper article,
.aiox-auth-wrapper aside,
.aiox-auth-wrapper details,
.aiox-auth-wrapper figcaption,
.aiox-auth-wrapper figure,
.aiox-auth-wrapper footer,
.aiox-auth-wrapper header,
.aiox-auth-wrapper hgroup,
.aiox-auth-wrapper main,
.aiox-auth-wrapper menu,
.aiox-auth-wrapper nav,
.aiox-auth-wrapper section {
    display: block;
}

/* Heading resets */
.aiox-dashboard-wide h1,
.aiox-dashboard-wide h2,
.aiox-dashboard-wide h3,
.aiox-dashboard-wide h4,
.aiox-dashboard-wide h5,
.aiox-dashboard-wide h6,
.aiox-auth-wrapper h1,
.aiox-auth-wrapper h2,
.aiox-auth-wrapper h3,
.aiox-auth-wrapper h4,
.aiox-auth-wrapper h5,
.aiox-auth-wrapper h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #ffffff;
}

/* Paragraph reset */
.aiox-dashboard-wide p,
.aiox-auth-wrapper p {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* List resets */
.aiox-dashboard-wide ol,
.aiox-dashboard-wide ul,
.aiox-auth-wrapper ol,
.aiox-auth-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Link resets */
.aiox-dashboard-wide a,
.aiox-auth-wrapper a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    cursor: pointer;
}

/* Image resets */
.aiox-dashboard-wide img,
.aiox-auth-wrapper img {
    max-width: 100%;
    height: auto;
    border: 0;
    display: block;
}

/* Form element resets */
.aiox-dashboard-wide button,
.aiox-dashboard-wide input,
.aiox-dashboard-wide optgroup,
.aiox-dashboard-wide select,
.aiox-dashboard-wide textarea,
.aiox-auth-wrapper button,
.aiox-auth-wrapper input,
.aiox-auth-wrapper optgroup,
.aiox-auth-wrapper select,
.aiox-auth-wrapper textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

.aiox-dashboard-wide button,
.aiox-auth-wrapper button {
    cursor: pointer;
    background: none;
    border: none;
}

.aiox-dashboard-wide input::-webkit-outer-spin-button,
.aiox-dashboard-wide input::-webkit-inner-spin-button,
.aiox-auth-wrapper input::-webkit-outer-spin-button,
.aiox-auth-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.aiox-dashboard-wide input[type="number"],
.aiox-auth-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

/* Table resets */
.aiox-dashboard-wide table,
.aiox-auth-wrapper table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* Canvas reset */
.aiox-dashboard-wide canvas,
.aiox-auth-wrapper canvas {
    display: block;
}

/* ============================================
   MAIN CONTAINER STYLES
   ============================================ */

.aiox-dashboard-wide {
    min-height: 100vh;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 99999;
    overflow: hidden;
}

/* Hide body scroll when dashboard is active */
body:has(.aiox-dashboard-wide) {
    overflow: hidden !important;
}

/* Remove max-width constraints */
.aiox-dashboard-wide * {
    max-width: none;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.aiox-dashboard-wide .aiox-sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, #0f111a 0%, #12141f 100%);
    border-right: 1px solid var(--aiox-border-primary);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    left: 0;
    top: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
}

.aiox-dashboard-wide .aiox-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.aiox-dashboard-wide .aiox-logo {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid #1e2235;
    position: relative;
    z-index: 1;
}

.aiox-dashboard-wide .aiox-logo a {
    display: block;
}

.aiox-dashboard-wide .aiox-logo img {
    max-height: none;
    width: auto;
    height: auto;
}

.aiox-dashboard-wide .aiox-logo h2 {
    font-size: 1.5rem;
    color: var(--aiox-accent-cyan) !important;
    font-weight: 800;
    margin: 0;
}

/* Navigation */
.aiox-dashboard-wide .aiox-nav {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex: 1;
}

.aiox-dashboard-wide .aiox-nav-item {
    margin: 0.25rem 0.75rem;
    list-style: none;
}

.aiox-dashboard-wide .aiox-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--aiox-text-secondary) !important;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.aiox-dashboard-wide .aiox-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.aiox-dashboard-wide .aiox-nav-link:hover::before {
    opacity: 1;
}

.aiox-dashboard-wide .aiox-nav-link:hover {
    background: var(--aiox-bg-card);
    color: var(--aiox-accent-cyan) !important;
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.aiox-dashboard-wide .aiox-nav-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: var(--aiox-accent-cyan) !important;
    font-weight: 600;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.aiox-dashboard-wide .aiox-nav-icon {
    font-size: 1.25rem;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.aiox-dashboard-wide .aiox-nav-link span:not(.aiox-nav-icon) {
    position: relative;
    z-index: 1;
}

.aiox-dashboard-wide .aiox-nav-link.active span:not(.aiox-nav-icon) {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* User Section */
.aiox-dashboard-wide .aiox-user-section {
    padding: 1.5rem;
    border-top: 1px solid var(--aiox-border-primary);
    background: var(--aiox-bg-secondary);
    margin-top: auto;
}

.aiox-dashboard-wide .aiox-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--aiox-bg-card);
    border-radius: 8px;
}

.aiox-dashboard-wide .aiox-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}

.aiox-dashboard-wide .aiox-user-details {
    flex: 1;
    overflow: hidden;
}

.aiox-dashboard-wide .aiox-user-details h4 {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aiox-dashboard-wide .aiox-user-details p {
    font-size: 0.75rem;
    color: var(--aiox-text-muted);
    margin: 0;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.aiox-dashboard-wide .aiox-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    max-width: none !important;
    width: calc(100vw - 260px) !important;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--aiox-bg-primary);
    color: var(--aiox-text-primary);
}

/* ============================================
   HEADER STYLES
   ============================================ */

.aiox-dashboard-wide .aiox-header {
    position: relative;
    text-align: left;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #12141f 0%, #181b28 100%);
    border: 2px solid #1e2235;
}

.aiox-dashboard-wide .aiox-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: heroGlowPulse 4s ease-in-out infinite;
}

.aiox-dashboard-wide .aiox-header h1 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    display: inline-block;
    line-height: 1.2;
}

.aiox-dashboard-wide .aiox-header-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ============================================
   TAB CONTENT
   ============================================ */

.aiox-dashboard-wide .aiox-tab-content {
    display: none;
}

.aiox-dashboard-wide .aiox-tab-content.active {
    display: block;
}

/* ============================================
   STATS GRID
   ============================================ */

.aiox-dashboard-wide .aiox-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.aiox-dashboard-wide .aiox-stat-card {
    background: linear-gradient(135deg, #12141f 0%, #181b28 100%);
    border: 2px solid #1e2235;
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aiox-dashboard-wide .aiox-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.aiox-dashboard-wide .aiox-stat-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.aiox-dashboard-wide .aiox-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.aiox-dashboard-wide .aiox-stat-title {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aiox-dashboard-wide .aiox-stat-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.aiox-dashboard-wide .aiox-stat-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0.375rem 0;
    line-height: 1;
}

.aiox-dashboard-wide .aiox-stat-change {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
}

.aiox-dashboard-wide .aiox-stat-change.negative {
    color: var(--aiox-accent-red);
}

/* ============================================
   CARDS
   ============================================ */

.aiox-dashboard-wide .aiox-card {
    background: linear-gradient(135deg, #12141f 0%, #181b28 100%);
    border: 2px solid #1e2235;
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.aiox-dashboard-wide .aiox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.aiox-dashboard-wide .aiox-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.aiox-dashboard-wide .aiox-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #1e2235;
    position: relative;
    z-index: 1;
}

.aiox-dashboard-wide .aiox-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.aiox-dashboard-wide .aiox-card-action {
    color: var(--aiox-accent-cyan);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.aiox-dashboard-wide .aiox-card-action:hover {
    text-decoration: underline;
}

/* ============================================
   INFO ROWS
   ============================================ */

.aiox-dashboard-wide .aiox-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #1e2235;
    transition: all 0.3s ease;
}

.aiox-dashboard-wide .aiox-info-row:last-child {
    border-bottom: none;
}

.aiox-dashboard-wide .aiox-info-row:hover {
    background: rgba(102, 126, 234, 0.05);
    padding-left: 1.5rem;
}

.aiox-dashboard-wide .aiox-info-label {
    font-weight: 600;
    color: #94a3b8;
}

.aiox-dashboard-wide .aiox-info-value {
    font-weight: 700;
    color: #ffffff;
}

/* ============================================
   BUTTONS
   ============================================ */

.aiox-dashboard-wide .aiox-btn,
.aiox-auth-wrapper .aiox-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    line-height: 1.5;
}

.aiox-dashboard-wide .aiox-btn-primary,
.aiox-auth-wrapper .aiox-btn-primary {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #0a0b10 !important;
}

.aiox-dashboard-wide .aiox-btn-primary:hover,
.aiox-auth-wrapper .aiox-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.aiox-dashboard-wide .aiox-btn-secondary,
.aiox-auth-wrapper .aiox-btn-secondary {
    background: var(--aiox-bg-card);
    color: var(--aiox-text-secondary) !important;
    border: 1px solid var(--aiox-border-primary);
}

.aiox-dashboard-wide .aiox-btn-secondary:hover,
.aiox-auth-wrapper .aiox-btn-secondary:hover {
    background: var(--aiox-bg-card-hover);
    border-color: var(--aiox-border-secondary);
}

.aiox-dashboard-wide .aiox-btn-full,
.aiox-auth-wrapper .aiox-btn-full {
    width: 100%;
}

.aiox-dashboard-wide .aiox-btn:disabled,
.aiox-auth-wrapper .aiox-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   CODE DISPLAY
   ============================================ */

.aiox-dashboard-wide .aiox-code-display {
    background: #0f111a;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 0 1.25rem 1rem 1.25rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.8125rem;
    color: #22d3ee;
    word-break: break-all;
    position: relative;
    overflow: hidden;
}

.aiox-dashboard-wide .aiox-code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.1) 50%, transparent 100%);
    animation: codeScan 3s linear infinite;
}

.aiox-dashboard-wide .aiox-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--aiox-bg-card);
    border: 1px solid var(--aiox-border-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--aiox-text-secondary);
    font-family: inherit;
    z-index: 2;
}

.aiox-dashboard-wide .aiox-copy-btn:hover {
    background: var(--aiox-accent-cyan);
    color: var(--aiox-bg-primary);
    border-color: var(--aiox-accent-cyan);
}

/* ============================================
   PLACEHOLDERS
   ============================================ */

.aiox-dashboard-wide .aiox-placeholder {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--aiox-text-muted);
}

.aiox-dashboard-wide .aiox-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.aiox-dashboard-wide .aiox-placeholder h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0 0 0.375rem 0;
}

.aiox-dashboard-wide .aiox-placeholder p {
    color: var(--aiox-text-muted);
    margin: 0;
}

/* ============================================
   PLAN CARDS
   ============================================ */

.aiox-dashboard-wide .aiox-plans-grid,
.aiox-auth-wrapper .aiox-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.aiox-dashboard-wide .aiox-plan-card,
.aiox-auth-wrapper .aiox-plan-card {
    background: linear-gradient(135deg, #12141f 0%, #181b28 100%);
    border: 2px solid var(--aiox-border-primary);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    /* REMOVED: transition and display:flex to prevent GPU crashes */
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.aiox-dashboard-wide .aiox-plan-card:hover,
.aiox-auth-wrapper .aiox-plan-card:hover {
    border-color: var(--aiox-accent-cyan);
    box-shadow: 0 12px 24px rgba(34, 211, 238, 0.15);
    /* REMOVED: transform: translateY(-4px) to prevent GPU crashes */
}

/* Selected state - apply border to CARD not label */
.aiox-dashboard-wide .aiox-plan-card:has(input[type="radio"]:checked),
.aiox-auth-wrapper .aiox-plan-card:has(input[type="radio"]:checked) {
    border-color: var(--aiox-accent-cyan);
    background: var(--aiox-bg-card-hover);
}

/* Explicitly disable any ::before gradient bar on selected cards */
.aiox-dashboard-wide .aiox-plan-card input[type="radio"]:checked + label::before,
.aiox-auth-wrapper .aiox-plan-card input[type="radio"]:checked + label::before {
    content: none !important;
    display: none !important;
}

.aiox-dashboard-wide .aiox-plan-card input[type="radio"],
.aiox-auth-wrapper .aiox-plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.aiox-dashboard-wide .aiox-plan-label,
.aiox-auth-wrapper .aiox-plan-label {
    /* GPU-SAFE: Removed display:flex and transition to prevent GPU crashes */
    /* Removed border - using card border instead to avoid double border */
    display: block;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.aiox-dashboard-wide .aiox-plan-badge,
.aiox-auth-wrapper .aiox-plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--aiox-accent-cyan);
    color: var(--aiox-bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.aiox-dashboard-wide .aiox-plan-name,
.aiox-auth-wrapper .aiox-plan-name {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.aiox-dashboard-wide .aiox-plan-description,
.aiox-auth-wrapper .aiox-plan-description {
    color: var(--aiox-text-muted);
    font-size: 0.8125rem;
    margin: 0 0 0.75rem 0;
    min-height: 36px;
    line-height: 1.4;
}

.aiox-dashboard-wide .aiox-plan-price,
.aiox-auth-wrapper .aiox-plan-price {
    font-size: 1.75rem;
    color: var(--aiox-accent-cyan);
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.aiox-dashboard-wide .aiox-plan-price span,
.aiox-auth-wrapper .aiox-plan-price span {
    font-size: 0.875rem;
    color: var(--aiox-text-muted);
    font-weight: 500;
}

.aiox-dashboard-wide .aiox-plan-features,
.aiox-auth-wrapper .aiox-plan-features {
    list-style: none;
    margin: 0.75rem 0 0 0;
    padding: 0.75rem 0 0 0;
    border-top: 1px solid var(--aiox-border-primary);
    flex: 1;
}

.aiox-dashboard-wide .aiox-plan-features li,
.aiox-auth-wrapper .aiox-plan-features li {
    padding: 0.3rem 0 0.3rem 26px;
    color: var(--aiox-text-secondary);
    font-size: 0.8125rem;
    position: relative;
    line-height: 1.4;
}

.aiox-dashboard-wide .aiox-plan-features li::before,
.aiox-auth-wrapper .aiox-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 18px;
    height: 18px;
    background: rgba(34, 211, 238, 0.15);
    border-radius: 50%;
    line-height: 18px;
    text-align: center;
    color: #22d3ee;
    font-weight: 700;
    font-size: 11px;
}

/* Plan card button - push to bottom */
.aiox-dashboard-wide .aiox-plan-card > .aiox-btn,
.aiox-auth-wrapper .aiox-plan-card > .aiox-btn {
    margin-top: auto;
    flex-shrink: 0;
}

/* Plan badges */
.aiox-dashboard-wide .plan-badge,
.aiox-auth-wrapper .plan-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--aiox-bg-card-hover);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--aiox-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.aiox-dashboard-wide .plan-badge.popular,
.aiox-auth-wrapper .plan-badge.popular {
    background: rgba(234, 179, 8, 0.2);
    color: var(--aiox-accent-yellow);
}

.aiox-dashboard-wide .plan-badge.trial,
.aiox-auth-wrapper .plan-badge.trial {
    background: rgba(16, 185, 129, 0.2);
    color: var(--aiox-accent-green);
}

/* ============================================
   AUTH WRAPPER (Login/Register)
   ============================================ */

.aiox-auth-wrapper {
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.aiox-auth-wrapper .aiox-auth-header {
    background: linear-gradient(135deg, #1a1d2e 0%, #0d0f17 100%);
    padding: 80px 40px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--aiox-border-primary);
}

.aiox-auth-wrapper .aiox-auth-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.aiox-auth-wrapper .aiox-auth-header p {
    font-size: 1.25rem;
    color: var(--aiox-text-secondary);
    margin: 0;
    font-weight: 400;
}

.aiox-auth-wrapper .aiox-auth-content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    width: 100%;
}

.aiox-auth-wrapper .aiox-auth-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--aiox-border-primary);
}

.aiox-auth-wrapper .aiox-auth-tab {
    padding: 12px 32px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--aiox-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    font-family: inherit;
}

.aiox-auth-wrapper .aiox-auth-tab:hover {
    color: var(--aiox-accent-cyan);
}

.aiox-auth-wrapper .aiox-auth-tab.active {
    color: var(--aiox-accent-cyan);
    border-bottom-color: var(--aiox-accent-cyan);
}

.aiox-auth-wrapper .aiox-auth-section {
    display: none;
}

.aiox-auth-wrapper .aiox-auth-section.active {
    display: block;
}

.aiox-auth-wrapper .aiox-auth-message {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.aiox-auth-wrapper .aiox-auth-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--aiox-accent-green);
    color: var(--aiox-accent-green);
}

.aiox-auth-wrapper .aiox-auth-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--aiox-accent-red);
    color: var(--aiox-accent-red);
}

.aiox-auth-wrapper .aiox-login-container,
.aiox-auth-wrapper .aiox-reset-container {
    max-width: 500px;
    margin: 0 auto;
}

.aiox-auth-wrapper .aiox-login-card,
.aiox-auth-wrapper .aiox-form-card {
    background: var(--aiox-bg-card);
    border: 1px solid var(--aiox-border-primary);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.aiox-auth-wrapper .aiox-login-card h3,
.aiox-auth-wrapper .aiox-form-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-align: center;
}

.aiox-auth-wrapper .aiox-register-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-align: center;
}

.aiox-auth-wrapper .aiox-register-subtitle {
    text-align: center;
    color: var(--aiox-text-muted);
    font-size: 1.1rem;
    margin: 0 0 48px 0;
}

.aiox-auth-wrapper .aiox-register-form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   FORM STYLES
   ============================================ */

.aiox-dashboard-wide .aiox-settings-form-container,
.aiox-auth-wrapper .aiox-settings-form-container {
    background: var(--aiox-bg-card);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.aiox-dashboard-wide .aiox-form-section,
.aiox-auth-wrapper .aiox-form-section {
    margin-bottom: 1.25rem;
}

.aiox-dashboard-wide .aiox-form-section h3,
.aiox-auth-wrapper .aiox-form-section h3 {
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.aiox-dashboard-wide .aiox-form-description,
.aiox-auth-wrapper .aiox-form-description {
    color: var(--aiox-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.aiox-dashboard-wide .aiox-form-row,
.aiox-auth-wrapper .aiox-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.aiox-dashboard-wide .aiox-form-field,
.aiox-auth-wrapper .aiox-form-field {
    display: flex;
    flex-direction: column;
}

.aiox-dashboard-wide .aiox-form-field label,
.aiox-auth-wrapper .aiox-form-field label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.aiox-dashboard-wide .aiox-form-field input,
.aiox-auth-wrapper .aiox-form-field input {
    padding: 0.75rem;
    border: 2px solid var(--aiox-border-primary);
    border-radius: 8px;
    background: var(--aiox-bg-input);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.aiox-dashboard-wide .aiox-form-field input:focus,
.aiox-auth-wrapper .aiox-form-field input:focus {
    outline: none;
    border-color: var(--aiox-accent-cyan);
    background: var(--aiox-bg-input);
}

.aiox-dashboard-wide .aiox-form-field input::placeholder,
.aiox-auth-wrapper .aiox-form-field input::placeholder {
    color: var(--aiox-text-muted);
}

.aiox-dashboard-wide .aiox-form-actions,
.aiox-auth-wrapper .aiox-form-actions {
    margin-top: 2rem;
}

/* Auth form fields */
.aiox-auth-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.aiox-auth-wrapper .form-field {
    margin-bottom: 24px;
}

.aiox-auth-wrapper .form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--aiox-text-secondary);
    font-size: 0.9rem;
}

.aiox-auth-wrapper .form-field input[type="text"],
.aiox-auth-wrapper .form-field input[type="email"],
.aiox-auth-wrapper .form-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--aiox-bg-input);
    border: 2px solid var(--aiox-border-primary);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.aiox-auth-wrapper .form-field input::placeholder {
    color: var(--aiox-text-muted);
}

.aiox-auth-wrapper .form-field input:focus {
    outline: none;
    border-color: var(--aiox-accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.aiox-auth-wrapper .field-help {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--aiox-text-muted);
    line-height: 1.4;
}

.aiox-auth-wrapper .aiox-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    color: var(--aiox-text-secondary);
}

.aiox-auth-wrapper .aiox-form-checkbox input {
    width: auto;
}

.aiox-auth-wrapper .aiox-btn-auth {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: var(--aiox-bg-primary) !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-family: inherit;
}

.aiox-auth-wrapper .aiox-btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.aiox-auth-wrapper .aiox-btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.aiox-auth-wrapper .aiox-auth-link {
    text-align: center;
    margin-top: 24px;
    color: var(--aiox-text-muted);
    font-size: 0.9rem;
}

.aiox-auth-wrapper .aiox-auth-link a {
    color: var(--aiox-accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.aiox-auth-wrapper .aiox-auth-link a:hover {
    text-decoration: underline;
}

/* ============================================
   MESSAGE STYLES
   ============================================ */

.aiox-dashboard-wide .aiox-message,
.aiox-auth-wrapper .aiox-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.aiox-dashboard-wide .aiox-message.success,
.aiox-auth-wrapper .aiox-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--aiox-accent-green);
    color: var(--aiox-accent-green);
}

.aiox-dashboard-wide .aiox-message.error,
.aiox-auth-wrapper .aiox-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--aiox-accent-red);
    color: var(--aiox-accent-red);
}

/* ============================================
   UPGRADE BUTTON
   ============================================ */

.aiox-dashboard-wide .upgrade-plan-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    transition: all 0.3s;
    animation: pulseGlow 2s infinite;
}

.aiox-dashboard-wide .upgrade-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* ============================================
   RESOURCE/APP CARDS
   ============================================ */

.aiox-dashboard-wide .resource-card {
    background: var(--aiox-bg-card);
    border: 2px solid var(--aiox-border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.aiox-dashboard-wide .resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--aiox-border-secondary);
}

.aiox-dashboard-wide .resource-card h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.aiox-dashboard-wide .resource-card p {
    color: var(--aiox-text-muted);
    margin: 0;
}

/* Apps Grid */
.aiox-dashboard-wide .aiox-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.aiox-dashboard-wide .aiox-app-card {
    background: var(--aiox-bg-card);
    border: 2px solid var(--aiox-border-primary);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 500px;
}

.aiox-dashboard-wide .aiox-app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--aiox-border-secondary);
}

.aiox-dashboard-wide .app-card-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    margin-top: 190px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aiox-dashboard-wide .app-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.5rem 0 0.375rem 0;
}

.aiox-dashboard-wide .app-description {
    font-size: 0.8125rem;
    color: var(--aiox-text-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.aiox-dashboard-wide .app-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aiox-dashboard-wide .app-icon {
    font-size: 1.5rem;
}

.aiox-dashboard-wide .app-category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.aiox-dashboard-wide .app-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.aiox-dashboard-wide .app-launch-btn:hover {
    transform: scale(1.02);
}

/* ============================================
   MODAL STYLES
   ============================================ */

.aiox-dashboard-wide .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200000;
}

.aiox-dashboard-wide .modal-content {
    background: var(--aiox-bg-card);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.aiox-dashboard-wide .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.aiox-dashboard-wide .modal-section {
    margin-bottom: 1.5rem;
}

.aiox-dashboard-wide .modal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
}

.aiox-dashboard-wide .modal-section p {
    color: var(--aiox-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.aiox-dashboard-wide .modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aiox-dashboard-wide .modal-section li {
    padding: 0.5rem 0;
    color: var(--aiox-text-secondary);
}

.aiox-dashboard-wide .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--aiox-text-muted);
    padding: 0.5rem;
    line-height: 1;
}

.aiox-dashboard-wide .modal-close:hover {
    color: #ffffff;
}

/* ============================================
   SCROLLBARS
   ============================================ */

.aiox-dashboard-wide .aiox-main-content::-webkit-scrollbar,
.aiox-dashboard-wide .aiox-sidebar::-webkit-scrollbar {
    width: 8px;
}

.aiox-dashboard-wide .aiox-main-content::-webkit-scrollbar-track,
.aiox-dashboard-wide .aiox-sidebar::-webkit-scrollbar-track {
    background: var(--aiox-bg-secondary);
}

.aiox-dashboard-wide .aiox-main-content::-webkit-scrollbar-thumb,
.aiox-dashboard-wide .aiox-sidebar::-webkit-scrollbar-thumb {
    background: var(--aiox-border-secondary);
    border-radius: 4px;
}

.aiox-dashboard-wide .aiox-main-content::-webkit-scrollbar-thumb:hover,
.aiox-dashboard-wide .aiox-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--aiox-border-accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes heroGlowPulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.2); 
    }
}

@keyframes codeScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .aiox-dashboard-wide .aiox-sidebar {
        width: 220px;
        min-width: 220px;
    }

    .aiox-dashboard-wide .aiox-main-content {
        margin-left: 220px;
        width: calc(100vw - 220px) !important;
    }
}

@media (max-width: 768px) {
    .aiox-dashboard-wide {
        flex-direction: column;
    }

    .aiox-dashboard-wide .aiox-sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--aiox-border-primary);
        top: 0;
    }

    .aiox-dashboard-wide .aiox-main-content {
        margin-left: 0;
        padding: 1rem;
        width: 100% !important;
        height: auto;
    }

    .aiox-dashboard-wide .aiox-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .aiox-dashboard-wide .aiox-user-section {
        position: static;
    }

    .aiox-auth-wrapper .aiox-auth-header {
        padding: 40px 20px;
    }

    .aiox-auth-wrapper .aiox-auth-header h1 {
        font-size: 1.75rem;
    }

    .aiox-auth-wrapper .aiox-auth-content-area {
        padding: 32px 16px;
    }

    .aiox-dashboard-wide .aiox-plans-grid,
    .aiox-auth-wrapper .aiox-plans-grid {
        grid-template-columns: 1fr;
    }

    .aiox-auth-wrapper .form-row {
        grid-template-columns: 1fr;
    }

    .aiox-auth-wrapper .aiox-form-card,
    .aiox-auth-wrapper .aiox-login-card {
        padding: 24px 20px;
    }

    .aiox-dashboard-wide .aiox-apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .aiox-dashboard-wide .aiox-stats-grid {
        grid-template-columns: 1fr;
    }

    .aiox-dashboard-wide .aiox-header {
        padding: 1.25rem;
    }

    .aiox-dashboard-wide .aiox-header h1 {
        font-size: 1.25rem;
    }

    .aiox-dashboard-wide .aiox-card-header {
        padding: 0.875rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* ============================================
   APPS TAB SPECIFIC STYLES
   ============================================ */

.aiox-dashboard-wide .hero-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.aiox-dashboard-wide .hero-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
}

.aiox-dashboard-wide .apps-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aiox-dashboard-wide .section-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aiox-dashboard-wide .section-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aiox-dashboard-wide .section-icon {
    font-size: 1.5rem;
}

.aiox-dashboard-wide .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.aiox-dashboard-wide .section-count {
    font-size: 0.875rem;
    color: #94a3b8;
}

.aiox-dashboard-wide .section-header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.aiox-dashboard-wide .badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* App Card Background */
.aiox-dashboard-wide .app-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
}

.aiox-dashboard-wide .app-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.aiox-dashboard-wide .app-card-gradient {
    width: 100%;
    height: 100%;
}

.aiox-dashboard-wide .app-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--aiox-bg-card) 100%);
}

.aiox-dashboard-wide .app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.aiox-dashboard-wide .app-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.aiox-dashboard-wide .aiox-app-card:hover .app-card-shine {
    left: 100%;
}

/* ============================================
   ADDITIONAL FORM STYLES (for inline forms)
   ============================================ */

.aiox-dashboard-wide .form-group {
    margin-bottom: 2rem;
}

.aiox-dashboard-wide .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.aiox-dashboard-wide .form-input,
.aiox-dashboard-wide .form-select,
.aiox-dashboard-wide .form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--aiox-border-primary);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--aiox-bg-input);
    color: #ffffff;
    font-family: inherit;
}

.aiox-dashboard-wide .form-input:focus,
.aiox-dashboard-wide .form-select:focus,
.aiox-dashboard-wide .form-textarea:focus {
    border-color: var(--aiox-accent-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.aiox-dashboard-wide .form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--aiox-text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */

.aiox-dashboard-wide .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.aiox-dashboard-wide .pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--aiox-border-primary);
    background: var(--aiox-bg-card);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--aiox-text-secondary);
    transition: all 0.2s;
    font-family: inherit;
}

.aiox-dashboard-wide .pagination-btn:hover:not(:disabled) {
    background: var(--aiox-accent-purple);
    color: #ffffff;
    border-color: var(--aiox-accent-purple);
}

.aiox-dashboard-wide .pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.aiox-dashboard-wide .pagination-btn.active {
    background: var(--aiox-accent-purple);
    color: #ffffff;
    border-color: var(--aiox-accent-purple);
}

.aiox-dashboard-wide .pagination-info {
    padding: 0.5rem 1rem;
    color: var(--aiox-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   PROGRESS INDICATORS
   ============================================ */

.aiox-dashboard-wide .progress-card {
    background: var(--aiox-bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.aiox-dashboard-wide .progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0;
}

.aiox-dashboard-wide .progress-modern-card {
    background: var(--aiox-bg-card);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.aiox-dashboard-wide .progress-header {
    margin-bottom: 2rem;
}

.aiox-dashboard-wide .progress-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--aiox-border-primary);
    border-top-color: var(--aiox-accent-purple);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

.aiox-dashboard-wide .progress-subtitle {
    color: var(--aiox-text-muted);
    font-size: 1rem;
    margin: 0;
}

.aiox-dashboard-wide .progress-bar-container {
    background: var(--aiox-border-primary);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.aiox-dashboard-wide .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.aiox-dashboard-wide .progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.aiox-dashboard-wide .progress-stat {
    text-align: center;
}

.aiox-dashboard-wide .progress-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.aiox-dashboard-wide .progress-stat-label {
    font-size: 0.85rem;
    color: var(--aiox-text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   LOADING STATES
   ============================================ */

.aiox-dashboard-wide .loading-error {
    text-align: center;
    padding: 3rem;
}

.aiox-dashboard-wide .loading-error h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.aiox-dashboard-wide .loading-error p {
    color: var(--aiox-text-muted);
    margin: 0;
}

/* ============================================
   PROVIDER SELECTION GRID (for settings)
   ============================================ */

.aiox-dashboard-wide .providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.aiox-dashboard-wide .provider-checkbox-card {
    background: var(--aiox-bg-card);
    border: 2px solid var(--aiox-border-primary);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aiox-dashboard-wide .provider-checkbox-card:hover {
    border-color: var(--aiox-border-secondary);
    background: var(--aiox-bg-card-hover);
}

.aiox-dashboard-wide .provider-checkbox-card.selected {
    border-color: var(--aiox-accent-cyan);
    background: rgba(34, 211, 238, 0.1);
}

.aiox-dashboard-wide .provider-checkbox-card input[type="checkbox"] {
    display: none;
}

.aiox-dashboard-wide .provider-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.aiox-dashboard-wide .provider-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--aiox-border-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.aiox-dashboard-wide .provider-checkbox-card.selected .provider-checkmark {
    background: var(--aiox-accent-cyan);
    border-color: var(--aiox-accent-cyan);
}

.aiox-dashboard-wide .provider-checkbox-card.selected .provider-checkmark::after {
    content: '✓';
    color: var(--aiox-bg-primary);
    font-weight: 700;
    font-size: 14px;
}

.aiox-dashboard-wide .provider-info {
    flex: 1;
}

.aiox-dashboard-wide .provider-name {
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.aiox-dashboard-wide .provider-cost {
    font-size: 0.85rem;
    color: var(--aiox-text-muted);
    margin: 0;
}

/* ============================================
   STRATEGY CARDS (for forensics/analysis)
   ============================================ */

.aiox-dashboard-wide .strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.aiox-dashboard-wide .strategy-card {
    background: var(--aiox-bg-card);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 3px solid transparent;
    overflow: hidden;
    position: relative;
}

.aiox-dashboard-wide .strategy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.aiox-dashboard-wide .strategy-card.selected {
    border-color: var(--aiox-accent-purple);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
}

.aiox-dashboard-wide .strategy-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.aiox-dashboard-wide .strategy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.aiox-dashboard-wide .strategy-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.aiox-dashboard-wide .strategy-card-body {
    padding: 2rem;
}

.aiox-dashboard-wide .strategy-description {
    color: var(--aiox-text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.aiox-dashboard-wide .strategy-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.aiox-dashboard-wide .strategy-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--aiox-text-muted);
}

.aiox-dashboard-wide .strategy-actions {
    display: flex;
    gap: 1rem;
}

.aiox-dashboard-wide .btn-select-strategy {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.aiox-dashboard-wide .btn-select-strategy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.aiox-dashboard-wide .btn-view-details {
    padding: 0.875rem 1.5rem;
    background: var(--aiox-bg-card);
    color: var(--aiox-accent-purple);
    border: 2px solid var(--aiox-accent-purple);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.aiox-dashboard-wide .btn-view-details:hover {
    background: var(--aiox-accent-purple);
    color: #ffffff;
}

.aiox-dashboard-wide .strategy-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Selected Strategy Display */
.aiox-dashboard-wide .selected-strategy-display {
    background: var(--aiox-bg-card);
    border: 2px solid var(--aiox-accent-purple);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.aiox-dashboard-wide .selected-strategy-icon {
    font-size: 2.5rem;
}

.aiox-dashboard-wide .selected-strategy-info {
    flex: 1;
}

.aiox-dashboard-wide .selected-strategy-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.aiox-dashboard-wide .selected-strategy-desc {
    color: var(--aiox-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.aiox-dashboard-wide .btn-change-strategy {
    padding: 0.75rem 1.5rem;
    background: var(--aiox-bg-card-hover);
    border: 1px solid var(--aiox-border-primary);
    border-radius: 8px;
    color: var(--aiox-text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.aiox-dashboard-wide .btn-change-strategy:hover {
    background: var(--aiox-border-primary);
    color: #ffffff;
}

/* Start Analysis Button */
.aiox-dashboard-wide .btn-start-analysis {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: inherit;
}

.aiox-dashboard-wide .btn-start-analysis:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.aiox-dashboard-wide .btn-start-analysis:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Forensics Hero */
.aiox-dashboard-wide .forensics-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    color: #ffffff;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.aiox-dashboard-wide .forensics-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.aiox-dashboard-wide .forensics-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Forensics History Items */
.aiox-dashboard-wide .forensics-history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--aiox-border-primary);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.aiox-dashboard-wide .forensics-history-item:hover {
    background: var(--aiox-bg-card-hover);
}

.aiox-dashboard-wide .forensics-history-item:last-child {
    border-bottom: none;
}

.aiox-dashboard-wide .forensics-item-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.aiox-dashboard-wide .forensics-item-content strong {
    color: #ffffff;
}

.aiox-dashboard-wide .forensics-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aiox-dashboard-wide .forensics-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.aiox-dashboard-wide .forensics-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.aiox-dashboard-wide .forensics-action-btn.publish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.aiox-dashboard-wide .forensics-action-btn.delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.aiox-dashboard-wide .forensics-action-btn.view {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.aiox-dashboard-wide .forensics-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.aiox-dashboard-wide .forensics-score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    color: var(--aiox-bg-primary);
}

.aiox-dashboard-wide .forensics-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.aiox-dashboard-wide .forensics-status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--aiox-accent-green);
}

.aiox-dashboard-wide .forensics-status-badge.processing {
    background: rgba(234, 179, 8, 0.2);
    color: var(--aiox-accent-yellow);
}

.aiox-dashboard-wide .forensics-status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--aiox-accent-red);
}

/* Analysis Form Card */
.aiox-dashboard-wide .analysis-form-card {
    background: var(--aiox-bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   WP ADMIN BAR COMPENSATION (if visible)
   ============================================ */

.admin-bar .aiox-dashboard-wide {
    top: 32px;
    height: calc(100vh - 32px);
}

.admin-bar .aiox-dashboard-wide .aiox-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .aiox-dashboard-wide {
        top: 46px;
        height: calc(100vh - 46px);
    }

    .admin-bar .aiox-dashboard-wide .aiox-sidebar {
        top: 0;
        height: auto;
    }
}