/* ============================================
   Monpura Agro Farm - Custom Styles
   ============================================ */

/* Fonts (self-hosted so pages never wait on an outside font server) */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Hind Siliguri';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/hind-siliguri-bengali-400.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

@font-face {
    font-family: 'Hind Siliguri';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/hind-siliguri-bengali-500.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

@font-face {
    font-family: 'Hind Siliguri';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/hind-siliguri-bengali-600.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

@font-face {
    font-family: 'Hind Siliguri';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/hind-siliguri-bengali-700.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

/* Global Styles */
:root {
    --primary-color: #006a4e;
    --primary-dark: #00513b;
    --primary-rgb: 0, 106, 78;
    --success-color: #347a2f;
    --success-dark: #29622a;
    --success-rgb: 52, 122, 47;
    --accent-color: #d62839;
    --accent-dark: #b01f2e;
    --dark-color: #1f2a24;
    --light-bg: #f7f3ea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: #0b3326 url('../website-images/brand/hero-farm.svg') center bottom / cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.icon-box.bg-primary {
    background-color: var(--primary-color) !important;
}

.icon-box.bg-success {
    background-color: var(--success-color) !important;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Property Cards */
.property-card {
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Division Cards */
.division-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.division-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Form */
.contact-info-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.map-container {
    position: relative;
    height: 100%;
    min-height: 340px;
    border-radius: 12px;
    overflow: hidden;
    background: #e6ece8;
}

/* Shown behind the map while it loads, or if Google Maps is blocked */
.map-container::before {
    content: "Loading map…";
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a9a91;
    font-size: 0.95rem;
}

.map-container iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form Validation */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #198754;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .property-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-info-item .icon-box {
        width: 45px;
        height: 45px;
    }
    
    .contact-info-item .icon-box i {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .icon-box i {
        font-size: 1.5rem !important;
    }
    
    body {
        padding-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay h5 {
        font-size: 1rem;
    }
    
    .map-container {
        min-height: 280px;
    }
    
    .contact-info-item {
        margin-bottom: 1.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-item {
        flex: 1 1 auto;
        min-width: 50%;
    }
    
    .nav-tabs .nav-link {
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .contact-form-wrapper {
        margin-bottom: 2rem;
    }
    
    .contact-info-wrapper {
        margin-top: 2rem;
    }
    
    .row.align-items-center {
        flex-direction: column;
    }
    
    .row.align-items-center > div:first-child {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 2rem 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .icon-box {
        width: 45px;
        height: 45px;
    }
    
    .icon-box i {
        font-size: 1.25rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .gallery-item {
        margin-bottom: 0.75rem;
    }
    
    .property-image {
        height: 180px;
    }
    
    .map-container {
        min-height: 240px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    footer {
        padding: 2rem 0 !important;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-item .icon-box {
        width: 40px;
        height: 40px;
    }
    
    .contact-info-item .icon-box i {
        font-size: 1rem !important;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .nav-tabs .nav-link i {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .hero-section .display-3 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .property-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .division-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        margin-bottom: 1rem !important;
    }
    
    .feature-icon i {
        font-size: 2rem !important;
    }
    
    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p, span, div {
        word-wrap: break-word;
    }
    
    /* Better spacing for mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Utility Classes */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

/* Theme colours (override Bootstrap defaults) */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light { background-color: var(--light-bg) !important; }

:root {
    --bs-link-color: var(--primary-color);
    --bs-link-color-rgb: var(--primary-rgb);
    --bs-link-hover-color: var(--primary-dark);
    --bs-link-hover-color-rgb: 0, 81, 59;
}

.page-header.mt-5 {
    margin-top: 0 !important;
}

.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}

.btn-success {
    --bs-btn-bg: var(--success-color);
    --bs-btn-border-color: var(--success-color);
    --bs-btn-hover-bg: var(--success-dark);
    --bs-btn-hover-border-color: var(--success-dark);
    --bs-btn-active-bg: var(--success-dark);
    --bs-btn-active-border-color: var(--success-dark);
    --bs-btn-disabled-bg: var(--success-color);
    --bs-btn-disabled-border-color: var(--success-color);
    --bs-btn-focus-shadow-rgb: var(--success-rgb);
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--accent-color);
    --bs-btn-disabled-border-color: var(--accent-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--success-rgb), 0.25);
}

/* Bangla text */
.bn {
    font-family: 'Hind Siliguri', 'Poppins', sans-serif;
}

.bn-label {
    display: inline-block;
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.bg-primary .bn-label,
.bg-success .bn-label,
.page-header .bn-label,
.hero-section .bn-label {
    color: #ffd166;
}

.hero-bn {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffd166;
}

/* Navbar call button */
.navbar .nav-call {
    padding: 0.4rem 1rem;
    margin-top: 0.25rem;
}

/* Floating call button (mobile) */
.call-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1030;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.call-fab:hover,
.call-fab:focus {
    color: #fff;
    background: var(--accent-dark);
}

/* Farm photos */
.farm-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-item img.farm-photo {
    min-height: 0;
}

/* Occasion cards */
.occasion-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--success-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.occasion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.occasion-card.featured {
    border-top-color: var(--accent-color);
}

.occasion-card .occasion-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(var(--success-rgb), 0.12);
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.occasion-card.featured .occasion-icon {
    background: rgba(214, 40, 57, 0.12);
    color: var(--accent-color);
}

.occasion-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.occasion-card .bn {
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* How it works steps */
.step-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price box */
.price-box {
    background: #fff;
    border: 2px dashed var(--success-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.price-box .price-formula {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Check list */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 0.6rem;
    padding-left: 1.75rem;
    position: relative;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* Call to action band */
.cta-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}


/* ============================================
   Animal sale portal
   ============================================ */
.border-accent { border-color: var(--accent-color) !important; }

/* Honeypot field for spam bots */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Animal cards */
.animal-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-card:hover {
    color: inherit;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.animal-card.is-sold {
    opacity: 0.7;
}

.animal-card-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--light-bg);
}

.animal-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-card-nophoto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(var(--success-rgb), 0.4);
}

.animal-status {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.85rem;
}

.animal-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.animal-card-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Animal detail page */
.animal-gallery .carousel-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #000;
}

.animal-gallery-empty {
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    color: var(--success-color);
}

.animal-thumb-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    width: 76px;
    height: 57px;
    background: none;
}

.animal-thumb-btn:hover,
.animal-thumb-btn:focus-visible {
    border-color: var(--accent-color);
}

.animal-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w-40 { width: 40%; }

/* Admin panel */
body.admin-body {
    padding-top: 0;
    background: #f4f6f5;
}

.admin-navbar {
    background: var(--primary-dark);
}

.admin-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.admin-navbar .nav-link:hover,
.admin-navbar .nav-link.active {
    color: #fff !important;
}

.stat-tile {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: var(--dark-color);
}

.stat-tile .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}

.stat-tile .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-thumb-lg {
    width: 96px;
    height: 96px;
}

.admin-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: #adb5bd;
}

.admin-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid transparent;
}

.admin-photo.is-cover img {
    border-color: var(--primary-color);
}

.min-w-0 { min-width: 0; }

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--success-rgb), 0.25);
}

/* Short header for listing pages, so the animals show without scrolling */
.page-header-compact {
    padding: 1.25rem 0;
}

.page-header-compact .bn-label {
    font-size: 1rem;
}

/* ============================================
   Admin panel (v2 layout)
   ============================================ */
body.admin-body {
    --admin-sidebar-width: 248px;
    --admin-bg: #f3f5f4;
    --admin-border: #e4e8e6;
    --admin-muted: #5f6964;
    font-family: 'Poppins', sans-serif;
    background: var(--admin-bg);
    color: var(--dark-color);
    font-size: 0.95rem;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    background: #0f2a20;
    color: #dbe7e1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--admin-sidebar-width);
        z-index: 1030;
    }
    .admin-main {
        margin-left: var(--admin-sidebar-width);
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar.offcanvas-lg {
        width: 280px;
        background: #0f2a20;
    }
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
}

.admin-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-brand-name {
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
}

.admin-brand-sub {
    font-size: 0.75rem;
    color: #8fa89c;
}

.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.admin-nav-group {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8aa597;
    padding: 1rem 0.75rem 0.4rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: #c6d6ce;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2px;
}

.admin-nav-link i {
    width: 18px;
    text-align: center;
    color: #8fa89c;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-nav-link.active i {
    color: #7ed6a8;
}

.admin-nav-count {
    margin-left: auto;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
}

.admin-user-role {
    color: #8fa89c;
    font-size: 0.75rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dcefe5;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.admin-user .avatar {
    background: #2c5a45;
    color: #fff;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--admin-muted);
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: none;
    box-shadow: none;
}

.btn-icon-light {
    color: #c6d6ce;
}

.btn-icon-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 60px;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--admin-border);
}

.admin-topbar-title {
    font-weight: 600;
}

.admin-content {
    padding: 1.5rem 1.25rem 3rem;
    max-width: 1400px;
}

@media (min-width: 992px) {
    .admin-content {
        padding: 2rem 2rem 3rem;
    }
}

.admin-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.admin-alert {
    border: 0;
    border-radius: 10px;
}

.admin-body .btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.admin-body .btn-sm {
    padding: 0.3rem 0.7rem;
}

.admin-body .btn-lg {
    padding: 0.7rem 1.4rem;
}

.admin-body .btn:hover {
    transform: none;
    box-shadow: none;
}

.admin-body .form-control,
.admin-body .form-select {
    border-radius: 8px;
    border-color: #d5dcd8;
}

.admin-body .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-head h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.page-head .page-sub {
    color: var(--admin-muted);
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
}

.panel {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--admin-border);
}

.panel-head h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.panel-body {
    padding: 1.25rem;
}

.kpi {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

a.kpi:hover {
    border-color: #c9d3ce;
    color: inherit;
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.kpi-label {
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

.kpi-note {
    font-size: 0.78rem;
    color: var(--admin-muted);
}

.tone-green { background: #e3f4ea; color: #1f7a4a; }
.tone-amber { background: #fdf1d8; color: #865700; }
.tone-gray { background: #eceeed; color: #555f5a; }
.tone-red { background: #fde4e6; color: #b01f2e; }
.tone-blue { background: #e3edfb; color: #2457a6; }
.tone-teal { background: #ddf2f0; color: #116a62; }

.admin-table {
    margin: 0;
}

.admin-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--admin-muted);
    font-weight: 600;
    background: #f8faf9;
    border-bottom: 1px solid var(--admin-border);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-color: #eef1ef;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.role-admin { background: #e8e2fb; color: #5a3fb0; }
.role-manager { background: #e3edfb; color: #2457a6; }
.role-staff { background: #e3f4ea; color: #1f7a4a; }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #eef1ef;
    color: inherit;
    text-decoration: none;
}

.list-row:last-child {
    border-bottom: 0;
}

a.list-row:hover {
    background: #f8faf9;
    color: inherit;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--admin-muted);
}

.empty-state > i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #b7c4bd;
}

.bar-track {
    background: #eef1ef;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
}

.money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.role-option {
    display: block;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.role-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #f1f8f4;
}

.admin-pills {
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-pills .nav-link {
    border-radius: 999px;
    padding: 0.35rem 0.9rem !important;
    color: var(--admin-muted);
    background: #fff;
    border: 1px solid var(--admin-border);
    white-space: nowrap;
    font-size: 0.875rem;
}

.admin-pills .nav-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}

.admin-pills .count {
    opacity: 0.7;
    margin-left: 0.2rem;
}

.animal-admin-card {
    display: flex;
    overflow: hidden;
}

.animal-admin-photo {
    position: relative;
    flex: 0 0 130px;
    background: var(--light-bg);
    display: flex;
}

.animal-admin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-admin-photo .admin-thumb-empty {
    display: flex;
}

.animal-admin-photo .animal-status {
    top: 8px;
    left: 8px;
    font-size: 0.72rem;
}

.animal-featured {
    position: absolute;
    top: 8px;
    right: 8px;
}

.panel-new {
    border-left: 4px solid var(--accent-color);
}

/* Bootstrap makes .offcanvas-lg transparent on large screens; keep the sidebar dark. */
.admin-sidebar.offcanvas-lg {
    background-color: #0f2a20 !important;
}

.kpi > div {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .kpi {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.9rem;
    }
    .kpi-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .kpi-value {
        font-size: 1.25rem;
    }
    .admin-content {
        padding: 1rem 0.85rem 3rem;
    }
}

.price-note {
    font-size: 0.85rem;
    color: #7a5200;
    background: #fdf3dc;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

/* Sales and customers */
.avatar-xl {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
}

.row-link {
    cursor: pointer;
}

.row-link:hover td {
    background: #f8faf9;
}

.kpi-alert {
    border-color: #f3c3c8;
}

.sale-total {
    background: #f6f9f7;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    height: 100%;
}

#customer_id option[hidden] {
    display: none;
}

/* Printable receipt */
.receipt-body {
    padding: 0;
    background: #e9edeb;
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    color: #1f2a24;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.receipt-actions {
    max-width: 820px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 16px;
}

.receipt-actions button,
.receipt-actions a {
    font: inherit;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #c9d3ce;
    background: #fff;
    color: #1f2a24;
    text-decoration: none;
    cursor: pointer;
}

.receipt-actions button {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.rc {
    position: relative;
    max-width: 820px;
    margin: 1rem auto 2.5rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(15, 42, 32, 0.12);
}

.rc table {
    border-collapse: collapse;
    width: 100%;
}

.rc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2.25rem;
    background: linear-gradient(135deg, #0f2a20, var(--primary-color));
    color: #fff;
}

.rc-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.rc-logo {
    max-height: 72px;
    max-width: 160px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.rc-mark {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--accent-color);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-name {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
}

.rc-name-bn {
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 600;
    color: #ffd166;
    font-size: 1.05rem;
}

.rc-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.rc-title {
    text-align: right;
    flex-shrink: 0;
}

.rc-title-en {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rc-title-bn {
    font-family: 'Hind Siliguri', sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

.rc-invoice {
    display: inline-block;
    margin-top: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rc-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    padding: 0.75rem 2.25rem;
    background: #f3f7f5;
    border-bottom: 1px solid #e1e7e4;
    font-size: 0.8rem;
    color: #44514a;
}

.rc-contact i {
    color: var(--primary-color);
    margin-right: 0.4rem;
}

.rc-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 2.25rem 0;
}

.rc-box {
    border: 1px solid #e1e7e4;
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.rc-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f6964;
    margin-bottom: 0.35rem;
    display: block;
}

.rc-label.mt {
    margin-top: 1.1rem;
}

.rc-strong {
    font-weight: 600;
}

.rc-muted {
    color: #5f6964;
    font-size: 0.82rem;
}

.rc-meta th {
    text-align: left;
    font-weight: 400;
    color: #5f6964;
    padding: 0.15rem 0;
}

.rc-meta td {
    text-align: right;
    font-weight: 500;
    padding: 0.15rem 0;
}

.rc-items {
    margin: 1.5rem 2.25rem 0;
    width: calc(100% - 4.5rem) !important;
}

.rc-items th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    font-size: 0.78rem;
    text-align: left;
    padding: 0.6rem 0.8rem;
}

.rc-items th:first-child {
    border-radius: 8px 0 0 8px;
}

.rc-items th:last-child {
    border-radius: 0 8px 8px 0;
}

.rc-items td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid #e1e7e4;
    vertical-align: top;
}

.rc .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rc-num-col {
    width: 36px;
    color: #5f6964;
}

.rc-summary {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.75rem;
    padding: 1.5rem 2.25rem 0;
    align-items: start;
}

.rc-words {
    background: #fdf6e3;
    border-left: 4px solid #e0a800;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
}

.rc-payments th {
    font-size: 0.72rem;
    color: #5f6964;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #e1e7e4;
    padding: 0.35rem 0.4rem 0.35rem 0;
}

.rc-payments td {
    padding: 0.4rem 0.4rem 0.4rem 0;
    border-bottom: 1px dashed #e1e7e4;
    font-size: 0.84rem;
}

.rc-totals {
    background: #f6f9f7;
    border: 1px solid #e1e7e4;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
}

.rc-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    font-variant-numeric: tabular-nums;
}

.rc-row span:first-child {
    color: #5f6964;
}

.rc-row-total {
    border-top: 1px solid #cfd8d3;
    margin-top: 0.3rem;
    padding-top: 0.55rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.rc-row-total span:first-child {
    color: #1f2a24;
}

.rc-row-due {
    margin-top: 0.5rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.rc-row-due span:first-child {
    color: #fff;
}

.rc-row-due.is-clear {
    background: #1f7a4a;
}

.rc-payby {
    font-size: 0.8rem;
    color: #8a1c27;
    margin-top: 0.5rem;
    text-align: center;
}

.rc-notes,
.rc-terms {
    margin: 1.25rem 2.25rem 0;
    font-size: 0.82rem;
}

.rc-terms ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #44514a;
}

.rc-sign {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3.5rem 2.25rem 0;
}

.rc-sign div {
    flex: 0 0 210px;
    border-top: 1px solid #1f2a24;
    padding-top: 0.35rem;
    text-align: center;
    font-size: 0.8rem;
}

.rc-foot {
    margin-top: 2rem;
    padding: 1rem 2.25rem 1.4rem;
    text-align: center;
    border-top: 1px solid #e1e7e4;
}

.rc-thanks {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.rc-stamp {
    position: absolute;
    bottom: 105px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    border: 4px solid currentColor;
    border-radius: 10px;
    padding: 0.2rem 1rem;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    opacity: 0.3;
    pointer-events: none;
    white-space: nowrap;
}

.receipt-actions i {
    margin-right: 0.4rem;
}

.stamp-paid { color: #1f7a4a; }
.stamp-partial { color: #c27c00; }
.stamp-due { color: var(--accent-color); }

@media (max-width: 640px) {
    .rc-head,
    .rc-info,
    .rc-summary {
        grid-template-columns: 1fr;
    }
    .rc-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
    .rc-title {
        text-align: left;
    }
    .rc-contact,
    .rc-info,
    .rc-summary,
    .rc-foot {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .rc-items {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        width: calc(100% - 2.5rem) !important;
    }
    .rc-notes,
    .rc-terms,
    .rc-sign {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
    .rc-stamp {
        display: none;
    }
}

@page {
    size: A4;
    margin: 10mm;
}

@media print {
    .receipt-actions {
        display: none;
    }
    .receipt-body {
        background: #fff;
    }
    .rc {
        margin: 0;
        max-width: none;
        box-shadow: none;
        border-radius: 0;
    }
}

.logo-preview {
    min-height: 90px;
    border: 1px dashed #cfd8d3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: repeating-conic-gradient(#f3f5f4 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.logo-preview img {
    max-height: 90px;
    max-width: 100%;
}

.due-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-start;
    background: #fff7f7;
    border: 1px solid #f3c3c8;
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.due-box-amount {
    min-width: 170px;
}

.paid-full-box {
    background: #eef8f2;
    border: 1px solid #c6e6d2;
    color: #1f7a4a;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.admin-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 3px;
}

/* Enquiries list */
.enquiry-row {
    cursor: pointer;
}

.enquiry-row:hover td {
    background: #f8faf9;
}

.enquiry-row.is-new td:first-child {
    box-shadow: inset 4px 0 0 var(--accent-color);
}

.enquiry-row.is-new .fw-semibold {
    color: var(--dark-color);
}

.enquiry-row[aria-expanded="true"] td {
    background: #f3f7f5;
    border-bottom-color: transparent;
}

.enquiry-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 340px;
    font-size: 0.875rem;
    color: #44514a;
}

.enquiry-detail td {
    background: #f3f7f5;
    padding: 0.5rem 1rem 1.1rem 4.2rem !important;
}

.enquiry-message {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
}

/* Logo in the site header */
/* Height is fixed and the width follows the uploaded logo's own shape (Settings → Business → Logo). */
.brand-logo {
    height: 64px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 50px;
        max-width: 200px;
    }
}

/* Herd: growth chart, reminders, AI advisor */
.weight-chart {
    width: 100%;
    height: auto;
    display: block;
}

.weight-chart .grid {
    stroke: #e6ebe8;
    stroke-width: 1;
}

.weight-chart .axis {
    font-size: 11px;
    fill: #7b8680;
}

.weight-chart .line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.weight-chart .dot {
    fill: #fff;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.weight-chart .target {
    stroke: var(--accent-color);
    stroke-width: 1.5;
    stroke-dasharray: 6 5;
}

.weight-chart .target-label {
    fill: var(--accent-color);
    font-weight: 600;
}

.due-alert {
    margin: 0.75rem 1.25rem 0;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    background: #fff6e0;
    color: #8a5a00;
    font-size: 0.875rem;
}

.due-alert.is-overdue {
    background: #fde4e6;
    color: #9b1c2a;
}

.ai-panel {
    border-color: #cfe3d8;
}

.ai-section {
    border-top: 1px solid var(--admin-border);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
}

.ai-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--admin-muted);
    margin-bottom: 0.25rem;
}

.ai-bn {
    background: #f3f8f5;
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    border-top: 0;
}

.badge.bg-info {
    background-color: #2a7395 !important;
}

/* Illustrated homepage banner: keep the text on the sky, above the fields */
.hero-section .min-vh-100 {
    min-height: 0 !important;
    padding: 9vh 0 40vh;
    align-items: flex-start !important;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 0;
    }
    .hero-section .min-vh-100 {
        padding: 5vh 0 210px;
    }
}

/* "Sold by live weight" price example */
.price-example {
    background: linear-gradient(160deg, #0f3d2e, var(--primary-color));
    color: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 81, 59, 0.25);
    max-width: 440px;
    margin: 0 auto;
}

.price-example-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.price-example-head i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffd166;
}

.price-example-head .bn {
    color: #ffd166;
    font-weight: 500;
    font-size: 0.95rem;
}

.pe-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.pe-row span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.pe-row strong {
    font-size: 1.35rem;
}

.pe-op {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd166;
    line-height: 1.6;
}

.pe-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: 0.9rem;
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    color: var(--dark-color);
}

.pe-total strong {
    font-size: 1.7rem;
    color: var(--primary-color);
}

.price-example .pe-note {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    margin: 0.9rem 0 0;
}

.ai-report-bn,
.ai-report-bn .small {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Herd: bulk select */
.admin-table .check-col { width: 36px; padding-right: 0; cursor: default; }
.bulk-bar { position: sticky; top: 72px; z-index: 5; border-color: var(--bs-primary, #0b6b4f); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }

/* Readable text on yellow (Booked) badges: white on yellow is only 1.6:1 */
.badge.bg-warning { color: #1f2a24 !important; }

/* Herd toolbar and phone layout */
.herd-tools .herd-filter { width: auto; min-width: 150px; }
.herd-compact { font-size: 0.85rem; }
@media (max-width: 767.98px) {
    .herd-tools { width: 100%; }
    .herd-tools .herd-sync,
    .herd-tools .herd-sync .btn { width: 100%; }
    .herd-tools .herd-filter { flex: 1 1 0; min-width: 0; }
    .herd-ration-line { max-width: none !important; white-space: normal; }
    .bulk-bar { top: 60px; }
    .bulk-bar .form-select,
    .bulk-bar input[type="date"] { flex: 1 1 140px; width: auto !important; }
}
/* Feed cards: long ration names wrap instead of being cut off */
.panel-head .ration-title { white-space: normal; line-height: 1.3; min-width: 0; }
.panel-head:has(.ration-title) { align-items: flex-start; gap: 0.5rem; }
.panel-head:has(.ration-title) .pill { flex-shrink: 0; }

/* Feed sub-navigation */
.feed-tabs .nav-link { color: var(--admin-muted); font-weight: 600; }
.feed-tabs .nav-link.active { color: var(--primary-color); }
.admin-table .stock-feed { min-width: 200px; }
@media (max-width: 575.98px) { .admin-table .stock-feed { min-width: 140px; } }
.role-custom { background: #fdf1d8; color: #865700; }

/* Settings: roles & access */
.access-table .access-perm { min-width: 230px; position: sticky; left: 0; background: #fff; z-index: 1; }
.access-table thead .access-perm { background: #f8faf9; }
.access-table .access-role { min-width: 96px; }
.access-table .access-check { width: 1.35rem; height: 1.35rem; cursor: pointer; }
.access-table .access-group td { background: #f3f5f4; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--admin-muted); position: static; }
.role-row { padding: 0.6rem 0; border-bottom: 1px solid var(--admin-border); }
.role-row:last-child { border-bottom: 0; }
@media (max-width: 575.98px) { .access-table .access-perm { min-width: 170px; } }

/* Confirmation pop-up */
.confirm-dialog { max-width: 380px; }
.confirm-dialog .modal-content { border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 42, 32, .25); }
.confirm-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; font-size: 1.5rem; }
.confirm-dialog .btn { min-height: 44px; font-weight: 600; }
.confirm-dialog .btn-light { background: #eef1ef; border-color: #eef1ef; color: var(--dark-color); }

/* Dashboard: farm at a glance */
.glance-figure { background: #f6f8f7; border-radius: 12px; padding: 0.9rem 1rem; height: 100%; }
.glance-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 0.2rem 0; }
.glance-value small { font-size: 0.9rem; font-weight: 600; color: var(--admin-muted); }
.glance-profit.is-up { background: #e3f4ea; }
.glance-profit.is-up .glance-value { color: #1f7a4a; }
.glance-profit.is-down { background: #fde4e6; }
.glance-profit.is-down .glance-value { color: #b01f2e; }
@media (max-width: 575.98px) { .glance-value { font-size: 1.25rem; } }

/* Animal form: price on the website */
.price-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.6rem; }
.price-mode { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid var(--admin-border); border-radius: 10px; padding: 0.7rem 0.8rem; cursor: pointer; background: #fff; }
.price-mode:has(input:checked) { border-color: var(--primary-color); background: #eef7f2; }
.price-mode .form-check-input { margin-top: 0.2rem; flex-shrink: 0; }
.price-preview { background: #f6f8f7; border-radius: 8px; padding: 0.5rem 0.75rem; width: 100%; }
.admin-table .herd-total td { background: #f6f8f7; border-top: 2px solid var(--admin-border); }

/* Dashboard: 12-month sales vs costs chart */
.chart-scroll { overflow-x: auto; }
.money-chart { width: 100%; height: auto; display: block; }
.money-chart .grid { stroke: #e9ecea; stroke-width: 1; }
.money-chart .baseline { stroke: #b9c1bc; stroke-width: 1; }
.money-chart .axis { fill: #5f6964; font-size: 11px; font-family: inherit; }
.money-chart .bar-sales, .legend-swatch.bar-sales { fill: #2f7d4f; background: #2f7d4f; }
.money-chart .bar-costs, .legend-swatch.bar-costs { fill: #3d6fc4; background: #3d6fc4; }
.money-chart path { stroke: #fff; stroke-width: 1; }
.money-chart path:hover { opacity: 0.82; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; color: var(--dark-color); }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
.herd-search { flex: 1 1 260px; max-width: 360px; }
@media (max-width: 767.98px) { .herd-search { max-width: none; width: 100%; } }
.herd-search-form .form-select { width: auto; }
.herd-search-form .input-group { width: 240px; }
@media (max-width: 575.98px) { .herd-search-form, .herd-search-form .input-group { width: 100%; } .herd-search-form .form-select { flex: 1; } }

/* Customer statement (prints like the receipt) */
.st-period { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.st-period select, .st-period input, .st-period button { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.5rem; border: 1px solid #cfd6d2; border-radius: 6px; background: #fff; }
.st-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin: 1.25rem 2.25rem 0; }
.st-scroll { overflow-x: auto; }
.st-summary > div { border: 1px solid #e1e6e3; border-radius: 8px; padding: 0.6rem 0.8rem; display: flex; flex-direction: column; gap: 0.15rem; }
.st-summary span { font-size: 0.78rem; color: #5f6964; }
.st-summary strong { font-size: 1.1rem; }
.st-summary .is-due { border-color: #f0b8bd; background: #fdf1f2; }
.st-summary .is-due strong { color: #b01f2e; }
.st-summary .is-clear strong { color: #1f7a4a; }
.st-lines .st-date { white-space: nowrap; }
.st-lines .st-opening td { background: #f6f8f7; }
.st-lines tfoot td { border-top: 2px solid #cfd6d2; }
@media print { .st-period { display: none !important; } .st-summary > div { break-inside: avoid; } .st-lines tr { break-inside: avoid; } }

/* Statement on phones: each line becomes a small card (date, details, amount, balance) */
@media (max-width: 600px) {
    .st-summary { margin: 1rem 1rem 0; grid-template-columns: 1fr 1fr; }
    .rc .st-lines { margin: 1rem 1rem 0; width: calc(100% - 2rem) !important; }
    .st-lines thead { display: none; }
    .st-lines tr { display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid #e1e6e3; }
    .st-lines td { border: 0 !important; padding: 0 !important; }
    .st-lines td.st-date { grid-column: 1; font-size: 0.78rem; color: #5f6964; }
    .st-lines td:nth-child(2) { grid-column: 1; }
    .st-lines td.num:nth-child(3), .st-lines td.num:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
    .st-lines td.num:nth-child(3):empty, .st-lines td.num:nth-child(4):empty { display: none; }
    .st-lines td.num:nth-child(4):not(:empty)::before { content: "paid "; color: #1f7a4a; font-size: 0.75rem; }
    .st-lines td.num:nth-child(3):not(:empty)::before { content: "bought "; color: #5f6964; font-size: 0.75rem; }
    .st-lines td.num:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; font-size: 0.85rem; }
    .st-lines td.num:nth-child(5)::before { content: "balance "; font-weight: 400; color: #5f6964; font-size: 0.75rem; }
    .st-lines tfoot tr { border-bottom: 0; }
    .st-lines tfoot td:first-child { display: none; }
    .st-lines tfoot td.num:nth-child(3) { grid-row: 1; }
    .st-lines tfoot td.num:nth-child(4) { grid-row: 2; }
    .st-lines tfoot td.num:nth-child(5) { grid-row: 3; }
    /* Signature lines (statement and receipt) share the width instead of overflowing */
    .rc-sign { margin: 2.5rem 1rem 0; gap: 1rem; }
    .rc-sign div { flex: 1 1 0; min-width: 0; }
}

/* Live search: soft fade while new results load */
body.is-live-loading [data-live-region] { opacity: 0.55; transition: opacity 0.15s; }

/* Page numbers in the farm's green, with comfortable tap targets */
.admin-body .pagination {
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-color: var(--primary-dark);
    --bs-pagination-hover-bg: #eef7f2;
    --bs-pagination-focus-color: var(--primary-dark);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2);
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-padding-x: 0.8rem;
    --bs-pagination-padding-y: 0.45rem;
}

/* Choice tiles (e.g. expense category): big, tappable, icon + English + Bangla */
.choice-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.choice-tile { position: relative; cursor: pointer; margin: 0; }
.choice-tile input { position: absolute; opacity: 0; pointer-events: none; }
.choice-tile-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem; height: 100%; padding: 0.7rem 0.5rem; border: 1.5px solid var(--admin-border); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.choice-tile-body i { font-size: 1.25rem; color: var(--admin-muted); margin-bottom: 0.2rem; }
.choice-tile-label { font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.choice-tile-bn { font-size: 0.78rem; color: var(--admin-muted); }
.choice-tile:hover .choice-tile-body { border-color: #b9c1bc; }
.choice-tile input:checked + .choice-tile-body { border-color: var(--primary-color); background: #eef7f2; box-shadow: inset 0 0 0 1px var(--primary-color); }
.choice-tile input:checked + .choice-tile-body i { color: var(--primary-color); }
.choice-tile input:focus-visible + .choice-tile-body { outline: 3px solid rgba(var(--primary-rgb), 0.35); outline-offset: 2px; }
.expense-amount { font-size: 1.5rem; font-weight: 700; }
@media (max-width: 575.98px) { .choice-tiles { grid-template-columns: repeat(2, 1fr); } }

/* "Software by Codevance" credit */
.admin-credit { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--admin-border); font-size: 0.78rem; color: var(--admin-muted); text-align: center; }
.admin-credit a { color: var(--admin-muted); font-weight: 600; text-decoration: none; }
.admin-credit a:hover { color: var(--primary-color); text-decoration: underline; }
p.admin-credit { border-top: 0; padding-top: 0; }

/* Website footer bottom bar: copyright left, staff login + developer credit right */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 575.98px) { .footer-bottom { flex-direction: column; text-align: center; } }
/* Leave room for the floating call button on phones and tablets */
@media (max-width: 991.98px) { .footer-bottom { padding-bottom: 4.5rem; } }
.footer-staff-login { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.9rem; }
.footer-staff-login:hover { color: #fff; text-decoration: underline; }

/* Totals row at the bottom of admin tables */
.admin-table tfoot tr:first-child td { border-top: 2px solid #cfd6d2; background: #f7f9f8; }
.admin-table tfoot tr.d-lg-none td { background: #f7f9f8; border-top: 0; }

/* Year statement (prints like the receipt) */
.ys-sec { margin: 1.6rem 2.25rem 0; }
.ys-h { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 1rem; font-weight: 600; color: var(--primary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 0.35rem; margin: 0 0 0.25rem; }
.ys-bn { font-weight: 500; color: #5f6964; font-size: 0.85rem; }
.ys-lines { width: 100%; border-collapse: collapse; }
.ys-lines td { padding: 0.5rem 0; border-bottom: 1px solid #eef1ef; vertical-align: top; }
.ys-lines td.num { padding-left: 1rem; }
.ys-sub td { padding-top: 0.25rem; padding-bottom: 0.25rem; font-size: 0.84rem; color: #5f6964; border-bottom-style: dashed; }
.ys-sub td:first-child { padding-left: 1.25rem; }
.ys-subtotal td { font-weight: 600; border-top: 1px solid #cfd6d2; }
.ys-total td { font-weight: 700; font-size: 1.1rem; padding: 0.75rem 0.75rem; border-bottom: 0; }
.ys-total.is-profit td { background: #eef6f2; color: #1f7a4a; }
.ys-total.is-loss td { background: #fdf1f2; color: #b01f2e; }
.ys-words { margin: 0.4rem 0 0; font-size: 0.82rem; font-style: italic; color: #5f6964; text-align: right; }
.ys-note { margin: 0.5rem 0 0; font-size: 0.8rem; color: #5f6964; }
.ys-warn { color: #b01f2e; }
.ys-sold { width: 100%; }
.ys-sold tfoot td { font-weight: 600; border-top: 2px solid #cfd6d2; padding: 0.5rem 0.6rem; }
@media print { .ys-sec { break-inside: avoid; } }
@media (max-width: 600px) { .ys-sec { margin: 1.25rem 1rem 0; } .ys-total td { font-size: 1rem; padding: 0.6rem 0.5rem; } }
.ys-sold .text-nowrap { white-space: nowrap; }
.ys-narrow { display: none; }
@media (max-width: 600px) {
    .ys-sold .ys-wide { display: none; }
    .ys-narrow { display: block; }
    .ys-sold th, .ys-sold td { padding-left: 0.35rem; padding-right: 0.35rem; }
    .receipt-actions { flex-wrap: wrap; }
    .receipt-actions a, .receipt-actions button { white-space: nowrap; }
}

/* Show / hide password (eye button added by admin_footer.php) */
.pw-field { position: relative; flex: 1 1 auto; min-width: 0; }
.pw-field > input { padding-right: 3rem; }
.pw-toggle { position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #5f6964; display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--primary-color); background: #eef3f1; }
.pw-toggle:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.input-group > .pw-field > input { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Login page: farm photo panel + form */
.login-card { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 42, 32, 0.14); }
.login-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2rem; color: #fff; min-height: 540px;
    background: linear-gradient(180deg, rgba(0, 61, 44, 0.82) 0%, rgba(0, 61, 44, 0.35) 45%, rgba(15, 42, 32, 0.92) 100%), url('/website-images/farm/login-farm.jpg') center 30% / cover no-repeat #0f2a20; }
.login-side-top { display: flex; align-items: center; gap: 0.85rem; }
.login-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; }
.login-brand { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.login-brand-bn { font-family: 'Hind Siliguri', sans-serif; color: #ffd166; font-weight: 600; }
.login-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.login-points li { display: flex; align-items: center; gap: 0.7rem; }
.login-points i { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, 0.16); display: inline-flex; align-items: center; justify-content: center; }
.login-main { padding: 2.75rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.login-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--admin-text, #1f2a24); }
.login-sub { color: #5f6964; margin-bottom: 1.5rem; }
.login-field { position: relative; display: flex; }
.login-field > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #5f6964; z-index: 2; pointer-events: none; }
.login-field input, .login-field .pw-field input { padding-left: 2.75rem; }
.login-caps { color: #9a5b00; font-weight: 500; }
.login-back { margin-top: 1.5rem; align-self: center; color: #5f6964; text-decoration: none; font-size: 0.9rem; padding: 0.5rem; }
.login-back:hover { color: var(--primary-color); text-decoration: underline; }
@media (max-width: 767.98px) {
    .login-card { grid-template-columns: 1fr; border-radius: 16px; }
    .login-side { min-height: 0; padding: 1.25rem 1.25rem; background: linear-gradient(135deg, #00513b, #0f2a20); }
    .login-points { display: none; }
    .login-logo { width: 52px; height: 52px; }
    .login-brand { font-size: 1.15rem; }
    .login-main { padding: 1.75rem 1.25rem; }
}

/* Help button in the top bar and the Bangla user guide (admin/help.php) */
.btn-help { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c9d3ce; background: #fff; color: var(--primary-color); font-size: 1rem; }
.btn-help:hover, .btn-help:focus-visible, .btn-help.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.help-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.help-toc { position: sticky; top: 80px; background: #fff; border: 1px solid var(--admin-border, #e4e8e6); border-radius: 12px; padding: 0.75rem; max-height: calc(100vh - 100px); overflow-y: auto; }
.help-search { position: relative; margin-bottom: 0.5rem; }
.help-search i { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: #5f6964; }
.help-search input { padding-left: 2.2rem; min-height: 42px; }
.help-toc-list { list-style: none; margin: 0; padding: 0; }
.help-toc-list a { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.5rem 0.55rem; border-radius: 8px; color: #1f2a24; text-decoration: none; font-size: 0.93rem; line-height: 1.35; }
.help-toc-list a:hover { background: #eef3f1; color: var(--primary-color); }
.help-num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e6f0ec; color: #00513b; font-size: 0.8rem; font-weight: 600; flex-shrink: 0; margin-right: 0.5rem; }
.help-toc-list .help-num { margin-right: 0; }
.help-section { margin-bottom: 1.25rem; scroll-margin-top: 80px; }
.help-section h2 { display: flex; align-items: center; font-size: 1.15rem; line-height: 1.4; }
.help-section .panel-body { font-size: 1rem; line-height: 1.75; }
.help-section p { margin-bottom: 0.9rem; }
.help-steps, .help-list { padding-left: 1.4rem; margin-bottom: 1rem; }
.help-steps li, .help-list li { margin-bottom: 0.45rem; }
.help-steps li::marker { color: var(--primary-color); font-weight: 700; }
.help-section .ui { display: inline-block; font-family: 'Poppins', sans-serif; font-size: 0.85em; font-weight: 600; color: #00513b; background: #e6f0ec; border: 1px solid #c9ddd4; border-radius: 6px; padding: 0 0.4rem; line-height: 1.6; white-space: nowrap; }
.help-callout { display: flex; gap: 0.75rem; border-radius: 10px; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.help-callout i { margin-top: 0.35rem; }
.help-callout.is-tip { background: #eef6f2; color: #1f2a24; }
.help-callout.is-tip i { color: #1f7a4a; }
.help-callout.is-note { background: #fff6e0; color: #1f2a24; }
.help-callout.is-note i { color: #9a5b00; }
.help-figure { margin: 0.5rem 0 1.25rem; }
.help-figure img { display: block; max-width: 100%; height: auto; border: 1px solid #dfe5e2; border-radius: 10px; box-shadow: 0 4px 14px rgba(15, 42, 32, 0.08); background: #f3f5f4; }
.help-figure.is-phone img { max-width: 300px; }
.help-figure figcaption { margin-top: 0.4rem; font-size: 0.85rem; color: #5f6964; }
@media (max-width: 991.98px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-toc { position: static; max-height: none; }
    .help-toc-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
    .help-toc-list a { border: 1px solid #e4e8e6; border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.85rem; min-height: 40px; align-items: center; }
    .help-toc-list .help-num { display: none; }
}
@media (max-width: 575.98px) {
    .help-section .panel-body { font-size: 0.97rem; }
    .help-section .ui { white-space: normal; }
    .help-figure.is-phone img { max-width: 75%; }
}
.help-zoom { display: none; white-space: nowrap; }
@media (max-width: 767.98px) { .help-zoom { display: inline; } }
