/* VMO Manager Admin Styles */

.vmo-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vmo-widget {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.vmo-widget-full {
    grid-column: 1 / -1;
}

.vmo-widget h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.vmo-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.vmo-stat {
    text-align: center;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
}

.vmo-stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 5px;
}

.vmo-stat-label {
    display: block;
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vmo-activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.vmo-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.vmo-activity-time {
    font-size: 12px;
    color: #646970;
    white-space: nowrap;
    margin-right: 15px;
}

.vmo-activity-text {
    flex: 1;
    font-size: 14px;
}

.vmo-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.vmo-quick-actions .button {
    text-align: center;
    padding: 10px;
}

/* Status badges */
.vmo-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vmo-status-free {
    background: #f0f0f1;
    color: #646970;
}

.vmo-status-starter {
    background: #e7f3ff;
    color: #0073aa;
}

.vmo-status-professional {
    background: #f0f8e7;
    color: #5b9a00;
}

.vmo-status-business {
    background: #fff2e7;
    color: #d63638;
}

.vmo-status-enterprise {
    background: #f3e7ff;
    color: #8f2de4;
}

.vmo-status-active {
    background: #d7f5d7;
    color: #1e8e3e;
}

.vmo-status-pending {
    background: #fff8e5;
    color: #dba617;
}

.vmo-status-paid {
    background: #d7f5d7;
    color: #1e8e3e;
}

/* Admin filters */
.vmo-admin-filters {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.vmo-admin-filters input,
.vmo-admin-filters select {
    margin: 0;
}

/* Settings sections */
.vmo-settings-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
    padding: 20px;
}

.vmo-settings-section h2 {
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 18px;
    color: #1d2327;
}

.vmo-settings-section h3 {
    margin: 20px 0 10px 0;
    font-size: 16px;
    color: #1d2327;
}

/* Modal styles */
.vmo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmo-modal-content {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.vmo-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1d2327;
}

/* Affiliate form */
.vmo-affiliate-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    .vmo-dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .vmo-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vmo-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .vmo-admin-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vmo-admin-filters input,
    .vmo-admin-filters select,
    .vmo-admin-filters button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Table improvements */
.wp-list-table .plan-details {
    font-size: 12px;
    color: #646970;
    margin-top: 2px;
}

.wp-list-table .token-expiry {
    font-size: 11px;
    color: #d63638;
    margin-top: 2px;
}

.wp-list-table .installation-id {
    font-size: 11px;
    color: #646970;
}

/* Loading states */
.vmo-loading {
    opacity: 0.6;
    pointer-events: none;
}

.vmo-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: vmo-spin 1s linear infinite;
}

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

/* VMO Chat System Styling */
#vmo-chat-history {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 200px;
}

#vmo-chat-history::-webkit-scrollbar {
    width: 8px;
}

#vmo-chat-history::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#vmo-chat-history::-webkit-scrollbar-thumb {
    background: #00e2ff;
    border-radius: 4px;
}

#vmo-chat-history::-webkit-scrollbar-thumb:hover {
    background: #003054;
}

.vmo-chat-msg {
    margin: 15px 0 !important;
    animation: fadeIn 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════════════ */
/* QUICKLAUNCH HOSTING WIZARD                                */
/* ═══════════════════════════════════════════════════════════ */

.vmo-quicklaunch-modal {
    max-width: 720px !important;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px !important;
}

/* Step Indicator Bar */
.vmo-ql-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}

.vmo-ql-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: default;
}

.vmo-ql-step-dot span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vmo-ql-step-dot small {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vmo-ql-step-dot.active span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

.vmo-ql-step-dot.active small {
    color: #a5b4fc;
}

.vmo-ql-step-dot.completed span {
    background: #10b981;
    color: #fff;
}

.vmo-ql-step-dot.completed small {
    color: #6ee7b7;
}

.vmo-ql-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.08);
    margin: 0 4px;
    max-width: 32px;
    margin-bottom: 16px;
}

/* Step Content */
.vmo-ql-step {
    padding: 0;
}

.vmo-ql-step-inner {
    padding: 28px 32px;
}

.vmo-ql-step-inner h4 {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px;
}

/* Fields */
.vmo-ql-field {
    margin-bottom: 18px;
}

.vmo-ql-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.vmo-ql-field input[type="text"],
.vmo-ql-field input[type="password"],
.vmo-ql-field select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25);
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.vmo-ql-field input:focus,
.vmo-ql-field select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* Domain Input */
.vmo-ql-domain-input-wrap {
    display: flex;
    gap: 8px;
}

.vmo-ql-domain-input-wrap input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25);
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
}

.vmo-ql-domain-input-wrap button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.vmo-ql-domain-input-wrap button:hover { opacity: 0.9; }
.vmo-ql-domain-input-wrap button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Domain Result */
.vmo-ql-domain-result {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}

.vmo-ql-domain-result.success { background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.vmo-ql-domain-result.warning { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.vmo-ql-domain-result.error   { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }

/* Info Box */
.vmo-ql-info-box {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 8px;
    padding: 12px 16px;
}

.vmo-ql-info-box p {
    margin: 0;
    font-size: 13px;
    color: #93c5fd;
    line-height: 1.5;
}

/* Plans Grid */
.vmo-ql-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.vmo-ql-plan-card {
    position: relative;
    background: rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vmo-ql-plan-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-2px);
}

.vmo-ql-plan-card.selected {
    border-color: #6366f1;
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 20px rgba(99,102,241,0.15);
}

.vmo-ql-plan-card.recommended {
    border-color: rgba(99,102,241,0.25);
}

.vmo-ql-plan-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.vmo-ql-plan-badge {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.vmo-ql-plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.vmo-ql-plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
}

.vmo-ql-plan-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    text-align: left;
}

.vmo-ql-plan-specs li {
    font-size: 12px;
    color: #94a3b8;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vmo-ql-plan-specs li:last-child { border-bottom: none; }

.vmo-ql-plan-specs li::before {
    content: '✓ ';
    color: #10b981;
    font-weight: 700;
}

.vmo-ql-plan-tag {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* Email Input Wrap */
.vmo-ql-email-input-wrap {
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25);
    overflow: hidden;
}

.vmo-ql-email-input-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
}

.vmo-ql-email-at {
    color: #64748b;
    font-size: 14px;
    padding: 0 2px;
}

.vmo-ql-email-domain {
    color: #a5b4fc;
    font-size: 14px;
    padding-right: 14px;
    font-weight: 600;
}

/* Password Wrap */
.vmo-ql-password-wrap {
    display: flex;
    gap: 8px;
}

.vmo-ql-password-wrap input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25);
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
}

.vmo-ql-gen-pass {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}

.vmo-ql-gen-pass:hover { background: rgba(255,255,255,0.1); }

/* Extra Email Rows */
.vmo-ql-extra-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.vmo-ql-extra-email-row input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: #f1f5f9;
    font-size: 13px;
    outline: none;
}

.vmo-ql-extra-email-row span {
    color: #64748b;
    font-size: 13px;
}

.vmo-ql-extra-email-row button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}

.vmo-ql-add-email-btn {
    display: inline-block;
    background: none;
    border: 1px dashed rgba(255,255,255,0.15);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.vmo-ql-add-email-btn:hover {
    border-color: rgba(99,102,241,0.4);
    color: #a5b4fc;
}

/* Review Card */
.vmo-ql-review-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.vmo-ql-review-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vmo-ql-review-section:last-child { border-bottom: none; }

.vmo-ql-review-label {
    color: #94a3b8;
    font-size: 13px;
}

.vmo-ql-review-value {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 14px;
}

/* API Status */
.vmo-ql-api-status {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 18px;
}

.vmo-ql-api-status h5 {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.vmo-ql-api-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vmo-ql-api-row:last-child { border-bottom: none; }

.vmo-ql-api-icon { font-size: 16px; }

.vmo-ql-api-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.vmo-ql-api-badge.connected { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.vmo-ql-api-badge.disconnected { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* Launch / Progress */
.vmo-ql-launch-screen {
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vmo-ql-launch-rocket {
    font-size: 64px;
    margin-bottom: 12px;
    animation: qlBounce 2s infinite;
}

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

.vmo-ql-launch-btn {
    margin-top: 20px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.vmo-ql-launch-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

/* Progress Steps */
.vmo-ql-progress-steps {
    text-align: left;
    max-width: 360px;
    margin: 20px auto;
}

.vmo-ql-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.3s;
}

.vmo-ql-progress-item.active { color: #e2e8f0; }
.vmo-ql-progress-item.done { color: #6ee7b7; }

.vmo-ql-prog-icon { font-size: 18px; }
.vmo-ql-prog-label { flex: 1; }

/* Progress Bar */
.vmo-ql-progress-bar-wrap {
    width: 100%;
    max-width: 360px;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    margin: 16px auto 8px;
    overflow: hidden;
}

.vmo-ql-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.vmo-ql-progress-pct {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
}

/* Success Screen */
.vmo-ql-success-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

.vmo-ql-success-details {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 10px;
    max-width: 420px;
    margin: 20px auto;
    overflow: hidden;
}

.vmo-ql-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 13px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vmo-ql-success-row:last-child { border-bottom: none; }

.vmo-ql-success-row a {
    color: #60a5fa;
    text-decoration: none;
}

.vmo-ql-success-row code {
    color: #a5b4fc;
    font-size: 12px;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.vmo-ql-success-note {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 420px;
    margin: 16px auto;
}

.vmo-ql-success-note p {
    margin: 0;
    font-size: 12px;
    color: #93c5fd;
    line-height: 1.5;
}

.vmo-ql-success-note code {
    background: rgba(0,0,0,0.2);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
}

/* Error Screen */
.vmo-ql-error-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

/* Navigation */
.vmo-ql-nav {
    display: flex;
    align-items: center;
    padding: 16px 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.1);
}

.vmo-ql-btn-primary {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vmo-ql-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.vmo-ql-btn-secondary {
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vmo-ql-btn-secondary:hover { background: rgba(255,255,255,0.05); }

/* Responsive */
@media (max-width: 640px) {
    .vmo-ql-plans-grid { grid-template-columns: 1fr; }
    .vmo-ql-step-inner { padding: 20px 16px; }
    .vmo-ql-steps-bar { padding: 14px 12px; }
    .vmo-ql-nav { padding: 12px 16px; }
    .vmo-quicklaunch-modal { max-width: 95vw !important; }
}
