@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== DARK THEME (default) ===== */
:root {
    --background: #020617;
    --foreground: #f8fafc;
    --white: #0f172a;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.1);
    --card: #0f172a;
    --card-foreground: #e2e8f0;
    --border: #1e293b;
    --muted: #94a3b8;
    --muted-light: #64748b;
    --radius: 0.75rem;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --nav-border: rgba(255, 255, 255, 0.06);
    --search-bg: rgba(30, 41, 59, 0.5);
    --search-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow: rgba(0, 0, 0, 0.2);
    --hero-gradient: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    --gradient-start: #c084fc;
    --gradient-end: #db2777;
    --search-btn-bg: linear-gradient(135deg, #8b5cf6, #d946ef);
    --search-btn-hover: linear-gradient(135deg, #7c3aed, #c026d3);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --background: #f5f5f5;
    --foreground: #1a1a2e;
    --white: #ffffff;
    --primary: #f0a500;
    --primary-hover: #d4920a;
    --primary-light: rgba(240, 165, 0, 0.1);
    --card: #ffffff;
    --card-foreground: #333;
    --border: #e5e5e5;
    --muted: #6b7280;
    --muted-light: #9ca3af;
    --nav-bg: #ffffff;
    --nav-border: #e5e5e5;
    --search-bg: #ffffff;
    --search-shadow: rgba(0, 0, 0, 0.06);
    --card-shadow: rgba(0, 0, 0, 0.08);
    --hero-gradient: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    --gradient-start: #f0a500;
    --gradient-end: #f0a500;
    --search-btn-bg: #f0a500;
    --search-btn-hover: #d4920a;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 4rem;
    display: flex;
    align-items: center;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s, border-color 0.3s;
    padding: 0 1.5rem;
}

.nav .container {
    max-width: 100%;
    padding: 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--foreground);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: background 0.3s;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.logo-sub {
    font-weight: 400;
    color: var(--card-foreground);
    font-size: 0.85rem;
    opacity: 0.6;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* User indicator in nav */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    transition: background 0.2s, color 0.2s;
}

.nav-user ion-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-user:hover {
    background: var(--primary);
    color: white;
}

.nav-user:hover ion-icon {
    color: white;
}

/* ===== FLOATING THEME FAB ===== */
.theme-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, background 0.2s;
}

.theme-fab:hover {
    transform: scale(1.1);
}

/* Show moon in dark, sun in light */
.fab-icon-light {
    display: none;
}

.fab-icon-dark {
    display: block;
}

[data-theme="light"] .fab-icon-light {
    display: block;
}

[data-theme="light"] .fab-icon-dark {
    display: none;
}

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: var(--foreground);
}

.text-accent {
    color: var(--primary);
}

.hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 550px;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

/* ===== SEARCH BAR ===== */
.search-container {
    width: 100%;
    max-width: 700px;
    padding: 0 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--search-bg);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.375rem;
    box-shadow: 0 4px 20px var(--search-shadow);
    transition: box-shadow 0.2s, background 0.3s, border-color 0.3s;
}

.search-bar:focus-within {
    box-shadow: 0 4px 24px var(--primary-light);
    border-color: var(--primary);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    min-width: 0;
}

.search-field ion-icon,
.search-date ion-icon {
    color: var(--muted-light);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-field input,
.search-date input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--foreground);
    width: 100%;
}

.search-field input::placeholder {
    color: var(--muted-light);
}

.search-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

.search-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
}

.search-date input {
    width: 140px;
}

/* Dark mode date picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

.search-submit {
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    background: var(--search-btn-bg);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-submit:hover {
    background: var(--search-btn-hover);
    transform: scale(1.02);
}

/* ===== USER PAGE ===== */
.user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-avatar ion-icon {
    font-size: 3.5rem;
    color: var(--primary);
}

.user-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 0.125rem;
}

.user-phone {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
}

.date-filter-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.date-filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.date-filter-title ion-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.date-filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-input {
    flex: 1;
    min-width: 180px;
    padding: 0.65rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Forget me link */
.nav-forget {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-forget:hover {
    color: var(--danger, #ef4444);
}

/* Card enhancements */
.card-footer {
    padding: 0.75rem;
}

.card-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* ===== SECTION ===== */
.section-header {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ===== ACTIVE NAV LINK ===== */
.nav-links a.active {
    color: var(--primary);
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
    text-align: center;
    background: var(--hero-gradient);
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
}

.page-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.page-content {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* ===== CONTENT CARD ===== */
.content-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.content-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.content-card-icon ion-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.content-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.content-card p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STEPS GRID ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.step-card:hover {
    border-color: var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-card ion-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== PRICING GRID ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.pricing-single {
    display: flex;
    justify-content: center;
}

.pricing-single .pricing-card {
    max-width: 400px;
    width: 100%;
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    position: relative;
    transition: border-color 0.2s;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.pricing-popular {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted);
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--foreground);
    padding: 0.4rem 0;
}

.pricing-features li.disabled {
    color: var(--muted);
    opacity: 0.5;
}

.pricing-features .check {
    color: var(--primary);
    font-size: 1.1rem;
}

.pricing-features li.disabled ion-icon {
    color: var(--muted);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== CONTACT GRID ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon ion-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.1rem;
}

.contact-item p {
    font-size: 0.8rem;
    color: var(--muted);
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-item a p {
    margin: 0;
    transition: all 0.3s ease;
}

.contact-item a:hover p {
    color: var(--primary);
    text-decoration: underline;
}

.contact-item a:active {
    transform: scale(0.98);
}

.contact-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    padding: 0.65rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-message h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.8rem;
}

/* ===== GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0 3rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--card-shadow);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--border);
}

.card-footer {
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-date {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--foreground);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== RECENT SEARCH ===== */
.recent-search {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
}

.recent-search:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .hero {
        padding-top: 5.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .search-bar {
        flex-direction: column;
        border-radius: var(--radius);
        gap: 0;
    }

    .search-field {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .search-divider {
        display: none;
    }

    .search-date {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .search-date input {
        width: 100%;
    }

    .search-submit {
        width: 100%;
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 0.875rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    /* Hamburger visible on mobile */
    .nav-hamburger {
        display: flex;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .nav-user {
        justify-content: center;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .card-image {
        height: 140px;
    }

    .card-footer {
        padding: 0.875rem;
    }

    .section-header {
        font-size: 1.25rem;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}
/* Modern PWA Install Button */
/* Modern PWA Install Button (Static in Footer) */
.pwa-install-container {
    margin-top: 1.5rem;
    display: none; /* Controlled by JS */
    justify-content: center;
}

.pwa-install-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: none;
    font-family: inherit;
}

.pwa-install-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(118, 75, 162, 0.4);
    filter: brightness(1.1);
}

.pwa-install-btn:active {
    transform: scale(0.96);
}

.pwa-install-btn ion-icon {
    font-size: 1.25rem;
}

