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

:root {
    --bg-dark: #070a13;
    --bg-card: rgba(15, 22, 42, 0.65);
    --bg-card-hover: rgba(22, 32, 60, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(16, 185, 129, 0.2);
    
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #06b6d4; /* Neon Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.4);
    --accent: #6366f1; /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

body::before {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

body::after {
    bottom: 20%;
    right: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, var(--text-main) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    background: linear-gradient(135deg, var(--text-main) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-align: center;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--secondary-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(7, 10, 19, 0.7);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(7, 10, 19, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 15px var(--primary-glow);
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.site-nav a:hover, .site-nav a.active {
    color: var(--primary);
}

.logo-text span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-nav-app {
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-backdrop {
    display: none;
}

body.dashboard-mode .site-nav,
body.dashboard-mode .nav-toggle,
body.dashboard-mode .nav-backdrop {
    display: none !important;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--text-main);
}

.stat-item p {
    font-size: 0.875rem;
}

/* Glass Card Illustration */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    transition: var(--transition-smooth);
}

.profile-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.15);
}

.profile-image-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    background: #111827;
    position: relative;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.profile-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(7, 10, 19, 0.8);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    backdrop-filter: blur(8px);
}

/* Sections General */
section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -0.75rem auto 3.5rem auto;
}

/* Crypto Tax Rules Accordion & Cards */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.rules-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.rule-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
    border-color: rgba(16, 185, 129, 0.2);
}

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

.rule-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.rule-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.rule-card p {
    font-size: 0.95rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-header {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--secondary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-content {
    max-height: 1000px;
    padding: 0 2rem 1.5rem 2rem;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Services and Pricing ("Offerta Pazesca") */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(16px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.15);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 22, 42, 0.65) 100%);
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.1);
}

.pricing-card.popular::after {
    content: 'CONVENIENTE';
    position: absolute;
    top: 24px;
    right: -32px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.pricing-card.pazzesca {
    border-color: var(--secondary);
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(15, 22, 42, 0.65) 100%);
    box-shadow: 0 10px 30px -5px rgba(6, 182, 212, 0.1);
}

.pricing-card.pazzesca::after {
    content: 'OFFERTA PAZZESCA';
    position: absolute;
    top: 24px;
    right: -42px;
    background: var(--secondary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 3rem;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.price-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 48px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.price-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-val-original {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-dim);
    margin-right: 0.5rem;
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.price-features li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Contact / Consultation Form */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border-radius: 12px;
    font-size: 1.25rem;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-text p {
    font-size: 0.95rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(16px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    background: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    background: rgba(7, 10, 19, 0.9);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Web App Dashboard (Full View - Hidden by default) */
#dashboard-view {
    display: none;
    padding: 2rem 0 6rem 0;
    position: relative;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-title h2 {
    text-align: left;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--text-main) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-badge-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-disconnect {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.btn-disconnect:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

.wallet-status {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: none;
}

.wallet-status.active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2.5rem;
}

/* Dashboard loading overlay */
.dashboard-loading {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: var(--radius-lg);
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.loading-spinner {
    font-size: 2rem;
    color: var(--secondary);
}

.loading-message {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wc-loading {
    font-size: 2rem;
    color: var(--secondary);
}

#wc-qr-container img {
    border-radius: var(--radius-sm);
}


.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Stat Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-card-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Portfolio Allocation */
.portfolio-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.assets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.asset-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.asset-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.asset-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.asset-values {
    text-align: right;
}

.asset-fiat {
    font-weight: 700;
    font-size: 0.95rem;
}

.asset-crypto {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tax Calculator Card */
.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.calc-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-result-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.calc-result-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.calc-result-val {
    font-weight: 700;
    font-size: 1.1rem;
}

.calc-result-val.highlight {
    font-size: 1.5rem;
    color: var(--primary);
}

.fee-saving-banner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
}

/* Compliance Checklist */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
}

.check-box {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.check-desc h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.check-desc p {
    font-size: 0.8rem;
}

/* Modal and notifications */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Wallets Grid inside Modal */
.wallets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.wallet-modal-content {
    max-width: 550px;
}

.wallet-modal-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.wallet-modal-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 1rem;
    text-align: center;
}

.wallet-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    gap: 0.75rem;
}

.wallet-option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.15);
}

.wallet-option-card img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    object-fit: contain;
    display: block;
}

.wallet-option-card .wallet-option-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.wallet-option-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
}

.wallet-option-card--featured:hover {
    border-color: var(--secondary);
    background: rgba(6, 182, 212, 0.12);
}

.wallet-option-card--featured .wallet-option-name {
    text-align: left;
}

.wc-open-prompt {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.wc-open-prompt.active {
    opacity: 1;
    pointer-events: all;
}

.wc-open-prompt-inner {
    width: 100%;
    max-width: 380px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: min(80dvh, 80vh);
    overflow: hidden;
}

.wc-open-prompt-inner h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.wc-open-prompt-inner p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
    color: var(--text-muted);
}

.wc-open-prompt-inner .btn {
    width: 100%;
    margin: 0;
    min-height: 52px;
    font-size: 1rem;
}

.wc-open-prompt-inner .wc-open-link {
    text-decoration: none;
    order: -2;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.wc-open-prompt-inner .wc-open-link--pending {
    pointer-events: none;
    opacity: 0.88;
}

.wc-open-prompt-inner .wc-open-link--pending i {
    margin-right: 0.4rem;
}

.wc-open-prompt-inner .wc-open-action {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.wallet-browser-connect-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.97) 0%, #0f172a 100%);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
}

.wallet-browser-connect-banner[hidden] {
    display: none !important;
}

.wallet-browser-connect-banner p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
}

.wallet-browser-connect-banner .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    box-shadow: 0 4px 20px var(--primary-glow);
}

body.has-wallet-connect-banner {
    padding-bottom: 7.5rem;
}

body.has-wallet-connect-banner #dashboard-view .container {
    padding-bottom: 1rem;
}

.wallet-boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.wallet-boot-overlay[hidden] {
    display: none !important;
}

.wallet-boot-inner {
    width: 100%;
    max-width: 400px;
    background: #0f172a;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-boot-inner h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.wallet-boot-inner p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.wallet-boot-inner .btn {
    min-height: 54px;
    font-size: 1.05rem;
    box-shadow: 0 4px 24px var(--primary-glow);
}

.wallet-boot-inner .btn-secondary {
    box-shadow: none;
}

.wallet-boot-status {
    min-height: 1.2rem;
    font-size: 0.8rem;
    color: var(--secondary);
}

body.wallet-boot-active {
    overflow: hidden;
}

body.wallet-boot-active #landing-view {
    display: none !important;
}

body.wallet-boot-active #dashboard-view {
    display: block !important;
}

.wc-open-prompt-inner .wc-open-cancel {
    order: 1;
    min-height: 44px;
}

.wallet-modal-scroll {
    overflow: visible;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.wallet-all-view {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.wallet-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0;
    width: fit-content;
}

.wallet-back-btn:hover {
    color: var(--primary);
}

.wallet-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.wallet-all-view:not([hidden]) {
    display: flex;
}

.wallet-all-view[hidden] {
    display: none !important;
}

.wallet-all-list {
    flex: none;
    min-height: 220px;
    max-height: min(68dvh, 68vh);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.15rem;
}

.wallet-all-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    min-height: 56px;
}

.wallet-all-item:hover,
.wallet-all-item:focus-visible {
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
    outline: none;
}

.wallet-all-item img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    object-fit: contain;
}

.wallet-all-item-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.wallet-all-item-arrow {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.wallet-all-loading,
.wallet-all-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 1.5rem 0.5rem;
}

    #wallet-modal.wallet-modal--all-wallets .wallet-modal-scroll {
        max-height: min(94dvh, 94vh);
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    }

    #wallet-modal.wallet-modal--all-wallets .wallet-all-list {
        max-height: min(72dvh, 72vh);
    }

    .wallet-load-more {
    width: 100%;
    min-height: 44px;
    font-size: 0.9rem;
}

#wallet-modal.wallet-modal--all-wallets .wallet-modal-scroll {
    display: block;
    max-height: min(94dvh, 94vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#wallet-modal.wallet-modal--all-wallets .wallet-all-list {
    min-height: 280px;
    max-height: min(58dvh, 58vh);
}

/* WalletConnect QR styles */
.wc-qr-box {
    width: 220px;
    height: 220px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-qr-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-qr-inner svg {
    width: 100%;
    height: 100%;
}

.wc-qr-inner svg path {
    fill: #0f172a !important;
}

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    z-index: 1001;
    transform: translateY(150%);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification.active {
    transform: translateY(0);
}

.notification-icon {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: #04060c;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h5 {
    color: var(--text-main);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* GMC / Legal / Trust */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.about-credentials {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-credentials li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.about-credentials i {
    color: var(--primary);
}

.about-trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(16px);
}

.trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.25rem 0;
    text-align: center;
}

.trust-metrics strong {
    display: block;
    font-size: 1.4rem;
    color: var(--text-main);
}

.trust-metrics span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.pricing-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 2rem;
}

.pricing-disclaimer a {
    color: var(--secondary);
}

.compliance-disclaimer {
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
}

.compliance-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.form-legal-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    text-align: center;
}

.form-legal-note a {
    color: var(--secondary);
}

.legal-page {
    padding: 4rem 2rem 6rem;
    max-width: 800px;
}

.legal-page h1 {
    text-align: left;
    margin-bottom: 1rem;
}

.legal-page h2 {
    text-align: left;
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}

.legal-page p, .legal-page li {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.legal-page a {
    color: var(--secondary);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.legal-table th, .legal-table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.legal-table th {
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-premium);
}

.cookie-banner-inner p {
    font-size: 0.85rem;
    margin: 0;
    flex: 1;
    min-width: 240px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-banner-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}


/* Responsive layout adjustments */
@media (max-width: 992px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-container {
        height: 72px;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .nav-actions {
        order: 2;
    }

    .logo {
        margin-right: auto;
        order: 1;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100dvh;
        height: 100vh;
        background: rgba(7, 10, 19, 0.98);
        border-left: 1px solid var(--border-color);
        z-index: 200;
        padding: calc(5rem + env(safe-area-inset-top, 0)) 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.nav-open .site-nav {
        transform: translateX(0);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .site-nav a {
        display: block;
        padding: 1rem 0.5rem;
        font-size: 1.05rem;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-backdrop[hidden] {
        display: none !important;
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: all;
    }

    body.nav-open {
        overflow: hidden;
    }

    .btn-nav-app {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .btn-nav-app-label {
        display: none;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-tag, .hero-actions, .hero-stats {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-item h3 {
        font-size: 1.75rem;
    }
    
    .rules-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .trust-metrics {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .logo {
        font-size: 1.15rem;
        min-width: 0;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    .logo-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .portfolio-split-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-inputs-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-title h2 {
        font-size: 1.5rem;
    }

    .wallet-badge-container {
        flex-direction: column;
        align-items: stretch;
    }

    .wallet-badge-container .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-card {
        padding: 1.25rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 200px;
    }

    .faq-header {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-content,
    .faq-item.active .faq-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .faq-item.active .faq-content {
        padding-bottom: 1.25rem;
    }

    .rule-card {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: calc(100% - 1.5rem);
        max-height: calc(100dvh - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        padding: 2rem 1.25rem;
        margin: 1rem;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .modal-overlay.active .modal-content {
        transform: none;
    }

    #wallet-modal {
        display: block;
        overflow: hidden;
        padding: 0;
    }

    #wallet-modal .wallet-modal-content {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-bottom: none;
        padding: 0;
        max-height: none;
        height: auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: none !important;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    }

    #wallet-modal .wallet-modal-scroll {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        max-height: min(92dvh, 92vh);
        padding: 2.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0));
    }

    #wallet-modal .modal-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 3;
        background: rgba(15, 23, 42, 0.95);
        border-radius: var(--radius-sm);
    }

    #wallet-modal .modal-title {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
        padding-right: 0;
    }

    #wallet-modal .wallet-modal-intro {
        margin-bottom: 0.75rem;
        font-size: 0.78rem;
        line-height: 1.4;
    }

    #wallet-modal .wallet-modal-hint {
        display: none;
    }

    #wallet-modal.wallet-modal--all-wallets .wallet-modal-scroll {
        max-height: min(94dvh, 94vh);
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    }

    #wallet-modal.wallet-modal--all-wallets .wallet-all-list {
        max-height: min(72dvh, 72vh);
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wallets-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .wallet-option-card {
        flex-direction: column;
        justify-content: center;
        padding: 0.6rem 0.25rem;
        min-height: 76px;
        gap: 0.35rem;
    }

    .wallet-option-card--featured {
        flex-direction: row;
        justify-content: flex-start;
        grid-column: 1 / -1;
        min-height: 52px;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .wallet-option-card--featured .wallet-option-name {
        font-size: 0.88rem;
    }

    .wallet-option-card img {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .wallet-option-card .wallet-option-name {
        font-size: 0.62rem;
        line-height: 1.15;
        text-align: center;
    }

    .notification {
        left: 1rem;
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }

    .btn {
        min-height: 44px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price-val {
        font-size: 2.5rem;
    }

    .pricing-card.popular::after,
    .pricing-card.pazzesca::after {
        font-size: 0.65rem;
        top: 20px;
    }

    .legal-page {
        padding: 3rem 0 4rem;
    }

    .legal-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    h1 {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 40%;
        text-align: center;
    }

    .profile-image-container {
        height: 240px;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    .nav-container {
        height: 64px;
    }

    #dashboard-view {
        padding: 1.25rem 0 4rem;
        min-height: calc(100dvh - 64px);
        min-height: calc(100vh - 64px);
    }

    .calc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .calc-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    body::before,
    body::after {
        width: 300px;
        height: 300px;
        filter: blur(100px);
    }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-top)) {
    header {
        padding-top: env(safe-area-inset-top);
    }

    .notification {
        bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    .cookie-banner {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
