/* ====================================
   Pro Area - Additional Styles
   ==================================== */

/* --- Login Gate --- */
.pro-login-gate {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    animation: fadeIn 0.4s ease;
}

.pro-login-gate.hidden { display: none; }

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

.login-card {
    background: var(--gradient-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card), 0 0 60px rgba(59, 130, 246, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.login-card .step-hidden { display: none; }

.login-card input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    margin-bottom: 16px;
}

.login-card input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-card .btn { width: 100%; padding: 14px; font-size: 0.95rem; }

.success-check {
    display: inline-block;
    width: 48px; height: 48px;
    background: var(--gradient-success);
    border-radius: 50%;
    line-height: 48px;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* --- Header Nav --- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a, .header-nav button {
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.header-nav a:hover, .header-nav button:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

/* --- Balance Pill --- */
.balance-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* --- Gate Selector --- */
.gate-section { padding: 20px 24px; }

.gate-select-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.gate-select-wrapper .form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gate-select-wrapper label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gate-select-wrapper select {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    height: 40px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.gate-select-wrapper select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.gate-select-wrapper select option {
    background: #111827;
    color: var(--text-primary);
}

.gate-info-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-sm);
    display: none;
}

.gate-info-box.show { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

.gate-info-box .gate-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.gate-info-box .gate-cost {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Workflow Buttons --- */
.workflow-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-generate-only {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-generate-only:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-full-pipeline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-full-pipeline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-generate-only:disabled,
.btn-full-pipeline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Pipeline Progress --- */
.pipeline-progress {
    padding: 20px 24px;
    display: none;
}

.pipeline-progress.show { display: block; }

.pipeline-steps {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    flex: 1;
    min-width: 180px;
}

.pipeline-step.active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.06);
}

.pipeline-step.done {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.06);
}

.pipeline-step .step-icon { font-size: 1.1rem; }

/* --- Generated Cards Box --- */
.generated-cards-box {
    padding: 20px 24px;
    display: none;
}

.generated-cards-box.show { display: block; }

.cards-textarea {
    width: 100%;
    min-height: 150px;
    max-height: 300px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    resize: vertical;
    outline: none;
}

.cards-textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.btn-copy-cards {
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-cards:hover {
    background: rgba(16, 185, 129, 0.25);
}

/* --- Pro Results --- */
.pro-results {
    padding: 24px;
    display: none;
}

.pro-results.show { display: block; animation: slideUp 0.4s ease; }

.pro-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pro-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.pro-stat.s-total { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.pro-stat.s-live { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.pro-stat.s-die { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }
.pro-stat.s-cvv { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); }

/* --- Export Button --- */
.btn-export-live {
    padding: 10px 20px;
    background: var(--gradient-success);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-export-live:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-export-live:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* --- Row Colors --- */
.row-live { background: rgba(16, 185, 129, 0.04); }
.row-die { background: rgba(239, 68, 68, 0.03); }

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.78rem;
    font-family: var(--font-main);
}

.status-die {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.78rem;
    font-family: var(--font-main);
}

.status-pending {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-main);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .gate-select-wrapper { flex-direction: column; }
    .workflow-buttons { flex-direction: column; }
    .workflow-buttons button { width: 100%; justify-content: center; }
    .pipeline-steps { flex-direction: column; }
    .header-nav { gap: 4px; }
    .header-nav a, .header-nav button { padding: 4px 8px; font-size: 0.7rem; }
    .pro-stats { flex-wrap: wrap; }
    .balance-pill { font-size: 0.75rem; padding: 4px 10px; }
}
