/* ReffersPay Custom Styles - Enhanced & Polished */

/* ============================================
   BASE STYLES & LIGHT / DARK THEME SYSTEM
   ============================================ */

/* LIGHT MODE IS DEFAULT */
:root {
    --color-bg: #F8FAFC;
    --color-bg-secondary: #F1F5F9;
    --color-bg-alt: #FFFFFF;
    --color-surface: rgba(255, 255, 255, 0.9);
    --color-border: rgba(226, 232, 240, 0.85);
    --color-border-hover: rgba(203, 213, 225, 1);
    --color-text: #0F172A;
    --color-text-muted: #64748B;
    --color-card-bg: #FFFFFF;
    --color-nav-bg: rgba(255, 255, 255, 0.88);
    --color-footer-bg: #F8FAFC;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

    /* Gradient accents */
    --gradient-green: #10B981;
    --gradient-blue: #2563EB;
    --gradient-purple: #7C3AED;
    --gradient-pink: #DB2777;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* DARK MODE (WHEN class="dark" on html) */
html.dark {
    --color-bg: #0B0F19;
    --color-bg-secondary: #060911;
    --color-bg-alt: #111827;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.18);
    --color-text: #F3F4F6;
    --color-text-muted: #9CA3AF;
    --color-card-bg: rgba(17, 24, 39, 0.7);
    --color-nav-bg: rgba(11, 15, 25, 0.88);
    --color-footer-bg: #060911;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.7);

    --gradient-green: #10B981;
    --gradient-blue: #3B82F6;
    --gradient-purple: #8B5CF6;
    --gradient-pink: #EC4899;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Enhanced Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

/* Navigation Scrolled State */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
}

html.dark .nav-scrolled {
    background-color: rgba(11, 15, 25, 0.95) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   GLASSMORPHISM & CARDS (LIGHT & DARK ADAPTIVE)
   ============================================ */

.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: var(--card-shadow-hover);
}

/* Logo styling with adaptive drop shadow for dark mode */
.fincorp-logo-img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
    transition: transform 0.2s ease, filter 0.2s ease;
}

html.dark .fincorp-logo-img {
    filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.fincorp-logo-img:hover {
    transform: scale(1.02);
}


/* ============================================
   TEXT & GRADIENTS
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg,
            var(--gradient-green) 0%,
            var(--gradient-blue) 50%,
            var(--gradient-purple) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.decorative-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Geometric patterns */
.pattern-dots {
    background-image: radial-gradient(circle,
            rgba(0, 0, 0, 0.06) 1px,
            transparent 1px);
    background-size: 24px 24px;
}

html.dark .pattern-dots {
    background-image: radial-gradient(circle,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px);
}

.pattern-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

html.dark .pattern-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ============================================
   SMOOTH SCROLL & ANIMATIONS
   ============================================ */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
    }
}

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeInUp 0.8s var(--transition-smooth) both;
}

.fade-in-down {
    animation: fadeInDown 0.8s var(--transition-smooth) both;
}

.fade-in-left {
    animation: fadeInLeft 0.8s var(--transition-smooth) both;
}

.fade-in-right {
    animation: fadeInRight 0.8s var(--transition-smooth) both;
}

.scale-in {
    animation: scaleIn 0.6s var(--transition-spring) both;
}

/* Stagger delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    display: none;
    animation: slideDown 0.3s var(--transition-smooth);
}

.mobile-menu.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            var(--gradient-blue),
            var(--gradient-purple));
    border-radius: 6px;
    border: 2px solid var(--color-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            var(--gradient-green),
            var(--gradient-blue));
}

/* ============================================
   ENHANCED BUTTONS & LINKS
   ============================================ */

.btn-gradient {
    position: relative;
    background: linear-gradient(135deg,
            var(--gradient-green),
            var(--gradient-blue));
    background-size: 200% 200%;
    transition: all 0.4s var(--transition-smooth);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            var(--gradient-blue),
            var(--gradient-purple));
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient>* {
    position: relative;
    z-index: 1;
}

/* Link hover effects */
a {
    position: relative;
    transition: color 0.3s var(--transition-smooth);
}

nav a:not(.btn-gradient)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--gradient-green),
            var(--gradient-blue));
    transition: width 0.3s var(--transition-smooth);
}

nav a:not(.btn-gradient):hover::after {
    width: 100%;
}

/* ============================================
   ENHANCED CARDS & FEATURES
   ============================================ */

.feature-card {
    transition: all 0.4s var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.feature-icon {
    transition: all 0.5s var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.15);
}

/* Step circles */
.step-circle {
    position: relative;
    transition: all 0.4s var(--transition-smooth);
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s var(--transition-smooth);
}

.step-circle:hover::before {
    opacity: 0.6;
}

/* ============================================
   FAQ ENHANCEMENTS
   ============================================ */

details summary {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s var(--transition-smooth);
}

details summary:hover {
    background: rgba(0, 0, 0, 0.02);
}

html.dark details summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

details[open] summary {
    border-bottom: 1px solid var(--color-border);
}

details summary::marker {
    display: none;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badge {
    transition: all 0.3s var(--transition-smooth);
}

.trust-badge:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.04);
}

html.dark .trust-badge:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   LOADING & SKELETON STATES
   ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.08) 40px,
            rgba(0, 0, 0, 0.04) 80px);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

html.dark .skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.08) 40px,
            rgba(255, 255, 255, 0.03) 80px);
    background-size: 1000px 100%;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.backdrop-blur-glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.text-shadow-glow {
    text-shadow: 0 0 20px currentColor;
}

.border-gradient {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--color-dark), var(--color-dark)) padding-box,
        linear-gradient(135deg, var(--gradient-green), var(--gradient-blue)) border-box;
}

/* Pulse animation for CTAs */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

.pulse-on-hover:hover {
    animation: pulse-glow 1.5s infinite;
}

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */

@media (max-width: 768px) {
    .glass-card:hover {
        transform: translateY(-2px);
    }

    .feature-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .glass-card,
    .feature-card,
    .btn-gradient,
    a {
        transition: none;
    }

    .decorative-blob {
        animation: none;
    }
}

/* ============================================
   FINCORP EXTENSIONS: TICKERS, CALCULATORS, SIMULATORS
   ============================================ */

/* Top Live FinTech Marquee */
.fincorp-ticker-bar {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.07) 0%, rgba(59, 130, 246, 0.07) 50%, rgba(139, 92, 246, 0.07) 100%);
    border-bottom: 1px solid var(--color-border);
}

html.dark .fincorp-ticker-bar {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.12) 50%, rgba(139, 92, 246, 0.12) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

/* Range Slider Styling for Live Financial Calculators */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(16, 185, 129, 0.3) 100%);
    outline: none;
    transition: background 0.3s ease;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    border: 3px solid #0B0F19;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.8);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    border: 3px solid #0B0F19;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    cursor: pointer;
}

/* Category Filter Pills */
.filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-text-muted);
}

.filter-pill:hover {
    background: #f1f5f9;
    color: var(--color-text);
    border-color: var(--color-border-hover);
}

.filter-pill.active {
    background: linear-gradient(135deg, #10B981, #2563EB);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

html.dark .filter-pill {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #9CA3AF;
}

html.dark .filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

/* FinCorp Neo-Banking Virtual Card */
.fincorp-neo-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.15);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.fincorp-neo-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Interactive Simulator Step */
.sim-chip {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.25s ease;
}

.sim-chip:hover, .sim-chip.active {
    background: rgba(37, 99, 235, 0.08);
    border-color: #2563EB;
    color: #2563EB;
}

html.dark .sim-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9CA3AF;
}

html.dark .sim-chip:hover, html.dark .sim-chip.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
    color: #60A5FA;
}

/* Dropdown styling */
.nav-dropdown {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 290px;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -4px rgba(15, 23, 42, 0.12), 0 8px 16px -2px rgba(15, 23, 42, 0.06);
    padding: 0.75rem;
    z-index: 60;
}

.nav-dropdown.dropdown-right .nav-dropdown-content {
    left: auto;
    right: 0;
}

.nav-dropdown-content a {
    color: #0f172a;
}

.nav-dropdown-content a:hover {
    background: #f8fafc;
}

html.dark .nav-dropdown-content {
    background: rgba(11, 15, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

html.dark .nav-dropdown-content a {
    color: #f1f5f9;
}

html.dark .nav-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transaction simulated progress bar */
.sim-progress-bar {
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    transition: width 0.6s ease;
    border-radius: 9999px;
}

/* ============================================
   LEGAL & POLICY DOCUMENT STYLES
   ============================================ */

.legal-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.legal-toc-item {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

.legal-toc-item:hover, .legal-toc-item.active {
    color: #2563EB;
    border-left-color: #2563EB;
    background: rgba(37, 99, 235, 0.06);
    font-weight: 600;
}

html.dark .legal-toc-item:hover, html.dark .legal-toc-item.active {
    color: #60A5FA;
    border-left-color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
}

.legal-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-card-bg);
    transition: all 0.2s ease;
}

.legal-nav-pill:hover {
    border-color: #2563EB;
    color: #2563EB;
    transform: translateY(-1px);
}

html.dark .legal-nav-pill:hover {
    border-color: #3B82F6;
    color: #60A5FA;
}

.legal-nav-pill.active {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border-color: #2563EB;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.legal-callout {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #2563EB;
    background: rgba(37, 99, 235, 0.05);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

html.dark .legal-callout {
    background: rgba(37, 99, 235, 0.1);
    border-left-color: #3B82F6;
}

.legal-callout-warning {
    border-left-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

html.dark .legal-callout-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #F87171;
}

.legal-clause-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 0.75rem;
}

html.dark .legal-clause-number {
    background: rgba(59, 130, 246, 0.18);
    color: #60A5FA;
}

@media print {
    .fincorp-ticker-bar, .fincorp-nav, .theme-toggle-btn, .legal-sidebar, footer, .no-print {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }
    .legal-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   App-style home: phone preview, service grid, how-it-works, mobile tab bar
   ========================================================================== */
.app-phone { position: relative; border-radius: 2.6rem; padding: 10px; background: linear-gradient(160deg, #1e293b, #0b1220); box-shadow: 0 40px 70px -24px rgba(2, 6, 23, .65), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.app-phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 0 0 14px 14px; background: #0b1220; z-index: 3; }
.app-screen { position: relative; border-radius: 2.1rem; overflow: hidden; background: #f4f7fb; padding: 12px 14px 74px; min-height: 560px; color: #0f172a; font-family: 'Outfit', sans-serif; }
.dark .app-screen { background: #0f172a; color: #e5e9f0; }
.app-status { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 2px 6px 10px; }
.app-status__icons { letter-spacing: 1px; opacity: .8; }
.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-head__logo { height: 28px; width: auto; object-fit: contain; }
.app-head__hi { flex: 1; line-height: 1.15; }
.app-head__hi small { display: block; font-size: 10px; opacity: .6; }
.app-head__hi b { font-size: 14px; }
.app-bell { position: relative; font-size: 14px; }
.app-bell i { position: absolute; top: -1px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }
.app-wallet { border-radius: 20px; padding: 14px; color: #fff; background: linear-gradient(135deg, #059669 0%, #0d9488 45%, #2563eb 100%); box-shadow: 0 16px 28px -16px rgba(5, 150, 105, .8); }
.app-wallet small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 700; }
.app-wallet__bal { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 2px 0 8px; font-family: 'JetBrains Mono', monospace; }
.app-wallet__bal span { font-size: 16px; opacity: .8; }
.app-wallet__row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.app-chip { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.app-chip--up { background: rgba(16, 185, 129, .35); }
.app-wallet__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-wallet__actions span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.app-wallet__actions i { font-style: normal; font-size: 14px; line-height: 1; }
.app-sec { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin: 14px 2px 8px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.app-grid div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.dark .app-grid div { background: rgba(255, 255, 255, .06); }
.app-grid img { width: 28px; height: 28px; object-fit: contain; }
.app-grid span { font-size: 9px; font-weight: 700; }
.app-tx { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.dark .app-tx { background: rgba(255, 255, 255, .06); }
.app-tx > div { flex: 1; line-height: 1.2; }
.app-tx b { display: block; font-size: 12px; }
.app-tx small { font-size: 10px; opacity: .6; }
.app-tx em { font-style: normal; font-size: 12px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.app-tx__ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: rgba(37, 99, 235, .12); color: #2563eb; }
.app-tx__ico--ok { background: rgba(16, 185, 129, .15); color: #059669; }
.app-tabs { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .35); }
.dark .app-tabs { background: #1e293b; }
.app-tabs span { display: flex; flex-direction: column; align-items: center; font-size: 15px; line-height: 1.1; opacity: .5; }
.app-tabs span.on { opacity: 1; color: #059669; }
.app-tabs small { font-size: 9px; font-weight: 700; margin-top: 2px; }
.app-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 16px 30px -16px rgba(15, 23, 42, .5); font-size: 12px; animation: appFloat 5s ease-in-out infinite; }
.app-float b { display: block; font-size: 12px; color: #0f172a; }
.dark .app-float b { color: #fff; }
.app-float small { font-size: 10px; opacity: .65; }
.app-float__ico { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.app-float--a { top: 90px; left: -46px; }
.app-float--b { bottom: 110px; right: -40px; animation-delay: 1.6s; }
@keyframes appFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1100px) { .app-float--a { left: -12px; } .app-float--b { right: -12px; } }
@media (max-width: 420px) { .app-float { display: none; } }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; max-width: 1000px; margin: 0 auto; }
.svc-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 8px 14px; border-radius: 20px; text-align: center; text-decoration: none;
    background: #fff; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 1px 3px rgba(15, 23, 42, .05); transition: transform .2s, box-shadow .2s, border-color .2s; color: #0f172a; }
.dark .svc-tile { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #f1f5f9; }
a.svc-tile:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, .55); box-shadow: 0 18px 30px -18px rgba(5, 150, 105, .75); }
.svc-tile img { width: 52px; height: 52px; object-fit: contain; }
.svc-tile span { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.svc-tile b { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.dark .svc-tile b { background: rgba(255, 255, 255, .1); color: #cbd5e1; }
.svc-tile.is-soon { opacity: .6; }
.svc-tile.is-soon img { filter: grayscale(.7); }

.how-step { position: relative; padding: 26px 22px 22px; border-radius: 24px; border: 1px solid rgba(15, 23, 42, .08); }
.dark .how-step { border-color: rgba(255, 255, 255, .1); }
.how-step__n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #10b981, #2563eb); margin-bottom: 14px; }
.how-step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; color: #0f172a; }
.dark .how-step h3 { color: #fff; }
.how-step p { font-size: .92rem; color: #475569; margin-bottom: 14px; }
.dark .how-step p { color: #cbd5e1; }
.how-step a { font-size: .85rem; font-weight: 700; color: #059669; text-decoration: none; }

.m-tabbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px; border-radius: 22px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 18px 36px -14px rgba(15, 23, 42, .45); }
.dark .m-tabbar { background: rgba(15, 23, 42, .92); border-color: rgba(255, 255, 255, .1); }
.m-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: #64748b; font-size: 10px; font-weight: 700; }
.m-tabbar svg { width: 22px; height: 22px; }
.m-tabbar a.on { color: #059669; }
.m-tabbar__cta { margin-top: -22px; color: #fff !important; }
.m-tabbar__cta svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #2563eb); box-shadow: 0 12px 22px -8px rgba(37, 99, 235, .7); }
.m-tabbar__cta span { color: #059669; }
@media (max-width: 1023px) { body { padding-bottom: 84px; } }
