/* PebbleTrail — Liquid Glass & Mobile-First Nature UI */
:root {
    --bg-base: #e9f1ec;
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-bg-strong: rgba(255, 255, 255, 0.82);
    --glass-sub: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.78);
    --text: #15241b;
    --muted: #4b5f52;
    --primary: #1f5c3e;
    --primary-light: #2e8459;
    --primary-hover: #17462f;
    --accent: #d97724;
    --danger: #c0352b;
    --success-bg: rgba(220, 247, 230, 0.85);
    --success-fg: #14532d;
    --error-bg: rgba(254, 226, 226, 0.88);
    --error-fg: #991b1b;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-glass: 0 10px 34px rgba(18, 46, 30, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(145deg, #e3efe7 0%, #f1f6f3 48%, #e4eee9 100%);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Liquid Glass Orbs */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.55;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #74c69d, #40916c);
    top: -120px;
    left: -100px;
}

.blob-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #95d5b2, #52b788);
    bottom: 10%;
    right: -90px;
    animation-delay: -6s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffd166, #f4a261);
    top: 42%;
    left: 25%;
    opacity: 0.28;
    animation-delay: -11s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(28px, -22px) scale(1.08); }
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Liquid Glass Surfaces */
.card, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(165%);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-glass);
}

.glass-subcard {
    background: var(--glass-sub);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

/* Sticky Glass Header */
.site-header.glass-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(246, 251, 248, 0.72);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(20, 50, 32, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand:hover {
    text-decoration: none;
}

.brand-logo-svg {
    color: var(--primary);
    flex-shrink: 0;
}

.ui-icon {
    display: inline-block;
    vertical-align: -0.18em;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 7px;
    padding: 2px;
    gap: 2px;
}

.lang-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.52rem;
    border-radius: 5px;
    color: var(--muted);
    transition: all 0.15s ease;
}

.lang-pill:hover {
    text-decoration: none;
    color: var(--text);
}

.lang-pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(31, 92, 62, 0.25);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
}

.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem 0 0.35rem;
    border-top: 1px solid rgba(21, 36, 27, 0.08);
}

.main-nav.open {
    display: flex;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    padding: 0.45rem 0.35rem;
    border-radius: 8px;
}

.main-nav a.nav-muted {
    color: var(--muted);
}

.main-content {
    padding-top: 1.25rem;
    padding-bottom: 5rem;
}

.section-block {
    margin-top: 1.5rem;
}

.section-header {
    margin-bottom: 1rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.muted {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 1.2rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.14s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 6px 18px rgba(31, 92, 62, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.btn-glass, .btn-outline {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--text);
    box-shadow: 0 2px 10px rgba(20, 50, 32, 0.05);
}

.btn-glass:hover, .btn-outline:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-gold {
    background: rgba(254, 243, 199, 0.88);
    color: #78350f;
    border-color: rgba(245, 158, 11, 0.4);
}

.btn-sm {
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-lg {
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Pills & Badges */
.pill-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(31, 92, 62, 0.12);
    color: var(--primary);
}

.pill-glow {
    background: linear-gradient(135deg, rgba(46, 132, 89, 0.18), rgba(217, 119, 36, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.pill-outline {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--muted);
}

.pill-gold {
    background: rgba(254, 243, 199, 0.9);
    color: #92400e;
}

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hero Split with Photo */
.hero-glass {
    padding: 1.35rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(1.7rem, 4.2vw, 2.55rem);
    margin: 0.45rem 0 0.75rem;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.hero-photo-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 28px rgba(18, 46, 30, 0.16);
}

.hero-photo-frame img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.hero-photo-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    background: rgba(18, 32, 24, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.stat-item {
    text-align: center;
    padding: 0.9rem 0.5rem;
}

.stat-value {
    display: block;
    font-size: clamp(1.1rem, 3.2vw, 1.7rem);
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Wild Stone Photo Gallery (Mobile swipeable, Desktop 3-col) */
.wild-gallery {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.wild-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    margin: 0;
    padding: 0.65rem;
}

.wild-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}

.wild-card figcaption {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

/* Latest Logged Find Showcase */
.latest-find-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.latest-find-body {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.latest-find-info {
    flex: 1 1 320px;
}

.latest-find-stone {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 1.12rem;
}

.latest-find-meta {
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.latest-find-quote {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.9rem;
    border-left: 3px solid var(--primary-light);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.latest-find-photo img {
    width: 180px;
    height: 130px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.recent-finds-strip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(21, 36, 27, 0.08);
}

.recent-find-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    color: var(--text);
}

/* Maps */
.map-container {
    width: 100%;
    height: 340px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(230, 238, 232, 0.7);
    z-index: 1;
}

/* Pricing & Checkout */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-featured {
    border: 2px solid var(--primary-light);
    background: rgba(255, 255, 255, 0.76);
}

.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.25rem 0 0.5rem;
}
.price span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
}

.checkout-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(21, 36, 27, 0.1);
}

.checkout-total {
    font-size: 1.18rem;
}

/* Forms (16px prevents mobile iOS auto-zoom) */
.form-group {
    margin-bottom: 0.95rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(46, 132, 89, 0.32);
    border-color: var(--primary-light);
    background: #fff;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.form-grid, .form-grid-2, .form-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.divider {
    border: none;
    border-top: 1px solid rgba(21, 36, 27, 0.1);
    margin: 1.25rem 0;
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 7px;
    margin-bottom: 1rem;
    font-size: 0.94rem;
    backdrop-filter: blur(12px);
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-fg);
    border: 1px solid rgba(20, 83, 45, 0.2);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-fg);
    border: 1px solid rgba(153, 27, 27, 0.2);
}

/* Auth */
.auth-wrapper {
    max-width: 440px;
    margin: 1.25rem auto;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(21, 36, 27, 0.1);
}

.auth-tabs a {
    text-align: center;
    padding: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}

.auth-tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Stone Profile */
.stone-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.stone-cta-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.nearby-widget {
    font-size: 0.88rem;
    text-align: center;
}

.stone-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(21, 36, 27, 0.1);
}

.mini-stat {
    text-align: center;
}
.mini-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}
.mini-lbl {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(246, 251, 248, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.85);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.timeline-item {
    border-left: 4px solid var(--primary);
}

.timeline-owner_reply {
    border-left-color: var(--accent);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.timeline-type {
    font-weight: 700;
}

.country-tag {
    background: rgba(255, 255, 255, 0.85);
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.timeline-photo img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 7px;
    margin-top: 0.6rem;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 26, 18, 0.52);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 10px 10px 0 0;
    background: rgba(248, 252, 249, 0.92);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    min-width: 44px;
    min-height: 44px;
}

.geo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.photo-preview img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.story-card-top {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.22rem 0.65rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
}
.status-active { background: rgba(209, 250, 229, 0.9); color: #065f46; }
.status-dormant { background: rgba(254, 243, 199, 0.9); color: #92400e; }
.status-replaced { background: rgba(226, 232, 240, 0.9); color: #475569; }

.story-card-stats {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    margin: 0.75rem 0;
}

.story-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reincarnation-box {
    margin-top: 1rem;
    padding: 0.85rem;
    background: rgba(255, 247, 230, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 6px;
}

.moderation-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(21, 36, 27, 0.1);
    flex-wrap: wrap;
}

.moderation-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.thumb-img {
    max-width: 140px;
    max-height: 110px;
    border-radius: 8px;
    margin-top: 0.4rem;
}

.reply-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(21, 36, 27, 0.1);
}

.reply-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

/* Admin & Tables */
.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(21, 36, 27, 0.1);
    text-align: left;
    vertical-align: top;
}

.print-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.pin-card {
    border: 1px dashed #7a8b7f;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    background: #fff;
    break-inside: avoid;
}

.pin-card-code {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pin-card-url {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0.2rem 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    padding: 1.25rem 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tablet & Desktop Breakpoints */
@media (min-width: 720px) {
    .nav-toggle {
        display: none;
    }
    .main-nav {
        display: flex !important;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0;
        border-top: none;
    }
    .header-right {
        order: 3;
    }
    .hero-split {
        grid-template-columns: 1.15fr 0.85fr;
    }
    .hero-photo-frame img {
        height: 290px;
    }
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .wild-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
    }
    .wild-card {
        flex: unset;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stone-cta-box {
        width: auto;
        min-width: 260px;
    }
    .mobile-sticky-cta {
        display: none;
    }
    .modal {
        align-items: center;
        padding: 1rem;
    }
    .modal-dialog {
        border-radius: var(--radius);
    }
}

@media (min-width: 960px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media print {
    .ambient-bg, .site-header, .site-footer, .admin-nav, .btn-row, form, .mobile-sticky-cta {
        display: none !important;
    }
    .card {
        border: none;
        box-shadow: none;
        background: #fff;
        padding: 0;
    }
}
