/* ========================================================
   PATSHOOP - INTEGRATED 3D & GLASSMORPHISM DESIGN SYSTEM
   Multi-Role (Admin & Customer), Real Photos, Fluid Responsive
   ======================================================== */

/* --- 1. Root Variables & Reset --- */
:root {
    --primary: #f59e0b;
    --primary-orange: #ea580c;
    --primary-glow: rgba(245, 158, 11, 0.4);
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.75);
    --bg-card-hover: rgba(39, 39, 42, 0.85);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-border-glow: rgba(245, 158, 11, 0.5);
    --text-light: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius: 20px;
    --radius-lg: 28px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: #09090b;
    background-image: 
        radial-gradient(circle at 15% 12%, rgba(245, 158, 11, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 85% 88%, rgba(220, 38, 38, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 75% 35%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Page wrapper for 3D login screen */
body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    perspective: 1000px;
    padding: 40px 15px;
}

/* --- 2. 3D Background Parallax Elements --- */
.parallax-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.orb-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.42) 0%, rgba(234, 88, 12, 0.22) 40%, transparent 70%);
    top: -100px; left: -100px;
    filter: blur(40px);
}

.orb-2 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.45) 0%, rgba(185, 28, 28, 0.20) 40%, transparent 70%);
    bottom: -180px; right: -180px;
    filter: blur(50px);
}

.orb-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(99, 102, 241, 0.15) 40%, transparent 70%);
    top: 45%; left: 60%;
    opacity: 0.35;
    filter: blur(40px);
}

.floating-paw {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    transition: transform 0.1s ease-out;
    animation: floatPaw 10s infinite alternate ease-in-out;
    user-select: none;
}

@keyframes floatPaw {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(20deg); }
}

/* --- 3. Glassmorphism Card System --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.15);
}

/* --- 4. Navigation Bar (Optimized Position & Spacing) --- */
.main-navbar-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    width: 100%;
    padding: 14px 24px;
    pointer-events: none;
}

.main-navbar {
    max-width: 1360px;
    margin: 0 auto;
    height: 64px;
    border-radius: 18px;
    padding: 0 16px;
    background: rgba(18, 18, 22, 0.90);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.08);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Sisi Kiri: Logo + Tombol Beranda di sampingnya */
.nav-left-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon-btn {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border: 2px solid var(--primary) !important;
    color: #000 !important;
    font-size: 1.3rem !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
}

.nav-brand:hover .brand-icon-btn {
    transform: rotate(12deg) scale(1.06);
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-logo-text span {
    color: var(--primary);
}

/* Standarisasi Universal Semua Tombol Icon Navigasi (Seragam, Rapi, Fleksibel) */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    user-select: none;
    line-height: 1;
}

.nav-icon-btn:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-icon-btn:active {
    transform: translateY(0) scale(0.95);
}

.nav-icon-btn .btn-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn .btn-text {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Tombol Beranda di Sisi Kiri samping Logo */
.nav-home-btn {
    width: auto;
    padding: 0 14px;
    gap: 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-home-btn.active,
.nav-home-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* Menu Navigasi Tengah */
.nav-links {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.90rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Sisi Kanan: Action Icons & Profile User */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Profil User di Sisi Kanan */
.nav-auth-wrapper {
    display: flex;
    align-items: center;
}

.nav-auth-user-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-profile-btn {
    width: auto;
    padding: 0 12px;
    gap: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-role-mini-pill {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--primary);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.nav-profile-btn:hover {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.15);
}

.profile-avatar-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
}

.nav-logout-btn,
.btn-drawer-logout {
    display: none !important;
}

/* Badge Keranjang Belanja */
.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.70rem;
    font-weight: 800;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

.hamburger-btn, .sidebar-toggle-btn {
    display: none;
}

.btn-nav-outline {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-nav-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(245, 158, 11, 0.08);
}

.btn-nav-primary {
    padding: 9px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-nav-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s;
}

.btn-nav-ghost:hover {
    color: var(--danger);
}

.nav-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.88rem;
}

.user-avatar-tiny {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.hide-on-mobile {
    display: inline-flex;
}

.mobile-menu-auth {
    display: none;
}

.dash-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-brand-subtitle {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* --- 5. 3D Tilt Card (Login & Register) --- */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 10px;
    perspective: none;
}

.card-tilt-wrapper {
    position: relative;
    border-radius: calc(var(--radius) + 3px);
    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899, #8b5cf6, #3b82f6, #f59e0b);
    background-size: 300% 300%;
    animation: gradientBorder 6s ease infinite;
    padding: 3px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 25px var(--primary-glow);
    transform: none !important;
    transition: box-shadow 0.3s ease;
}

.card-tilt-wrapper.resetting {
    transform: none !important;
    transition: none;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transform: none !important;
}

.glare {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 65%);
    pointer-events: none;
    transform: translateZ(1px);
    transition: transform 0.1s ease-out;
    opacity: 0;
    z-index: 99;
}

.brand-header {
    text-align: center;
    margin-bottom: 22px;
    transform: translateZ(45px);
}

.mascot-avatar {
    width: 78px; height: 78px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 3px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 10px 22px var(--primary-glow);
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    transform: translateZ(60px);
}

.mascot-avatar:hover {
    transform: translateZ(80px) scale(1.15) rotate(10deg);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.6);
}

.mascot-avatar.pop-anim {
    animation: mascotPop3D 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mascotPop3D {
    0% { transform: translateZ(60px) scale(1) rotate(0deg); }
    30% { transform: translateZ(100px) scale(1.3) rotate(-20deg); }
    60% { transform: translateZ(40px) scale(0.9) rotate(20deg); }
    100% { transform: translateZ(60px) scale(1) rotate(0deg); }
}

.particle {
    position: absolute;
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 100;
    animation: particleFly3D 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes particleFly3D {
    0% { opacity: 1; transform: translate(0, 0) translateZ(50px) scale(0.5); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) translateZ(100px) scale(1.5) rotate(var(--rot)); }
}

.brand-header h2 {
    color: var(--text-light);
    font-size: 1.55rem;
    font-weight: 800;
}

.brand-header h2 span { color: var(--primary); }

.brand-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
    transform: translateZ(25px);
}

/* Tabs */
.tab-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 22px;
    position: relative;
    transform: translateZ(35px);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.tab-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.tab-btn.active { color: #ffffff; }

.tab-indicator {
    position: absolute;
    top: 4px; left: 4px;
    width: calc(50% - 4px); height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 18px;
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.input-group:focus-within {
    transform: translateZ(50px);
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
    color: var(--text-light);
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary);
    background: rgba(24, 24, 27, 0.95);
    box-shadow: 0 0 20px var(--primary-glow);
}

.input-label {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) all;
}

.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
    top: -10px; left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: #18181b;
    border-radius: 4px;
    padding: 2px 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.toggle-password {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.toggle-password:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 22px;
    transform: translateZ(25px);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transform: translateZ(40px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.4), inset 0 2px 2px rgba(255,255,255,0.3);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submit-btn:hover {
    transform: translateZ(55px) scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.submit-btn:active {
    transform: translateZ(20px) scale(0.98);
}

.spinner {
    display: none; width: 22px; height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: white;
    animation: spin 0.8s infinite linear;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.back-link {
    display: block; text-align: center;
    margin-top: 18px; font-size: 0.85rem;
    color: var(--text-muted); text-decoration: none;
    transform: translateZ(20px);
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

/* --- 6. Landing Page Sections (index.html) --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 130px 5% 60px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    max-width: 1340px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 13px 26px;
    font-size: 0.98rem;
}

/* ========================================================
   STANDARDIZED UNIVERSAL BUTTON SYSTEM
   Uniform dimensions, tactile feedback, and elevation
   ======================================================== */
.btn-primary-glow,
.btn-checkout-now,
.submit-btn,
.btn-save-user,
.btn-book-service,
.btn-adopt {
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    min-height: 44px;
    padding: 10px 20px;
    box-sizing: border-box;
}

.btn-primary-glow:hover,
.btn-checkout-now:hover,
.submit-btn:hover,
.btn-save-user:hover,
.btn-book-service:hover,
.btn-adopt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.55);
}

.btn-primary-glow:active,
.btn-checkout-now:active,
.submit-btn:active,
.btn-save-user:active,
.btn-book-service:active,
.btn-adopt:active {
    transform: scale(0.97);
}

.btn-secondary-glass,
.btn-cart-clear,
.btn-nav-outline,
.btn-nav-ghost,
.btn-product-detail,
.btn-cancel-bkg,
.btn-user-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    min-height: 42px;
    padding: 9px 18px;
    box-sizing: border-box;
}

.btn-secondary-glass:hover,
.btn-cart-clear:hover,
.btn-nav-outline:hover,
.btn-nav-ghost:hover,
.btn-product-detail:hover,
.btn-cancel-bkg:hover,
.btn-user-cancel:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(245, 158, 11, 0.09);
    transform: translateY(-2px);
}

.btn-secondary-glass:active,
.btn-cart-clear:active,
.btn-nav-outline:active,
.btn-nav-ghost:active,
.btn-product-detail:active,
.btn-cancel-bkg:active,
.btn-user-cancel:active {
    transform: scale(0.97);
}

.btn-sm-edit,
.btn-user-edit {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    min-height: 38px;
    padding: 6px 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-sm-edit:hover,
.btn-user-edit:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: #818cf8;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-sm-del,
.btn-user-del {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    min-height: 38px;
    padding: 6px 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-sm-del:hover,
.btn-user-del:hover {
    background: rgba(239, 68, 68, 0.24);
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}

.hero-stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 3D Hero Visual Card */
.hero-3d-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-showcase {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.7), rgba(24, 24, 27, 0.85));
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 35px var(--primary-glow);
    text-align: center;
    position: relative;
}

.hero-img-wrap {
    width: 100%;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.hero-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card-showcase:hover .hero-real-img {
    transform: scale(1.08);
}

.hero-floating-badge {
    position: absolute;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 9px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 5;
}

.badge-top-right {
    top: -12px; right: -15px;
    border-color: var(--success);
}

.badge-bottom-left {
    bottom: -15px; left: -15px;
    border-color: var(--primary);
}

/* --- Section Global Layout --- */
.section-wrapper {
    padding: 80px 5%;
    max-width: 1340px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters & Search Bar */
.store-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 35px;
}

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    white-space: nowrap;
}

.filter-chip span:first-child {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.filter-chip:hover {
    color: var(--text-light);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.filter-chip:hover span:first-child {
    transform: scale(1.15);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.filter-chip.active span:first-child {
    background: rgba(0, 0, 0, 0.22);
    transform: scale(1.1);
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    outline: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    background: rgba(24, 24, 27, 0.9);
    box-shadow: 0 0 15px var(--primary-glow);
}

.search-box .search-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Products Grid & Cards with Real Photos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-img-container {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #18181b;
    cursor: pointer;
}

.product-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-real-img {
    transform: scale(1.08);
}

.product-icon-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(24, 24, 27, 0.85);
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.product-pet-tag {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(24, 24, 27, 0.85);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: 14px;
}

.product-meta {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-light);
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-title:hover {
    color: var(--primary);
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.48;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    min-width: 0;
}

.price-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.price-box .price-label {
    display: block;
    font-size: 0.70rem;
    color: var(--text-dim);
}

.price-box .price-amount {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.stock-indicator {
    font-size: 0.72rem;
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.stock-indicator.low {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Sizing of Buttons: Tambah Keranjang & Detail */
.product-btn-group {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    width: 100%;
}

.btn-product-detail {
    padding: 9px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.btn-product-detail:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-add-cart {
    padding: 9px 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px var(--primary-glow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-img-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.service-real-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-real-img {
    transform: scale(1.08);
}

.service-price-pill {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(24, 24, 27, 0.9);
    border: 1px solid var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--primary);
}

.service-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card-body p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    margin-bottom: 22px;
    flex-grow: 1;
}

.service-features li {
    font-size: 0.84rem;
    color: var(--text-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features .check-icon {
    color: var(--success);
    font-weight: bold;
}

.btn-book-service {
    width: 100%;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-book-service:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    color: white;
    box-shadow: 0 5px 20px var(--primary-glow);
}

/* Adoptions Grid */
.adoptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.adoption-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.adopt-img-wrap {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.adopt-real-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.adoption-card:hover .adopt-real-img {
    transform: scale(1.08);
}

.adopt-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.adopt-gender {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(24, 24, 27, 0.85);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.adopt-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.adopt-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.adopt-sub {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.adopt-desc {
    font-style: italic;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.45;
}

.adopt-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-adopt {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.2s ease;
}

.btn-adopt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.about-box {
    padding: 50px 35px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Footer */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 9, 11, 0.95);
    padding: 60px 5% 30px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* --- 7. Modals (Detail, Cart, Booking, Adoption) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--primary-glow);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.35rem;
    cursor: pointer;
    line-height: 1;
}

.btn-close-modal:hover {
    color: var(--danger);
}

/* FITUR BARU: Modal Detail Produk */
.modal-detail-box {
    max-width: 820px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.detail-img-wrap {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #18181b;
}

.detail-large-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.detail-tags-overlay {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    gap: 8px;
}

.detail-info-wrap {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.detail-specs-box {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.detail-specs-box h4 {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spec-row {
    font-size: 0.8rem;
}

.spec-k {
    color: var(--text-dim);
    margin-right: 4px;
}

.spec-v {
    color: var(--text-light);
    font-weight: 600;
}

.detail-action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.detail-qty-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 10px;
}

.detail-qty-picker button {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
}

.detail-qty-picker span {
    font-size: 1rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.detail-stock-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.detail-buttons-group {
    display: flex;
    gap: 12px;
}

.btn-add-cart-large {
    flex: 1.2;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.2s;
}

.btn-add-cart-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.btn-buy-now-large {
    flex: 1;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy-now-large:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Cart Modal & Ergonomic Touch Friendly Controls */
.modal-cart-box {
    max-width: 520px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cart-items-body {
    max-height: 48vh;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.cart-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
}

.cart-item-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.cart-row-img-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-row-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-row-info {
    flex: 1;
    min-width: 0;
}

.cart-row-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 3px;
    white-space: normal;
    word-break: break-word;
}

.cart-row-price {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
}

.cart-remove-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.cart-remove-btn:hover, .cart-remove-btn:active {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    transform: scale(1.05);
}

.cart-item-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 3px;
}

.btn-qty-touch {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-qty-touch:hover, .btn-qty-touch:focus {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.btn-qty-touch:active {
    transform: scale(0.92);
}

.qty-count-pill {
    min-width: 36px;
    padding: 0 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.cart-row-total-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-row-total-group .total-caption {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-row-total {
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    text-align: right;
}

.cart-summary-box {
    background: rgba(0, 0, 0, 0.35);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.summary-line.total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    margin-top: 10px;
}

.summary-line.total span:last-child {
    color: var(--primary);
}

/* Sizing of Checkout Buttons */
.cart-footer-btn-group {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.btn-cart-clear {
    flex: 1;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cart-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: white;
}

.btn-checkout-now {
    flex: 2;
    padding: 13px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-checkout-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
}

/* ========================================================
   CHECKOUT & PAYMENT MODAL STYLES
   ======================================================== */
.modal-checkout-box {
    max-width: 860px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 26px;
}

#checkout-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.checkout-grid-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    margin-top: 10px;
    margin-bottom: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
}

@media (max-width: 768px) {
    .checkout-grid-container {
        grid-template-columns: 1fr;
        gap: 14px;
        max-height: none;
    }
}

.checkout-section-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pristine Form Controls for Checkout Modal (Desktop, Tablet & Mobile) */
.modal-checkout-box .input-group {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
    transform: none !important;
}

.modal-checkout-box .input-label {
    position: static !important;
    transform: none !important;
    order: -1 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
    letter-spacing: 0.2px !important;
    display: block !important;
}

.modal-checkout-box .input-field {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.modal-checkout-box .input-field:focus {
    border-color: var(--primary) !important;
    background: rgba(24, 24, 27, 0.95) !important;
    box-shadow: 0 0 12px var(--primary-glow) !important;
}

.modal-checkout-box textarea.input-field {
    min-height: 72px !important;
    max-height: 120px !important;
    resize: vertical !important;
}

.modal-checkout-box select.input-field {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 38px !important;
}

.checkout-col-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    margin: 0;
}

.payment-methods-selector {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

.payment-method-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
    transform: translateY(-1px);
}

.payment-method-card.active {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.16);
}

.payment-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.payment-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.payment-card-info strong {
    font-size: 0.88rem;
    color: #ffffff;
}

.payment-card-info small {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.payment-instruction-box {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    margin-top: 2px;
}

.checkout-summary-box {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.45);
}

.checkout-modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .checkout-modal-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding-top: 10px !important;
    }
    .checkout-modal-actions button {
        height: 42px !important;
        min-height: 42px !important;
    }
}

/* Order Details: WhatsApp, Alamat, Ekspedisi, Resi */
.order-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.order-wa-link:hover {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.order-shipping-address {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.75rem;
    color: #d4d4d8;
    line-height: 1.4;
    margin-top: 4px;
    text-align: left;
    word-break: break-word;
}

.order-badge-courier {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.order-note-text {
    font-size: 0.74rem;
    color: #fbbf24;
    margin-top: 3px;
    text-align: left;
}

.tracking-resi-pill {
    display: inline-block;
    font-family: monospace;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    padding: 14px 20px;
    border-radius: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    animation: toastSlideIn 0.3s ease;
    max-width: 360px;
}

.toast-item.toast-success { border-color: var(--success); }
.toast-item.toast-error { border-color: var(--danger); }
.toast-item.toast-info { border-color: var(--primary); }

.toast-item.hide {
    animation: toastFadeOut 0.4s forwards ease;
}

@keyframes toastSlideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    to { transform: translateX(50px); opacity: 0; }
}

.toast-icon { font-size: 1.3rem; }
.toast-content { flex: 1; }
.toast-msg { font-size: 0.88rem; line-height: 1.4; }
.toast-close {
    background: transparent; border: none; color: var(--text-dim);
    cursor: pointer; font-size: 0.9rem;
}

/* --- 8. Dashboard Layout (dashboard.html) --- */
.dash-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 86px;
}

.dash-sidebar {
    width: 270px;
    background: rgba(18, 18, 22, 0.92);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 86px; bottom: 0; left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.dash-user-card {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-user-avatar-container {
    width: 72px; height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.dash-user-photo-real {
    width: 100%; height: 100%;
    object-fit: cover;
}

.dash-user-avatar-emoji {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.dash-user-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-user-role {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-user-card-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    width: 100%;
}

.btn-user-card-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dash-nav-item span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.dash-nav-item:hover,
.dash-nav-item.active {
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary);
}

.dash-nav-item:hover span,
.dash-nav-item.active span {
    background: rgba(245, 158, 11, 0.25);
    transform: scale(1.1);
}

.dash-sidebar-footer {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-main-content {
    margin-left: 270px;
    flex: 1;
    max-width: 1320px;
    padding: 26px 30px;
    position: relative;
    z-index: 10;
}

.dash-tab-content {
    display: none;
}

.dash-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.dash-title h2 {
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.25;
}

.dash-title p {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 3px;
}

/* Stat Widgets - Balanced 4-Column Grid on Laptop/Desktop */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.stat-widget {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-info {
    min-width: 0;
    flex: 1;
}

.stat-info .stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    word-break: break-word;
    display: block;
}

.stat-info .stat-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two-column overview layout */
.dash-overview-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-card-box {
    padding: 20px 22px;
    border-radius: 16px;
}

.dash-card-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-img-preview {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #18181b;
    flex-shrink: 0;
}

.item-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-list-item .item-detail {
    flex: 1;
    min-width: 0;
}

.dash-list-item .item-detail h4 {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list-item .item-detail .sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.status-dikirim, .status-diproses {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-selesai, .status-confirmed, .status-terkonfirmasi {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Pets Grid in Dashboard with Real Photo Banner */
.dash-pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.dash-pet-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pet-photo-banner {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    background: #18181b;
}

.pet-real-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dash-pet-card:hover .pet-real-img {
    transform: scale(1.08);
}

.btn-delete-pet-float {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-delete-pet-float:hover {
    background: var(--danger);
    color: white;
}

.pet-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.pet-card-header > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.pet-card-header h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-breed-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.pet-gender-tag {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(245, 158, 11, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pet-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    margin-bottom: 16px;
}

.pet-specs-grid .lbl {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-specs-grid .val {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-schedule-box {
    font-size: 0.82rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pet-schedule-box .sch-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.btn-book-pet {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-book-pet:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

/* Orders Table & Responsive Mobile Container */
.dash-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    min-width: 680px;
}

.dash-table th {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.dash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-prod-img {
    width: 44px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

/* Clean, Stacked Order Item Badges (Tidy Mobile-Friendly Detail) */
.order-items-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    max-width: 320px;
}

.order-item-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.order-item-badge:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(245, 158, 11, 0.3);
}

.order-item-badge-img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.order-item-badge-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-item-badge-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f4f4f5;
    white-space: normal;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.order-item-badge-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-qty {
    background: rgba(245, 158, 11, 0.18);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tracking-resi-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Bookings in Dashboard with Real Photo */
.dash-bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.dash-booking-card {
    overflow: hidden;
}

.bkg-img-header {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.bkg-img-header img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.bkg-img-header .dash-status-badge {
    position: absolute;
    top: 10px; right: 10px;
    backdrop-filter: blur(8px);
}

.dash-bkg-body {
    padding: 20px;
}

.dash-bkg-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bkg-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.bkg-details strong {
    color: var(--text-light);
}

.bkg-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-cancel-bkg {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-bkg:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-chat-vet {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-chat-vet:hover {
    background: rgba(16, 185, 129, 0.25);
}

.user-role-display-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1;
    text-decoration: none;
}

.user-role-display-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.user-role-display-pill:active {
    transform: translateY(0) scale(0.96);
}

.user-role-display-pill.role-admin {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
}

.user-role-display-pill.role-admin:hover {
    background: rgba(245, 158, 11, 0.24);
    border-color: var(--primary);
    box-shadow: 0 4px 18px var(--primary-glow);
}

.user-role-display-pill.role-customer {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

.user-role-display-pill.role-customer:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: #3b82f6;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3);
}

.role-switch-hint {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.user-role-display-pill:hover .role-switch-hint {
    transform: rotate(180deg);
}

/* User & Role Management CRUD Cards & Controls */
.user-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.user-crud-card {
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-crud-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.user-crud-card.card-role-super-admin {
    border: 1px solid rgba(245, 158, 11, 0.55);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.12) 0%, rgba(26, 22, 16, 0.85) 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.user-crud-card.card-role-admin {
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.06) 0%, rgba(20, 20, 24, 0.7) 100%);
}

.user-crud-card.card-role-customer {
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.05) 0%, rgba(20, 20, 24, 0.7) 100%);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-card-avatar-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #18181b;
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-emoji {
    font-size: 1.6rem;
}

.user-card-main-info {
    flex: 1;
    min-width: 0;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 2px;
}

.user-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

.badge-self-pill {
    font-size: 0.68rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-card-email {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.user-card-role-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.user-role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-role-badge.role-super-admin {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.45));
    color: #fef08a;
    border: 1px solid rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.user-role-badge.role-admin {
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.user-role-badge.role-customer {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.user-role-subtext {
    font-size: 0.74rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.user-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.user-stat-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-col-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.stat-col-val {
    font-size: 0.84rem;
    font-weight: 600;
    color: #f4f4f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.btn-user-action {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    touch-action: manipulation;
    white-space: nowrap;
}

.btn-toggle-role {
    grid-column: 1 / -1;
    width: 100%;
}

.btn-toggle-role.to-customer {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.btn-toggle-role.to-customer:hover {
    background: rgba(59, 130, 246, 0.28);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-toggle-role.to-admin {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--primary);
}

.btn-toggle-role.to-admin:hover {
    background: var(--primary);
    color: #000000;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-toggle-role.to-super_admin,
.btn-toggle-role.to-super-admin {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
    border-color: rgba(251, 191, 36, 0.5);
    color: #fef08a;
}

.btn-toggle-role.to-super_admin:hover,
.btn-toggle-role.to-super-admin:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000000;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-edit-user {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f4f4f5;
}

.btn-edit-user:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-delete-user {
    width: 100%;
    padding: 9px 12px;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-delete-user:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.28);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* User Management Overview Stats & Filter Chips */
.user-mgmt-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.user-filter-chips {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.user-filter-chips .filter-chip {
    padding: 7px 14px;
    font-size: 0.82rem;
}

/* Quick Demo Role Buttons (login.html) */
.btn-demo-role {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
}

.btn-demo-role span {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-demo-role:hover span {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.18);
}

.btn-demo-admin {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--primary);
}

.btn-demo-admin:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-demo-customer {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.btn-demo-customer:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

/* Admin Inventory Controls */
.stock-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.stock-ok {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-low {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.table-action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-sm-edit {
    padding: 5px 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm-edit:hover {
    background: var(--primary);
    color: white;
}

.btn-sm-del {
    padding: 5px 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm-del:hover {
    background: var(--danger);
    color: white;
}

.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(24, 24, 27, 0.95);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    outline: none;
}

/* Customer Rewards Grid */
.reward-points-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reward-points-badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reward-points-badge strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.voucher-card {
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.voucher-icon {
    font-size: 2.2rem;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-info {
    flex: 1;
}

.voucher-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.voucher-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.35;
}

.voucher-code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--primary);
    font-family: monospace;
}

.voucher-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.voucher-cost {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-claim-voucher {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-claim-voucher:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.6);
}

/* ========================================================
   CIRCULAR BGM MUSIC TOGGLE BUTTON (COMPACT FAB)
   Compact circular On/Off music player widget
   ======================================================== */
.circular-bgm-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
}

.circular-bgm-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(24, 24, 27, 0.92);
    border: 2px solid rgba(245, 158, 11, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s, box-shadow 0.25s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.circular-bgm-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 24px var(--primary-glow);
}

.circular-bgm-btn:active {
    transform: scale(0.94);
}

.bgm-disc-face {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.bgm-icon-symbol {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Playing state with animated vinyl rotation & pulse ring */
.circular-bgm-btn.is-playing {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 8px 25px rgba(245, 158, 11, 0.5);
}

.circular-bgm-btn.is-playing .bgm-disc-face {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    animation: rotateVinyl 4s linear infinite;
}

.circular-bgm-btn.is-playing .bgm-icon-symbol {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bgm-pulse-wave {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    pointer-events: none;
}

.circular-bgm-btn.is-playing .bgm-pulse-wave {
    animation: pulseRing 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Hover/Touch Popover with Volume & Status */
.circular-bgm-popover {
    position: absolute;
    bottom: 56px;
    left: 0;
    background: rgba(20, 20, 24, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    z-index: 1205;
}

.circular-bgm-container:hover .circular-bgm-popover,
.circular-bgm-container:focus-within .circular-bgm-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.popover-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-light);
}

.popover-vol-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popover-vol-slider {
    width: 70px;
    height: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.vol-icon {
    font-size: 0.8rem;
    cursor: pointer;
}

/* ========================================================
   13. COMPREHENSIVE RESPONSIVENESS (SMARTPHONE, TABLET & PC)
   ======================================================== */
@media (max-width: 1024px) {
    .main-navbar-header {
        padding: 8px 14px;
    }

    .main-navbar {
        height: 60px;
        padding: 0 14px;
    }

    /* Activate Hamburger & Drawer Navigation on Tablets & iPads */
    .hamburger-btn {
        display: inline-flex !important;
        width: 38px !important;
        height: 38px !important;
    }

    .nav-links {
        position: fixed !important;
        top: 68px !important;
        left: 12px !important;
        right: 12px !important;
        max-height: calc(100vh - 82px) !important;
        overflow-y: auto !important;
        background: rgba(18, 18, 22, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-radius: 18px !important;
        padding: 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
        display: none;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85) !important;
        z-index: 1001 !important;
    }

    .nav-links.mobile-open {
        display: flex !important;
        animation: fadeIn 0.25s ease;
    }

    .nav-links li a {
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 0.92rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu-auth {
        display: block !important;
        margin-top: 8px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
    }

    /* Standardize navbar icons & logout button on Tablet */
    .nav-logout-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        justify-content: center !important;
    }

    .nav-profile-btn {
        height: 38px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
    }

    .profile-name-text {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .hero-cta-group, .hero-stats {
        justify-content: center;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-img-wrap {
        height: 250px;
    }

    .dash-sidebar {
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.7);
    }

    .dash-sidebar.open {
        transform: translateX(0);
    }

    .dash-main-content {
        margin-left: 0;
        padding: 25px 4%;
    }

    .sidebar-toggle-btn {
        display: flex;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .dash-overview-columns {
        grid-template-columns: 1fr;
    }

    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Navbar Header Fix - High Flexibility, Zero Stacking */
    .main-navbar-header {
        padding: 8px 10px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
    }

    .main-navbar {
        height: 54px !important;
        padding: 0 10px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    /* Sisi Kiri: Logo + Tombol Beranda di sampingnya */
    .nav-left-cluster {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .nav-brand {
        gap: 6px !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }

    .brand-icon-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.15rem !important;
        border-radius: 10px !important;
    }

    .nav-logo-text {
        font-size: 1.12rem !important;
        white-space: nowrap !important;
    }

    /* Standarisasi Universal Semua Tombol Icon Navigasi di Mobile (36px x 36px) */
    .nav-icon-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 1.05rem !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-icon-btn .btn-text {
        display: none !important; /* Teks disembunyikan di mobile agar icon seragam & proporsional */
    }

    /* Tombol Beranda di sebelah kiri samping logo */
    .nav-home-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    /* Sisi Kanan: Action Icons & Profile User */
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .nav-auth-wrapper {
        display: flex !important;
        align-items: center !important;
    }

    .nav-auth-user-cluster {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .nav-role-mini-pill {
        display: none !important;
    }

    .nav-profile-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        justify-content: center !important;
    }

    .profile-avatar-img {
        width: 24px !important;
        height: 24px !important;
    }

    .nav-logout-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        justify-content: center !important;
    }

    .btn-nav-cart .cart-badge-count {
        top: -4px !important;
        right: -4px !important;
        width: 17px !important;
        height: 17px !important;
        font-size: 0.65rem !important;
    }

    .hamburger-btn,
    .sidebar-toggle-btn {
        display: inline-flex !important;
    }

    .hide-on-mobile {
        display: none !important;
    }

    /* Role Toggle di Dasbor Mobile */
    .user-role-display-pill,
    #user-role-display-pill,
    #role-toggle-btn {
        padding: 0 10px !important;
        height: 36px !important;
        font-size: 0.76rem !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        gap: 5px !important;
    }

    .user-role-display-pill .role-pill-text {
        font-size: 0.76rem !important;
    }

    .role-switch-tag {
        display: none !important;
    }

    /* Mobile Navigation Drawer */
    .nav-links {
        position: fixed !important;
        top: 64px !important;
        left: 10px !important;
        right: 10px !important;
        max-height: calc(100vh - 78px) !important;
        overflow-y: auto !important;
        background: rgba(18, 18, 22, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-radius: 18px !important;
        padding: 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
        display: none;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85) !important;
        z-index: 1001 !important;
    }

    .nav-links.mobile-open {
        display: flex !important;
        animation: fadeIn 0.25s ease;
    }

    .nav-links li a {
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 0.92rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background: rgba(245, 158, 11, 0.15);
        border-color: var(--primary);
    }

    /* Mobile Drawer Auth Section */
    .mobile-menu-auth {
        display: block !important;
        margin-top: 8px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
    }

    .mobile-drawer-auth-user {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-drawer-user-info {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .mobile-user-name {
        display: block;
        font-weight: 700;
        font-size: 0.92rem;
        color: var(--text-light);
    }

    .mobile-user-role {
        display: block;
        font-size: 0.75rem;
        color: var(--primary);
    }

    .mobile-drawer-auth-guest {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-drawer-guest-hint {
        font-size: 0.82rem;
        color: var(--text-muted);
        text-align: center;
        line-height: 1.4;
    }

    .mobile-drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .btn-drawer-block {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 0.88rem !important;
    }

    .btn-drawer-logout {
        background: rgba(239, 68, 68, 0.12) !important;
        border: 1px solid rgba(239, 68, 68, 0.35) !important;
        color: #fca5a5 !important;
        font-weight: 700 !important;
    }

    .btn-drawer-logout:hover {
        background: rgba(239, 68, 68, 0.28) !important;
        color: #ffffff !important;
        border-color: rgba(239, 68, 68, 0.6) !important;
    }

    /* Circular BGM button positioning on mobile */
    .circular-bgm-container {
        bottom: 16px !important;
        left: 16px !important;
    }

    .circular-bgm-btn {
        width: 42px !important;
        height: 42px !important;
    }

    .bgm-disc-face {
        width: 32px !important;
        height: 32px !important;
    }

    .bgm-icon-symbol {
        font-size: 1.1rem !important;
    }

    /* Dashboard Layout alignment on mobile */
    .dash-layout {
        padding-top: 68px !important;
    }

    .dash-sidebar {
        top: 62px !important;
    }

    .bg-orb {
        opacity: 0.35;
        filter: blur(30px) !important;
    }

    .orb-1 {
        width: 260px !important;
        height: 260px !important;
        top: -60px !important;
        left: -60px !important;
    }

    .orb-2 {
        width: 300px !important;
        height: 300px !important;
        bottom: -80px !important;
        right: -80px !important;
    }

    .hero-section {
        padding: 85px 4% 35px !important;
    }

    .hero-card-showcase {
        max-width: 100% !important;
    }

    .store-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .category-chips {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    .filter-chip {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .search-box {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-grid, .adoptions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cart-footer-btn-group {
        flex-direction: column;
    }

    .btn-checkout-now, .btn-cart-clear {
        width: 100%;
    }

    .circular-bgm-container {
        bottom: 16px;
        left: 16px;
    }

    .circular-bgm-btn {
        width: 44px;
        height: 44px;
    }

    .bgm-disc-face {
        width: 32px;
        height: 32px;
    }

    .bgm-icon-symbol {
        font-size: 1.15rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .main-navbar-header {
        padding: 6px 8px !important;
    }

    .main-navbar {
        height: 50px !important;
        padding: 0 8px !important;
        border-radius: 12px !important;
    }

    .nav-container {
        gap: 4px !important;
    }

    .nav-left-cluster {
        gap: 4px !important;
    }

    .brand-icon-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.05rem !important;
    }

    .nav-logo-text {
        font-size: 1.02rem !important;
    }

    .nav-icon-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.98rem !important;
        border-radius: 9px !important;
    }

    .nav-home-btn,
    .nav-profile-btn,
    .nav-logout-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .nav-auth-user-cluster {
        gap: 4px !important;
    }

    .nav-actions {
        gap: 4px !important;
    }

    .user-role-display-pill,
    #user-role-display-pill,
    #role-toggle-btn {
        padding: 0 8px !important;
        height: 34px !important;
        font-size: 0.72rem !important;
        border-radius: 9px !important;
        gap: 4px !important;
    }

    .user-role-display-pill .role-pill-text {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.72rem !important;
    }

    .nav-links {
        top: 58px !important;
        left: 6px !important;
        right: 6px !important;
        padding: 14px !important;
    }

    .dash-layout {
        padding-top: 62px !important;
    }

    .dash-sidebar {
        top: 58px !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .stat-widget {
        padding: 12px 14px !important;
        gap: 10px !important;
        border-radius: 14px !important;
    }

    .stat-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
        font-size: 1.15rem !important;
    }

    .stat-info .stat-val {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
    }

    .stat-info .stat-lbl {
        font-size: 0.70rem !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    .dash-topbar {
        margin-bottom: 16px !important;
        gap: 10px !important;
    }

    .dash-title h2 {
        font-size: 1.2rem !important;
    }

    .dash-title p {
        font-size: 0.78rem !important;
    }

    .dash-card-box {
        padding: 14px 14px !important;
        border-radius: 14px !important;
    }

    .dash-card-box h3 {
        font-size: 0.96rem !important;
        margin-bottom: 10px !important;
    }

    .dash-list-item {
        gap: 10px !important;
        padding: 9px 0 !important;
    }

    .item-img-preview {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 8px !important;
    }

    .dash-list-item .item-detail h4 {
        font-size: 0.82rem !important;
    }

    .dash-list-item .item-detail .sub {
        font-size: 0.72rem !important;
    }

    .detail-buttons-group {
        flex-direction: column;
    }

    .btn-add-cart-large, .btn-buy-now-large {
        width: 100%;
    }

    .modal-box {
        padding: 18px !important;
    }
}

/* ========================================================
   PATSHOOP - PREMIUM CREATIVE PET EXPERIENCE
   Pet Persona Switcher, Interactive Spotlight Card, Nutrition Calculator
   ======================================================== */

/* --- Dynamic Hero Grid Layout --- */
.hero-grid-modern {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-content-modern {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --- Pet Persona Mode Selector Capsule --- */
.pet-mode-selector {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 40px;
    width: fit-content;
    backdrop-filter: blur(12px);
    margin-bottom: 5px;
}

.mode-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mode-buttons-group {
    display: flex;
    gap: 6px;
}

.mode-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.mode-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- Hero Trust Highlights --- */
.hero-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.84rem;
    color: var(--text-light);
}

.trust-item small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- Interactive Hero Pet Spotlight Card --- */
.hero-spotlight-wrap {
    display: flex;
    justify-content: center;
}

.hero-card-showcase-box {
    background: linear-gradient(145deg, rgba(26, 26, 34, 0.95), rgba(16, 16, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
    max-width: 420px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hero-card-showcase-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 109, 0.4);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
}

.hero-card-ribbon {
    position: absolute;
    top: 14px;
    left: 20px;
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.hero-pet-photo-frame {
    position: relative;
    width: 100%;
    height: 290px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.3);
}

.hero-pet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.hero-card-showcase-box:hover .hero-pet-img {
    transform: scale(1.04);
}

.hero-pet-mood-bubble {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: rgba(18, 18, 24, 0.94);
    border: 1px solid var(--primary);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    backdrop-filter: blur(15px);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 6;
}

.hero-pet-mood-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-card-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-card-info-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 2px;
}

.hero-pet-sub {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.hero-verified-stamp {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-diet-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-diet-pill strong {
    color: var(--text-light);
    margin-left: 4px;
}

/* Card Interactive Action Buttons */
.hero-pet-act-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.btn-hero-act {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-pet {
    background: rgba(255, 77, 109, 0.15);
    border-color: rgba(255, 77, 109, 0.4);
    color: #ff758f;
}

.btn-hero-pet:hover {
    background: #ff4d6d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}

.btn-hero-feed {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.btn-hero-feed:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- Burst Floating Heart Particles --- */
.burst-heart {
    position: fixed;
    z-index: 9999;
    font-size: 1.5rem;
    pointer-events: none;
    animation: burstFloat 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes burstFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(1.4);
    }
}

/* --- Smart Pet Nutrition Matcher Bar --- */
.hero-nutrition-matcher-bar {
    max-width: 1280px;
    margin: 45px auto 0;
    background: linear-gradient(135deg, rgba(24, 24, 32, 0.9), rgba(16, 16, 22, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.matcher-header {
    margin-bottom: 18px;
}

.matcher-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.matcher-icon {
    font-size: 1.8rem;
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.3);
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.matcher-title-wrap h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 2px;
}

.matcher-title-wrap p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.matcher-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.3fr auto;
    gap: 14px;
    align-items: flex-end;
}

.matcher-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.matcher-select-wrap label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.matcher-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}

.matcher-select:focus {
    border-color: var(--primary);
}

.matcher-select option {
    background: #181820;
    color: var(--text-light);
}

.btn-matcher {
    padding: 12px 22px;
    height: 46px;
    white-space: nowrap;
}

.nutrition-result-card {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

.result-recom-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 18px;
}

.result-prod-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.result-prod-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 4px 0;
}

.result-prod-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.recom-match-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
}

/* --- Species Themes --- */
body.theme-cat {
    --primary: #ff4d6d;
    --primary-glow: rgba(255, 77, 109, 0.35);
}

body.theme-dog {
    --primary: #ff9f1c;
    --primary-glow: rgba(255, 159, 28, 0.35);
}

body.theme-dog .gradient-text {
    background: linear-gradient(135deg, #ff9f1c 0%, #ffe49e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Digital Pet Passport Styling (Dashboard) --- */
.pet-passport-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(28, 28, 36, 0.95), rgba(18, 18, 24, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pet-passport-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 109, 0.4);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 77, 109, 0.2);
}

.passport-ribbon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.passport-chip {
    width: 32px;
    height: 24px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 4px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

.passport-chip::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(0,0,0,0.3);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-grid-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-spotlight-wrap {
        order: -1;
    }

    .hero-card-showcase-box {
        max-width: 480px;
    }

    .matcher-inputs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .matcher-action-wrap {
        grid-column: 1 / -1;
    }

    .btn-matcher {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-trust-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pet-mode-selector {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 18px;
        width: 100%;
    }

    .mode-buttons-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px;
    }

    .mode-btn {
        padding: 6px 8px;
        font-size: 0.72rem;
        text-align: center;
    }

    .matcher-inputs-grid {
        grid-template-columns: 1fr;
    }

    .result-recom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================
   PATSHOOP - HUMAN-PET INTERACTION JUMBOTRON & CONDITION GUIDE
   ======================================================== */

/* --- Jumbotron Section --- */
.pet-jumbotron-section {
    position: relative;
    padding: 130px 5% 55px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 77, 109, 0.12) 0%, rgba(18, 18, 24, 0.6) 80%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.jumbotron-container {
    max-width: 1300px;
    margin: 0 auto;
}

.jumbotron-grid {
    display: grid;
    grid-template-columns: 1.22fr 1fr;
    gap: 45px;
    align-items: center;
}

.jumbotron-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jumbotron-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.35);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.2);
}

.jumbotron-title {
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.jumbotron-desc {
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--text-muted);
}

.jumbotron-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.jumbotron-btn {
    padding: 14px 26px;
    font-size: 0.95rem;
    font-weight: 700;
}

.jumbotron-trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-stat-box {
    display: flex;
    flex-direction: column;
}

.trust-stat-box .stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-light);
}

.trust-stat-box .stat-label {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Jumbotron Visual Area */
.jumbotron-visual-area {
    display: flex;
    justify-content: center;
}

.jumbotron-main-card {
    background: linear-gradient(145deg, rgba(28, 28, 38, 0.95), rgba(18, 18, 24, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 35px var(--primary-glow);
    max-width: 480px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(20px);
}

.jumbotron-photo-frame {
    position: relative;
    width: 100%;
    height: 330px;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
}

.jumbotron-stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.jumbotron-main-card:hover .jumbotron-stage-img {
    transform: scale(1.03);
}

.jumbotron-floating-tag {
    position: absolute;
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    max-width: calc(100% - 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jumbotron-floating-tag.tag-top {
    top: 14px;
    left: 14px;
}

.jumbotron-floating-tag.tag-bottom {
    bottom: 14px;
    right: 14px;
}

.interaction-switcher-strip {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strip-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strip-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-moment {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-moment:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-moment.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- Interactive Pet Condition Handling Guide --- */
.condition-tabs-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.cond-nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-muted);
}

.cond-nav-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 77, 109, 0.35);
    transform: translateY(-3px);
    color: var(--text-light);
}

.cond-nav-btn.active {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(255, 143, 163, 0.1));
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.25);
    transform: translateY(-2px);
}

.cond-btn-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.cond-nav-btn:hover .cond-btn-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    transform: scale(1.08);
}

.cond-nav-btn.active .cond-btn-icon-wrap {
    background: rgba(245, 158, 11, 0.25);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: scale(1.1);
}

.cond-btn-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.cond-btn-text {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

/* Condition Detail Card */
.cond-guide-card {
    background: linear-gradient(145deg, rgba(24, 24, 32, 0.95), rgba(16, 16, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.35s ease;
}

.cond-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.cond-title-area {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 280px;
}

.cond-title-area > div {
    min-width: 0;
    flex: 1;
}

.cond-big-icon {
    font-size: 2.6rem;
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.3);
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cond-severity-pill {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.cond-title-area h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 2px;
    word-break: break-word;
}

.cond-summary-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    word-break: break-word;
}

.btn-consult-vet-urgent {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-consult-vet-urgent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.cond-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 30px;
}

.cond-subblock h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 12px;
}

.cond-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.cond-checklist li {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.check-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.cond-warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.cond-warning-box h4 {
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cond-warning-box ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.82rem;
    color: #fca5a5;
    line-height: 1.5;
}

.cond-vet-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 14px 18px;
}

.cond-vet-alert strong {
    color: #f59e0b;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}

.cond-vet-alert p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Steps List */
.cond-steplist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cond-steplist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    background: var(--primary);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-body {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Related Products Mini Grid */
.cond-related-products-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.related-prod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.related-prod-header h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-light);
}

.btn-jump-store-cat {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.cond-products-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.cond-mini-prod-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s;
}

.cond-mini-prod-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 77, 109, 0.35);
}

.mini-prod-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.mini-prod-info h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.35;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
}

.mini-btn-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.btn-mini-detail {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-mini-cart {
    flex: 1.5;
    background: var(--primary);
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

/* Jumbotron & Condition Responsive */
@media (max-width: 1024px) {
    .jumbotron-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .jumbotron-visual-area {
        order: -1;
    }

    .jumbotron-main-card {
        max-width: 520px;
    }

    .condition-tabs-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .cond-columns-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pet-jumbotron-section {
        padding: 85px 4% 30px !important;
    }

    .jumbotron-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .jumbotron-title {
        font-size: clamp(1.65rem, 6vw, 2.2rem) !important;
        word-break: break-word;
    }

    .jumbotron-desc {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }

    .jumbotron-cta-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .jumbotron-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 0.88rem !important;
    }

    .jumbotron-trust-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .trust-stat-box .stat-number {
        font-size: 1.15rem !important;
    }

    .jumbotron-main-card {
        max-width: 100% !important;
        width: 100% !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .jumbotron-photo-frame {
        height: 220px !important;
        border-radius: 14px !important;
    }

    .jumbotron-floating-tag {
        padding: 6px 10px !important;
        font-size: 0.70rem !important;
    }

    .condition-tabs-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .cond-nav-btn {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }

    .cond-btn-icon {
        font-size: 1.4rem !important;
    }

    .cond-btn-text {
        font-size: 0.72rem !important;
    }

    .cond-guide-card {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .cond-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .cond-products-mini-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .strip-buttons {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .btn-moment {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .pet-jumbotron-section {
        padding: 75px 3% 25px !important;
    }

    .jumbotron-title {
        font-size: 1.55rem !important;
    }

    .jumbotron-photo-frame {
        height: 180px !important;
    }

    .condition-tabs-wrapper {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .cond-products-mini-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   9. MODULAR SPA VIEW SYSTEM & VIEW SWITCHING
   ========================================================================== */
.patshoop-page-view {
    display: none;
}

.patshoop-page-view.active {
    display: block;
    animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   10. ROLE SELECTOR BAR IN STORE (PELANGGAN VS MEDIS TOKO)
   ========================================================================== */
.store-role-selector-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.store-filter-title {
    font-size: 0.90rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-role-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.role-filter-chip {
    padding: 6px 16px 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.role-filter-chip span:first-child {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.role-filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.role-filter-chip:hover span:first-child {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.16);
}

.role-filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--primary-glow);
    font-weight: 800;
    transform: scale(1.02);
}

.role-filter-chip.active span:first-child {
    background: rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   11. ENSIKLOPEDIA ASAL MUASAL & RAS SATWA (BERANDA EKSKLUSIF)
   ========================================================================== */
.encyclo-section {
    padding: 60px 5% 70px;
    position: relative;
}

.encyclo-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.encyclo-tabs-bar {
    display: inline-flex;
    gap: 10px;
    background: rgba(24, 24, 27, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.encyclo-tab-btn {
    padding: 8px 18px 8px 10px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.encyclo-tab-btn .tab-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.encyclo-tab-btn:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.encyclo-tab-btn:hover .tab-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.14);
}

.encyclo-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-orange));
    color: #ffffff;
    box-shadow: 0 6px 20px var(--primary-glow);
    border-color: transparent;
}

.encyclo-tab-btn.active .tab-icon {
    background: rgba(0, 0, 0, 0.22);
    transform: scale(1.08) rotate(-4deg);
}

/* Spotlight Card Asal Muasal / Sejarah Satwa */
.encyclo-origin-card {
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 45px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: linear-gradient(145deg, rgba(30, 27, 24, 0.85), rgba(18, 18, 22, 0.95));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.encyclo-origin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-orange), transparent);
}

.origin-card-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 36px;
    align-items: center;
}

.origin-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 290px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.origin-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.encyclo-origin-card:hover .origin-hero-img {
    transform: scale(1.05);
}

.origin-img-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(18, 18, 22, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.origin-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.origin-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 13px;
    border-radius: 10px;
    font-size: 0.80rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-badge .badge-icon {
    font-size: 0.95rem;
}

.meta-badge strong {
    color: var(--primary);
}

.origin-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.origin-narrative {
    font-size: 0.94rem;
    color: #cbd5e1;
    line-height: 1.75;
    text-align: justify;
}

/* Heading Bagian Ragam Ras */
.breeds-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.breeds-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 8px;
}

.breeds-subtitle {
    font-size: 0.90rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Grid Kartu Ras Satwa */
.encyclo-breeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 45px;
}

.breed-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(24, 24, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.breed-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px var(--primary-glow);
}

.breed-photo-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #18181b;
}

.breed-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.breed-card:hover .breed-photo {
    transform: scale(1.08);
}

.breed-badge-strip {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 2;
}

.breed-flag-pill {
    position: static !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 95px);
    background: rgba(18, 18, 22, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
}

.breed-type-pill {
    position: static !important;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: auto;
}

.breed-info-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
    min-width: 0;
}

.breed-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.breed-spec-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-desc {
    font-size: 0.86rem;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0;
}

.breed-care-box {
    margin-top: auto;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.care-icon {
    font-size: 1.15rem;
    line-height: 1.3;
}

.care-text {
    font-size: 0.80rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.care-text strong {
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

/* Quick Navigation Bridge (Menghubungkan Beranda ke Menu Tertentu) */
.encyclo-shop-bridge {
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.85), rgba(18, 18, 22, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    margin-top: 30px;
    flex-wrap: wrap;
}

.bridge-info {
    flex: 1 1 350px;
}

.bridge-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.bridge-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.bridge-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive adjustments for Encyclopedia & Bridge */
@media (max-width: 1024px) {
    .origin-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .origin-img-wrap {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .encyclo-section {
        padding: 40px 4% 50px !important;
    }

    .encyclo-tabs-container {
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .encyclo-tabs-bar {
        padding: 5px;
        gap: 6px;
    }

    .encyclo-tab-btn {
        padding: 9px 14px;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    .encyclo-origin-card {
        padding: 20px;
        border-radius: 18px;
    }

    .origin-title {
        font-size: 1.35rem;
    }

    .origin-narrative {
        font-size: 0.88rem;
        text-align: left;
    }

    .encyclo-breeds-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .encyclo-shop-bridge {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .bridge-actions {
        width: 100%;
        flex-direction: column;
    }

    .bridge-actions button {
        width: 100%;
        justify-content: center;
    }

    .store-role-selector-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 10px;
    }

    .store-role-chips {
        width: 100%;
    }

    .role-filter-chip {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    /* ----------------------------------------------------
       RESPONSIVE CARDS FOR ORDER HISTORY & DASHBOARD TABLES
       (Screen width <= 768px: Mobile Phones & Tablets)
       ---------------------------------------------------- */
    .dash-table-wrapper {
        overflow-x: visible !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .dash-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block !important;
        border: none !important;
    }

    .dash-table thead {
        display: none !important;
    }

    .dash-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .dash-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(22, 22, 28, 0.9) !important;
        backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 16px !important;
        padding: 16px 14px !important;
        gap: 8px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .dash-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
        font-size: 0.88rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: right !important;
    }

    .dash-table td:last-child {
        border-bottom: none !important;
        padding-top: 10px !important;
    }

    .dash-table td::before {
        content: attr(data-label);
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: left !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }

    .dash-table td[data-label="Item Produk"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .dash-table td[data-label="Item Produk"]::before {
        align-self: flex-start !important;
        margin-bottom: 2px !important;
    }

    .dash-table td[data-label="Item Produk"] .order-items-stack {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dash-table td[data-label="Item Produk"] .order-item-badge {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 9px 12px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 12px !important;
    }

    .dash-table td[data-label="Item Produk"] .order-item-badge img {
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
    }

    .dash-table td[data-label="Nomor Resi"],
    .dash-table td[data-label="Tindakan"],
    .dash-table td[data-label="Aksi"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .dash-table td[data-label="Nomor Resi"]::before,
    .dash-table td[data-label="Tindakan"]::before,
    .dash-table td[data-label="Aksi"]::before {
        align-self: flex-start !important;
        margin-bottom: 2px !important;
    }

    .dash-table td[data-label="Nomor Resi"] .tracking-resi-pill,
    .dash-table td[data-label="Nomor Resi"] .btn-sm-edit {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        border-radius: 12px !important;
        font-size: 0.84rem !important;
    }

    .dash-table td[data-label="Ubah Status"] .status-select {
        width: 100% !important;
        height: 40px !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
    }

    .dash-table td[data-label="Tindakan"] .table-action-btns,
    .dash-table td[data-label="Aksi"] .table-action-btns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .dash-table td[data-label="Tindakan"] .btn-sm-edit,
    .dash-table td[data-label="Tindakan"] .btn-sm-del,
    .dash-table td[data-label="Aksi"] .btn-sm-edit,
    .dash-table td[data-label="Aksi"] .btn-chat-vet {
        width: 100% !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        font-size: 0.84rem !important;
    }
}

@media (max-width: 480px) {
    .encyclo-breeds-grid {
        grid-template-columns: 1fr;
    }

    .origin-img-wrap {
        height: 190px;
    }

    .origin-title {
        font-size: 1.2rem;
    }

    .role-filter-chip {
        font-size: 0.74rem;
        padding: 7px 10px;
    }

    /* Mobile Cart & Checkout Modal Ergonomics & Non-sinking Checkout Buttons */
    .modal-box.modal-cart-box {
        width: 95% !important;
        max-width: 480px !important;
        height: 90vh !important;
        height: 90dvh !important;
        max-height: 90dvh !important;
        padding: 16px 14px 12px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 18px !important;
    }

    .modal-box.modal-checkout-box {
        width: 95% !important;
        max-width: 480px !important;
        height: 92vh !important;
        height: 92dvh !important;
        max-height: 92dvh !important;
        padding: 14px 14px 10px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 18px !important;
    }

    .modal-checkout-box .modal-header,
    .modal-cart-box .modal-header {
        flex-shrink: 0 !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }

    .modal-checkout-box .modal-header h3 {
        font-size: 1.05rem !important;
    }

    .modal-checkout-box .modal-header p {
        font-size: 0.72rem !important;
        line-height: 1.25 !important;
    }

    #checkout-form {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .checkout-grid-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 2px !important;
        margin-bottom: 6px !important;
        padding-right: 4px !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .checkout-section-col {
        gap: 8px !important;
    }

    .checkout-col-heading {
        font-size: 0.85rem !important;
        padding-bottom: 3px !important;
        margin-bottom: 2px !important;
    }

    .modal-checkout-box .input-group {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        margin-bottom: 12px !important;
        transform: none !important;
    }

    .modal-checkout-box .input-label {
        position: static !important;
        transform: none !important;
        order: -1 !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        letter-spacing: 0.2px !important;
        display: block !important;
    }

    .modal-checkout-box .input-field {
        padding: 9px 12px !important;
        font-size: 0.84rem !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .modal-checkout-box textarea.input-field {
        min-height: 56px !important;
        max-height: 85px !important;
        padding: 9px 12px !important;
        font-size: 0.82rem !important;
    }

    .modal-checkout-box select.input-field {
        padding: 9px 34px 9px 12px !important;
        font-size: 0.78rem !important;
    }

    .payment-methods-selector {
        gap: 6px !important;
    }

    .payment-method-card {
        padding: 7px 10px !important;
        gap: 8px !important;
        border-radius: 10px !important;
    }

    .payment-card-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 1.05rem !important;
        border-radius: 8px !important;
    }

    .payment-card-info strong {
        font-size: 0.78rem !important;
    }

    .payment-card-info small {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
    }

    .payment-instruction-box {
        padding: 7px 10px !important;
        border-radius: 10px !important;
    }

    .checkout-summary-box {
        padding: 8px 12px !important;
        border-radius: 10px !important;
        margin-top: 6px !important;
    }

    .checkout-summary-box .summary-line {
        font-size: 0.76rem !important;
    }

    .checkout-summary-box .summary-line.total {
        font-size: 0.85rem !important;
        padding-top: 5px !important;
        margin-top: 5px !important;
    }

    .checkout-summary-box #checkout-grand-total-val {
        font-size: 1.1rem !important;
    }

    /* Fixed / Sticky Bottom Actions - NEVER sinks or drowns on mobile! */
    .checkout-modal-actions {
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        margin-top: auto !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 8px !important;
        padding-bottom: 2px !important;
        background: transparent !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .checkout-modal-actions button {
        width: auto !important;
        margin: 0 !important;
    }

    .checkout-modal-actions .btn-secondary-glass {
        flex: 0 0 auto !important;
        padding: 0 10px !important;
        font-size: 0.80rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        height: 42px !important;
        min-height: 42px !important;
        min-width: 90px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .checkout-modal-actions #btn-submit-order {
        flex: 1 1 auto !important;
        padding: 0 12px !important;
        font-size: 0.86rem !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        height: 42px !important;
        min-height: 42px !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .cart-items-body {
        max-height: 46vh !important;
        padding-right: 2px !important;
        gap: 10px !important;
    }

    .cart-item-card {
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .btn-qty-touch {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .cart-remove-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .cart-footer-btn-group {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .btn-checkout-now {
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 14px !important;
        font-size: 0.96rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        box-shadow: 0 4px 18px var(--primary-glow) !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-orange)) !important;
        color: #ffffff !important;
    }

    .btn-cart-clear {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
        color: #fca5a5 !important;
    }

    /* ========================================================
       NATIVE MOBILE CARD TRANSFORMATION FOR ORDERS & TABLES
       Eliminates desktop table squeeze & horizontal scrolling
       ======================================================== */
    .dash-table-wrapper {
        overflow-x: visible !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .dash-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block !important;
        border: none !important;
    }

    .dash-table thead {
        display: none !important; /* Sembunyikan header tabel desktop di layar HP */
    }

    .dash-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .dash-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(24, 24, 30, 0.9) !important;
        backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 16px !important;
        padding: 16px !important;
        gap: 8px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        transition: transform 0.2s ease, border-color 0.2s ease !important;
    }

    .dash-table tbody tr:hover,
    .dash-table tbody tr:active {
        border-color: rgba(245, 158, 11, 0.35) !important;
    }

    .dash-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
        font-size: 0.88rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: right !important;
    }

    .dash-table td:last-child {
        border-bottom: none !important;
        padding-top: 10px !important;
    }

    .dash-table td::before {
        content: attr(data-label);
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: left !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }

    .dash-table td[data-label="Item Produk"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .dash-table td[data-label="Item Produk"]::before {
        align-self: flex-start !important;
        margin-bottom: 2px !important;
    }

    .dash-table td[data-label="Item Produk"] .order-items-stack {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dash-table td[data-label="Item Produk"] .order-item-badge {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 9px 12px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 12px !important;
    }

    .dash-table td[data-label="Item Produk"] .order-item-badge img {
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
    }

    .dash-table td[data-label="Nomor Resi"],
    .dash-table td[data-label="Tindakan"],
    .dash-table td[data-label="Aksi"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .dash-table td[data-label="Nomor Resi"]::before,
    .dash-table td[data-label="Tindakan"]::before,
    .dash-table td[data-label="Aksi"]::before {
        align-self: flex-start !important;
        margin-bottom: 2px !important;
    }

    .dash-table td[data-label="Nomor Resi"] .tracking-resi-pill,
    .dash-table td[data-label="Nomor Resi"] .btn-sm-edit {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        border-radius: 12px !important;
        font-size: 0.84rem !important;
    }

    .dash-table td[data-label="Ubah Status"] .status-select {
        width: 100% !important;
        height: 40px !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
    }

    .dash-table td[data-label="Tindakan"] .table-action-btns,
    .dash-table td[data-label="Aksi"] .table-action-btns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .dash-table td[data-label="Tindakan"] .btn-sm-edit,
    .dash-table td[data-label="Tindakan"] .btn-sm-del,
    .dash-table td[data-label="Aksi"] .btn-sm-edit,
    .dash-table td[data-label="Aksi"] .btn-chat-vet {
        width: 100% !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        font-size: 0.84rem !important;
    }

    .user-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .user-crud-card {
        padding: 15px !important;
    }

    .user-card-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .btn-toggle-role {
        grid-column: 1 / -1 !important;
    }

    .btn-user-action {
        width: 100% !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
    }

    /* Ultra-compact Navbar, Logout Button & Circular BGM on Small Smartphones */
    .main-navbar-header {
        padding: 4px 6px !important;
    }

    .main-navbar {
        height: 50px !important;
        padding: 0 6px !important;
    }

    .nav-icon-btn, .nav-home-btn, .nav-logout-btn, .nav-profile-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
    }

    .brand-icon-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.05rem !important;
    }

    .nav-logo-text {
        font-size: 0.98rem !important;
    }

    .user-role-display-pill,
    #user-role-display-pill {
        padding: 0 8px !important;
        height: 34px !important;
        font-size: 0.72rem !important;
    }

    .circular-bgm-container {
        bottom: 12px !important;
        left: 12px !important;
    }

    .circular-bgm-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .bgm-disc-face {
        width: 28px !important;
        height: 28px !important;
    }

    .bgm-icon-symbol {
        font-size: 1rem !important;
    }

    .circular-bgm-popover {
        display: none !important;
    }
}

/* ========================================================
   ROLE-BASED ACCESS CONTROL (RBAC) STYLING GUARDS
   ======================================================== */
.role-hidden {
    display: none !important;
}

/* ========================================================
   GLOBAL MOBILE & TABLET RESPONSIVE REFINEMENTS
   Zero Horizontal Overflow, Perfect Grid Alignment, Clean Badges
   ======================================================== */
@media (max-width: 768px) {
    /* Prevent Any Horizontal Viewport Spillover */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .dash-main-content {
        margin-left: 0 !important;
        padding: 68px 12px 28px 12px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Dashboard 2x2 Stats Grid on Smartphones */
    .dash-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
    }

    .stat-widget {
        padding: 11px 12px !important;
        gap: 8px !important;
        border-radius: 14px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 10px !important;
        font-size: 1.1rem !important;
    }

    .stat-info {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-info .stat-val {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .stat-info .stat-lbl {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Two-column overview containers */
    .dash-overview-columns {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .dash-card-box {
        padding: 14px 14px !important;
        border-radius: 14px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    /* Order / Booking List Items: Badge never truncated */
    .dash-list-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .dash-list-item .item-img-preview {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .dash-list-item .item-detail {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .dash-list-item .item-detail h4 {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 0 2px !important;
    }

    .dash-list-item .item-detail .sub {
        font-size: 0.72rem !important;
        color: var(--text-muted) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .dash-status-badge {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        font-size: 0.70rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
}