/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================
   NAVIGATION STYLES - MODERN FLOATING DESIGN
   =================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 4px 16px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.nav-logo {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    transition: width 0.3s ease;
}

.nav-brand:hover .nav-title::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navigation scroll effect */
.navbar.scrolled {
    top: 12px;
    left: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(15, 15, 15, 0.9) 100%);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 6px 20px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.08);
}

.navbar.scrolled .nav-container {
    padding: 12px 28px;
}

/* Modern Mobile Menu - Clean & Simple */
.nav-links.mobile-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: #000000;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    padding: 2rem;
}

.nav-links.mobile-open.show {
    opacity: 1;
    visibility: visible;
}

.nav-links.mobile-open .nav-link {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: none;
    width: auto;
    min-width: auto;
}

.nav-links.mobile-open .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Touch feedback for mobile menu links */
.nav-links.mobile-open .nav-link:active::after {
    width: 100%;
}

.nav-links.mobile-open .nav-link:active {
    color: #ffffff;
    transform: scale(0.98);
}

.nav-links.mobile-open .nav-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-links.mobile-open.show .nav-link {
    transform: translateY(0);
    opacity: 1;
}

.nav-links.mobile-open .nav-link.active {
    color: #ffffff;
    font-weight: 400;
}

.nav-links.mobile-open .nav-link.active::after {
    width: 100%;
}

.nav-links.mobile-open .nav-link:nth-child(1) { transition-delay: 0.1s; }
.nav-links.mobile-open .nav-link:nth-child(2) { transition-delay: 0.2s; }
.nav-links.mobile-open .nav-link:nth-child(3) { transition-delay: 0.3s; }
.nav-links.mobile-open .nav-link:nth-child(4) { transition-delay: 0.4s; }

/* Modern Hamburger Menu Button - Touch Optimized */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 16px;
    background: none;
    border: none;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Touch feedback instead of hover */
.nav-toggle:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
    margin: 2px 0;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar.menu-open {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    background: #000000 !important;
    overflow: visible !important;
    z-index: 1000 !important;
    padding-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar.menu-open .nav-brand {
    opacity: 0;
    pointer-events: none;
}

.navbar.menu-open .nav-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Responsive Design */
@media (max-width: 991px) {
    .navbar {
        top: 15px;
        left: 15px;
        right: 15px;
        border-radius: 14px;
    }
    
    .navbar.scrolled {
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 10px;
    }
    
    .nav-container {
        padding: 12px 24px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 10px 20px;
    }
    
    .nav-brand {
        gap: 12px;
    }
    
    .nav-logo {
        height: 36px;
    }
    
    .nav-title {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .navbar {
        top: 12px;
        left: 12px;
        right: 12px;
        border-radius: 12px;
    }
    
    .navbar.scrolled {
        top: 8px;
        left: 8px;
        right: 8px;
        border-radius: 8px;
    }
    
    .nav-container {
        padding: 10px 20px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 8px 16px;
    }
    
    .nav-brand {
        gap: 10px;
    }
    
    .nav-logo {
        height: 32px;
    }
    
    .nav-title {
        font-size: 1.3rem;
    }
    
        .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 575px) {
    .navbar {
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 10px;
    }
    
    .navbar.scrolled {
        top: 6px;
        left: 6px;
        right: 6px;
        border-radius: 6px;
    }
    
    .nav-container {
        padding: 8px 16px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 6px 12px;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
        .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 400px) {
    .navbar {
        top: 8px;
        left: 8px;
        right: 8px;
        border-radius: 8px;
    }
    
    .navbar.scrolled {
        top: 4px;
        left: 4px;
        right: 4px;
        border-radius: 4px;
    }
    
    .nav-container {
        padding: 6px 12px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 4px 8px;
    }
    
    .nav-logo {
        height: 24px;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Container and Layout */
.container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Screen Header */
.screen-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 120px;
}

.screen-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    width: var(--width);
    transition: width 0.8s ease;
    border-radius: 3px;
}

/* Welcome Screen */
.welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.main-title {
    margin-bottom: 40px;
}

.gradient-text {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.subtitle {
    display: block;
    font-size: 2.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 700px;
}

/* Buttons */
.cta-button, .primary-button, .secondary-button {
    padding: 18px 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 auto;
    min-width: 200px;
}

.cta-button:hover, .primary-button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.secondary-button {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Floating Elements (simplified) */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* Hide floating elements on small screens */
@media (max-width: 768px) {
    .floating-elements {
        display: none;
    }
}

.floating-card {
    position: absolute;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    text-align: center;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) { top: 20%; right: 10%; animation-delay: 0s; }
.floating-card:nth-child(2) { top: 60%; left: 10%; animation-delay: 2s; }
.floating-card:nth-child(3) { bottom: 20%; right: 20%; animation-delay: 4s; }

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

/* Animation keyframes */
@keyframes bounce-in {
    0% { transform: scale(0.3) translateY(0); opacity: 0; }
    50% { transform: scale(1.05) translateY(-10px); opacity: 0.8; }
    70% { transform: scale(0.9) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes slide-up {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.bounce-in {
    animation: bounce-in 0.8s ease-out;
}

.slide-up {
    animation: slide-up 0.6s ease-out;
}

.fade-in {
    animation: fade-in 0.6s ease-out;
}

/* Card-based Layout (matching home page style) */
.demo-card {
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    margin: 20px auto;
    max-width: 1000px;
}

.demo-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.demo-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.demo-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

/* Case Selection */
.case-selection-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.case-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Desktop-specific horizontal layout for case cards */
@media (min-width: 769px) {
    .case-cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .case-card {
        flex: 1 1 200px;
        min-height: 180px;
    }
}

.case-card {
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.case-card.highlighted {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.case-card i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.case-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.case-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Oracle Visualization - Data Detection Page */
.oracle-visualization {
    width: 100%;
}

.data-sources {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* Desktop layout for data sources */
@media (min-width: 769px) {
    .data-sources {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .source-node {
        flex: 1;
    }
    
    .flow-connector {
        flex: 0 0 60px;
        height: 4px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    .flow-connector.active {
        opacity: 1;
    }
    
    .flow-connector::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #00ff88, #00d4ff, #ff6b00);
        transform: translateX(-100%);
    }
    
    .flow-connector.active::after {
        animation: flow-animation 1.5s ease-in-out forwards;
    }
}

@keyframes flow-animation {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.source-node {
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    transition: all 0.3s ease;
}

.source-node:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.source-node i {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.source-node span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Active states with colors */
.source-node.hospital.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.source-node.hospital.active i,
.source-node.hospital.active span {
    color: #00ff88;
}

.source-node.blockchain.active {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.source-node.blockchain.active i,
.source-node.blockchain.active span {
    color: #00d4ff;
}

.source-node.hsbc.active {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.source-node.hsbc.active i,
.source-node.hsbc.active span {
    color: #ff6b00;
}

.detected-event {
    margin-top: 30px;
}

.event-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item .label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.detail-item .value {
    color: #ffffff;
    font-weight: 600;
}

/* Policy Matching */
.policy-matching {
    max-width: 900px;
    margin: 0 auto;
}

.policy-card {
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 30px;
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-header i {
    font-size: 1.5rem;
    color: #ffffff;
    margin-right: 10px;
}

.policy-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff88;
    font-weight: 600;
}

.coverage-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.coverage-item i {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 5px;
}

.coverage-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.coverage-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.coverage-amount {
    color: #00ff88;
    font-weight: 600;
}

.status-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.matching-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Desktop-specific horizontal layout for matching process */
@media (min-width: 769px) {
    .matching-process {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 20px;
    }
}

.match-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.match-step.completed {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    color: #00ff88;
}

.match-step.processing {
    border-color: #ffba00;
    background: rgba(255, 186, 0, 0.05);
    color: #ffba00;
}

.match-step i {
    font-size: 1.2rem;
}

/* Payment Flow */
.payment-flow {
    width: 100%;
    margin: 0 auto;
}

.payment-parties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Desktop-specific horizontal layout for payment parties */
@media (min-width: 769px) {
    .payment-parties {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto 30px;
        gap: 40px;
        position: relative;
    }
    
    .payment-parties::before {
        content: '→';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        color: #00ff88;
        z-index: 1;
        animation: paymentFlow 2s infinite;
    }
}

@keyframes paymentFlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.party {
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    transition: all 0.3s ease;
}

.party:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.party-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.party-logo i {
    font-size: 1.8rem;
    color: #ffffff;
}

.party h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.party p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.balance .amount {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 5px;
}

.balance .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.transaction-details {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.transaction-details h3 {
    margin-bottom: 20px;
    color: #ffffff;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Desktop-specific layout for transaction details */
@media (min-width: 769px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
    }
}

.detail-grid .detail-item {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.detail-grid .value.success {
    color: #00ff88;
}

/* Success Screen */
.success-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.success-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.success-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.summary-item {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.summary-item .label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.summary-item .value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.summary-item .value.zero {
    color: #00ff88;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Selected Case Display */
.selected-case {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.case-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.case-details i {
    color: #ffffff;
    font-size: 1.2rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .screen {
        padding: 15px;
    }

    .screen-header {
        margin-bottom: 20px;
        padding-top: 90px;
    }

    .screen-header h2 {
        font-size: 1.4rem;
    }

    .demo-card {
        padding: 30px 20px;
        margin: 15px auto;
    }

    .case-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .data-sources {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .payment-parties {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .matching-process {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .success-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .primary-button, .secondary-button, .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .screen {
        padding: 10px;
    }

    .screen-header {
        margin-bottom: 20px;
        padding-top: 90px;
    }

    .screen-header h2 {
        font-size: 1.4rem;
    }

    .demo-card {
        padding: 20px 15px;
    }

    .case-card {
        padding: 20px 15px;
        min-height: 160px;
    }

    .case-card i {
        font-size: 2.2rem;
    }

    .source-node {
        padding: 20px 15px;
    }

    .source-node i {
        font-size: 2rem;
    }

    .party {
        padding: 20px 15px;
    }

    .summary-item {
        padding: 15px;
    }

    .event-card, .policy-card, .transaction-details {
        padding: 20px 15px;
    }
}

/* ----- force full width on the two problem cards ----- */
#oracle-screen .demo-card,
#payment-screen .demo-card            {max-width:1000px;width:100%}

#oracle-screen  .oracle-visualization,
#payment-screen .payment-flow         {max-width:1000px;width:100%} 