/* ============================================
   Gemini Design Masterplan Enhancements
   ============================================ */

/* 1. Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* 2. Glassmorphism & Depth */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

[data-theme="dark"] .glass-panel {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-premium {
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

/* 3. Hero Enhancements */
.hero-section-new {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(18, 59, 109, 0.05) 0%, transparent 70%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg-pattern.png');
    background-size: 600px;
    opacity: 0.4;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    /* 56px */
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    /* Navy to Blue */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    /* Blue to Lighter Blue */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    /* 20px */
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-image-floating {
    width: 100%;
    /* transform: rotateY(-5deg) rotateX(5deg); */
    border-radius: 20px;
    box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: white;
    /* Fallback */
}

.hero-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    /* Dark Amber */
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

[data-theme="dark"] .hero-badge-new {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

/* 4. Feature Cards Polish */
.feature-card-premium {
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.feature-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(18, 59, 109, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card-premium:hover .feature-icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* 5. Pricing Polish */
.pricing-card-premium {
    border-radius: 24px;
    padding: 2.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-premium.popular {
    border: 2px solid var(--accent);
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.15);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

/* 6. Social Proof Strip */
.trust-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.logo-wall {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.logo-wall:hover {
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.5s ease;
}

/* 7. Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-soft {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #f0f9ff 100%);
}

[data-theme="dark"] .bg-gradient-soft {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0f172a 100%);
}

.grayscale-hover {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.grayscale-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 8. Landing Page Sections (override old) */
.section-header-new {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header-new h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header-new p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.cta-section-new {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, #123B6D 0%, #1e40af 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    margin: 2rem 1.5rem 4rem;
    box-shadow: 0 20px 60px -10px rgba(18, 59, 109, 0.5);
}

.cta-section-new h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section-new p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.cta-blob-1 {
    top: -200px;
    left: -200px;
}

.cta-blob-2 {
    bottom: -200px;
    right: -200px;
}

.cta-content {
    position: relative;
    z-index: 10;
}

/* 9. Global App Background Pattern */
.global-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/hero-bg-pattern.png');
    background-size: 600px;
    background-repeat: repeat;
    opacity: 0.05;
    /* Subtle overlay */
    z-index: 50;
    /* Texture overlay on top of everything */
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    mix-blend-mode: multiply;
}

[data-theme="dark"] .global-bg-pattern {
    opacity: 0.08;
    mix-blend-mode: soft-light;
}

/* ============================================
   Dashboard Redesign 2024
   ============================================ */

/* Hero */
.dashboard-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 2rem 0 3rem;
    /* margin-bottom: 2rem; */
    border-bottom: 1px solid var(--border-color);
}

.welcome-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Vibrant Stats Cards */
.stats-card-premium {
    position: relative;
    padding: 1.75rem;
    border-radius: 20px;
    color: white;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border: none;
}

.stats-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
}

.stats-card-premium .stats-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stats-card-premium .stats-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-card-premium .icon-bubble {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    font-size: 1.5rem;
}

.stats-card-premium .icon-bubble i {
    width: 28px;
    height: 28px;
    stroke-width: 2.5px;
}

/* Gradients */
/* Blue - Total */
.stats-card-premium.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Green - Used */
.stats-card-premium.green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

/* Amber - Pending */
.stats-card-premium.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

/* Purple - Available/Important */
.stats-card-premium.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

/* Floating Table Rows */
.table-floating {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.table-floating thead th {
    border: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    background: transparent;
    font-weight: 700;
}

.table-floating tbody tr {
    background: var(--bg-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-floating tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    z-index: 10;
    position: relative;
}

.table-floating tbody td {
    border: none;
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.table-floating tbody td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.table-floating tbody td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Platform Admin Link */
.platform-admin-link {
    background: rgba(13, 110, 253, 0.05);
    font-weight: 700 !important;
    color: var(--bs-primary) !important;
    white-space: nowrap;
}

.platform-admin-link:hover {
    background: rgba(13, 110, 253, 0.1) !important;
    color: var(--bs-primary) !important;
}

.platform-admin-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    color: var(--bs-warning);
    fill: currentColor;
    fill-opacity: 0.2;
}