/* Odeguard Solutions — Premium dark glow theme */
:root {
    --glow: rgba(34, 197, 94, 0.45);
    --gold: #fbbf24;
}

.app-bg {
    background:
        radial-gradient(900px 500px at 15% -5%, rgba(34, 197, 94, 0.22), transparent 55%),
        radial-gradient(800px 480px at 90% 10%, rgba(251, 191, 36, 0.12), transparent 50%),
        radial-gradient(700px 500px at 50% 110%, rgba(16, 185, 129, 0.15), transparent 55%),
        linear-gradient(165deg, #030a07 0%, #07140e 40%, #0b1f16 100%);
    background-attachment: fixed;
}

.glow-orb {
    position: fixed;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.55;
    animation: floatGlow 12s ease-in-out infinite;
}
.glow-orb-1 {
    width: 340px; height: 340px;
    background: rgba(34, 197, 94, 0.35);
    top: 10%; left: -80px;
}
.glow-orb-2 {
    width: 280px; height: 280px;
    background: rgba(251, 191, 36, 0.18);
    bottom: 8%; right: -60px;
    animation-delay: -4s;
}
@keyframes floatGlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.08); }
}

.glass-nav {
    background: rgba(7, 20, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 40px rgba(34, 197, 94, 0.06);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(34, 197, 94, 0.15);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(220, 252, 231, 0.85);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.nav-link:hover {
    background: rgba(34, 197, 94, 0.12);
    color: #fff;
    transform: translateY(-1px);
}
.nav-link-active {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.35), rgba(251, 191, 36, 0.15));
    color: #fff;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #052e16;
    font-size: 0.65rem;
    font-weight: 800;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #16a34a, #15803d 55%, #ca8a04);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35), 0 0 24px rgba(34, 197, 94, 0.2);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #052e16;
    font-weight: 800;
    font-size: 0.875rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.9rem;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: transform 0.15s ease;
}
.btn-gold:hover { transform: translateY(-2px); }

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.7rem;
    border: none;
    cursor: pointer;
}
.btn-danger:hover { filter: brightness(1.08); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ecfdf5;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.9rem;
    transition: background 0.15s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.field {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: #f0fdf4;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field::placeholder { color: rgba(220, 252, 231, 0.4); }
.field:focus {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 0 20px rgba(34, 197, 94, 0.15);
}
select.field option { color: #111; }

.label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(167, 243, 208, 0.85);
    margin-bottom: 0.35rem;
}

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.data-table thead th {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.95), rgba(21, 128, 61, 0.9));
    color: #fff;
    text-align: left;
    padding: 0.75rem 0.85rem;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.data-table thead th:first-child { border-radius: 0.75rem 0 0 0; }
.data-table thead th:last-child { border-radius: 0 0.75rem 0 0; }
.data-table tbody td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    vertical-align: top;
    color: rgba(236, 253, 245, 0.9);
}
.data-table tbody tr:hover td { background: rgba(34, 197, 94, 0.08); }

.low-stock { color: #fca5a5; font-weight: 700; }

.page-title {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

/* Neutralise legacy display font class */
.font-display { font-family: inherit !important; }

/* Professional document sheet (quotation / invoice) */
.doc-print-root {
    background: #fff !important;
    color: #111827 !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 13px;
    line-height: 1.5;
}
.doc-print-root .doc-print-header {
    border-bottom: 2px solid #15803d;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}
.doc-print-root .doc-company-name {
    color: #15803d !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}
.doc-print-root .doc-contact {
    color: #374151 !important;
    font-size: 12px;
    line-height: 1.6;
}
.doc-print-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1rem 0 1.25rem;
}
.doc-print-title-bar {
    width: 4px;
    height: 26px;
    background: #f59e0b;
    border-radius: 2px;
    flex-shrink: 0;
}
.doc-print-root .doc-print-title {
    color: #15803d !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0;
}
.doc-print-root .doc-meta-box {
    background: #fff !important;
    border: 1px solid #86efac !important;
    border-radius: 0.5rem;
    box-shadow: none !important;
    color: #111827 !important;
}
.doc-print-root .doc-meta-box strong,
.doc-print-root .doc-meta-label {
    color: #15803d !important;
    font-weight: 700;
}
.doc-print-root .doc-field-print {
    color: #000 !important;
    font-weight: 600;
}
.doc-print-root .doc-items-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.doc-print-root .doc-items-table thead th {
    background: #e5e7eb !important;
    color: #111827 !important;
    border: 1px solid #9ca3af !important;
    font-weight: 700;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.55rem 0.45rem !important;
}
.doc-print-root .doc-items-table tbody td,
.doc-print-root .doc-items-table tbody td * {
    background: #fff !important;
    border-color: #86efac !important;
    color: #000 !important;
    font-size: 0.8125rem !important;
    font-weight: 500;
}
.doc-print-root .doc-items-table tbody td {
    border: 1px solid #86efac !important;
    padding: 0.5rem 0.45rem !important;
    vertical-align: top !important;
}
.doc-print-root .doc-items-table .item-print,
.doc-print-root .doc-items-table .desc-print,
.doc-print-root .doc-items-table .model-print,
.doc-print-root .doc-items-table .qty-print,
.doc-print-root .doc-items-table .price-print,
.doc-print-root .doc-items-table .total-print,
.doc-print-root .doc-items-table .line-total {
    color: #000 !important;
}
.doc-print-root .doc-totals-table td {
    color: #111827 !important;
}
.doc-print-root .doc-totals-table .grand-row td {
    background: #15803d !important;
    color: #fff !important;
}
.doc-print-root .doc-payment-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #14532d !important;
    font-size: 0.8125rem;
}
.doc-print-root .doc-payment-box strong {
    color: #14532d !important;
}
.doc-print-root .doc-terms {
    color: #1f2937 !important;
    font-size: 0.8125rem;
}
.doc-print-root .doc-terms strong {
    color: #14532d !important;
}

/* Screen editing controls on white document sheet */
.doc-print-root .field,
.doc-print-root input.field,
.doc-print-root textarea.field,
.doc-print-root select.field {
    background: #fff !important;
    border: 1px solid #9ca3af !important;
    color: #111827 !important;
    box-shadow: none !important;
}
.doc-print-root .field::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}
.doc-print-root .field:focus {
    border-color: #15803d !important;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2) !important;
}
.doc-print-root .btn-ghost {
    background: #15803d !important;
    border: 1px solid #166534 !important;
    color: #fff !important;
}
.doc-print-root .btn-ghost:hover {
    background: #166534 !important;
}
.doc-print-root .btn-primary {
    color: #fff !important;
}
.doc-print-root .btn-gold {
    color: #052e16 !important;
}
.doc-print-root .ts-wrapper .ts-control {
    background: #fff !important;
    border: 1px solid #9ca3af !important;
    color: #111827 !important;
    min-height: 2.5rem;
}
.doc-print-root .ts-wrapper.focus .ts-control {
    border-color: #15803d !important;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2) !important;
}
.doc-print-root .ts-wrapper .ts-control input {
    color: #111827 !important;
}
.doc-print-root .ts-control .item {
    color: #111827 !important;
}
.doc-print-root .ts-dropdown {
    background: #fff !important;
    border: 1px solid #9ca3af !important;
    color: #111827 !important;
}
.doc-print-root .ts-dropdown .option {
    color: #111827 !important;
}
.doc-print-root .ts-dropdown .active,
.doc-print-root .ts-dropdown .option:hover {
    background: #dcfce7 !important;
    color: #14532d !important;
}
.doc-print-root .ts-wrapper .ts-control .item,
.doc-print-root .ts-wrapper.single .ts-control .item {
    color: #111827 !important;
}

.fade-in { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero slider */
.hero-slider {
    position: relative;
    min-height: min(88vh, 720px);
    overflow: hidden;
    border-radius: 0 0 2rem 2rem;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(3, 10, 7, 0.88) 0%, rgba(3, 10, 7, 0.55) 55%, rgba(3, 10, 7, 0.35) 100%),
        linear-gradient(to top, rgba(3, 10, 7, 0.85), transparent 45%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 80rem;
    margin: 0 auto;
    padding: 6rem 1.25rem 5rem;
    min-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.hero-dots {
    position: absolute;
    z-index: 4;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}
.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.hero-dot.active {
    width: 1.6rem;
    background: linear-gradient(90deg, #22c55e, #fbbf24);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
}

.product-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    border-radius: 0.85rem;
    background: rgba(0,0,0,0.3);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile frontend sidebar */
#mobile-sidebar.open { display: block; }
#mobile-sidebar.open #sidebar-panel { transform: translateX(0); }


@media print {
    .no-print, nav, footer, .btn-primary, .btn-danger, .btn-ghost, .btn-gold, .glow-orb { display: none !important; }
    .app-bg, .glow-orb { background: #fff !important; }
    body { background: #fff !important; color: #000 !important; }
    main { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    .doc-edit-only, .ts-wrapper, select.doc-edit-only { display: none !important; }
    .doc-print-only { display: block !important; color: #000 !important; }
    .doc-print-text { white-space: pre-wrap; word-break: break-word; color: #000 !important; }
    #q-company-wrap.is-empty, #i-company-wrap.is-empty { display: none !important; }

    .doc-print-root,
    .doc-print-root * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .doc-print-root {
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        border: none !important;
    }
    .doc-print-root .doc-contact,
    .doc-print-root .doc-field-print,
    .doc-print-root .doc-terms,
    .doc-print-root .doc-items-table tbody td,
    .doc-print-root .doc-items-table tbody td *,
    .doc-print-root .item-print,
    .doc-print-root .desc-print,
    .doc-print-root .model-print,
    .doc-print-root .qty-print,
    .doc-print-root .price-print,
    .doc-print-root .total-print,
    .doc-print-root .doc-totals-table td {
        color: #000 !important;
    }
    .doc-print-root .doc-company-name,
    .doc-print-root .doc-print-title,
    .doc-print-root .doc-meta-label,
    .doc-print-root .doc-meta-box strong,
    .doc-print-root .doc-terms strong,
    .doc-print-root .doc-payment-box strong {
        color: #14532d !important;
    }
    .doc-print-root .doc-items-table thead th {
        background: #e5e7eb !important;
        color: #000 !important;
        border: 1px solid #6b7280 !important;
    }
    .doc-print-root .doc-items-table tbody td {
        border: 1px solid #6b7280 !important;
        background: #fff !important;
    }
    .doc-print-root .doc-totals-table .grand-row td {
        background: #15803d !important;
        color: #fff !important;
    }
}
.doc-print-only { display: none; }
.model-print { display: none; font-weight: 600; }

/* Toast notification */
.toast-wrap {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 240px;
    max-width: 340px;
    padding: 0.9rem 1.1rem;
    border-radius: 0.9rem;
    background: rgba(7, 20, 14, 0.92);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #ecfdf5;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 30px rgba(34,197,94,0.2);
    opacity: 0;
    transform: translateY(-10px);
    animation: toastIn 0.35s ease forwards, toastOut 0.45s ease 2.6s forwards;
}
@keyframes toastIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-8px); }
}

/* Staff nav dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 180px;
    padding: 0.4rem;
    border-radius: 0.9rem;
    background: rgba(7, 20, 14, 0.95);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    z-index: 60;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(220,252,231,0.9);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(34,197,94,0.18);
    color: #fff;
}
.toast-error {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 30px rgba(239,68,68,0.2);
}

.ts-wrapper .ts-control {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 0.8rem !important;
    color: #f0fdf4 !important;
    padding: 0.55rem 0.75rem !important;
    box-shadow: none !important;
}
.ts-wrapper.focus .ts-control {
    border-color: rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}
.ts-wrapper .ts-control input { color: #f0fdf4 !important; }
.ts-dropdown {
    background: #0b1f16 !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 0.8rem !important;
    color: #ecfdf5 !important;
    z-index: 70 !important;
}
.ts-dropdown .option { padding: 0.55rem 0.75rem !important; }
.ts-dropdown .active { background: rgba(34, 197, 94, 0.25) !important; color: #fff !important; }
.ts-dropdown .option:hover { background: rgba(34, 197, 94, 0.18) !important; }
.ts-control .item { color: #f0fdf4 !important; }

/* POS: customer results sit under the input and above the product panel */
.pos-customer-panel {
    position: relative;
    z-index: 50;
    overflow: visible !important;
}
.pos-customer-wrap,
.pos-customer-wrap .ts-wrapper {
    position: relative;
    z-index: 51;
    overflow: visible !important;
}
.pos-customer-wrap .ts-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 4px !important;
    z-index: 52 !important;
}
.pos-sale-grid,
.pos-products-panel {
    position: relative;
    z-index: 1;
}

/* Social media buttons */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.social-links::-webkit-scrollbar {
    display: none;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ecfdf5;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.social-btn:hover {
    transform: translateY(-2px);
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.45);
    color: #fff;
}
.social-links-lg .social-btn {
    width: 2.6rem;
    height: 2.6rem;
}
@media (max-width: 640px) {
    footer .social-links,
    footer .social-links-lg {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }
    footer .social-links-lg .social-btn {
        width: 2.2rem;
        height: 2.2rem;
    }
}
.social-links-nav {
    margin-left: 0.35rem;
    gap: 0.35rem;
}
.social-links-nav .social-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
}
.social-links-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}
.social-links-stack .social-btn {
    width: auto;
    height: auto;
    padding: 0.4rem 0.65rem;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(220, 252, 231, 0.85);
}
.social-links-stack .social-btn .sr-only {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
.social-facebook:hover { background: rgba(24, 119, 242, 0.25); border-color: rgba(24, 119, 242, 0.5); }
.social-instagram:hover { background: rgba(225, 48, 108, 0.25); border-color: rgba(225, 48, 108, 0.5); }
.social-twitter:hover { background: rgba(29, 161, 242, 0.2); border-color: rgba(29, 161, 242, 0.45); }
.social-linkedin:hover { background: rgba(10, 102, 194, 0.25); border-color: rgba(10, 102, 194, 0.5); }
.social-youtube:hover { background: rgba(255, 0, 0, 0.2); border-color: rgba(255, 0, 0, 0.45); }
.social-tiktok:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }
.social-whatsapp:hover { background: rgba(37, 211, 102, 0.25); border-color: rgba(37, 211, 102, 0.5); }

/* About page — text wraps around side images */
.about-prose {
    overflow: hidden;
}
.about-float-img {
    margin: 0 0 1.25rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    background: rgba(0, 0, 0, 0.25);
}
.about-float-img img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.about-lead {
    color: rgba(236, 253, 245, 0.95);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1.15rem;
}
.about-body {
    color: rgba(220, 252, 231, 0.75);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 1.15rem;
}
.about-body:last-child,
.about-mission {
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .about-float-img {
        width: 42%;
        max-width: 380px;
    }
    .about-float-img img {
        height: 280px;
    }
    .about-float-right {
        float: right;
        margin: 0.15rem 0 1.25rem 1.75rem;
    }
    .about-float-left {
        float: left;
        margin: 0.15rem 1.75rem 1.25rem 0;
    }
    .about-lead {
        font-size: 1.08rem;
    }
    .about-body {
        font-size: 1rem;
    }
}
@media (min-width: 1024px) {
    .about-float-img {
        width: 38%;
        max-width: 420px;
    }
    .about-float-img img {
        height: 320px;
    }
}

/* —— Blog —— */
.blog-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(220, 252, 231, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    max-width: 100%;
    min-height: 2rem;
}
.blog-tag:hover,
.blog-tag-active {
    color: #fff;
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.45);
}
.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.1rem;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.blog-card-media {
    height: 190px;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}
.blog-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(251, 191, 36, 0.55);
    background: linear-gradient(135deg, rgba(7, 20, 14, 0.9), rgba(20, 83, 45, 0.55));
}
.blog-hero-figure {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 420px;
}
.blog-hero-figure img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.blog-content {
    color: rgba(220, 252, 231, 0.88);
    font-size: 1.02rem;
    line-height: 1.8;
}
.blog-content h2,
.blog-content h3 {
    color: #fff;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    line-height: 1.3;
}
.blog-content h2 { font-size: 1.45rem; }
.blog-content h3 { font-size: 1.2rem; }
.blog-content p { margin: 0 0 1.1rem; }
.blog-content ul,
.blog-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.35rem;
}
.blog-content li { margin-bottom: 0.35rem; }
.blog-content blockquote {
    margin: 1.5rem 0;
    padding: 1.1rem 1.35rem 1.1rem 1.5rem;
    border-left: 4px solid #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 0 0.85rem 0.85rem 0;
    font-style: italic;
    color: rgba(236, 253, 245, 0.92);
    position: relative;
}
.blog-content blockquote p {
    margin: 0 0 0.5rem;
}
.blog-content blockquote p:last-child {
    margin-bottom: 0;
}
.blog-content blockquote::before {
    content: "\201C";
    position: absolute;
    left: 0.65rem;
    top: 0.35rem;
    font-size: 2rem;
    line-height: 1;
    color: rgba(251, 191, 36, 0.45);
    font-family: Georgia, serif;
}
.blog-content a {
    color: #fbbf24;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.blog-content img,
.blog-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 0.9rem;
    margin: 1.25rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-figure {
    margin: 1.5rem 0;
}
.blog-figure figcaption {
    font-size: 0.8rem;
    color: rgba(220, 252, 231, 0.5);
    margin-top: 0.4rem;
}
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s, border-color 0.2s;
}
.blog-share-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog layout — listing & single post */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.blog-widget {
    overflow: hidden;
    padding: 0 !important;
}
.blog-widget-tags {
    overflow: visible !important;
}
.blog-widget-tags .blog-widget-head {
    border-radius: 1.25rem 1.25rem 0 0;
}
.blog-widget-tags .blog-widget-body {
    overflow: visible;
    height: auto;
    min-height: 0;
}
.blog-sidebar-col {
    overflow: visible !important;
}
.blog-widget-head {
    padding: 1.1rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.02) 100%);
}
.blog-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 0 0 0 0.65rem;
    border-left: 3px solid #fbbf24;
    line-height: 1.3;
}
.blog-widget-body {
    padding: 1rem 1.25rem 1.25rem;
}
.blog-sidebar-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0;
}
.blog-sidebar-item:first-child {
    padding-top: 0;
}
.blog-sidebar-item:last-child {
    padding-bottom: 0;
}
.blog-sidebar-item-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.blog-sidebar-thumb {
    flex-shrink: 0;
    width: 5.75rem;
    height: 4.25rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
    background: rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, transform 0.2s;
}
.blog-sidebar-item:hover .blog-sidebar-thumb {
    border-color: rgba(34, 197, 94, 0.45);
    transform: scale(1.02);
}
.blog-sidebar-thumb img,
.blog-sidebar-thumb .blog-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-sidebar-body {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}
.blog-sidebar-title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.4rem;
}
.blog-sidebar-title a {
    color: #ecfdf5;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-sidebar-title a:hover {
    color: #fbbf24;
}
.blog-sidebar-meta {
    font-size: 0.68rem;
    color: rgba(220, 252, 231, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    margin: 0;
}
.blog-sidebar-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 0.55rem;
    opacity: 0.45;
}
.blog-widget-tags .blog-widget-body,
.blog-widget-tags-body {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 0.55rem;
    overflow: visible;
}
.blog-widget-tags .blog-tag {
    flex: 0 1 auto;
    margin: 0;
}
.blog-tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    margin-left: 0.15rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}
.blog-tag-active .blog-tag-count {
    background: rgba(255, 255, 255, 0.2);
}
.blog-tags-section {
    margin-top: 2.5rem;
    overflow: visible !important;
}
.blog-tags-section .blog-widget-body {
    padding: 1.15rem 1.25rem 1.35rem;
    overflow: visible;
}
.blog-category-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(34, 197, 94, 0.35);
    border: 1px solid rgba(34, 197, 94, 0.5);
}
.blog-post-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.blog-post-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(220, 252, 231, 0.82);
    margin: 0 0 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid rgba(251, 191, 36, 0.55);
}
.blog-post-meta-bar {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(15, 118, 110, 0.12));
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 0.85rem;
    padding: 0.9rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.blog-post-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: rgba(220, 252, 231, 0.72);
    margin-bottom: 0;
}
.blog-post-meta strong {
    color: #fff;
}
.blog-share-block {
    margin-bottom: 0.5rem;
}
.blog-share-block-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}
.blog-share-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(220, 252, 231, 0.65);
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.blog-share-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.blog-share-icons::-webkit-scrollbar {
    display: none;
}
.blog-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #ecfdf5;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.blog-share-icon:hover {
    transform: translateY(-2px);
    color: #fff;
}
.blog-share-facebook:hover { background: rgba(24, 119, 242, 0.3); border-color: rgba(24, 119, 242, 0.55); }
.blog-share-twitter:hover { background: rgba(29, 161, 242, 0.25); border-color: rgba(29, 161, 242, 0.5); }
.blog-share-linkedin:hover { background: rgba(10, 102, 194, 0.3); border-color: rgba(10, 102, 194, 0.55); }
.blog-share-whatsapp:hover { background: rgba(37, 211, 102, 0.28); border-color: rgba(37, 211, 102, 0.55); }
.blog-share-telegram:hover { background: rgba(34, 158, 217, 0.28); border-color: rgba(34, 158, 217, 0.55); }
.blog-share-pinterest:hover { background: rgba(189, 8, 28, 0.28); border-color: rgba(189, 8, 28, 0.55); }
.blog-share-copy:hover { background: rgba(34, 197, 94, 0.22); border-color: rgba(34, 197, 94, 0.45); }
.blog-prev-next {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}
.blog-nav-prev { justify-content: flex-start; }
.blog-nav-next { justify-content: flex-start; }
@media (min-width: 640px) {
    .blog-nav-prev { justify-content: flex-end; }
}
.blog-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.blog-nav-title a {
    color: #fff;
    transition: color 0.2s;
}
.blog-nav-title a:hover {
    color: #fbbf24;
}
@media (min-width: 1024px) {
    .blog-sidebar {
        position: sticky;
        top: 5.5rem;
        overflow: visible;
    }
}

/* —— Blog admin form (manage-blogs) —— */
.blog-admin-form {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
    color: #1e293b;
}
.blog-admin-form .label {
    color: #334155 !important;
    font-weight: 600;
}
.blog-admin-form .field {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
.blog-admin-form .field::placeholder {
    color: #94a3b8 !important;
}
.blog-admin-form .field:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18) !important;
    outline: none;
}
.blog-admin-hint {
    color: #64748b !important;
}
.blog-admin-advanced summary {
    list-style: none;
}
.blog-admin-advanced summary::-webkit-details-marker {
    display: none;
}
.blog-admin-advanced summary::before {
    content: "▸ ";
    color: #16a34a;
    font-weight: bold;
}
.blog-admin-advanced[open] summary::before {
    content: "▾ ";
}
.blog-admin-actions {
    margin-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.blog-admin-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.9rem;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
    border: 2px solid #16a34a;
    color: #15803d !important;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.blog-admin-btn-outline:hover {
    background: #dcfce7;
    border-color: #15803d;
    transform: translateY(-1px);
}
.blog-editor-wrap .ck-editor {
    border-radius: 0.75rem !important;
    overflow: hidden;
    border: 1px solid #cbd5e1 !important;
}
.blog-editor-wrap .ck-editor__editable {
    min-height: 320px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 1rem 1.15rem !important;
    font-size: 1rem;
    line-height: 1.75;
}
.blog-editor-wrap .ck-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.blog-editor-wrap .ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
    border-color: transparent !important;
}
.blog-content-source {
    display: none;
}
.blog-editor-wrap blockquote {
    border-left: 4px solid #f59e0b;
    padding-left: 1rem;
    margin-left: 0;
    color: #475569;
    font-style: italic;
    background: #fffbeb;
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

