/**
 * Estilos — Portal de Iniciação de Embaixadores (Guardião do Portal)
 * Escopado em #roosisia-amb-app (.ramb-*)
 */

#roosisia-amb-app.ramb-wrapper {
    position: relative;
    max-width: 820px;
    margin: 36px auto;
    padding: 36px 28px;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(88, 28, 135, 0.28), transparent 55%),
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.18), transparent 55%),
                #070b14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #e2e8f0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

#roosisia-amb-app * {
    box-sizing: border-box;
}

.ramb-header {
    text-align: center;
    margin-bottom: 28px;
}

.ramb-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #22d3ee;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.ramb-title {
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    line-height: 1.25;
    margin: 0 0 12px;
    color: #f8fafc;
}

.ramb-highlight {
    background: linear-gradient(90deg, #22d3ee, #a855f7, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ramb-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

.ramb-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 28px 24px;
    backdrop-filter: blur(12px);
}

.ramb-center {
    text-align: center;
}

.ramb-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.ramb-icon-orb {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.28);
}

.ramb-orb-emerald {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.28);
}

.ramb-muted {
    color: #94a3b8;
    font-size: 0.94rem;
}

.ramb-progress-box {
    margin: 22px 0;
    padding: 18px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.ramb-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.ramb-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ramb-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #a855f7, #f59e0b);
    transition: width 0.5s ease;
}

.ramb-form .ramb-field {
    margin-bottom: 16px;
}

.ramb-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.ramb-form input[type="text"],
.ramb-form input[type="url"],
.ramb-form input[type="email"],
.ramb-form input[type="password"],
.ramb-form select,
.ramb-form textarea,
.ramb-answer-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #f8fafc;
    font-size: 0.96rem;
    transition: border-color 0.2s;
}

.ramb-form input:focus,
.ramb-form select:focus,
.ramb-form textarea:focus,
.ramb-answer-form textarea:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.ramb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 640px) {
    .ramb-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ramb-ethics-box {
    margin: 20px 0;
    padding: 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.ramb-ethics-box h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #fbbf24;
}

.ramb-ethics-box ul {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.55;
}

.ramb-ethics-box li {
    margin-bottom: 6px;
}

.ramb-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    margin-top: 10px;
    cursor: pointer;
}

.ramb-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #22d3ee;
}

.ramb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.ramb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.ramb-btn:hover {
    transform: translateY(-1px);
}

.ramb-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ramb-btn-primary {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}

.ramb-btn-outline {
    background: transparent;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.ramb-btn-full {
    width: 100%;
}

.ramb-alert-info {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #67e8f9;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.ramb-error {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.9rem;
    margin: 10px 0;
}

/* Entrevista Conversacional */
.ramb-interview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.ramb-guardian-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ramb-guardian-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    font-size: 1.3rem;
}

.ramb-guardian-badge small {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
}

.ramb-step-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
}

.ramb-chat-log {
    max-height: 420px;
    overflow-y: auto;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ramb-msg {
    max-width: 88%;
    padding: 13px 16px;
    border-radius: 16px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.ramb-msg-guardian {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.28);
    color: #f1f5f9;
}

.ramb-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #f8fafc;
}

.ramb-answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ramb-tier-box {
    margin: 18px auto;
    max-width: 560px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    text-align: left;
}

.ramb-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 3px solid rgba(34, 211, 238, 0.2);
    border-top-color: #22d3ee;
    animation: rambSpin 0.85s linear infinite;
}

@keyframes rambSpin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────
   Gradiente Vibracional Quântico no Título (Padrão Print 3)
   Cores: Ciano (#22d3ee) -> Roxo (#a855f7) -> Rosa (#ec4899) -> Âmbar/Dourado (#f59e0b)
   ───────────────────────────────────────────────────────────── */
.embaixadores-title-gradient,
.embaixadores-quanticos-container h1 {
    font-size: clamp(2rem, 4.2vw, 2.8rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    background: linear-gradient(90deg, #22d3ee 0%, #a855f7 38%, #ec4899 70%, #f59e0b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block !important;
    margin: 0 auto 16px !important;
    text-shadow: none !important;
}

/* ─────────────────────────────────────────────────────────────
   Visualizador de Senha (Toggle Mostrar/Ocultar Senha)
   ───────────────────────────────────────────────────────────── */
.ramb-password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.ramb-password-wrapper input {
    padding-right: 46px !important;
}

.ramb-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    line-height: 1;
    z-index: 2;
}

.ramb-toggle-password:hover {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.12);
}

.ramb-toggle-password:active {
    transform: translateY(-50%) scale(0.92);
}

.ramb-toggle-password:focus-visible {
    outline: 2px solid #22d3ee;
    color: #22d3ee;
}

.ramb-toggle-password svg {
    display: block;
    pointer-events: none;
}

