Rank_Noir / static /modal.css
Juek's picture
Upload 5 files
ceb218a verified
Raw History Blame Contribute Delete
9.03 kB
/* ══════════════════════════════════════════════
RankNoir β€” Modal Onboarding Flow
Prefixed: rn- (no conflicts with existing CSS)
══════════════════════════════════════════════ */
/* ── Overlay ─────────────────────────────────── */
.rn-overlay {
display: none;
position: fixed;
inset: 0;
z-index: 9000;
background: rgba(0, 0, 0, 0.72);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
align-items: center;
justify-content: center;
padding: 1rem;
}
.rn-overlay.rn-active {
display: flex;
animation: rn-fade-in 0.22s ease forwards;
}
@keyframes rn-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* ── Modal Box ───────────────────────────────── */
.rn-modal {
background: linear-gradient(145deg, rgba(20, 20, 28, 0.96) 0%, rgba(12, 12, 18, 0.98) 100%);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 20px;
padding: 2.4rem 2.4rem 2rem;
width: 100%;
max-width: 460px;
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.04),
0 32px 64px rgba(0, 0, 0, 0.6),
0 0 80px rgba(255, 90, 31, 0.06);
position: relative;
animation: rn-scale-in 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes rn-scale-in {
from {
transform: scale(0.88) translateY(12px);
opacity: 0;
}
to {
transform: scale(1) translateY(0);
opacity: 1;
}
}
/* ── Close Button ────────────────────────────── */
.rn-close {
position: absolute;
top: 1rem;
right: 1.1rem;
background: none;
border: none;
color: rgba(255, 255, 255, 0.35);
font-size: 1.3rem;
cursor: pointer;
line-height: 1;
transition: color 0.18s;
padding: 0.2rem 0.4rem;
}
.rn-close:hover {
color: rgba(255, 255, 255, 0.8);
}
/* ── Modal Icon / Logo ───────────────────────── */
.rn-modal-icon {
width: 46px;
height: 46px;
border-radius: 12px;
background: linear-gradient(135deg, #ff5a1f 0%, #e8360a 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
margin-bottom: 1.4rem;
box-shadow: 0 0 24px rgba(255, 90, 31, 0.36);
}
/* ── Typography ──────────────────────────────── */
.rn-modal-title {
font-family: 'Syne', sans-serif;
font-size: 1.5rem;
font-weight: 700;
color: #fff;
margin: 0 0 0.5rem;
line-height: 1.2;
}
.rn-modal-desc {
font-family: 'DM Sans', sans-serif;
font-size: 0.96rem;
color: rgba(255, 255, 255, 0.52);
margin: 0 0 1.8rem;
line-height: 1.55;
}
/* ── Step Badge ──────────────────────────────── */
.rn-step-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-family: 'DM Sans', sans-serif;
font-size: 0.72rem;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #ff5a1f;
background: rgba(255, 90, 31, 0.1);
border: 1px solid rgba(255, 90, 31, 0.22);
border-radius: 100px;
padding: 0.28rem 0.75rem;
margin-bottom: 1rem;
}
.rn-step-badge::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: #ff5a1f;
box-shadow: 0 0 6px #ff5a1f;
animation: rn-ping 1.6s ease-in-out infinite;
}
@keyframes rn-ping {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.3;
}
}
/* ── Primary Button ──────────────────────────── */
.rn-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
width: 100%;
padding: 0.88rem 1.5rem;
border-radius: 10px;
border: none;
font-family: 'Syne', sans-serif;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
text-decoration: none;
}
.rn-btn-primary {
background: linear-gradient(135deg, #ff5a1f 0%, #e8360a 100%);
color: #fff;
box-shadow: 0 4px 24px rgba(255, 90, 31, 0.35);
}
.rn-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 32px rgba(255, 90, 31, 0.5);
}
.rn-btn-primary:active {
transform: translateY(0);
}
/* ── Input Fields ────────────────────────────── */
.rn-field-group {
display: flex;
flex-direction: column;
gap: 0.85rem;
margin-bottom: 1.6rem;
}
.rn-field {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.rn-field label {
font-family: 'DM Sans', sans-serif;
font-size: 0.78rem;
font-weight: 500;
color: rgba(255, 255, 255, 0.45);
letter-spacing: 0.06em;
text-transform: uppercase;
}
.rn-field input {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 9px;
color: #fff;
font-family: 'DM Sans', sans-serif;
font-size: 0.93rem;
padding: 0.72rem 0.95rem;
outline: none;
transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
width: 100%;
box-sizing: border-box;
}
.rn-field input::placeholder {
color: rgba(255, 255, 255, 0.22);
}
.rn-field input:focus {
border-color: rgba(255, 90, 31, 0.55);
background: rgba(255, 90, 31, 0.04);
box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
}
/* ── Divider ─────────────────────────────────── */
.rn-divider {
height: 1px;
background: rgba(255, 255, 255, 0.07);
margin: 1.4rem 0;
}
/* ── Progress dots ───────────────────────────── */
.rn-progress {
display: flex;
align-items: center;
gap: 0.4rem;
margin-top: 1.4rem;
justify-content: center;
}
.rn-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.18);
transition: background 0.3s, transform 0.3s;
}
.rn-dot.rn-dot-active {
background: #ff5a1f;
transform: scale(1.3);
box-shadow: 0 0 8px rgba(255, 90, 31, 0.6);
}
/* ── GitHub Row (Modal 1) ─────────────────────── */
.rn-gh-row {
display: flex;
align-items: center;
gap: 1rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 12px;
padding: 1rem 1.1rem;
margin-bottom: 1.6rem;
}
.rn-gh-icon {
font-size: 1.6rem;
flex-shrink: 0;
}
.rn-gh-text strong {
display: block;
font-family: 'Syne', sans-serif;
font-size: 0.9rem;
font-weight: 600;
color: #fff;
margin-bottom: 0.15rem;
}
.rn-gh-text span {
font-family: 'DM Sans', sans-serif;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.4);
}
/* ── Success Popup ───────────────────────────── */
.rn-success-popup {
position: fixed;
bottom: 2rem;
left: 50%;
transform: translateX(-50%) translateY(20px);
z-index: 10000;
background: linear-gradient(135deg, rgba(22, 163, 74, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%);
border: 1px solid rgba(34, 197, 94, 0.35);
border-radius: 100px;
padding: 0.75rem 1.6rem;
display: flex;
align-items: center;
gap: 0.6rem;
font-family: 'DM Sans', sans-serif;
font-size: 0.92rem;
font-weight: 500;
color: #86efac;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 32px rgba(34, 197, 94, 0.15);
backdrop-filter: blur(12px);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s, transform 0.3s;
white-space: nowrap;
}
.rn-success-popup.rn-show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.rn-success-popup::before {
content: 'βœ“';
width: 22px;
height: 22px;
border-radius: 50%;
background: rgba(34, 197, 94, 0.25);
border: 1px solid rgba(34, 197, 94, 0.4);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
flex-shrink: 0;
font-weight: 700;
}
/* ── Responsive ──────────────────────────────── */
@media (max-width: 500px) {
.rn-modal {
padding: 1.8rem 1.4rem 1.4rem;
border-radius: 16px;
}
.rn-modal-title {
font-size: 1.25rem;
}
}
.hidden{
display: none;
}
.show{
display: flex;
}
.btn-refresh {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
cursor: pointer;
transition: all 0.25s ease;
}
.btn-refresh:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
}
.btn-refresh:active {
transform: scale(0.96);
}