/* EDMO App Store Design System - Apple-style with glassmorphism */

/* Import Sora font */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base Colors */
    --background: 250 100% 99%;
    --foreground: 281 47% 15%;
    
    /* Card System */
    --card: 0 0% 100%;
    --card-foreground: 281 47% 15%;
    --card-glass: 0 0% 100% / 0.7;
    --card-border: 281 20% 85%;
    
    /* Brand Colors - EDMO Purple */
    --primary: 281 47% 31%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 281 60% 45%;
    --primary-light: 281 30% 85%;
    
    /* Secondary */
    --secondary: 281 15% 96%;
    --secondary-foreground: 281 47% 25%;
    
    /* Muted */
    --muted: 281 10% 95%;
    --muted-foreground: 281 20% 45%;
    
    /* Accent */
    --accent: 250 60% 96%;
    --accent-foreground: 281 47% 31%;
    
    /* Status */
    --success: 142 76% 36%;
    --success-foreground: 0 0% 100%;
    
    /* Interactive */
    --border: 281 15% 90%;
    --input: 0 0% 100% / 0.8;
    --ring: 281 47% 31%;
    
    /* Glassmorphism */
    --glass-bg: 0 0% 100% / 0.1;
    --glass-border: 0 0% 100% / 0.2;
    --glass-shadow: 281 47% 31% / 0.1;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(281 47% 31%), hsl(281 60% 45%));
    --gradient-hero: linear-gradient(135deg, hsl(250 100% 99%), hsl(281 30% 95%));
    
    /* Shadows */
    --shadow-soft: 0 4px 20px hsl(281 47% 31% / 0.05);
    --shadow-medium: 0 8px 30px hsl(281 47% 31% / 0.1);
    --shadow-strong: 0 20px 40px hsl(281 47% 31% / 0.15);
    --shadow-glow: 0 0 30px hsl(281 60% 45% / 0.3);
    
    /* Radius */
    --radius: 1rem;
}

.dark {
    /* Base Colors - Dark Mode */
    --background: 281 47% 8%;
    --foreground: 281 10% 95%;
    
    /* Card System - Dark */
    --card: 281 30% 12%;
    --card-foreground: 281 10% 95%;
    --card-glass: 281 30% 12% / 0.7;
    --card-border: 281 20% 25%;
    
    /* Brand Colors - Dark Mode */
    --primary: 281 60% 65%;
    --primary-foreground: 281 47% 8%;
    --primary-glow: 281 70% 75%;
    --primary-light: 281 40% 25%;
    
    /* Secondary - Dark */
    --secondary: 281 20% 15%;
    --secondary-foreground: 281 10% 85%;
    
    /* Muted - Dark */
    --muted: 281 15% 15%;
    --muted-foreground: 281 10% 65%;
    
    /* Accent - Dark */
    --accent: 281 30% 20%;
    --accent-foreground: 281 60% 65%;
    
    /* Status - Dark */
    --success: 142 70% 45%;
    --success-foreground: 0 0% 100%;
    
    /* Interactive - Dark */
    --border: 281 20% 25%;
    --input: 281 30% 12% / 0.8;
    --ring: 281 60% 65%;
    
    /* Glassmorphism - Dark */
    --glass-bg: 281 30% 12% / 0.1;
    --glass-border: 281 30% 40% / 0.2;
    --glass-shadow: 281 60% 65% / 0.1;
    
    /* Gradients - Dark */
    --gradient-primary: linear-gradient(135deg, hsl(281 60% 65%), hsl(281 70% 75%));
    --gradient-hero: linear-gradient(135deg, hsl(281 47% 8%), hsl(281 30% 15%));
    
    /* Shadows - Dark */
    --shadow-soft: 0 4px 20px hsl(0 0% 0% / 0.3);
    --shadow-medium: 0 8px 30px hsl(0 0% 0% / 0.4);
    --shadow-strong: 0 20px 40px hsl(0 0% 0% / 0.5);
    --shadow-glow: 0 0 30px hsl(281 70% 75% / 0.3);
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-optical-sizing: auto;
    font-variation-settings: "wght" 400;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glass Effects */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.2);
/*     box-shadow: var(--shadow-soft); */
}

.glass-intense {
    background: hsl(var(--card-glass));
    backdrop-filter: blur(20px);
    border: 1px solid hsl(var(--border) / 0.3);
    box-shadow: var(--shadow-medium);
}

.hero-glow {
    background: var(--gradient-hero);
    box-shadow: var(--shadow-glow);
}

.btn-primary-glow {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    color: hsl(var(--primary-foreground));
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px hsl(var(--primary) / 0.4);
}

.spring-bounce {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.spring-bounce:hover {
    transform: translateY(-2px) scale(1.02);
}

.spring-bounce:active {
    transform: translateY(0) scale(0.98);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border) / 0.4);
    backdrop-filter: blur(20px);
}

.nav-content {
    display: flex;
    height: 8rem;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
	width:100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
	margin-top: 5px;
}

.logo-icon {
    padding: 0.5rem;
    border-radius: 0.75rem;
    color: hsl(var(--primary));
	
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: bold;
    font-size: 18px;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    line-height: 1;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    max-width: 60rem;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 2.25rem;
/*     padding: 0 2.75rem 0 4.25rem!important; */
	padding: 15px 0px 15px 40px !important;
    border-radius: 5px!important;
    border: 1px solid hsl(var(--border) / 0.5);
    background: transparent;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.select-container {
    position: relative;
}

.select-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.sort-select {
    width: 15rem;
    height: 3.25rem;
    padding: 0 2rem 0 4.25rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: transparent;
    font-size: 11px;
    color: hsl(var(--foreground));
    cursor: pointer;
    appearance: none;
}

.theme-toggle {
    height: 2.25rem;
    width: 2.25rem;
    padding: 0;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--foreground));
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 65vh; /* Increased to match screenshot height */
    overflow: hidden;
    background: var(--gradient-hero);
    padding: 150px; /* Adjusted padding to match screenshot */
    text-align: center;
}

.hero-content {
    max-width: 56rem; /* Increased max-width for better text layout */
    margin: 0 auto;
    padding-top  100px!important; /* Added top padding to center content better */
	padding:0 !important;
	
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem; /* Increased margin to match screenshot */
    color: hsl(var(--primary));
    font-size: 12px;;
    font-weight: 500;
}

.hero-title {
    font-size: 56px; /* Increased to match screenshot */
    font-weight: 500!important; /* Increased font weight */
    line-height: 1.1;
    margin-bottom: 1.5rem; /* Adjusted margin */
    color: hsl(var(--foreground));
    letter-spacing: -0.02em; /* Added letter spacing for better appearance */
}

.hero-title-accent {
    color: hsl(var(--primary));
    display: block;
    margin-top: 0.25rem; /* Added small margin for better spacing */
}

.hero-subtitle {
    font-size: 18px; /* Increased to match screenshot */
    color: hsl(var(--muted-foreground));
    line-height: 32px;
    margin-bottom: 3rem; /* Increased margin to match screenshot */
/*     max-width: 42rem; /* Adjusted max-width */ */
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed to exactly 3 columns */
    gap: 2rem; /* Increased gap */
    margin-top: 3rem; /* Increased margin */
    padding-top: 2rem; /* Increased padding */
    border-top: 1px solid hsl(var(--border) / 0.3);
    max-width: 36rem; /* Added max-width to match screenshot proportions */
    margin-left: auto;
    margin-right: auto;
	    margin-bottom: -8rem;
}

.stat-card {
    padding: 1.5rem 1rem; /* Adjusted padding */
    border-radius: 0.5rem;
    text-align: center;
}

.stat-number {
    font-size: 36px; /* Increased to match screenshot */
    font-weight: 700; /* Increased font weight */
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    font-weight: 500; /* Added font weight */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="hsl(281 47% 31% / 0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.floating-element {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="20" fill="hsl(281 60% 45% / 0.1)"/><circle cx="150" cy="100" r="15" fill="hsl(281 60% 45% / 0.08)"/><circle cx="80" cy="150" r="10" fill="hsl(281 60% 45% / 0.06)"/></svg>');
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

/* App section - Increased padding */
.app-section {
    padding: 4rem 0; /* Increased from 3rem */
}

/* Tabs - Increased sizes */
.tabs {
    border-radius: 0.75rem; /* Increased border radius */
    padding: 0.375rem; /* Increased padding */
    margin-bottom: 2.5rem; /* Increased margin */
}

.tabs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 300px;
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* Increased gap */
    border-radius: 0.5rem; /* Increased border radius */
    padding: 1rem 1.5rem; /* Increased padding */
    font-size: 12px; /* Increased from 0.875rem */
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: hsl(var(--muted-foreground));
}

.tab-button.active {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
}

/* Section header - Increased sizes */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem; /* Increased margin */
}

.section-title {
    font-size: 1.75rem; /* Increased from 1.5rem */
    font-weight: bold;
    color: hsl(var(--foreground));
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-toggle {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: transparent;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
}

.view-toggle.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Category sections - Increased spacing */
.category-section {
    margin-bottom: 4rem; /* Increased from 3rem */
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased gap */
    margin-bottom: 2rem; /* Increased margin */
}

.category-icon {
    padding: 0.75rem; /* Increased padding */
    border-radius: 0.75rem; /* Increased border radius */
    color: hsl(var(--primary));
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.75rem; /* Increased from 1.5rem */
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.375rem; /* Increased margin */
}

.category-description {
    color: hsl(var(--muted-foreground));
    font-size: 14px; /* Increased from 0.875rem */
}

.category-badge {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.375rem 1rem; /* Increased padding */
    border-radius: 9999px;
    font-size: 12px; /* Increased from 0.75rem */
    font-weight: 500;
}

/* Apps Grid - Increased card sizes */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Increased from 280px */
    gap: 2rem; /* Increased from 1.5rem */
}

.apps-grid.list-view {
    grid-template-columns: 1fr;
}

/* App Cards - Increased sizes and content */
.app-card {
    border-radius: 1.25rem; /* Increased border radius */
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    padding: 2rem; /* Increased from 1.5rem to 2rem */
    min-height: 280px; /* Added minimum height for consistency */
}

.app-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.app-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1.5rem; /* Increased margin */
}

.app-info {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased gap */
}

.app-icon {
    font-size: 2.5rem; /* Increased from 1.875rem */
}

.app-meta {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 1.375rem; /* Increased from 1.125rem */
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.2;
    margin-bottom: 0.5rem; /* Increased margin */
}

.app-badges {
    display: flex;
    gap: 0.75rem; /* Increased gap */
}

.app-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem; /* Increased padding */
    font-size: 14px; /* Increased from 0.75rem */
    font-weight: 500;
}

.app-badge.category {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.app-badge.subcategory {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: 1px solid hsl(var(--border));
}

.app-status {
    display: flex;
    align-items: center;
    gap: 0.375rem; /* Increased gap */
    color: hsl(var(--success));
    font-size: 1rem; /* Increased from 0.875rem */
    font-weight: 500;
}

.app-content {
    flex: 1;
    margin-bottom: 1.5rem; /* Increased margin */
}

.app-description {
    font-size: 1rem; /* Increased from 0.875rem */
    color: hsl(var(--muted-foreground));
    line-height: 1.5; /* Increased line height */
    margin-bottom: 1.25rem; /* Increased margin */
}

.app-usage {
    font-size: 0.875rem; /* Increased from 0.75rem */
    color: hsl(var(--muted-foreground));
    font-weight: 500; /* Added font weight */
}

.app-actions {
    display: flex;
    gap: 1rem; /* Increased gap */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem; /* Increased border radius */
    font-size: 14px; /* Increased from 0.875rem */
    font-weight: 500;
    transition: all 0.2s;
    height: 2.75rem; /* Increased from 2.25rem */
    padding: 0 1.25rem; /* Increased padding */
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background: hsl(var(--primary-glow));
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results-card {
    padding: 2rem;
    border-radius: 1rem;
    max-width: 24rem;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-results-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.no-results-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Subscribed Apps */
.subscribed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.subscribed-info {
    display: flex;
    flex-direction: column;
}

.subscribed-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.subscribed-description {
    color: hsl(var(--muted-foreground));
}

.subscribed-badge {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.no-subscribed {
    text-align: center;
    padding: 3rem 0;
}

.no-subscribed-card {
    padding: 2rem;
    border-radius: 1rem;
    max-width: 24rem;
    margin: 0 auto;
}

.no-subscribed-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-subscribed-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.no-subscribed-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

/* Modal - Full Width and Background */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    width: 100vw;
    height: 100vh;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODAL BACKDROP FIX - Enhanced blur effect */
.modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    /* Fallback for browsers that don't support backdrop-filter */
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Force backdrop-filter support */
@supports (backdrop-filter: blur(1px)) {
    .modal-backdrop {
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
    }
}

/* Alternative approach if backdrop-filter still doesn't work */
@supports not (backdrop-filter: blur(1px)) {
    .modal-backdrop {
        background: rgba(0, 0, 0, 0.8);
        background-image: 
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    }
}

/* Ensure modal backdrop is properly positioned */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    width: 100vw;
    height: 100vh;
    isolation: isolate; /* Create new stacking context */
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark mode backdrop */
.dark .modal-backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Additional browser-specific fixes */
.modal-backdrop {
    /* Firefox */
    -moz-backdrop-filter: blur(12px);
    /* Edge */
    -ms-backdrop-filter: blur(12px);
    /* Ensure it covers everything */
    transform: translateZ(0);
    will-change: backdrop-filter;
}

/* Force hardware acceleration for better blur performance */
.modal-backdrop {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
/* Alternative backdrop blur using pseudo-element */
.modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

.modal-backdrop {
    display: none; /* Hide the original backdrop */
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
    border-radius: 1.25rem;
    padding: 2rem;
    z-index: 1001;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-strong);
    /* Remove any backdrop-filter from modal content */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Remove glass-intense class effects from modal content */
.modal-content.glass-intense {
    background: hsl(var(--card)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Dark mode adjustments */
.dark .modal-backdrop {
    background: hsl(0 0% 0% / 0.7);
}

.dark .modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon {
    font-size: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.modal-close {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: hsl(var(--muted));
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-placeholder {
    aspect-ratio: 16/9;
    background: hsl(var(--muted));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-content {
    text-align: center;
    color: hsl(var(--muted-foreground));
}

.demo-content svg {
    margin-bottom: 0.5rem;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-section-title {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.modal-section-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.kpi-card {
    background: hsl(var(--accent));
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--primary));
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
}

.feature-item svg {
    color: hsl(var(--success));
    flex-shrink: 0;
}

.security-note {
    padding: 1rem;
    border-radius: 0.5rem;
}

.security-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.security-badge {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.security-text {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.modal-actions .btn {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .kpis-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 1rem;
    }
}
/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* Responsive adjustments for larger cards */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
    
    .app-card {
        padding: 1.5rem; /* Slightly reduced padding on mobile */
        min-height: auto; /* Remove min-height on mobile */
    }
    
    .app-title {
        font-size: 1.25rem; /* Adjusted for mobile */
    }
    
    .app-description {
        font-size: 0.9375rem; /* Adjusted for mobile */
    }
    
    .category-title {
        font-size: 1.5rem; /* Adjusted for mobile */
    }
    
    .section-title {
        font-size: 1.5rem; /* Adjusted for mobile */
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .app-card {
        padding: 1.25rem;
    }
    
    .app-title {
        font-size: 1.125rem;
    }
    
    .app-description {
        font-size: 0.875rem;
    }
    
    .btn {
        height: 2.5rem;
        font-size: 0.9375rem;
        padding: 0 1rem;
    }
}
