 :root {
            /* Nani Fintech Plus Brand Colors */
            --brand-primary: 245 101% 59%; /* Modern blue */
            --brand-secondary: 262 83% 58%; /* Purple accent */
            --brand-accent: 217 91% 60%; /* Light blue */
            --brand-gradient: linear-gradient(135deg, hsl(245, 101%, 59%) 0%, hsl(262, 83%, 58%) 50%, hsl(217, 91%, 60%) 100%);
            
            /* Fintech Specific Colors */
            --fintech-blue: 217 91% 60%;
            --fintech-purple: 262 83% 58%;
            --fintech-indigo: 245 101% 59%;
            --fintech-gold: 45 96% 53%;
            
            /* Dark theme base (Nani Fintech uses dark by default) */
            --background: 222 84% 5%;
            --foreground: 210 40% 98%;

            --card: 222 84% 5%;
            --card-foreground: 210 40% 98%;

            --popover: 222 84% 5%;
            --popover-foreground: 210 40% 98%;

            --primary: 245 101% 59%;
            --primary-foreground: 210 40% 98%;

            --secondary: 217 33% 18%;
            --secondary-foreground: 210 40% 98%;

            --muted: 217 33% 18%;
            --muted-foreground: 215 20% 65%;

            --accent: 217 33% 18%;
            --accent-foreground: 210 40% 98%;

            --destructive: 0 63% 31%;
            --destructive-foreground: 210 40% 98%;

            --border: 217 33% 18%;
            --input: 217 33% 18%;
            --ring: 245 101% 59%;

            --radius: 0.75rem;

            /* Sidebar colors for dashboard (when needed) */
            --sidebar-background: 222 84% 5%;
            --sidebar-foreground: 210 40% 98%;
            --sidebar-primary: 245 101% 59%;
            --sidebar-primary-foreground: 210 40% 98%;
            --sidebar-accent: 217 33% 18%;
            --sidebar-accent-foreground: 210 40% 98%;
            --sidebar-border: 217 33% 18%;
            --sidebar-ring: 245 101% 59%;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        /* In phone.css */
body {
    /* Keep these lines: */
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    z-index: 0;
    
    /* !!! COMMENT OUT OR DELETE THESE CONFLICTING LINES !!! */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* background: transparent; */
    /* padding: 2rem; */
}
        .phone-container {
            position: relative;
            transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
            animation: phoneFloat 4s ease-in-out infinite;
            z-index: 10;
        }

        @keyframes phoneFloat {
            0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px); }
            50% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px); }
        }

        .phone {
            width: 320px;
            height: 640px;
            background: linear-gradient(145deg, #c0c7d1, #9ca3af, #6b7280);
            border-radius: 40px;
            padding: 8px;
            position: relative;
            box-shadow: 
                0 30px 60px rgba(0, 0, 0, 0.25),
                0 15px 30px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
        }

        .phone::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #6b7280, #9ca3af, #c0c7d1, #9ca3af, #6b7280);
            border-radius: 42px;
            z-index: -1;
        }

        /* Reflection effect */
        .phone::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(26, 26, 26, 0.3) 0%, transparent 50%);
            border-radius: 40px;
            transform: scaleY(-1);
            opacity: 0.3;
            filter: blur(2px);
        }

        /* Navigation dots */
        .nav-dots {
            position: absolute;
            bottom: 20px;
            left: 160px;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 8px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .nav-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .nav-dot.active {
            background: white;
            transform: scale(1.4);
            box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
            border-color: white;
        }

        .nav-dot:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: scale(1.2);
            border-color: rgba(255, 255, 255, 0.6);
        }

        /* Volume buttons */
        .volume-up {
            position: absolute;
            left: -4px;
            top: 120px;
            width: 8px;
            height: 35px;
            background: linear-gradient(90deg, #9ca3af, #c0c7d1, #9ca3af);
            border-radius: 4px 0 0 4px;
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                -2px 0 4px rgba(0, 0, 0, 0.1);
        }

        .volume-down {
            position: absolute;
            left: -4px;
            top: 165px;
            width: 8px;
            height: 35px;
            background: linear-gradient(90deg, #9ca3af, #c0c7d1, #9ca3af);
            border-radius: 4px 0 0 4px;
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                -2px 0 4px rgba(0, 0, 0, 0.1);
        }

        /* Power button */
        .power-button {
            position: absolute;
            right: -4px;
            top: 140px;
            width: 8px;
            height: 50px;
            background: linear-gradient(90deg, #9ca3af, #c0c7d1, #9ca3af);
            border-radius: 0 4px 4px 0;
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                2px 0 4px rgba(0, 0, 0, 0.1);
        }

        .screen {
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at top, hsl(222, 84%, 8%) 0%, hsl(222, 84%, 5%) 50%);
            border-radius: 32px;
            overflow: hidden;
            position: relative;
        }

        /* Glass overlay for phone screen */
        .screen-overlay {
            position: absolute;
            inset: 0;
            background: rgba(30, 41, 59, 0.3);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1;
            pointer-events: none;
            border-radius: 32px;
        }

        /* Honeycomb pattern for phone screen */
        .screen-pattern {
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%236366F1' fill-opacity='0.03' d='M50 0L90 25L90 75L50 100L10 75L10 25z'/%3E%3C/svg%3E");
            background-size: 30px 30px;
            z-index: 2;
            pointer-events: none;
            border-radius: 32px;
        }

        .status-bar {
            height: 44px;
            background: var(--brand-gradient);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            position: relative;
            z-index: 10;
            border-radius: 32px 32px 0 0;
        }

        .time {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-weight: 700;
            font-size: 16px;
        }

        .status-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .signal-bars {
            display: flex;
            gap: 2px;
            align-items: flex-end;
        }

        .bar {
            width: 3px;
            background: transparent;
            border-radius: 1px;
        }

        .bar:nth-child(1) { height: 4px; }
        .bar:nth-child(2) { height: 6px; }
        .bar:nth-child(3) { height: 8px; }
        .bar:nth-child(4) { height: 10px; }

        .network-type {
            font-size: 12px;
            font-weight: 700;
            margin-left: 2px;
        }

        .wifi-icon {
            width: 15px;
            height: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .status-right {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .battery {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .battery-percentage {
            font-size: 12px;
            font-weight: 600;
        }

        .battery-icon {
            width: 24px;
            height: 12px;
            border: 1px solid white;
            border-radius: 2px;
            position: relative;
        }

        .battery-icon::after {
            content: '';
            position: absolute;
            right: -3px;
            top: 3px;
            width: 2px;
            height: 6px;
            background: white;
            border-radius: 0 1px 1px 0;
        }

        .battery-fill {
            width: 87%;
            height: 100%;
            background: white;
            border-radius: 1px;
        }

        /* Screen slider container */
        .screen-slider {
            position: relative;
            width: 100%;
            height: calc(100% - 44px); /* Only subtract status bar */
            overflow: hidden;
        }

        /* Phone Footer */
        .phone-footer {
            position: absolute;
            bottom: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 134px;
            height: 5px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 3px;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .phone-footer:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: translateX(-50%) scaleY(1.2);
        }

        .screen-content {
            position: absolute;
            width: 100%;
            height: 100%;
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            background: hsl(var(--background));
            z-index: 10;
            overflow: hidden;
            border-radius: 32px;
        }

        .screen-content.active {
            transform: translateX(0);
            z-index: 15;
        }

        .screen-content:not(.active) {
            transform: translateX(100%);
        }

        .screen-content.prev {
            transform: translateX(-100%);
        }

        /* Home Screen */
        .home-screen {
            padding: 20px 20px 25px 20px; /* Extra bottom padding for footer clearance */
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow-y: auto;
            background: linear-gradient(135deg, 
                hsl(222, 84%, 8%) 0%, 
                hsl(245, 101%, 12%) 25%, 
                hsl(262, 83%, 15%) 50%, 
                hsl(217, 91%, 18%) 75%, 
                hsl(222, 84%, 8%) 100%);
            position: relative;
            border-radius: 32px;
        }

        .home-screen::before {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        .home-screen::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
            background-size: 30px 30px;
            background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
            pointer-events: none;
            z-index: 0;
        }

        .app-header {
            text-align: center;
            margin-bottom: 30px;
            position: relative;
            z-index: 10;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 25px 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .app-logo {
            width: 80px;
            height: 80px;
            background: var(--brand-gradient);
            border-radius: 20px;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: white;
            font-weight: bold;
            box-shadow: 
                0 12px 40px rgba(79, 70, 229, 0.4),
                0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            position: relative;
            border: 2px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .app-logo::before {
            content: '';
            position: absolute;
            inset: -3px;
            background: var(--brand-gradient);
            border-radius: 23px;
            z-index: -1;
            opacity: 0.6;
            filter: blur(8px);
            animation: logoGlow 3s ease-in-out infinite alternate;
        }

        @keyframes logoGlow {
            0% { opacity: 0.4; transform: scale(1); }
            100% { opacity: 0.8; transform: scale(1.05); }
        }

        .app-title {
            font-size: 24px;
            font-weight: 700;
            color: hsl(var(--foreground));
            margin-bottom: 4px;
        }

        .app-subtitle {
            font-size: 14px;
            color: hsl(var(--muted-foreground));
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            flex: 1;
            min-height: fit-content;
            padding-bottom: 30px;
            max-width: 100%;
            position: relative;
        }

        .features-grid::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 134px;
            height: 20px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
            border-radius: 10px 10px 0 0;
            pointer-events: none;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 20px 16px;
            text-align: center;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.12);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            z-index: 5;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .feature-card:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(79, 70, 229, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.12);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.5s;
        }

        .feature-card:hover::before {
            left: 100%;
        }

        .feature-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
            flex-shrink: 0;
        }

        .wallet .feature-icon { background: var(--brand-gradient); }
        .zakat .feature-icon { background: var(--brand-gradient); }
        .halal .feature-icon { background: var(--brand-gradient); }
        .currency .feature-icon { background: var(--brand-gradient); }
        .ayuto .feature-icon { background: var(--brand-gradient); }

        .feature-title {
            font-size: 13px;
            font-weight: 600;
            color: hsl(var(--card-foreground));
            margin-bottom: 6px;
            line-height: 1.2;
        }

        .feature-desc {
            font-size: 11px;
            color: hsl(var(--muted-foreground));
            line-height: 1.3;
            text-align: center;
        }

        /* Splash Screen Styles */
        .splash-screen {
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: var(--brand-gradient);
            position: relative;
            overflow: hidden;
            padding: 40px 20px;
            border-radius: 32px;
        }

        .splash-screen::before {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        .splash-screen::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
            background-size: 40px 40px;
            background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
            pointer-events: none;
            z-index: 0;
        }

        .splash-content {
            text-align: center;
            z-index: 10;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

        .splash-logo {
            position: relative;
            animation: logoFloat 3s ease-in-out infinite;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px) scale(1); }
            50% { transform: translateY(-10px) scale(1.05); }
        }

.contained-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This is the key property */
    max-width: 100%;
    max-height: 100%;
}



        .logo-icon {
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            color: white;
            font-weight: bold;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.3),
                0 8px 30px rgba(255, 255, 255, 0.1),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: logoShimmer 4s linear infinite;
        }

        @keyframes logoShimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .splash-text {
            color: white;
            text-align: center;
        }

        .splash-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 8px;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            letter-spacing: -0.5px;
        }

        .splash-subtitle {
            font-size: 16px;
            opacity: 0.9;
            font-weight: 500;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .loading-dots {
            display: flex;
            gap: 8px;
            justify-content: center;
            align-items: center;
        }

        .loading-dot {
            width: 8px;
            height: 8px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            animation: dotPulse 1.5s ease-in-out infinite;
        }

        .loading-dot:nth-child(1) { animation-delay: 0s; }
        .loading-dot:nth-child(2) { animation-delay: 0.2s; }
        .loading-dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes dotPulse {
            0%, 60%, 100% { 
                transform: scale(1); 
                opacity: 0.6; 
            }
            30% { 
                transform: scale(1.4); 
                opacity: 1; 
            }
        }

        .enter-app-btn {
            position: absolute;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            color: hsl(var(--brand-primary));
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 12px 24px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            z-index: 20;
            transition: all 0.3s ease;
            box-shadow: 
                0 6px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            white-space: nowrap;
        }

        .enter-app-btn:hover {
            transform: translateX(-50%) translateY(-2px);
            background: rgba(255, 255, 255, 1);
            box-shadow: 
                0 8px 25px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 1);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .enter-app-btn:active {
            transform: translateX(-50%) translateY(0px);
            box-shadow: 
                0 4px 15px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        /* Individual Screen Styles */
        .detail-screen {
            padding: 15px 15px 20px 15px; /* Extra bottom padding for footer clearance */
            height: 100%;
            display: flex;
            flex-direction: column;
            background: linear-gradient(135deg, 
                hsl(222, 84%, 8%) 0%, 
                hsl(245, 101%, 12%) 25%, 
                hsl(262, 83%, 15%) 50%, 
                hsl(217, 91%, 18%) 75%, 
                hsl(222, 84%, 8%) 100%);
            position: relative;
            overflow-y: auto;
            gap: 15px;
            border-radius: 32px;
        }

        .detail-screen::before {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        .detail-screen::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
            background-size: 30px 30px;
            background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
            pointer-events: none;
            z-index: 0;
        }

        .screen-header {
            display: flex;
            align-items: center;
            margin-bottom: 0;
            padding: 15px 18px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 16px;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.12);
            position: relative;
            z-index: 10;
            flex-shrink: 0;
        }

        .back-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            margin-right: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .back-btn:hover {
            transform: translateX(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .screen-title {
            font-size: 18px;
            font-weight: 700;
            color: white;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            flex: 1;
        }

        .screen-indicator {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            background: rgba(255, 255, 255, 0.1);
            padding: 4px 8px;
            border-radius: 8px;
            margin-left: 10px;
        }

        .balance-card {
            background: var(--brand-gradient);
            border-radius: 18px;
            padding: 20px;
            color: white;
            margin-bottom: 0;
            box-shadow: 
                0 10px 30px hsla(var(--brand-primary), 0.3),
                0 0 40px rgba(79, 70, 229, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 10;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            flex-shrink: 0;
        }

        .balance-card .balance-label {
            font-size: 14px;
            opacity: 0.8;
            margin-bottom: 8px;
        }

        .balance-card .balance-amount {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .currency-tabs {
            display: flex;
            gap: 10px;
        }

        .currency-tab {
            padding: 6px 12px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.2);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .currency-tab.active {
            background: rgba(255, 255, 255, 0.3);
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .action-buttons.grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 0;
            flex-shrink: 0;
        }

        .action-btn {
            padding: 15px;
            border-radius: 16px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            z-index: 5;
        }

        .primary-btn {
            background: var(--brand-gradient);
            color: white;
            box-shadow: 
                0 4px 15px hsla(var(--brand-primary), 0.3),
                0 0 30px rgba(79, 70, 229, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .primary-btn:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 8px 25px hsla(var(--brand-primary), 0.4),
                0 0 40px rgba(79, 70, 229, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .secondary-btn {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 
                0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .secondary-btn:hover {
            transform: translateY(-2px) scale(1.02);
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 
                0 6px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .action-btn:hover {
            transform: translateY(-2px);
        }

        .feature-content {
            flex: 1;
            overflow-y: auto;
            position: relative;
            z-index: 5;
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding-bottom: 30px;
        }

        .feature-content::after {
            content: '';
            position: sticky;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 134px;
            height: 20px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
            border-radius: 10px 10px 0 0;
            pointer-events: none;
            margin: 10px auto 0;
            flex-shrink: 0;
        }

        .info-card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 14px;
            padding: 16px;
            margin-bottom: 0;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.12);
            position: relative;
            z-index: 5;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .info-card:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(79, 70, 229, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.12);
        }

        .info-title {
            font-size: 16px;
            font-weight: 600;
            color: white;
            margin-bottom: 8px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .info-desc {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: hsl(var(--muted));
            border-radius: 4px;
            overflow: hidden;
            margin: 15px 0;
        }

        .progress-fill {
            height: 100%;
            background: var(--brand-gradient);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        /* AI Assistant Popup Styles */
        .ai-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease-out;
        }

        .ai-popup-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        .ai-popup {
            background: white;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            max-height: 80vh;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        @keyframes slideUp {
            0% { transform: translateY(50px) scale(0.9); opacity: 0; }
            100% { transform: translateY(0) scale(1); opacity: 1; }
        }

        .ai-popup-header {
            background: var(--brand-gradient);
            padding: 20px;
            color: white;
            text-align: center;
            position: relative;
        }

        .close-popup {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .close-popup:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .imam-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 15px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            animation: avatarPulse 2s ease-in-out infinite;
            position: relative;
            overflow: hidden;
        }

        @keyframes avatarPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .imam-avatar::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 3s linear infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .ai-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .ai-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }

        .chat-container {
            height: 300px;
            display: flex;
            flex-direction: column;
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f8fafc;
        }

        .message {
            margin-bottom: 15px;
            animation: messageSlide 0.3s ease-out;
        }

        @keyframes messageSlide {
            0% { opacity: 0; transform: translateY(10px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .message.ai {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .message.user {
            display: flex;
            justify-content: flex-end;
        }

        .message-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .message-content {
            background: white;
            padding: 12px 16px;
            border-radius: 18px;
            max-width: 80%;
            font-size: 14px;
            line-height: 1.4;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .message.user .message-content {
            background: var(--brand-gradient);
            color: white;
        }

        .typing-indicator {
            display: none;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .typing-indicator.active {
            display: flex;
        }

        .typing-dots {
            display: flex;
            gap: 4px;
        }

        .typing-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #64748b;
            animation: typingBounce 1.4s ease-in-out infinite;
        }

        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typingBounce {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-10px); }
        }

        .chat-input-container {
            padding: 15px 20px;
            background: white;
            border-top: 1px solid #e2e8f0;
        }

        .chat-input-wrapper {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .chat-input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #e2e8f0;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }

        .chat-input:focus {
            border-color: hsl(var(--brand-primary));
            box-shadow: 0 0 0 3px hsla(var(--brand-primary), 0.1);
        }

        .send-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--brand-gradient);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        .send-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
        }

        .send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .quick-questions {
            padding: 0 20px 15px;
            background: #f8fafc;
        }

        .quick-question:hover {
            border-color: hsl(var(--brand-primary));
            color: hsl(var(--brand-primary));
            transform: translateY(-1px);
        }

        /* Ayuto Group Savings Styles */
        .ayuto-group-card {
            background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 0;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(236, 72, 153, 0.3);
            position: relative;
            z-index: 5;
            flex-shrink: 0;
        }

        .group-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .group-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #ec4899, #8b5cf6);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            flex-shrink: 0;
        }

        .group-info {
            flex: 1;
            min-width: 0;
        }

        .group-name {
            color: white;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .group-details {
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .group-status {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .progress-section {
            margin-bottom: 20px;
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            color: white;
            font-size: 14px;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .progress-bar-ayuto {
            width: 100%;
            background: rgba(255, 255, 255, 0.2);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill-ayuto {
            width: 75%;
            height: 100%;
            background: linear-gradient(90deg, #ec4899, #8b5cf6);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .members-section {
            overflow: hidden;
        }

        .members-scroll {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        }

        .members-scroll::-webkit-scrollbar {
            height: 4px;
        }

        .members-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }

        .members-scroll::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
        }

        .members-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .member-avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #ec4899, #8b5cf6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
            flex-shrink: 0;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .member-avatar:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
        }

        .ayuto-contribute-btn {
            background: linear-gradient(135deg, #ec4899, #8b5cf6);
            color: white;
            box-shadow: 
                0 4px 15px rgba(236, 72, 153, 0.3),
                0 0 30px rgba(236, 72, 153, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ayuto-contribute-btn:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 8px 25px rgba(236, 72, 153, 0.4),
                0 0 40px rgba(236, 72, 153, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .phone {
                width: 280px;
                height: 560px;
            }
            
            .phone-container {
                transform: none;
                animation: none;
            }

            .features-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .feature-card {
                padding: 16px 12px;
                min-height: 100px;
            }

            .feature-icon {
                width: 32px;
                height: 32px;
                font-size: 14px;
                margin-bottom: 8px;
            }

            .feature-title {
                font-size: 12px;
                margin-bottom: 4px;
            }

            .feature-desc {
                font-size: 10px;
            }

            .ai-popup {
                width: 95%;
                max-height: 85vh;
            }

            .chat-container {
                height: 250px;
            }

            .imam-avatar {
                width: 60px;
                height: 60px;
                font-size: 30px;
            }

            .ai-title {
                font-size: 16px;
            }

            .ai-subtitle {
                font-size: 12px;
            }

            /* Ayuto responsive adjustments */
            .ayuto-group-card {
                padding: 16px;
            }

            .group-header {
                gap: 10px;
                margin-bottom: 16px;
            }

            .group-icon {
                width: 36px;
                height: 36px;
            }

            .group-name {
                font-size: 14px;
            }

            .group-details {
                font-size: 11px;
            }

            .group-status {
                padding: 4px 8px;
                font-size: 10px;
            }

            .progress-info {
                font-size: 13px;
            }

            .member-avatar {
                width: 28px;
                height: 28px;
                font-size: 11px;
            }

            .members-scroll {
                gap: 6px;
            }
        }

        @media (max-width: 480px) {
            .ai-popup {
                width: 98%;
                margin: 10px;
            }

            .chat-container {
                height: 200px;
            }
        }

        /* Loading animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
    