/* ===================================================================
   Pawsome Puppies 2026 — Midnight Glassmorphism Design System
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────────────── */
:root {
    --bg-dark: #0a0b10;
    --bg-mid: #0f1018;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --accent-gold: #d4a847;
    --accent-gold-lt: #f0c96a;
    --accent-blue: #5b8dee;
    --accent-red: #ff4757;
    --accent-green: #2ed573;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.60);
    --text-muted: rgba(255, 255, 255, 0.35);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.40);
    --shadow-gold: 0 0 30px rgba(212, 168, 71, 0.20);
    --transition: all 0.30s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(ellipse at 20% 0%, #1a1a2e 0%, var(--bg-dark) 55%),
        radial-gradient(ellipse at 80% 100%, #16213e 0%, var(--bg-dark) 55%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────────────── */
h1,
h2,
h3,
.playfair {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-gold-lt {
    color: var(--accent-gold-lt) !important;
}

.text-elite {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.italic {
    font-style: italic;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.50;
}

/* ─── Glass Cards ────────────────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.50);
}

.glass-card-flat {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

/* ─── Bento Grid ─────────────────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-elite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-gold), #c49a30);
    color: #000 !important;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(212, 168, 71, 0.30);
}

.btn-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 71, 0.50);
    background: linear-gradient(135deg, var(--accent-gold-lt), var(--accent-gold));
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--glass-bg);
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn-urgent {
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    color: #fff !important;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-urgent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.40);
}

/* ─── Urgency Pulse Dot ──────────────────────────────────────────── */
.pulse-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    background-color: var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.70);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0.00);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.00);
    }
}

/* ─── Badges ─────────────────────────────────────────────────────── */
.badge-elite {
    background: linear-gradient(135deg, var(--accent-gold), #c49a30);
    color: #000;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
}

.badge-health {
    background: rgba(46, 213, 115, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(46, 213, 115, 0.30);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-akc {
    background: rgba(91, 141, 238, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(91, 141, 238, 0.30);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(212, 168, 71, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input option {
    background: var(--bg-mid);
    color: var(--text-primary);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ─── Sticky Bottom Navigation (Mobile) ─────────────────────────── */
.sticky-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 11, 16, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 10px 0 env(safe-area-inset-bottom, 12px);
    z-index: 3000;
}

.sticky-bottom-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.sticky-bottom-nav a.active,
.sticky-bottom-nav a:hover {
    color: var(--accent-gold);
}

.sticky-bottom-nav .nav-icon {
    font-size: 1.4rem;
}

.sticky-bottom-nav .nav-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ─── Top Navigation ─────────────────────────────────────────────── */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(10, 11, 16, 0.80);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    transition: var(--transition);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .active {
    color: var(--accent-gold);
}

/* ─── Page Wrapper ───────────────────────────────────────────────── */
.page-wrapper {
    padding-top: 80px;
    padding-bottom: 100px;
}

@media (min-width: 768px) {
    .page-wrapper {
        padding-bottom: 40px;
    }
}

/* ─── Hero Section ───────────────────────────────────────────────── */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 50%, rgba(212, 168, 71, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 71, 0.10);
    border: 1px solid rgba(212, 168, 71, 0.25);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* ─── Puppy Cards ────────────────────────────────────────────────── */
.puppy-card {
    position: relative;
    overflow: hidden;
}

.puppy-card .card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.puppy-card .card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.puppy-card:hover .card-image img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-body {
    padding: 18px 20px 22px;
}

.price-tag {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.installment-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.urgency-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ─── Section Titles ─────────────────────────────────────────────── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 560px;
}

/* ─── Trust Bar ──────────────────────────────────────────────────── */
.trust-bar {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ─── Progress / Roadmap ─────────────────────────────────────────── */
.roadmap-step {
    position: relative;
    padding-left: 56px;
}

.roadmap-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    background: rgba(212, 168, 71, 0.15);
    border: 1px solid rgba(212, 168, 71, 0.40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* ─── Chat Interface ─────────────────────────────────────────────── */
.chat-bubble-user,
.chat-bubble-admin {
    max-width: 72%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.chat-bubble-user {
    background: linear-gradient(135deg, #3d5ee8, #5b8dee);
    color: #fff;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-bubble-admin {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 0.68rem;
    opacity: 0.5;
    margin-top: 4px;
}

/* ─── Quiz ───────────────────────────────────────────────────────── */
.quiz-option {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.quiz-option:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 71, 0.08);
    transform: translateX(4px);
}

.quiz-option.selected {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 71, 0.12);
}

.quiz-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-lt));
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ─── Dashboard Roadmap ──────────────────────────────────────────── */
.journey-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--glass-border);
}

.journey-step:last-child {
    border-bottom: none;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-done {
    background: linear-gradient(135deg, #2ed573, #00b360);
    color: #fff;
}

.step-active {
    background: linear-gradient(135deg, var(--accent-gold), #c49a30);
    color: #000;
    animation: pulse-gold 2s infinite;
}

.step-pending {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 168, 71, 0.70);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 168, 71, 0.00);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 71, 0.00);
    }
}

/* ─── Admin Panel ────────────────────────────────────────────────── */
.admin-stat-card {
    text-align: center;
    padding: 28px 20px;
}

.admin-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.admin-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 80px;
}

/* ─── Utility Classes ────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-5 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.py-4 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.py-3 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mb-5 {
    margin-bottom: 60px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-1 {
    margin-bottom: 6px;
}

.mt-5 {
    margin-top: 60px;
}

.mt-4 {
    margin-top: 40px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-1 {
    margin-top: 6px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-3 {
    gap: 20px;
}

.gap-2 {
    gap: 12px;
}

.gap-1 {
    gap: 6px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-full {
    border-radius: 50%;
}

.overflow-hidden {
    overflow: hidden;
}

.position-relative {
    position: relative;
}

/* ─── Grid System ────────────────────────────────────────────────── */
.row {
    display: grid;
    gap: 24px;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-danger {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.30);
    color: #ff6b78;
}

.alert-success {
    background: rgba(46, 213, 115, 0.12);
    border: 1px solid rgba(46, 213, 115, 0.30);
    color: #2ed573;
}

.alert-warning {
    background: rgba(255, 165, 2, 0.12);
    border: 1px solid rgba(255, 165, 2, 0.30);
    color: #ffa502;
}

.alert-info {
    background: rgba(91, 141, 238, 0.12);
    border: 1px solid rgba(91, 141, 238, 0.30);
    color: #5b8dee;
}

/* ─── Input Group ────────────────────────────────────────────────── */
.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-input {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group button {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 22px;
    border: none;
    cursor: pointer;
}

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease both;
}

.anim-delay-1 {
    animation-delay: 0.1s;
}

.anim-delay-2 {
    animation-delay: 0.2s;
}

.anim-delay-3 {
    animation-delay: 0.3s;
}

.anim-delay-4 {
    animation-delay: 0.4s;
}

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* ─── Reviews Page ───────────────────────────────────────────────── */
.review-card {
    overflow: hidden;
}

.review-stars {
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-size: 1rem;
}

.review-text {
    font-style: italic;
    line-height: 1.8;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #c49a30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000;
    flex-shrink: 0;
}

.review-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN — PHONES, TABLETS, LAPTOPS
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Large Tablets & Small Laptops (≤1024px) ────────────────────── */
@media (max-width: 1024px) {
    .cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    /* Sidebar layouts go single column */
    .row[style*="grid-template-columns: 1fr 400px"],
    .row[style*="grid-template-columns: 1fr 350px"],
    .row[style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Hero 2-col to stacked */
    .hero-section>.container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* ─── Tablets (≤768px) ───────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Hide desktop nav items */
    .mobile-hidden {
        display: none !important;
    }

    /* Base sizing */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    h3 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    h4 {
        font-size: 1.05rem;
    }

    /* Container tighter padding */
    .container {
        padding: 0 16px;
    }

    /* Hero section */
    .hero-section {
        min-height: auto;
        padding: 30px 0 40px;
    }

    .hero-section>.container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Spacing reductions */
    .py-5 {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .py-4 {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .mb-5 {
        margin-bottom: 36px;
    }

    .mb-4 {
        margin-bottom: 24px;
    }

    .mt-5 {
        margin-top: 36px;
    }

    .mt-4 {
        margin-top: 24px;
    }

    /* Grids go single column */
    .bento-grid,
    .bento-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }

    .row {
        gap: 16px;
    }

    /* Any inline 2-col grids go single-col */
    .row[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Cards: reduce padding and radius for more room */
    .glass-card {
        border-radius: var(--radius-md);
    }

    .glass-card[style*="padding:48px"],
    .glass-card[style*="padding: 48px"],
    .glass-card[style*="padding:60px"],
    .glass-card[style*="padding: 60px"] {
        padding: 24px !important;
    }

    /* Buttons: full width on mobile */
    .btn-elite,
    .btn-glass,
    .btn-urgent {
        padding: 12px 24px;
        font-size: 0.82rem;
        width: 100%;
        justify-content: center;
    }

    /* Hero button row: stack vertically */
    .hero-section div[style*="display:flex"][style*="gap:14px"] {
        flex-direction: column !important;
    }

    /* Trust bar: allow wrapping, smaller font */
    .trust-bar .container {
        overflow-x: auto;
    }

    .trust-bar .d-flex {
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    .trust-item {
        white-space: nowrap;
    }

    .trust-label {
        font-size: 0.72rem;
    }

    .trust-icon {
        font-size: 1.1rem;
    }

    /* Hide the dividers on mobile */
    .trust-bar div[style*="width:1px"] {
        display: none;
    }

    /* Stat counters on hero row */
    .hero-section div[style*="display:flex"][style*="gap:32px"] {
        gap: 20px !important;
        flex-wrap: wrap;
    }

    .hero-section div[style*="display:flex"][style*="gap:32px"]>div {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    /* Nav bar smaller */
    .top-nav {
        padding: 10px 0;
    }

    .nav-brand {
        font-size: 1.1rem;
        gap: 6px;
    }

    .nav-brand span[style*="font-size:0.7rem"] {
        display: none;
    }

    /* Sticky sidebar becomes normal flow */
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }

    /* Price tags fit better */
    .price-tag {
        font-size: 1.2rem;
    }

    .installment-tag {
        font-size: 0.72rem;
    }

    /* Puppy card images shorter */
    .puppy-card .card-image div[style*="height:240px"] {
        height: 200px !important;
    }

    /* Footer grid */
    .site-footer .row {
        gap: 30px !important;
    }

    .site-footer .row[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .site-footer div[style*="grid-column: span"] {
        grid-column: auto !important;
    }

    /* Bottom nav always visible */
    .sticky-bottom-nav {
        display: flex; /* Restored visibility */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #0c0d11;
        border-top: 1px solid rgba(255,255,255,0.05);
        z-index: 1000;
        padding: 8px 0;
    }
    
    .sticky-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.6);
        transition: color 0.3s;
    }
    
    .sticky-bottom-nav a.active {
        color: var(--accent-gold);
    }

    .sticky-bottom-nav a:hover {
        color: #fff;
    }

    .page-wrapper {
        padding-bottom: 85px;
    }

    /* Chat interface */
    .glass-card[style*="height: 650px"] {
        height: calc(100vh - 160px) !important;
    }

    .chat-bubble-user,
    .chat-bubble-admin {
        max-width: 85%;
    }

    /* Eyebrow tags */
    .hero-eyebrow {
        font-size: 0.68rem;
        padding: 5px 12px;
    }

    .section-eyebrow {
        font-size: 0.7rem;
    }

    /* Dashboard roadmap steps */
    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    /* Admin tables scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 500px;
    }
}

/* ─── Small Phones (≤480px) ──────────────────────────────────────── */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 12px;
    }

    .py-5 {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .py-4 {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .mb-5 {
        margin-bottom: 24px;
    }

    /* Cards: tighter padding */
    .glass-card {
        border-radius: var(--radius-sm);
    }

    .card-body {
        padding: 14px 16px 18px;
    }

    /* Nav top buttons smaller */
    .top-nav .btn-elite,
    .top-nav .btn-glass {
        padding: 8px 14px !important;
        font-size: 0.72rem !important;
        width: auto;
    }

    /* Hero stats: 2 per row */
    .hero-section div[style*="display:flex"][style*="gap:32px"] {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    /* Roadmap steps: smaller */
    .journey-step {
        gap: 12px;
        padding: 14px 0;
    }

    /* Bottom nav: smaller icons */
    .sticky-bottom-nav .nav-icon {
        font-size: 1.2rem;
    }

    .sticky-bottom-nav .nav-label {
        font-size: 0.55rem;
    }

    /* Forms */
    .form-input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    /* Quiz options */
    .quiz-option {
        padding: 12px 16px;
        font-size: 0.82rem;
    }

    /* How it works step numbers */
    div[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    div[style*="font-size:3rem"] {
        font-size: 2rem !important;
    }

    /* Section subtitle max-width auto for mobile */
    .section-subtitle {
        max-width: 100%;
    }
}

/* ─── Desktop (≥769px): hide mobile nav ──────────────────────────── */
@media (min-width: 769px) {
    .sticky-bottom-nav {
        display: none;
    }

    .page-wrapper {
        padding-bottom: 40px;
    }
}

/* ─── Text overflow helpers (global) ─────────────────────────────── */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.word-break {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ─── Mobile Sticky Bottom Navigation ──────────────────────────────── */
.sticky-bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    /* Show the nav bar on mobile */
    .sticky-bottom-nav {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3000;
        background: rgba(10, 11, 16, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.10);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 6px 0 env(safe-area-inset-bottom, 6px); /* iPhone notch support */
    }

    /* Nav item links */
    .sticky-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: rgba(255, 255, 255, 0.45);
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 500;
        padding: 6px 4px;
        transition: color 0.2s ease;
        letter-spacing: 0.3px;
    }

    .sticky-bottom-nav a:hover,
    .sticky-bottom-nav a.active {
        color: #d4a847;
    }

    /* Icon and label wrappers */
    .sticky-bottom-nav .nav-icon {
        font-size: 1.35rem;
        line-height: 1;
        display: block;
    }

    .sticky-bottom-nav .nav-label {
        display: block;
        font-size: 0.6rem;
        letter-spacing: 0.3px;
    }

    /* Pad page content above the fixed nav bar so content is not hidden */
    body {
        padding-bottom: 70px;
    }

    /* Hide desktop top-nav links on mobile */
    .mobile-hidden {
        display: none !important;
    }
}