/* ==========================================================================
   Rust Panel - Official Project Presentation & Showcase
   Design System & Styling matching Rust Panel Core UI (Actix-web / Bootstrap 5)
   ========================================================================== */

:root {
    --rp-bg-ink: #080c12;
    --rp-bg-panel: #0d1219;
    --rp-bg-canvas: #121822;
    --rp-bg-surface: #19222e;
    --rp-bg-surface-raised: #1f2a39;
    --rp-bg-surface-hover: #263446;
    --rp-border: #2b394a;
    --rp-border-light: rgba(119, 228, 255, 0.18);
    --rp-border-focus: rgba(119, 228, 255, 0.6);
    
    --rp-text-main: #f8faff;
    --rp-text-muted: #a3b7cd;
    --rp-text-sub: #c5d6e8;

    --rp-blue: #2e6bff;
    --rp-blue-glow: rgba(46, 107, 255, 0.35);
    --rp-cyan: #77e4ff;
    --rp-cyan-glow: rgba(119, 228, 255, 0.32);
    
    --rp-mint: #68e0bd;
    --rp-coral: #ff8995;
    --rp-purple: #bca2ff;
    --rp-amber: #f8be68;
    
    --rp-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rp-font-mono: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
    
    --rp-radius-sm: 8px 3px 8px 3px;
    --rp-radius-md: 14px 4px 14px 4px;
    --rp-radius-lg: 20px 6px 20px 6px;
    --rp-radius-pill: 9999px;
    
    --rp-shadow-card: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 1px rgba(255, 255, 255, 0.08);
    --rp-shadow-glow: 0 0 25px rgba(119, 228, 255, 0.18);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--rp-font-sans);
    background-color: var(--rp-bg-ink);
    color: var(--rp-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 85% 10%, rgba(46, 107, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 15% 45%, rgba(119, 228, 255, 0.09) 0%, transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(104, 224, 189, 0.07) 0%, transparent 50%),
        linear-gradient(180deg, var(--rp-bg-ink) 0%, var(--rp-bg-canvas) 100%);
    background-attachment: fixed;
}

/* Global Text Muted Override for High Contrast on Dark Backgrounds */
.text-muted {
    color: var(--rp-text-muted) !important;
}

.text-sub {
    color: var(--rp-text-sub) !important;
}

/* Custom Scrollbar matching Rust Panel */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #090d13;
}
::-webkit-scrollbar-thumb {
    background: #253344;
    border-radius: 4px;
    border: 2px solid #090d13;
}
::-webkit-scrollbar-thumb:hover {
    background: #374b63;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--rp-cyan) !important;
    outline-offset: 3px !important;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.rp-gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, var(--rp-cyan) 80%, var(--rp-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rp-cyan);
    margin-bottom: 0.75rem;
}

.rp-kicker::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--rp-cyan);
    box-shadow: 0 0 8px var(--rp-cyan);
}

/* Header & Navbar */
.rp-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(11, 16, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rp-border-light);
    padding: 0.85rem 0;
    transition: all 0.25s ease;
}

.rp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--rp-text-main);
}

.rp-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(119, 228, 255, 0.45);
    border-radius: 12px 4px 12px 4px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(46, 107, 255, 0.45), rgba(119, 228, 255, 0.12));
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: inset 0 0 16px rgba(119, 228, 255, 0.15), 0 0 12px rgba(46, 107, 255, 0.25);
}

.rp-brand-text {
    display: grid;
    line-height: 1.1;
}

.rp-brand-text strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.rp-brand-text small {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rp-cyan);
}

.rp-nav-link {
    color: var(--rp-text-sub) !important;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.18s ease;
}

.rp-nav-link:hover {
    color: #ffffff !important;
    background: rgba(119, 228, 255, 0.08);
}

/* Custom Buttons */
.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    border-radius: var(--rp-radius-sm);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.rp-btn-primary {
    background: linear-gradient(135deg, #2e6bff 0%, #1d57df 100%);
    color: #ffffff;
    border-color: rgba(119, 228, 255, 0.3);
    box-shadow: 0 4px 18px rgba(46, 107, 255, 0.35);
}

.rp-btn-primary:hover {
    background: linear-gradient(135deg, #3d77ff 0%, #2561ea 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 107, 255, 0.5), 0 0 12px rgba(119, 228, 255, 0.3);
}

.rp-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--rp-border);
}

.rp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: var(--rp-cyan);
    transform: translateY(-2px);
}

.rp-btn-accent {
    background: linear-gradient(135deg, rgba(119, 228, 255, 0.2), rgba(46, 107, 255, 0.3));
    border: 1px solid rgba(119, 228, 255, 0.55);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(119, 228, 255, 0.2);
}

.rp-btn-accent:hover {
    background: linear-gradient(135deg, rgba(119, 228, 255, 0.3), rgba(46, 107, 255, 0.42));
    border-color: var(--rp-cyan);
    color: #ffffff;
    box-shadow: 0 0 24px rgba(119, 228, 255, 0.45);
    transform: translateY(-2px);
}

.rp-btn-sm {
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
}

/* Hero Section */
.rp-hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.rp-hero-headline {
    font-size: clamp(2.3rem, 4.8vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.rp-hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    color: var(--rp-text-sub);
    line-height: 1.68;
    max-width: 600px;
    margin-bottom: 2rem;
}

.rp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.rp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--rp-radius-pill);
    background: rgba(25, 34, 46, 0.75);
    border: 1px solid var(--rp-border);
    font-size: 0.74rem;
    font-weight: 600;
    color: #dce7f5;
}

.rp-hero-badge i {
    color: var(--rp-cyan);
}

.rp-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rp-mint);
    box-shadow: 0 0 8px var(--rp-mint);
    display: inline-block;
    animation: rp-pulse 2s infinite;
}

@keyframes rp-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 224, 189, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(104, 224, 189, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 224, 189, 0); }
}

/* Terminal & Interactive Preview */
.rp-console-deck {
    background: var(--rp-bg-panel);
    border: 1px solid var(--rp-border-light);
    border-radius: var(--rp-radius-lg);
    box-shadow: var(--rp-shadow-card), 0 0 40px rgba(46, 107, 255, 0.12);
    overflow: hidden;
    position: relative;
}

.rp-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(13, 18, 25, 0.95);
    border-bottom: 1px solid var(--rp-border);
}

.rp-console-dots {
    display: flex;
    gap: 6px;
}

.rp-console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.rp-console-dots span:nth-child(1) { background: #ff5f56; }
.rp-console-dots span:nth-child(2) { background: #ffbd2e; }
.rp-console-dots span:nth-child(3) { background: #27c93f; }

.rp-console-tabs {
    display: flex;
    gap: 0.35rem;
}

.rp-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--rp-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rp-tab-btn.active {
    background: rgba(46, 107, 255, 0.22);
    border-color: rgba(119, 228, 255, 0.4);
    color: #ffffff;
}

.rp-console-body {
    padding: 1.25rem;
    font-family: var(--rp-font-mono);
    font-size: 0.78rem;
    line-height: 1.65;
    background: #090d14;
    min-height: 330px;
}

.rp-log-line {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 0.35rem;
}

.rp-log-tag {
    color: var(--rp-cyan);
    font-weight: 700;
    min-width: 90px;
}

.rp-log-ok { color: var(--rp-mint); font-weight: 700; }
.rp-log-warn { color: var(--rp-amber); font-weight: 700; }
.rp-log-info { color: var(--rp-cyan); }
.rp-log-time { color: #6d8299; }

/* Stat Highlights */
.rp-stat-card {
    background: linear-gradient(145deg, var(--rp-bg-surface), var(--rp-bg-panel));
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-md);
    padding: 1.4rem;
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.rp-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rp-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rp-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--rp-border-light);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(119, 228, 255, 0.12);
}

.rp-stat-card:hover::before {
    opacity: 1;
}

.rp-stat-val {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.rp-stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d2e1f2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rp-stat-card small {
    display: block;
    margin-top: 0.35rem;
    color: var(--rp-text-muted) !important;
    font-size: 0.78rem;
}

/* Feature Modules Cards */
.rp-feature-card {
    background: var(--rp-bg-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-md);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--rp-shadow-card);
}

.rp-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(119, 228, 255, 0.35);
    background: var(--rp-bg-surface-raised);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(119, 228, 255, 0.12);
}

.rp-feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px 4px 12px 4px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rp-icon-cyan {
    background: rgba(119, 228, 255, 0.12);
    color: var(--rp-cyan);
    border-color: rgba(119, 228, 255, 0.3);
}

.rp-icon-mint {
    background: rgba(104, 224, 189, 0.12);
    color: var(--rp-mint);
    border-color: rgba(104, 224, 189, 0.3);
}

.rp-icon-blue {
    background: rgba(46, 107, 255, 0.15);
    color: var(--rp-cyan);
    border-color: rgba(46, 107, 255, 0.35);
}

.rp-icon-coral {
    background: rgba(255, 137, 149, 0.12);
    color: var(--rp-coral);
    border-color: rgba(255, 137, 149, 0.3);
}

.rp-icon-purple {
    background: rgba(188, 162, 255, 0.12);
    color: var(--rp-purple);
    border-color: rgba(188, 162, 255, 0.3);
}

.rp-icon-amber {
    background: rgba(248, 190, 104, 0.14);
    color: var(--rp-amber);
    border-color: rgba(248, 190, 104, 0.35);
}

.rp-tag-amber {
    background: rgba(248, 190, 104, 0.14) !important;
    color: #ffe6ba !important;
    border-color: rgba(248, 190, 104, 0.35) !important;
}

.rp-feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.rp-feature-card p {
    color: var(--rp-text-sub);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.rp-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.rp-feature-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #dce7f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Architecture Comparison Section */
.rp-compare-box {
    background: var(--rp-bg-panel);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--rp-shadow-card);
}

.rp-table {
    width: 100%;
    margin-bottom: 0;
    color: var(--rp-text-main);
    border-collapse: separate;
    border-spacing: 0;
}

.rp-table th {
    background: var(--rp-bg-surface);
    color: #cad8ea;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--rp-border);
}

.rp-table th:first-child { border-top-left-radius: 8px; }
.rp-table th:last-child { border-top-right-radius: 8px; }

.rp-table td {
    padding: 1.05rem 1.25rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--rp-border);
    vertical-align: middle;
    color: #e5effa;
}

.rp-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.rp-badge-rust {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--rp-cyan);
    font-weight: 700;
}

.rp-badge-amber {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--rp-amber);
    font-weight: 700;
}

/* Port Reference Matrix */
.rp-port-card {
    background: var(--rp-bg-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.rp-port-card:hover {
    border-color: var(--rp-cyan);
    background: var(--rp-bg-surface-raised);
}

.rp-port-num {
    font-family: var(--rp-font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rp-cyan);
}

.rp-port-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
}

.rp-port-desc {
    font-size: 0.74rem;
    color: var(--rp-text-muted);
}

/* Section Header */
.rp-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.rp-section-header h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.rp-section-header p {
    color: var(--rp-text-sub);
    font-size: 1rem;
}

/* CTA Card */
.rp-cta-banner {
    position: relative;
    background: linear-gradient(135deg, #15202e 0%, #0d141e 100%);
    border: 1px solid rgba(119, 228, 255, 0.35);
    border-radius: var(--rp-radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(46, 107, 255, 0.18);
    overflow: hidden;
}

.rp-cta-banner::after {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(119, 228, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.rp-cta-banner .text-sub {
    color: #dce7f5 !important;
}

.rp-cta-banner .rp-cta-meta {
    color: #b0c4db;
    font-size: 0.82rem;
}

.rp-cta-banner .rp-cta-meta strong {
    color: #ffffff;
}

/* ==========================================================================
   Footer Component with High-Contrast Typography
   ========================================================================== */

.rp-footer {
    background: #0a0e14;
    border-top: 1px solid var(--rp-border);
    padding: 2.75rem 0 2.25rem;
    color: #a8bcd2;
    font-size: 0.82rem;
    margin-top: 5rem;
}

.rp-footer-title {
    color: #ffffff;
    font-weight: 750;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
}

.rp-footer-subtitle {
    color: #a8bcd2;
    font-size: 0.76rem;
    margin-top: 0.15rem;
}

.rp-footer-clock {
    color: #77e4ff;
    font-family: var(--rp-font-mono);
    font-size: 0.82rem;
    font-weight: 600;
}

.rp-footer-status {
    color: #bbf3e0;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rp-footer-status i {
    color: var(--rp-mint);
}

.rp-footer a {
    color: #c5d7ed;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rp-footer a:hover {
    color: var(--rp-cyan);
}

.rp-footer-separator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rp-cyan);
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--rp-cyan);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .rp-hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .rp-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .rp-hero-badges {
        justify-content: center;
    }
    
    .rp-console-deck {
        margin-top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Request Access Modal & Form Styling
   ========================================================================== */

.rp-modal .modal-content {
    background: var(--rp-bg-panel);
    border: 1px solid var(--rp-border-light);
    border-radius: var(--rp-radius-lg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(119, 228, 255, 0.15);
    color: var(--rp-text-main);
    overflow: hidden;
}

.rp-modal .modal-header {
    background: var(--rp-bg-surface);
    border-bottom: 1px solid var(--rp-border);
    padding: 1.25rem 1.5rem;
}

.rp-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 750;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.rp-modal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.rp-modal .btn-close:hover {
    opacity: 1;
}

.rp-modal .modal-body {
    padding: 1.5rem;
    background: var(--rp-bg-panel);
}

.rp-modal .modal-footer {
    background: var(--rp-bg-surface);
    border-top: 1px solid var(--rp-border);
    padding: 1rem 1.5rem;
}

/* Form Controls */
.rp-form-group {
    margin-bottom: 1.15rem;
}

.rp-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #dce7f5;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.rp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rp-input-icon {
    position: absolute;
    left: 1rem;
    color: #8fa4bd;
    font-size: 0.88rem;
    pointer-events: none;
    transition: color 0.18s ease;
}

.rp-form-control, .rp-form-select {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background-color: #111721;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    color: #ffffff;
    font-size: 0.88rem;
    font-family: var(--rp-font-sans);
    transition: all 0.2s ease;
}

.rp-form-control:focus, .rp-form-select:focus {
    background-color: #161e2b;
    border-color: var(--rp-cyan);
    box-shadow: 0 0 0 3px rgba(119, 228, 255, 0.18);
    outline: none;
}

.rp-input-wrapper:focus-within .rp-input-icon {
    color: var(--rp-cyan);
}

.rp-form-control::placeholder {
    color: #63778f;
}

.rp-form-select {
    padding-left: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2377e4ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 10px;
    color-scheme: dark;
}

/* Captcha & Anti-Bot Card */
.rp-captcha-box {
    background: var(--rp-bg-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
}

.rp-captcha-badge {
    font-family: var(--rp-font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    background: #090d14;
    border: 1px solid rgba(119, 228, 255, 0.35);
    border-radius: 6px;
    color: var(--rp-cyan);
    letter-spacing: 0.05em;
}

.rp-captcha-refresh {
    background: transparent;
    border: 1px solid var(--rp-border);
    color: #a3b7cd;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rp-captcha-refresh:hover {
    color: var(--rp-cyan);
    border-color: var(--rp-cyan);
    background: rgba(119, 228, 255, 0.08);
}

.rp-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--rp-radius-sm);
    font-size: 0.84rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rp-alert-danger {
    background: rgba(255, 111, 126, 0.18);
    border: 1px solid rgba(255, 111, 126, 0.4);
    color: #ffc4cb;
}

.rp-alert-success {
    background: rgba(104, 224, 189, 0.18);
    border: 1px solid rgba(104, 224, 189, 0.4);
    color: #cbf9ea;
}

/* Success View inside Modal */
.rp-success-view {
    text-align: center;
    padding: 2rem 1rem;
}

.rp-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(104, 224, 189, 0.18);
    border: 1px solid rgba(104, 224, 189, 0.45);
    color: var(--rp-mint);
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 25px rgba(104, 224, 189, 0.3);
}
