/* Root variables for consistency */
:root {
    --primary-color: #3c4b28;
    --secondary-color: #5e6b3a;
    --background-dark: #2e3a1f;
    --background-light: #8a9a5b;
    --text-color: #e0e0d1;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --error-color: #8a2e2e;
    --error-hover: #b04040;
    --opacity-bg: 0.9;
    --opacity-dropdown: 0.8;
}

/* Ensure body has no unwanted margins or overflow */
body {
    margin: 0;
    font-family: 'Stencil', 'Arial', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    background: var(--background-dark);
    overflow-x: hidden;
}

/* Blur effect for page content */
.blurred {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.main-container.blurred {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

html {
    width: 100%;
    overflow-x: hidden;
}


.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

#daro-logo {
    width: 300px;
    height: 90px;
    cursor: pointer;
    object-fit: contain;
}

.logo-text {
    color: var(--text-color);
}

header {
    background: rgba(46, 58, 31, var(--opacity-bg));
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    z-index: 1100;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1100;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.nav-menu li {
    margin: 0 10px;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    background: rgba(94, 107, 58, var(--opacity-bg));
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: rgba(94, 107, 58, 1);
    transform: scale(1.05);
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

.main-container {
    position: relative;
    width: 100%;
    padding: 0;
}

#home-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}

.content-overlay {
    background: rgba(46, 58, 31, var(--opacity-bg));
    padding: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 6px 12px var(--shadow-color);
}

h2 {
    font-size: 36px;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

p {
    font-size: 18px;
    line-height: 1.8;
}

#welcome-message {
    background: rgba(94, 107, 58, var(--opacity-dropdown));
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid var(--primary-color);
}

.stats-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(94, 107, 58, var(--opacity-bg));
    border: 3px dashed var(--primary-color);
    border-radius: 8px;
}

.stats-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stats-section li {
    font-size: 20px;
    font-weight: bold;
}

.cta-banner {
    margin: 30px 0;
    padding: 25px;
    background: rgba(60, 75, 40, var(--opacity-bg));
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    text-align: center;
}

.cta-banner button {
    padding: 12px 25px;
    font-size: 20px;
}

.faq-content {
    margin-top: 40px;
}

.faq-content details {
    margin: 15px 0;
    padding: 15px;
    background: rgba(138, 154, 91, var(--opacity-dropdown));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.faq-content summary {
    font-size: 20px;
    cursor: pointer;
}

input, button, select, textarea {
    padding: 10px;
    margin: 8px 0;
    background: rgba(138, 154, 91, 0.95);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    border: 2px solid var(--secondary-color);
    display: inline-block;
}

button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.package-details {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(94, 107, 58, var(--opacity-dropdown));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.package-details img {
    max-width: 150px;
    max-height: 150px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
}

.package-details .package-text {
    flex: 1;
}

.package-details button {
    margin-top: 10px;
}

.cart-summary {
    margin: 20px 0;
    padding: 15px;
    background: rgba(94, 107, 58, var(--opacity-dropdown));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.cart-summary ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cart-summary li {
    margin: 5px 0;
}

.cart-content li {
    padding: 10px;
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#soldierSearchForm {
    display: none;
}

.search-box input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background: var(--background-dark);
    color: var(--text-color);
}

.search-box button {
    padding: 8px 16px;
    font-size: 14px;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--secondary-color);
}

footer {
    background: rgba(46, 58, 31, var(--opacity-bg));
    padding: 20px;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.secondary-nav {
    margin: 20px 0;
}

.secondary-nav h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.secondary-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.secondary-nav li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    background: rgba(94, 107, 58, var(--opacity-bg));
    border: 2px solid var(--primary-color);
    border-radius: 5px;
}

.secondary-nav li a:hover {
    background: rgba(94, 107, 58, 1);
    transform: scale(1.05);
}

/* ── REPLACED: old oversized button rule ──────────────────────────
   Previously #requestVacation, #requestReplacement, #carePackage
   had font-size: 24px and padding: 15px 30px which made them huge
   and broke the flex row layout. Replaced with the .profile-actions
   rule further down in this file.
   ────────────────────────────────────────────────────────────────── */

.profile img {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    max-width: 100%;
}

#activeSign {
    font-weight: bold;
    color: #32cd32;
}

#vacationOptions, #vacationChoice, #replacementOptions, #replacementForm, #carePackageList, #carePackageOrderForm, #orderHistory, #donationOptions {
    margin-top: 10px;
    padding: 10px;
    background: rgba(46, 58, 31, var(--opacity-dropdown));
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--text-color);
}

#carePackageList button {
    min-width: 250px;
    margin: 5px 0;
}

#hireReplacement {
    background: var(--error-color);
}

#hireReplacement:hover {
    background: var(--error-hover);
}

#orderList, #pendingOrderList {
    list-style-type: none;
    padding: 0;
}

#orderList li, #pendingOrderList li {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#pendingOrderList li button {
    background: var(--error-color);
    padding: 5px 10px;
    font-size: 12px;
}

#pendingOrderList li button:hover {
    background: var(--error-hover);
}

#cartOverlayList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#cartOverlayTotal {
    font-weight: bold;
}

.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    filter: none;
}

.loading-content {
    background: var(--background-dark);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px var(--shadow-color);
    max-width: 400px;
    width: 90%;
    filter: none;
}

.loading-content img {
    width: 100px;
    margin-bottom: 15px;
    animation: pulse 3s infinite;
}

.loading-content p {
    font-size: 18px;
    margin: 15px 0;
    color: var(--text-color);
}

.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    filter: none;
}

.thank-you-content {
    background: var(--background-dark);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px var(--shadow-color);
    max-width: 400px;
    width: 90%;
    filter: none;
}

.thank-you-content img {
    width: 100px;
    margin-bottom: 15px;
    animation: pulse 3s infinite;
}

.thank-you-content p {
    font-size: 18px;
    margin: 15px 0;
    color: var(--text-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--primary-color);
    animation: progress 25s linear forwards;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.error-message {
    display: none;
    background: rgba(138, 154, 91, 0.95);
    color: var(--text-color);
    padding: 10px;
    margin: 10px 0;
    border: 2px solid var(--error-color);
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.error-message.success {
    background: rgba(50, 205, 50, 0.95);
    border-color: #32cd32;
}

/* ── REPLACED: old .profile-grid and .profile-card ────────────────
   The old rules used a single auto-fit grid with no grouping.
   They are superseded by .profile-hero, .profile-sections,
   and .info-card further down in this file.
   The old class names are kept below at reduced specificity so
   any other page that still uses .profile-card won't break.
   ────────────────────────────────────────────────────────────────── */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.profile-card {
    background: rgba(94, 107, 58, var(--opacity-dropdown));
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.profile-card img {
    max-width: 100%;
    border-radius: 5px;
}

.profile-card p {
    margin: 10px 0;
}

.profile-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.collapsible {
    background: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    margin: 10px 0;
}

.collapsible-content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background: rgba(46, 58, 31, var(--opacity-bg));
}

.collapsible-content.active {
    display: block;
}

.slideshow-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    max-width: 100%; 
}

.caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background: rgba(46, 58, 31, 0.8);
    color: var(--text-color);
    padding: 10px;
    text-align: center;
    font-size: 16px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: var(--background-light);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(94, 107, 58, var(--opacity-dropdown));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--primary-color);
}

th {
    background: var(--primary-color);
    color: var(--text-color);
}

td {
    color: var(--text-color);
}

tr:hover {
    background: rgba(138, 154, 91, 0.95);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(46, 58, 31, var(--opacity-bg));
        padding: 10px 0;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        font-size: 16px;
        padding: 10px;
    }

    .logo-container {
        margin: 20px 0;
    }

    .logo-wrapper {
        flex-direction: column;
        align-items: center;
    }

    #daro-logo {
        width: 400px;
        height: 104px;
        margin-bottom: 5px;
    }

    .logo-text {
        font-size: 34px;
        margin: 0;
        text-align: center;
    }

    .loading-modal, .thank-you-modal {
        display: flex;
    }

    .loading-content, .thank-you-content {
        padding: 15px;
        max-width: 80%;
    }

    .loading-content p, .thank-you-content p {
        font-size: 16px;
    }

    .slide img {
        height: 400px;
    }

    .package-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .package-details img {
        max-width: 180px;
        max-height: 120px;
    }
}

@media (min-width: 769px) {
    .logo-container {
        margin: 20px 0;
    }

    .logo-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    #daro-logo {
        width: 350px;
        height: 104px;
        margin-right: 10px;
    }

    .logo-text {
        font-size: 28px;
        margin: 0;
        text-align: left;
    }

    .nav-menu {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .content-overlay {
        width: 95%;
        padding: 20px;
        margin: 10px auto;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }

    p {
        font-size: 16px;
    }

    .stats-section ul {
        grid-template-columns: 1fr;
    }

    .cta-banner button {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .loading-modal, .thank-you-modal {
        display: flex;
    }
}

.tawk-min-container {
    z-index: 2500 !important;
    max-width: 100%;
    overflow-x: hidden;
}

.chat-button {
    z-index: 2500;
    max-width: 100%;
    overflow-x: hidden;
}

.basket-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: transform 0.3s;
}
.basket-icon img {
    width: 24px;
    height: 24px;
}
.basket-icon:hover {
    transform: scale(1.1);
}
.basket-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.basket-icon.pulse {
    animation: pulse 0.5s;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.cart-overlay {
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 60px);
    background: var(--background-dark);
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: none;
    border-left: 2px solid var(--primary-color);
}
.cart-overlay.visible {
    transform: translateX(0);
    display: block;
}
.cart-content {
    padding: 20px;
    text-align: center;
    color: var(--text-color);
}

.close-cart {
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.disclaimer-modal.active {
    display: flex;
}

.disclaimer-content {
    background: var(--background-dark);
    padding: 40px;
    border-radius: 10px;
    border: 3px solid var(--primary-color);
    text-align: center;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 0 20px var(--shadow-color);
}

.disclaimer-content h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.disclaimer-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 15px 0;
}

.dog-tag {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 5px 0;
}

.contact-form-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(94, 107, 58, var(--opacity-dropdown));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.contact-form label {
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.contact-details {
    margin-top: 30px;
    padding: 20px;
    background: rgba(94, 107, 58, var(--opacity-dropdown));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-align: left;
}

.contact-details p {
    margin: 10px 0;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 20px;
}

.social-links h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 15px;
    }

    .contact-details {
        padding: 15px;
    }

    .social-icon {
        width: 25px;
        height: 25px;
    }
}

#confirmationPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-dark);
    color: var(--text-color);
    padding: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-color);
}

#confirmationPopup button {
    background: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

#confirmationPopup button:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .cart-overlay {
        max-width: 80%;
        right: 10%;
        top: 60px;
        height: calc(100vh - 60px);
    }
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
}
.package-card {
    background: var(--background-dark);
    color: var(--text-color);
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.2s;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}
.package-card:hover {
    transform: translateY(-5px);
}
.package-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.package-content {
    padding: 20px;
    text-align: center;
}
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.testimonials-container {
    margin-top: 20px;
    text-align: left;
}
.testimonial {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.testimonial-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
}
.profile-icon {
    font-size: 20px;
    color: var(--text-color);
    margin-top: 5px;
}
.verified-buyer {
    background: green;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 5px;
}
.testimonial-content {
    flex: 1;
}
.stars {
    color: gold;
    font-size: 14px;
}
.continue-shopping .package-card {
    background: rgba(255, 255, 255, 0.8);
}

.search-filter-container {
    margin: 20px 0 30px;
    padding: 20px;
    background: rgba(46, 58, 31, 0.8);
    border-radius: 12px;
    border: 1px solid var(--background-light);
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    font-size: 16px;
    border: 2px solid var(--background-light);
    border-radius: 30px;
    background: var(--background-dark);
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--background-light);
    box-shadow: 0 0 10px rgba(138, 154, 91, 0.4);
}

.search-box input::placeholder {
    color: #999;
}

.search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.7;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    border: 2px solid var(--background-light);
    border-radius: 25px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.category-btn.active {
    background: var(--background-light);
    color: var(--background-dark);
    border-color: var(--background-light);
}

@media (max-width: 768px) {
    .cart-overlay {
        max-width: 90%;
        right: 5%;
    }
    .package-grid {
        grid-template-columns: 1fr;
    }
    .package-card img {
        height: 150px;
    }
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    .category-btn {
        flex-shrink: 0;
        font-size: 13px;
        padding: 8px 14px;
    }
}
@media (max-width: 768px) {
    .content-overlay {
        width: 100%;
        padding: 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

.filter-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    background: var(--background-light);
    color: var(--background-dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.filter-toggle:active {
    transform: scale(0.98);
}

.category-sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--background-dark);
    z-index: 2000;
    box-shadow: 2px 0 15px var(--shadow-color);
    animation: slideInLeft 0.3s ease;
    overflow-y: auto;
    flex-direction: column;
}

.category-sidebar.active {
    display: flex;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--background-light);
    background: rgba(46, 58, 31, 0.95);
    flex-shrink: 0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-sidebar:active {
    transform: scale(1.1);
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-y: auto;
}

.sidebar-category-btn {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    background: transparent;
    color: var(--text-color);
    border: none;
    border-bottom: 1px solid rgba(138, 154, 91, 0.2);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.sidebar-category-btn:hover {
    background: rgba(138, 154, 91, 0.2);
    padding-left: 24px;
}

.sidebar-category-btn.active {
    background: var(--background-light);
    color: var(--background-dark);
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.sidebar-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sticky-category-btn {
    display: none;
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 1500;
    padding: 12px 16px;
    background: var(--background-light);
    color: var(--background-dark);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: slideDownIn 0.4s ease;
    transform: translateY(0);
    opacity: 1;
    white-space: nowrap;
    max-width: 160px;
}

.sticky-category-btn.hidden {
    transform: translateY(-100px);
    opacity: 0;
    pointer-events: none;
}

.sticky-category-btn:active {
    transform: scale(0.95);
}

.sticky-category-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.category-emoji {
    font-size: 18px;
    display: inline-block;
}

.category-name {
    font-size: 13px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideDownIn {
    from { opacity: 0; transform: translateY(-100px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .filter-toggle { display: block; }
    .category-filters { display: none; }
    .search-filter-container { padding: 15px; }
    .sticky-category-btn { display: flex; }
}

@media (min-width: 769px) {
    .filter-toggle { display: none !important; }
    .category-filters { display: flex !important; }
    .category-sidebar { display: none !important; }
    .sidebar-overlay { display: none !important; }
    .sticky-category-btn { display: none !important; }
}

.success-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(138, 154, 91, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-color);
    text-align: center;
}
.success-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.order-recap {
    margin: 40px 0;
    padding: 20px;
    background: #043502;
    border-radius: 10px;
}
.items-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}
.item-box {
    width: 220px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
}
.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.2rem;
    margin: 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
}
.btn-primary:hover {
    background: #3e4a2a;
}
.payment-option {
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    background: rgba(46, 58, 31, 0.9);
    color: var(--text-color);
    transition: all 0.2s;
}
.payment-option.selected {
    border-color: var(--background-light);
    background: var(--secondary-color);
}
.payment-option:hover {
    border-color: var(--background-light);
    background: var(--secondary-color);
}

.payment-instructions-box {
    background: rgba(46, 58, 31, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: left;
}
.payment-detail-box {
    background: rgba(94, 107, 58, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    font-size: 1.05rem;
    line-height: 2;
}
.paid-btn {
    background: var(--secondary-color);
    border: 2px solid var(--background-light);
    color: var(--text-color);
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.3s, transform 0.1s;
}
.paid-btn:hover {
    background: var(--background-light);
    transform: scale(1.02);
}
.receipt-upload-box {
    background: rgba(94, 107, 58, 0.5);
    border: 2px dashed var(--background-light);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}
.receipt-upload-box input[type="file"] {
    background: transparent;
    border: none;
    color: var(--text-color);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.country-card {
    background: rgba(46, 58, 31, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.country-card:hover {
    border-color: var(--background-light);
    background: var(--secondary-color);
    transform: translateY(-4px);
}
.country-card .flag {
    font-size: 3rem;
    margin-bottom: 10px;
}
.country-card h3 {
    font-size: 18px;
    margin: 0;
}

.soldier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.soldier-card {
    background: rgba(46, 58, 31, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}
.soldier-card:hover {
    transform: translateY(-5px);
    border-color: var(--background-light);
}
.soldier-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.soldier-card-body {
    padding: 20px;
}
.soldier-card-body h3 {
    color: var(--background-light);
    margin: 0 0 10px;
}
.soldier-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--primary-color);
    font-size: 15px;
}
.upfront-badge {
    background: var(--secondary-color);
    border: 1px solid var(--background-light);
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    text-align: center;
    font-size: 14px;
}
.hire-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    border: 2px solid var(--background-light);
    color: var(--text-color);
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}
.hire-btn:hover {
    background: var(--secondary-color);
}

.subscription-box {
    background: rgba(94, 107, 58, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}
.frequency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.frequency-option {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background: rgba(46, 58, 31, 0.9);
    color: var(--text-color);
    transition: all 0.2s;
}
.frequency-option.selected {
    border-color: var(--background-light);
    background: var(--secondary-color);
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    background: rgba(94, 107, 58, 0.8);
    border: 1px solid var(--background-light);
    color: var(--text-color);
    margin: 10px 0;
}


/* =================================================================
   SOLDIER PROFILE — NEW LAYOUT
   Replaces the old scattered .profile-card grid on search.html.
   All colours use existing CSS variables — nothing new introduced.
   ================================================================= */

/* ── Hero row: circular photo + name/rank/branch/DoD/active badge ── */
.soldier-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(46, 58, 31, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-hero-info h3 {
    margin: 0 0 4px;
    font-size: 24px;
    color: var(--text-color);
}

.profile-hero-info p {
    margin: 2px 0;
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.85;
}

/* Active badge inside hero — replaces the old green #activeSign text */
.profile-hero-info .active-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    background: rgba(50, 205, 50, 0.2);
    border: 1px solid #32cd32;
    color: #32cd32;
}

/* ── Info cards grid (2-column responsive, groups related fields) ── */
.profile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(94, 107, 58, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s, transform 0.4s;
}

.info-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Small uppercase section label at top of each card */
.info-card-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--background-light);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--primary-color);
}

/* Key / value rows inside each card */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid rgba(60, 75, 40, 0.4);
    font-size: 14px;
    gap: 10px;
}

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

.info-label {
    color: var(--text-color);
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Biography card spans full width */
.bio-card {
    grid-column: 1 / -1;
}

.bio-card .info-value {
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
}

/* ── Action row below the profile cards ── */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 10px;
}

/* REMOVED: .profile-actions button rule (no more inline dropdown buttons)   */
/* ADDED:   .profile-action-link — styled like your site buttons but as <a>  */
.profile-action-link {
    flex: 1;
    min-width: 160px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Stencil', 'Arial', sans-serif;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    display: inline-block;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.profile-action-link:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* ── Mobile adjustments for the new profile layout ── */
@media (max-width: 600px) {
    .profile-hero {
        flex-direction: column;
        text-align: center;
    }

    .profile-hero-info .active-badge {
        display: block;
        margin: 6px auto 0;
        width: fit-content;
    }

    .profile-action-link {
        min-width: 100%;
    }
}