/*
Theme Name: Umbrella
Theme URI: https://umbrella.lol
Author: Umbrella Team
Author URI: https://umbrella.lol
Description: A badass WordPress theme with Cardano blockchain integration, featuring wallet connectivity and NFT functionality. Built for the future of web3.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: umbrella
Tags: cardano, blockchain, web3, nft, wallet
*/

/* Custom Umbrella Theme Styles */

:root {
    --umbrella-primary: #0033ad;
    --umbrella-secondary: #00d4ff;
    --umbrella-accent: #ff006e;
    --umbrella-dark: #0a0e27;
    --umbrella-light: #f8f9fa;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--umbrella-dark);
    background-image: url('/wp-content/uploads/2025/10/1-1.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Corporate Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    font-weight: 600;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 600;
    letter-spacing: -0.025em;
}

h3 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Semi-transparent overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.4);
    z-index: 0;
    pointer-events: none;
}

#page {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure background stays visible when wallet is connected */
body.wallet-connected {
    background-image: url('/wp-content/uploads/2025/10/1-1.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0 !important;
    padding: 0 !important;
}


body.wallet-connected::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.4);
    z-index: 0;
    pointer-events: none;
}

/* Fix for page-40 when wallet is disconnected - prevent stacking context issues */
body.page-id-40.wallet-disconnected .site-header,
body.page-id-40.wallet-disconnected .site-footer {
    position: relative;
    z-index: 10001;
}

body.page-id-40.wallet-disconnected #page {
    position: relative;
    z-index: 1;
}

/* Wallet Connect Button Styling */
.cardanopress-wallet-connect {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    color: var(--umbrella-secondary);
    background: transparent;
    border: 2px solid var(--umbrella-secondary);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    white-space: nowrap;
    margin: 0 !important;
    vertical-align: middle;
}

.cardanopress-wallet-connect svg {
    display: block; /* prevent SVG baseline drift */
}

.cardanopress-wallet-connect:hover {
    color: var(--umbrella-dark);
    background: var(--umbrella-secondary);
    border-color: var(--umbrella-secondary);
    transform: none; /* remove Y-translate to prevent hover drift */
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 4px 12px rgba(0, 212, 255, 0.3);
}

.cardanopress-wallet-connect svg {
    flex-shrink: 0;
}

/* Navigation Styles - Glass effect */
.site-header {
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 100;
    transition: background 0.3s ease;
}

.site-header:hover {
    background: rgba(10, 14, 39, 0.75);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-branding {
    text-align: center;
    padding-bottom: 0.5rem;
}

.site-branding a,
.site-title {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--umbrella-secondary), var(--umbrella-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.main-navigation > * {
    align-items: center;
    display: flex;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation li {
    list-style: none;
}

.main-navigation a {
    color: var(--umbrella-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--umbrella-secondary);
}

.wallet-section {
    display: contents; /* makes wrapper "disappear" so inner control becomes direct flex item */
}

/* Wallet Dropdown Styling */
.umbrella-wallet-dropdown {
    position: relative;
    z-index: 1001;
    display: inline-block; /* creates positioning context for dropdown */
    vertical-align: middle;
}

.umbrella-wallet-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 2px solid var(--umbrella-secondary);
    border-radius: 0.5rem;
    color: var(--umbrella-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    white-space: nowrap;
    height: auto;
    margin: 0 !important;
    vertical-align: middle;
}

.umbrella-wallet-button svg {
    display: block; /* prevent SVG baseline drift */
}

.umbrella-wallet-button:hover {
    background: var(--umbrella-secondary);
    border-color: var(--umbrella-secondary);
    color: var(--umbrella-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 4px 12px rgba(0, 212, 255, 0.3);
    transform: none; /* remove Y-translate to prevent hover drift */
}

.umbrella-wallet-button .wallet-address {
    white-space: nowrap;
    color: inherit;
}

.umbrella-wallet-button .dropdown-arrow {
    transition: transform 0.2s ease;
    color: inherit;
}

.umbrella-wallet-button:hover .dropdown-arrow {
    transform: translateY(2px);
}

.umbrella-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: rgba(10, 14, 39, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    z-index: 10000;
    overflow: hidden;
}

.umbrella-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--umbrella-secondary), var(--umbrella-accent));
}

.umbrella-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.umbrella-dropdown-menu a,
.umbrella-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    color: white !important;
    text-decoration: none;
    text-align: left;
    background: transparent !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.umbrella-dropdown-menu a:hover,
.umbrella-dropdown-menu button:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    padding-left: 1.5rem;
}

/* Menu item link styling */
.umbrella-dropdown-menu .menu-item-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.umbrella-dropdown-menu .menu-item-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Disconnect link specific styling */
.umbrella-dropdown-menu a[href*="disconnect"],
.umbrella-dropdown-menu a[href*="Disconnect"] {
    color: #ff6b6b !important;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.875rem;
}

.umbrella-dropdown-menu a[href*="disconnect"]:hover,
.umbrella-dropdown-menu a[href*="Disconnect"]:hover {
    background: rgba(255, 107, 107, 0.15) !important;
    color: #ff4757 !important;
}

.umbrella-dropdown-menu a[href*="disconnect"] svg,
.umbrella-dropdown-menu a[href*="Disconnect"] svg {
    stroke: currentColor;
}

.umbrella-dropdown-menu .border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.umbrella-dropdown-menu button {
    color: #ff6b6b !important;
    font-weight: 600;
}

.umbrella-dropdown-menu button:hover {
    background: rgba(255, 107, 107, 0.15) !important;
    color: #ff4757 !important;
}

/* Disconnect button specific styling */
.umbrella-dropdown-menu .disconnect-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.umbrella-dropdown-menu .disconnect-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #ff4757;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.umbrella-dropdown-menu .disconnect-button:hover {
    background: rgba(255, 71, 87, 0.15) !important;
    color: #ff6b7a !important;
    padding-left: 1.5rem;
}

.umbrella-dropdown-menu .disconnect-button svg {
    flex-shrink: 0;
}

/* Override conflicting navigation styles */
.main-navigation .umbrella-wallet-dropdown ul {
    display: block;
}

.main-navigation .umbrella-dropdown-menu li {
    display: block;
    margin: 0;
}

/* Menu dropdown styling - legacy support */
.main-navigation .relative {
    position: relative;
}

.main-navigation .list-none {
    list-style: none !important;
}

.main-navigation .absolute {
    position: absolute;
    right: 0;
    top: 100%;
}

.main-navigation .w-40 {
    width: 10rem;
    min-width: 200px;
}

/* Navigation Button Styles */
.nav-link-button,
.pb-swap-nav-button {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    text-decoration: none !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    height: auto;
    align-self: center !important;
    margin: 0 !important;
}

.nav-link-button {
    color: var(--umbrella-light) !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link-button:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none; /* remove Y-translate to prevent hover drift */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pb-swap-nav-button {
    color: var(--umbrella-secondary);
    background: transparent;
    border: 2px solid var(--umbrella-secondary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.pb-swap-nav-button:hover {
    color: var(--umbrella-dark);
    background: var(--umbrella-secondary);
    border-color: var(--umbrella-secondary);
    transform: none; /* remove Y-translate to prevent hover drift */
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 4px 12px rgba(0, 212, 255, 0.3);
}

.nav-link-button svg,
.pb-swap-nav-button svg {
    flex-shrink: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--umbrella-secondary);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--umbrella-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive navigation */
@media (max-width: 1024px) {
    .main-navigation {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-link-button,
    .pb-swap-nav-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Desktop: show desktop branding, hide mobile header */
.desktop-branding {
    display: block;
}

.header-top-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Clip overflow on mobile to hide drawer when closed */
    body,
    #page {
        overflow-x: hidden;
        position: relative;
    }

    /* Hide desktop branding, show mobile header */
    .desktop-branding {
        display: none;
    }

    .header-top-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: relative;
        padding: 0 1rem;
    }

    /* Position hamburger on the right without affecting logo centering */
    .header-top-bar .mobile-menu-toggle {
        position: absolute;
        right: 1rem;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .site-branding {
        padding-bottom: 0;
    }

    /* Prevent horizontal overflow */
    .header-wrapper,
    .hero-section,
    .features-section,
    .dashboard-section,
    .content-section,
    .cta-section,
    .about-section,
    .site-footer {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Reduce padding on sections */
    .hero-section,
    .features-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Scale down typography for mobile */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Reduce hero section height */
    .hero-section h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Footer adjustments */
    .site-footer {
        padding: 2rem 0;
    }

    .site-footer .container {
        padding: 0 1rem;
    }

    .footer-info p {
        font-size: 0.85rem;
    }

    /* Hide navigation by default on mobile */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(10, 10, 30, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 12px 20px 12px;
        flex-direction: column;
        gap: 0.75rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(0, 212, 255, 0.2);
    }

    /* Show navigation when active */
    .main-navigation.active {
        right: 0;
    }

    /* Stack all nav items vertically - brighter on dark drawer background */
    .main-navigation .pb-swap-nav-button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
        background: rgba(0, 212, 255, 0.25) !important;
        border: 2px solid var(--umbrella-secondary) !important;
        color: var(--umbrella-secondary) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    }

    .main-navigation .wallet-section {
        width: 100%;
        display: block;
    }

    .main-navigation .nav-wallet-button {
        width: 100%;
        justify-content: center;
    }

    /* Mobile overlay removed - not needed */

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Hero Section - Clean glass effect on top of background */
.hero-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5rem 3rem;
    text-align: center;
    margin: 3rem auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, var(--umbrella-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section .connected-wallet-info h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.hero-section .connected-wallet-info p {
    color: rgba(255, 255, 255, 0.9);
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Card Styles - Glass morphism effect */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--umbrella-secondary), var(--umbrella-accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 212, 255, 0.2), 0 0 0 1px rgba(0, 212, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Blog card specific styling */
.feature-card.blog-card {
    cursor: pointer;
}

.feature-card.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(255, 165, 0, 0.3), 0 0 0 1px rgba(255, 165, 0, 0.5);
}

/* Wallet Generator card styling */
.feature-card.wallet-gen-card {
    cursor: pointer;
}

.feature-card.wallet-gen-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 255, 136, 0.3), 0 0 0 1px rgba(0, 255, 136, 0.5);
}

/* Cardano.Place card styling */
.feature-card.cardano-place-card {
    cursor: pointer;
}

.feature-card.cardano-place-card:hover .pixel-grid > div > div {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.feature-card.cardano-place-card .pixel-grid > div > div {
    transition: all 0.2s ease;
}

.feature-card.cardano-place-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(138, 43, 226, 0.3), 0 0 0 1px rgba(138, 43, 226, 0.5);
}

.feature-card .feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, var(--umbrella-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.feature-card a {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Dashboard Section - Glass effect */
.dashboard-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4rem 3rem;
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-section .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.dashboard-section h2 {
    color: white;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, var(--umbrella-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--umbrella-secondary), var(--umbrella-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2), 0 0 0 1px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card h3 {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-card p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.dashboard-card code {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: block;
    word-break: break-all;
    font-size: 0.85rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Network Status */
.network-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-connected {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.network-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* NFT Preview Card */
.nft-preview-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nft-count {
    background: linear-gradient(135deg, var(--umbrella-secondary), var(--umbrella-accent));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.nft-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.nft-preview-thumb {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nft-preview-thumb:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--umbrella-secondary);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.nft-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.nft-placeholder svg {
    stroke-width: 1.5;
}

.nft-preview-more {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nft-preview-more:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--umbrella-secondary);
    transform: translateY(-2px) scale(1.05);
}

.nft-preview-more span {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Content Section - Glass effect */
.content-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4rem 3rem;
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.content-section .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* CTA Section - Glass effect */
/* About Section */
.about-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4rem 3rem;
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.about-section h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, var(--umbrella-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-content.has-image {
    grid-template-columns: 1fr 1fr;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

.cta-section {
    background: linear-gradient(135deg, rgba(0, 51, 173, 0.15), rgba(0, 212, 255, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 5rem 3rem;
    margin: 4rem auto 6rem;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 64px rgba(0, 212, 255, 0.3), 0 0 0 1px rgba(0, 212, 255, 0.5);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, var(--umbrella-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

/* Wallet Modal Styling */
.cardanopress-modal {
    backdrop-filter: blur(5px);
}

.cardanopress-modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 500px;
}

/* Custom Wallet Connect Button Styles */
.wallet-connect-btn {
    position: relative;
    overflow: hidden;
}

.wallet-connect-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.wallet-connect-btn:not(:disabled):active {
    transform: translateY(0);
}

.wallet-icon {
    background: linear-gradient(135deg, var(--umbrella-primary), var(--umbrella-secondary));
    color: white;
    border-radius: 0.5rem;
    font-weight: bold;
}

/* Modal container improvements */
[x-show="showModal"] {
    z-index: 9999;
}

/* Utility classes for Tailwind-like spacing */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-800 {
    color: #1e40af;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:bg-blue-50:hover {
    background-color: #eff6ff;
}

.hover\:border-blue-500:hover {
    border-color: #3b82f6;
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Footer - Glass effect */
.site-footer {
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--umbrella-light);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    transition: background 0.3s ease;
}

.site-footer:hover {
    background: rgba(10, 14, 39, 0.75);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-navigation {
    margin-top: 1rem;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-navigation li {
    list-style: none;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: var(--umbrella-secondary);
}

.footer-widgets {
    width: 100%;
    max-width: 800px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Prevent header/footer overflow on small screens (like wallet-generator fix) */
@media (max-width: 640px) {
    /* Footer can be constrained safely */
    .site-footer {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Header needs special handling - don't hide overflow or drawer will be clipped */
    .site-header {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .header-wrapper,
    .site-footer .container {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .header-top-bar,
    .footer-info,
    .footer-content {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

/* Additional utility classes */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.h-5 { width: 1.25rem; }
.w-5 { height: 1.25rem; }
.max-w-md { max-width: 28rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.p-2 { padding: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.pt-4 { padding-top: 1rem; }
.gap-3 { gap: 0.75rem; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.capitalize { text-transform: capitalize; }

.text-red-600 { color: #dc2626; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }

.mt-2 { margin-top: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.border-2 { border-width: 2px; }
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.cursor-pointer { cursor: pointer; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded-xl {
    border-radius: 0.5rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.overflow-auto {
    overflow: auto;
}

.fixed {
    position: fixed;
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

/* More utility classes for CardanoPress templates */
.list-none {
    list-style: none;
    padding: 0;
    margin: 0;
}

.my-0 { margin-top: 0; margin-bottom: 0; }
.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.flex-wrap { flex-wrap: wrap; }

.w-full.sm\:w-1\/2 { width: 100%; }
.w-full.lg\:w-1\/4 { width: 100%; }

.bg-white { background-color: white; }
.bg-gray-500 { background-color: #6b7280; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.rounded { border-radius: 0.25rem; }

.inline-flex { display: inline-flex; }

.uppercase { text-transform: uppercase; }

.text-9xl { font-size: 8rem; }
.text-3xl { font-size: 1.875rem; }

.font-medium { font-weight: 500; }

.break-all { word-break: break-all; }

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:w-1\/2 { width: 50%; }
}

@media (min-width: 1024px) {
    .lg\:w-1\/4 { width: 25%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .main-navigation {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .features-section {
        position: relative;
        padding-bottom: 3rem;
    }

    .features-section::after {
        content: '← Swipe →';
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        color: var(--umbrella-secondary);
        font-size: 0.875rem;
        font-weight: 500;
        opacity: 0.6;
        letter-spacing: 0.1em;
    }

    .features-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 1rem 1rem 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    /* Hide scrollbar for Chrome/Safari */
    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        max-width: 400px;
        padding: 2rem 1.5rem;
    }

    .dashboard-section {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    .dashboard-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-section,
    .cta-section,
    .about-section {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    .about-section h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .about-content.has-image {
        grid-template-columns: 1fr;
    }

    .about-text {
        font-size: 1rem;
    }

    .cardanopress-wallet-connect {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.feature-card,
.dashboard-section,
.about-section,
.content-section,
.cta-section {
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* NFT Minting Section */
.mint-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4rem 3rem;
    margin: 6rem auto 4rem auto;
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mint-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.mint-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    background: linear-gradient(135deg, #ffffff, var(--umbrella-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    width: 100%;
}

.mint-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
    text-align: center;
    width: 100%;
}

.mint-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

/* Force all mint widget content to center */
.mint-container .cardano-nft-mint,
.mint-container .cardano-shortcode-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.mint-container .nft-price,
.mint-container .cardano-mint-now-button {
    margin-left: auto;
    margin-right: auto;
}

/* Fix for Cardano Mint Modal - ensure it renders correctly as overlay */
.cardano-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 20px !important;
    overflow-y: auto !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    display: none !important; /* Hidden by default */
    pointer-events: auto !important;
}

/* Only show modal when explicitly set to flex */
.cardano-modal[style*="display: flex"] {
    display: flex !important;
}

/* Ensure hidden state takes precedence and doesn't block page */
.cardano-modal[style*="display: none"] {
    display: none !important;
    pointer-events: none !important;
}

/* Ensure body scrolling is enabled when modal is hidden */
body:not(.modal-open) {
    overflow: auto !important;
}

.cardano-modal-content {
    position: relative !important;
    z-index: 1000000 !important;
    margin: auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

.cardano-modal-close {
    cursor: pointer !important;
}

.btn-close-modal {
    cursor: pointer !important;
}
