/* ============================================
   MOBILE RESPONSIVENESS FIXES
   Audit date: Feb 2026
   Target: iPhone SE (375px) and up
   Author: Faciotech
   ============================================ */

/* ============================================
   GLOBAL FIXES
   ============================================ */

/* Prevent horizontal overflow on all pages */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

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

/* Prevent long words/URLs from breaking layouts */
.section-content,
.package-content,
.package-body,
.banner-content,
.footer-company-desc,
.main-content,
p, li, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   TABLET BREAKPOINT (768px and below)
   ============================================ */

@media (max-width: 768px) {

    /* --- Navigation --- */
    .app-nav-menu .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .menu-primary > li > a {
        padding: 12px 15px;
    }

    /* --- Hero/Banner Section --- */
    .banner-title,
    .site-banner h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    .banner-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .banner-content {
        padding: 30px 0;
    }

    .banner-actions-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .banner-actions-buttons .btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    /* --- Section Titles --- */
    .section-title {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    /* --- Pricing/Package Cards --- */
    .section-content-packages .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .package-col {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
    }

    .package {
        padding: 20px 15px;
    }

    .package-title {
        font-size: 20px;
    }

    .package-header .price-ammount {
        font-size: 32px;
    }

    .package-actions .btn {
        min-height: 48px;
        font-size: 15px;
        padding: 12px 20px;
    }

    /* --- Compare Packages Table --- */
    .section-compare-packages .section-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .section-compare-packages .compare-plans {
        min-width: 600px;
    }

    .slider-nav {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .slider-nav a {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* --- TLD/Domain Pricing Table --- */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .tld-table {
        min-width: 500px;
    }

    .tld-table th,
    .tld-table td {
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* --- Domain Search Form --- */
    .domain-search-input {
        flex-direction: column;
    }

    .domain-search-input .search-field {
        width: 100%;
        margin-bottom: 10px;
    }

    .domain-search-input .search-group-btn {
        width: 100%;
    }

    .domain-search-input .btn {
        width: 100%;
        min-height: 48px;
    }

    .search-group-combined {
        flex-wrap: wrap;
    }

    .search-group-combined .search-field {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .search-group-combined .search-group-btn {
        flex: 1 1 100%;
        margin-top: 10px;
    }

    /* --- TLD Spotlight Prices --- */
    .section-tlds .tld {
        min-width: 80px;
        padding: 10px;
    }

    .section-tlds .tld-suffix {
        font-size: 14px;
    }

    .section-tlds .tld-price {
        font-size: 12px;
    }

    /* --- Features Section --- */
    .section-features .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .section-features [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .feature-box {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    /* --- FAQ Section --- */
    .section-faq .collapse-item-title {
        font-size: 16px;
        padding-right: 40px;
    }

    .section-faq .collapse-item-content {
        font-size: 14px;
    }

    /* --- Footer --- */
    .footer-top .row {
        flex-direction: column;
    }

    .footer-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .footer-title {
        cursor: pointer;
        position: relative;
        padding-right: 30px;
    }

    .footer-title .footer-icon {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-copyright {
        order: 2;
        font-size: 13px;
    }

    .footer-payment-gateway {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        order: 1;
    }

    .footer-payment-gateway svg,
    .footer-payment-gateway img {
        height: 24px;
        width: auto;
    }

    .footer-nav-h {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* --- Client Area Tables --- */
    .main-body .table-container,
    .main-content .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .main-body table,
    .main-content table {
        min-width: 500px;
    }

    .main-body table th,
    .main-body table td,
    .main-content table th,
    .main-content table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* --- Forms --- */
    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        font-size: 16px !important; /* Prevents iOS zoom */
        min-height: 48px;
        padding: 12px 15px;
    }

    select.form-control {
        font-size: 16px !important;
    }

    textarea.form-control {
        min-height: 120px;
    }

    /* Stack side-by-side form inputs */
    .row-form .col-md-6,
    .row-form .col-sm-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* --- Buttons --- */
    .btn {
        min-height: 44px; /* Minimum touch target */
        padding: 10px 20px;
    }

    .btn-lg {
        min-height: 52px;
        font-size: 16px;
    }

    .section-actions-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-actions-buttons .btn {
        width: 100%;
    }

    /* --- Cart/Checkout --- */
    .order-summary {
        margin-top: 20px;
    }

    .cart-item {
        flex-direction: column;
        gap: 10px;
    }

    .cart-item-price {
        text-align: left;
    }

    /* --- Modals --- */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    .modal-content {
        border-radius: 8px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    /* --- Billing Cycle Switcher --- */
    .product-billing-switcher {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .product-billing-switcher .btn-group {
        flex-wrap: nowrap;
    }

    .dropdown-cycle-switcher {
        width: 100%;
    }

    .dropdown-cycle-switcher .btn {
        width: 100%;
        justify-content: space-between;
    }

    /* --- Tabs --- */
    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .nav-tabs .nav-item {
        flex-shrink: 0;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ============================================
   MOBILE BREAKPOINT (480px and below)
   ============================================ */

@media (max-width: 480px) {

    /* --- Container Padding --- */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* --- Hero/Banner --- */
    .banner-title,
    .site-banner h1 {
        font-size: 26px !important;
        line-height: 1.2;
    }

    .banner-subtitle {
        font-size: 15px;
    }

    .banner-caption {
        font-size: 12px;
    }

    /* --- Section Titles --- */
    .section-title {
        font-size: 24px !important;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-caption {
        font-size: 11px;
    }

    /* --- Package Cards --- */
    .package {
        padding: 15px 12px;
    }

    .package-title {
        font-size: 18px;
    }

    .package-header .price-ammount {
        font-size: 28px;
    }

    .package-header .price-period {
        font-size: 12px;
    }

    .package-body {
        font-size: 13px;
    }

    .package-features li {
        font-size: 13px;
        padding: 6px 0;
    }

    .package-actions .btn {
        min-height: 44px;
        font-size: 14px;
        padding: 10px 15px;
    }

    /* --- Comparison Table --- */
    .compare-item {
        padding: 8px 5px;
        font-size: 12px;
    }

    .compare-item-text {
        font-size: 12px;
    }

    /* --- Domain Search --- */
    .search-group-lg .form-control {
        font-size: 16px !important;
        padding: 12px;
    }

    .search-group-lg .btn {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* --- TLD Spotlights --- */
    .section-tlds {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .section-tlds .content-slider-wrapper {
        min-width: max-content;
    }

    .section-tlds .tld {
        min-width: 70px;
        padding: 8px;
    }

    /* --- Features --- */
    .feature-box {
        padding: 15px 12px;
    }

    .feature-box h3,
    .feature-title {
        font-size: 16px;
    }

    .feature-box p,
    .feature-desc {
        font-size: 13px;
    }

    /* --- Footer --- */
    .footer-company-desc {
        font-size: 13px;
    }

    .footer-nav li a {
        font-size: 13px;
        padding: 6px 0;
    }

    .footer-company-socials a {
        width: 36px;
        height: 36px;
    }

    /* --- Client Area --- */
    .main-header {
        padding: 20px 0;
    }

    .main-header h1 {
        font-size: 22px;
    }

    .main-body {
        padding: 15px 0;
    }

    .sidebar {
        margin-bottom: 20px;
    }

    /* --- Support/Tickets --- */
    .ticket-reply {
        padding: 15px;
    }

    .ticket-reply-header {
        flex-direction: column;
        gap: 8px;
    }

    /* --- Invoices --- */
    .invoice-header {
        flex-direction: column;
        gap: 15px;
    }

    /* --- Alerts --- */
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* --- Cookie Bar --- */
    .cookie-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-bar__desc {
        font-size: 13px;
    }

    .cookie-bar__action .btn {
        width: 100%;
    }
}

/* ============================================
   SMALL MOBILE BREAKPOINT (375px and below)
   ============================================ */

@media (max-width: 375px) {

    /* --- Base Typography --- */
    body {
        font-size: 14px;
    }

    /* --- Container --- */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* --- Hero/Banner --- */
    .banner-title,
    .site-banner h1 {
        font-size: 22px !important;
        line-height: 1.25;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    /* --- Section Titles --- */
    .section-title {
        font-size: 20px !important;
    }

    .section-subtitle {
        font-size: 13px;
    }

    /* --- Packages --- */
    .package {
        padding: 12px 10px;
    }

    .package-title {
        font-size: 16px;
    }

    .package-header .price-ammount {
        font-size: 24px;
    }

    .package-features li {
        font-size: 12px;
        padding: 5px 0;
    }

    .package-actions .btn {
        font-size: 13px;
        padding: 10px 12px;
    }

    /* --- Domain Search --- */
    .search-group-lg .form-control {
        padding: 10px;
        font-size: 16px !important;
    }

    .search-group-lg .btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* --- Buttons --- */
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* --- Tables --- */
    .tld-table th,
    .tld-table td {
        padding: 8px 5px;
        font-size: 12px;
    }

    /* --- Navigation Header --- */
    .app-nav-header .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .app-nav-toggle {
        padding: 8px;
    }

    /* Logo scaling */
    .logo img,
    .site-logo img {
        max-height: 35px;
        width: auto;
    }

    /* --- Forms --- */
    .form-control {
        padding: 10px 12px;
    }

    /* --- Footer --- */
    .footer-bottom {
        padding: 15px 0;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-payment-gateway svg,
    .footer-payment-gateway img {
        height: 20px;
    }

    /* --- Modal --- */
    .modal-dialog {
        margin: 5px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

    .modal-title {
        font-size: 16px;
    }

    /* --- Client Area --- */
    .main-header h1 {
        font-size: 20px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    /* --- Tabs --- */
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* --- Alerts --- */
    .alert {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* --- Labels/Badges --- */
    .label,
    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* --- Timer/Countdown --- */
    .timer-item {
        min-width: 50px;
        padding: 8px;
    }

    .timer-value {
        font-size: 20px;
    }

    .timer-label {
        font-size: 10px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .nav-link,
    .dropdown-item,
    .footer-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Remove hover effects that don't work on touch */
    .package:hover {
        transform: none;
    }

    /* Better tap highlighting */
    a, button {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   LANDSCAPE MOBILE FIXES
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .banner {
        min-height: auto;
        padding: 30px 0;
    }

    .banner-title {
        font-size: 24px !important;
    }

    .modal-dialog {
        margin: 5px auto;
        max-height: 95vh;
    }

    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ============================================
   PRINT STYLES (for invoices)
   ============================================ */

@media print {
    .app-nav,
    .main-footer,
    .sidebar,
    .cookie-bar,
    .btn {
        display: none !important;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        font-size: 12pt;
    }
}

/* ============================================
   TRUSTPILOT TRUST BAR
   ============================================ */
.faciotech-trustpilot-bar {
    background: #f7f7f7;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    color: #333;
}

.faciotech-trustpilot-bar .trustpilot-widget {
    margin: 0 auto;
}

.trustpilot-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-rating-text {
    font-weight: 700;
    font-size: 16px;
    color: #191919;
}

.tp-divider {
    color: #d1d1d1;
    margin: 0 4px;
}

.tp-score a {
    color: #191919;
    text-decoration: none;
    border-bottom: 1px solid #191919;
}

.tp-score a:hover {
    color: #00b67a;
    border-bottom-color: #00b67a;
}

.tp-stars svg {
    vertical-align: middle;
}

.tp-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tp-logo-text {
    color: #191919;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faciotech-trustpilot-bar {
        padding: 10px 15px;
        font-size: 12px;
    }

    .trustpilot-bar-inner {
        gap: 4px;
    }

    .tp-divider {
        display: none;
    }

    .tp-rating-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .trustpilot-bar-inner {
        flex-direction: column;
        gap: 6px;
    }

    .tp-stars {
        order: -1;
    }
}

/* Trustpilot Dark Theme */
.faciotech-trustpilot-bar.trustpilot-dark {
    background: #1a1a1a;
    border-top-color: #333;
    border-bottom-color: #333;
    color: #e5e5e5;
}

.faciotech-trustpilot-bar.trustpilot-dark .tp-rating-text,
.faciotech-trustpilot-bar.trustpilot-dark .tp-logo-text {
    color: #fff;
}

.faciotech-trustpilot-bar.trustpilot-dark .tp-score a {
    color: #fff;
    border-bottom-color: #fff;
}

/* ============================================
   DEVELOPERS SPACE PAGE - Global Animations
   ============================================ */

/* Status dot pulse animation - reusable for status indicators */
@keyframes devspace-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 200, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

@keyframes devspace-pulse-amber {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes devspace-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

/* Terminal cursor blink animation */
@keyframes devspace-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   DEVELOPERS SPACE PAGE - Full Styles
   Comprehensive Developer Hub
   ============================================ */

/* Hide sidebar on developers-space page */
.page-developers-space .main-sidebar,
.page-developers-space .sidebar,
.page-developers-space .col-sidebar {
    display: none !important;
}
.page-developers-space .main-content,
.page-developers-space .col-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
.page-developers-space .main-body-content {
    max-width: 100% !important;
}

/* Page container */
.developers-space-page {
    --devs-dark: #1a1a2e;
    --devs-darker: #13131f;
    --devs-primary: var(--brand-primary, #0146C7);
    --devs-green: #00c853;
    --devs-amber: #ffc107;
    --devs-red: #f44336;
    --devs-code-bg: #0d1117;
    --devs-code-border: #30363d;
    --devs-gray: #f8f9fa;
}

/* ===== HERO SECTION ===== */
.devs-hero {
    background: linear-gradient(135deg, var(--devs-dark) 0%, #242442 100%);
    color: #fff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
    margin: -30px -15px 0 -15px;
}
.devs-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.devs-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.devs-hero-badge {
    display: inline-block;
    background: rgba(0, 200, 83, 0.15);
    color: var(--devs-green);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 200, 83, 0.3);
}
.devs-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.devs-hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}
.devs-hero-terminal {
    display: inline-block;
    background: var(--devs-code-bg);
    border: 1px solid var(--devs-code-border);
    border-radius: 8px;
    padding: 14px 28px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1rem;
    margin-bottom: 35px;
}
.devs-hero-terminal .prompt {
    color: var(--devs-green);
}
.devs-hero-terminal .cmd {
    color: #e6e6e6;
}
.devs-hero-terminal .cursor {
    color: var(--devs-green);
    animation: devspace-blink 1s infinite;
}
.devs-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.devs-hero-actions .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
}
.devs-hero-actions .btn-light {
    background: #fff;
    color: var(--devs-dark);
}
.devs-hero-actions .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    background: transparent;
}
.devs-hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ===== SECTION STYLES ===== */
.devs-section {
    padding: 70px 0;
}
.devs-section-white {
    background: #fff;
}
.devs-section-gray {
    background: var(--devs-gray);
}
.devs-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.devs-section-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--devs-primary), #3B7FE8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.devs-section-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.devs-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.devs-section-header p {
    font-size: 1.1rem;
    color: var(--text-muted, #6c757d);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STATUS SECTION ===== */
.devs-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 50px;
    padding: 12px 30px;
    margin-bottom: 40px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.devs-status-text {
    font-weight: 600;
    color: var(--devs-green);
}
.devs-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.devs-status-operational {
    background: var(--devs-green);
    animation: devspace-pulse-green 2s infinite;
}
.devs-status-degraded {
    background: var(--devs-amber);
    animation: devspace-pulse-amber 2s infinite;
}
.devs-status-down {
    background: var(--devs-red);
    animation: devspace-pulse-red 2s infinite;
}
.devs-status-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}
.devs-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, rgba(0,0,0,0.08));
    border-radius: 10px;
    padding: 18px 20px;
}
.devs-status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.devs-status-info strong {
    font-size: 0.95rem;
}
.devs-status-info span {
    font-size: 0.8rem;
    color: var(--devs-green);
}
.devs-uptime-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 0;
}
.devs-uptime-stat {
    text-align: center;
}
.devs-uptime-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--devs-primary);
}
.devs-uptime-label {
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
}

/* API Preview */
.devs-api-preview {
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 30px;
}
.devs-api-preview h4 {
    margin-bottom: 10px;
}
.devs-api-endpoints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.devs-api-endpoints code {
    background: var(--devs-gray);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* ===== CODE BLOCKS ===== */
.devs-code-block {
    background: var(--devs-code-bg);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}
.devs-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--devs-code-border);
    font-size: 0.85rem;
    color: #8b949e;
}
.devs-code-lang {
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.devs-code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background: transparent;
}
.devs-code-block code {
    color: #e6e6e6;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background: transparent;
}
.code-comment { color: #6a737d; }
.code-string { color: #a5d6a7; }
.code-key { color: #79c0ff; }
.code-number { color: #f9a825; }

/* ===== TOOLS GRID ===== */
.devs-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.devs-tool-card {
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}
.devs-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--devs-primary);
}
.devs-tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--devs-primary), #3B7FE8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.devs-tool-icon i {
    font-size: 1.3rem;
    color: #fff;
}
.devs-tool-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.devs-tool-card p {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin: 0;
}

/* ===== TABS ===== */
.devs-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
    border-bottom: 2px solid var(--ui-block-border, rgba(0,0,0,0.08));
}
.devs-tabs-nav li {
    margin-bottom: -2px;
}
.devs-tabs-nav li a {
    display: block;
    padding: 12px 24px;
    color: var(--text-muted, #6c757d);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.devs-tabs-nav li a:hover {
    color: var(--devs-primary);
}
.devs-tabs-nav li.active a {
    color: var(--devs-primary);
    border-bottom-color: var(--devs-primary);
    font-weight: 600;
}
.devs-tabs-content {
    padding-top: 20px;
}

/* ===== TECH PILLS ===== */
.devs-tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.devs-tech-pill {
    display: inline-block;
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, rgba(0,0,0,0.08));
    border-left: 3px solid var(--devs-primary);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}
.devs-tech-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted, #6c757d);
    line-height: 1.7;
}

/* ===== INTEGRATIONS ===== */
.devs-integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.devs-integration-card {
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}
.devs-integration-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.devs-integration-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--devs-primary), #3B7FE8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.devs-integration-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.devs-integration-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.devs-integration-card p {
    color: var(--text-muted, #6c757d);
    margin-bottom: 15px;
    line-height: 1.6;
}
.devs-integration-link {
    color: var(--devs-primary);
    font-weight: 600;
    text-decoration: none;
}
.devs-integration-link:hover {
    text-decoration: underline;
}
.devs-integration-link i {
    margin-left: 5px;
    font-size: 0.85rem;
}

/* ===== WORKFLOW ===== */
.devs-workflow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.devs-workflow-step {
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    min-width: 200px;
    position: relative;
}
.devs-workflow-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--devs-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.devs-workflow-icon {
    width: 60px;
    height: 60px;
    background: var(--devs-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.devs-workflow-icon i {
    font-size: 1.5rem;
    color: var(--devs-primary);
}
.devs-workflow-step h4 {
    margin-bottom: 5px;
}
.devs-workflow-step p {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin: 0;
}
.devs-workflow-arrow {
    color: var(--devs-primary);
    font-size: 1.5rem;
}
.devs-workflow-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-muted, #6c757d);
    line-height: 1.7;
}

/* ===== RESELLER FEATURES ===== */
.devs-reseller-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.devs-reseller-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, rgba(0,0,0,0.08));
    border-radius: 10px;
}
.devs-reseller-feature > i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--devs-primary), #3B7FE8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.devs-reseller-feature div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.devs-reseller-feature strong {
    font-size: 0.95rem;
}
.devs-reseller-feature span {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

/* ===== RESOURCES GRID ===== */
.devs-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.devs-resources-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--devs-primary);
}
.devs-resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.devs-resources-list li {
    margin-bottom: 12px;
}
.devs-resources-list a {
    color: var(--body-color, #333);
    text-decoration: none;
    transition: color 0.2s ease;
}
.devs-resources-list a:hover {
    color: var(--devs-primary);
}
.devs-resources-list .fa-external-link-alt {
    margin-left: 5px;
    opacity: 0.5;
}

/* ===== TIMELINE ===== */
.devs-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}
.devs-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ui-block-border, rgba(0,0,0,0.1));
}
.devs-timeline-item {
    position: relative;
    padding-bottom: 30px;
}
.devs-timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--devs-primary);
    border-radius: 50%;
    border: 2px solid #fff;
}
.devs-timeline-date {
    display: inline-block;
    background: var(--devs-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.devs-timeline-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}
.devs-timeline-content p {
    color: var(--text-muted, #6c757d);
    margin: 0;
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.devs-cta {
    background: linear-gradient(135deg, var(--devs-dark) 0%, #242442 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin: 0 -15px -30px -15px;
}
.devs-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.devs-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}
.devs-cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.devs-cta-actions .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
}
.devs-cta-actions .btn-light {
    background: #fff;
    color: var(--devs-dark);
}
.devs-cta-actions .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    background: transparent;
}
.devs-cta-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .devs-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .devs-integrations-grid {
        grid-template-columns: 1fr;
    }
    .devs-status-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .devs-hero {
        padding: 60px 0 70px;
    }
    .devs-hero h1 {
        font-size: 2.2rem;
    }
    .devs-hero-desc {
        font-size: 1rem;
    }
    .devs-section {
        padding: 50px 0;
    }
    .devs-section-header h2 {
        font-size: 1.6rem;
    }
    .devs-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .devs-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .devs-uptime-stats {
        gap: 30px;
    }
    .devs-uptime-value {
        font-size: 2rem;
    }
    .devs-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .devs-tabs-nav li a {
        white-space: nowrap;
        padding: 10px 16px;
    }
    .devs-workflow {
        flex-direction: column;
    }
    .devs-workflow-arrow {
        transform: rotate(90deg);
    }
    .devs-reseller-features {
        grid-template-columns: 1fr;
    }
    .devs-resources-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .devs-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .devs-hero h1 {
        font-size: 1.8rem;
    }
    .devs-hero-terminal {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    .devs-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .devs-hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    .devs-tools-grid {
        grid-template-columns: 1fr;
    }
    .devs-status-grid {
        grid-template-columns: 1fr;
    }
    .devs-uptime-stats {
        flex-direction: column;
        gap: 20px;
    }
    .devs-api-endpoints {
        flex-direction: column;
    }
    .devs-api-endpoints code {
        font-size: 0.75rem;
    }
    .devs-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .devs-cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Footer sitemap link */
.footer-copyright .footer-divider {
    margin: 0 8px;
    opacity: 0.6;
}

.footer-copyright .footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-copyright .footer-link:hover {
    color: var(--brand-primary);
}

/* SEO internal links bar */
.faciotech-seo-links {
    background: #f8f9fb;
    border-top: 1px solid #e6e8ee;
    border-bottom: 1px solid #e6e8ee;
    padding: 14px 0;
}

.faciotech-seo-links .seo-links-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #5b5f6a;
}

.faciotech-seo-links .seo-links-label {
    font-weight: 600;
    color: #1b1f2a;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}

.faciotech-seo-links a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.faciotech-seo-links a:hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

@media (max-width: 768px) {
    .faciotech-seo-links {
        padding: 12px 0;
    }

    .faciotech-seo-links .seo-links-inner {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .faciotech-seo-links .seo-links-inner {
        flex-direction: column;
        gap: 6px;
    }
}

/* ============================================
   SUPPORT HOURS (RS Studio-style)
   ============================================ */

/* ---------- Shared: Status Dot ---------- */
.support-hours-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c7cbd4;
    display: inline-block;
    flex-shrink: 0;
}

.is-online .support-hours-dot { background: #10b981; }
.is-closed .support-hours-dot { background: #ef4444; }
.is-offline .support-hours-dot { background: #c7cbd4; }

/* ---------- Shared: Inline Badge Pill ---------- */
.support-hours-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    white-space: nowrap;
}

.support-hours-badge-inline.is-online {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.support-hours-badge-inline.is-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* ---------- Department Card Footer ---------- */
.support-hours-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 14px;
    font-size: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.support-hours-schedule {
    color: #6b7280;
    font-size: 12px;
}

/* ---------- Navbar Dropdown ---------- */
.support-hours-dropdown {
    padding: 16px 18px;
    min-width: 340px;
}

.support-hours-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.support-hours-title {
    font-weight: 600;
    font-size: 14px;
    color: #1b1f2a;
}

/* Header badge (large) */
.support-hours-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.support-hours-badge.is-online {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.support-hours-badge.is-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Dropdown list */
.support-hours-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 8px;
}

.support-hours-row {
    padding: 10px 0;
}

.support-hours-row + .support-hours-row {
    border-top: 1px solid #f3f4f6;
}

.support-hours-row-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-hours-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.support-hours-row-name {
    font-weight: 600;
    font-size: 13px;
    color: #1b1f2a;
}

/* Small badge for dropdown rows */
.support-hours-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.support-hours-badge-sm.is-online { color: #059669; }
.support-hours-badge-sm.is-closed { color: #dc2626; }

.support-hours-row-schedule {
    font-size: 12px;
    color: #9ca3af;
}

.support-hours-actions {
    margin-top: 12px;
}

.support-hours-actions .btn {
    font-size: 13px;
}

/* ---------- Ticket View Sidebar Block ---------- */
.support-hours-ticket-block {
    margin-top: 16px;
}

.support-hours-ticket-block .panel-body {
    padding: 20px;
}

.support-hours-ticket-title {
    font-weight: 700;
    font-size: 15px;
    color: #1b1f2a;
    margin-bottom: 16px;
}

.support-hours-ticket-dept-name {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.support-hours-ticket-large-time {
    font-size: 28px;
    font-weight: 700;
    color: #1b1f2a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.support-hours-ticket-days {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.support-hours-ticket-status {
    margin-bottom: 6px;
}

.support-hours-ticket-note {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.support-hours-ticket-note strong {
    color: #1b1f2a;
}

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
    .support-hours-dropdown {
        min-width: 0;
        width: min(340px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }

    .support-hours-row-top {
        flex-wrap: wrap;
    }

    .support-hours-footer {
        padding: 8px 16px 12px;
    }
}

/* ============================================
   FACIOTECH ANNOUNCEMENTS — editorial layout
   Inspired by articulate.com/blog
   ============================================ */

/* Hide WHMCS default page header + sidebar */
.page-announcements .main-header { display: none !important; }
.page-announcements .main-sidebar,
.page-announcements .sidebar { display: none !important; }
.page-announcements .main-content {
    width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important;
}

.ft-ann { color: var(--text-body-color, #1f2937); }
.ft-ann h1, .ft-ann h2, .ft-ann h3 {
    color: var(--text-heading-color, #111827);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* --- Hero --- */
.ft-ann-hero {
    padding: 56px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--ui-block-divider-color, #e5e7eb);
}
.ft-ann-hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0;
}
.ft-ann-hero-desc {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-muted-color, #6b7280);
    max-width: 560px;
    margin: 16px auto 0;
}

/* --- Featured --- */
.ft-ann-featured {
    padding: 48px 0;
    border-bottom: 1px solid var(--ui-block-divider-color, #e5e7eb);
}
.ft-ann-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.ft-ann-feat-card {
    display: flex;
    flex-direction: column;
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ft-ann-feat-card:hover {
    border-color: var(--primary-color, #0146C7);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.ft-ann-feat-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.ft-ann-feat-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}
.ft-ann-feat-primary {
    grid-column: 1 / -1;
    flex-direction: row;
}
.ft-ann-feat-primary .ft-ann-feat-img {
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
}
.ft-ann-feat-primary .ft-ann-feat-content {
    padding: 32px;
    justify-content: center;
}
.ft-ann-feat-primary h3 { font-size: 1.5rem; }
.ft-ann-feat-card h3 {
    font-size: 1.15rem;
    margin: 0;
}
.ft-ann-feat-card p {
    margin: 0;
    color: var(--text-body-color, #4b5563);
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ft-ann-feat-primary p { -webkit-line-clamp: 4; }
/* No-image fallback: category-colored placeholder */
.ft-ann-feat-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #0146C7, #041133);
}
.ft-ann-feat-primary .ft-ann-feat-img-placeholder {
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
}

/* "Learn more" link */
.ft-ann-learn {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #0146C7);
    margin-top: auto;
}

/* --- Category tags --- */
.ft-ann-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ft-ann-tag-policy      { background: #eff6ff; color: #1d4ed8; }
.ft-ann-tag-security    { background: #fef2f2; color: #b91c1c; }
.ft-ann-tag-maintenance { background: #fffbeb; color: #b45309; }
.ft-ann-tag-product     { background: #f0fdf4; color: #15803d; }
.ft-ann-tag-billing     { background: #f0f9ff; color: #0369a1; }
.ft-ann-tag-community   { background: #eef2ff; color: #4338ca; }

/* --- Browse toolbar --- */
.ft-ann-browse { padding: 48px 0 56px; }
.ft-ann-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ui-block-divider-color, #e5e7eb);
}
.ft-ann-toolbar-left { display: flex; flex-direction: column; gap: 2px; }
.ft-ann-browse-title { font-size: 1.35rem; font-weight: 700; margin: 0; }
.ft-ann-browse-count { margin: 0; font-size: 14px; color: var(--text-muted-color, #6b7280); }
.ft-ann-toolbar-right { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ft-ann-field input,
.ft-ann-field select {
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--input-border-color, #d1d5db);
    padding: 0 12px;
    font-size: 14px;
    background: var(--input-bg, #fff);
    color: var(--text-body-color, #1f2937);
}
.ft-ann-field input { min-width: 180px; }
.ft-ann-field input:focus,
.ft-ann-field select:focus {
    border-color: var(--primary-color, #0146C7);
    box-shadow: 0 0 0 3px rgba(1,70,199,0.1);
    outline: none;
}

/* Active filter chips */
.ft-ann-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ft-ann-chip {
    border: none;
    background: var(--ui-block-bg, #f3f4f6);
    color: var(--text-body-color, #374151);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}
.ft-ann-chip:hover { background: #e5e7eb; }
.ft-ann-chip-clear {
    color: var(--primary-color, #0146C7);
    background: rgba(1,70,199,0.08);
}
.ft-ann-chip-clear:hover { background: rgba(1,70,199,0.14); }

/* --- Article grid --- */
.ft-ann-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.ft-ann-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--ui-block-bg, #fff);
    border: 1px solid var(--ui-block-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ft-ann-card:hover {
    border-color: var(--primary-color, #0146C7);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.ft-ann-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.ft-ann-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(135deg, #0146C7, #041133);
}
.ft-ann-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ft-ann-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.ft-ann-card p {
    margin: 0;
    color: var(--text-body-color, #4b5563);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ft-ann-card-foot {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted-color, #9ca3af);
    margin-top: auto;
    padding-top: 8px;
}
.ft-ann-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted-color, #6b7280);
    font-size: 15px;
}

/* --- Load more --- */
.ft-ann-load-more { text-align: center; margin-top: 36px; }
.ft-ann-btn-load {
    display: inline-block;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color, #0146C7);
    background: transparent;
    border: 2px solid var(--primary-color, #0146C7);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ft-ann-btn-load:hover {
    background: var(--primary-color, #0146C7);
    color: #fff;
}

/* --- Subscribe --- */
.ft-ann-subscribe {
    padding: 56px 0;
    background: var(--body-bg, #f9fafb);
    border-top: 1px solid var(--ui-block-divider-color, #e5e7eb);
}
.ft-ann-subscribe-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.ft-ann-subscribe-card h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.ft-ann-subscribe-card > .ft-ann-subscribe-body p {
    margin: 0 0 20px;
    color: var(--text-muted-color, #6b7280);
    font-size: 15px;
}
.ft-ann-subscribe-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.ft-ann-subscribe-form input {
    flex: 1;
    max-width: 320px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--input-border-color, #d1d5db);
    padding: 0 14px;
    font-size: 15px;
}
.ft-ann-subscribe-form input:focus {
    border-color: var(--primary-color, #0146C7);
    box-shadow: 0 0 0 3px rgba(1,70,199,0.1);
    outline: none;
}
.ft-ann-btn-primary {
    padding: 0 24px;
    height: 44px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color, #0146C7);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ft-ann-btn-primary:hover { opacity: 0.9; }
.ft-ann-subscribe-msg { font-size: 14px; margin-top: 12px; }
.ft-ann-subscribe-success { color: #15803d; font-weight: 600; }
.ft-ann-subscribe-error   { color: #b91c1c; font-weight: 600; }

.ft-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* --- Tablet (<=991px) --- */
@media (max-width: 991px) {
    .ft-ann-featured-grid { grid-template-columns: 1fr 1fr; }
    .ft-ann-feat-primary { grid-column: 1 / -1; }
    .ft-ann-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* --- Mobile (<=767px) --- */
@media (max-width: 767px) {
    .ft-ann-hero { padding: 36px 0 32px; }
    .ft-ann-hero-title { font-size: 1.75rem; }
    .ft-ann-featured { padding: 32px 0; }
    .ft-ann-featured-grid { grid-template-columns: 1fr; gap: 16px; }
    .ft-ann-feat-primary { flex-direction: column; }
    .ft-ann-feat-primary .ft-ann-feat-img,
    .ft-ann-feat-primary .ft-ann-feat-img-placeholder { width: 100%; aspect-ratio: 16 / 9; }
    .ft-ann-feat-primary .ft-ann-feat-content { padding: 24px; }
    .ft-ann-feat-primary h3 { font-size: 1.25rem; }

    .ft-ann-browse { padding: 32px 0 40px; }
    .ft-ann-toolbar { flex-direction: column; align-items: stretch; }
    .ft-ann-toolbar-right { flex-direction: column; }
    .ft-ann-field input { min-width: 0; width: 100%; }
    .ft-ann-field select { width: 100%; }

    .ft-ann-grid { grid-template-columns: 1fr; gap: 16px; }

    .ft-ann-subscribe { padding: 40px 0; }
    .ft-ann-subscribe-form { flex-direction: column; }
    .ft-ann-subscribe-form input { max-width: none; }
    .ft-ann-btn-primary { width: 100%; }
}

/* --- Dark mode --- */
body.lagom-dark-mode .ft-ann { color: var(--text-body-color, #e2e8f0); }
body.lagom-dark-mode .ft-ann-hero,
body.lagom-dark-mode .ft-ann-featured { border-color: rgba(148,163,184,0.2); }
body.lagom-dark-mode .ft-ann-subscribe { background: rgba(15,23,42,0.95); border-color: rgba(148,163,184,0.2); }
body.lagom-dark-mode .ft-ann-feat-card,
body.lagom-dark-mode .ft-ann-card {
    background: rgba(17,24,39,0.95);
    border-color: rgba(148,163,184,0.2);
    box-shadow: none;
}
body.lagom-dark-mode .ft-ann-field input,
body.lagom-dark-mode .ft-ann-field select,
body.lagom-dark-mode .ft-ann-subscribe-form input {
    background: rgba(15,23,42,0.9);
    border-color: rgba(148,163,184,0.3);
    color: #e2e8f0;
}
body.lagom-dark-mode .ft-ann-chip { background: rgba(148,163,184,0.15); color: #e2e8f0; }
body.lagom-dark-mode .ft-ann-chip-clear { color: #93c5fd; }
body.lagom-dark-mode .ft-ann-learn { color: #93c5fd; }
body.lagom-dark-mode .ft-ann-tag-policy      { background: rgba(59,130,246,0.2); }
body.lagom-dark-mode .ft-ann-tag-security    { background: rgba(239,68,68,0.2); }
body.lagom-dark-mode .ft-ann-tag-maintenance { background: rgba(245,158,11,0.2); }
body.lagom-dark-mode .ft-ann-tag-product     { background: rgba(34,197,94,0.2); }
body.lagom-dark-mode .ft-ann-tag-billing     { background: rgba(14,165,233,0.2); }
body.lagom-dark-mode .ft-ann-tag-community   { background: rgba(67,56,202,0.2); }

/* ============================================
   AI CHAT PAGE — Full-width breakout
   Removes Lagom container padding so the chat
   page fills the viewport edge-to-edge.
   ============================================ */
/* Hide page title/breadcrumb header */
.page-chat .main-header {
    display: none !important;
}

/* Hide WHMCS sidebar panels (Server Monitor, etc.) */
.page-chat .main-sidebar,
.page-chat .sidebar,
.page-chat .sidebar-primary,
.page-chat .sidebar-secondary,
.page-chat .col-sidebar {
    display: none !important;
}

/* Remove container max-width so chat fills viewport */
.page-chat .main-body,
.page-chat .main-body-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.page-chat .main-body > .container,
.page-chat .main-body > .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Main grid — remove flex gap so content fills */
.page-chat .main-grid {
    display: block !important;
}

/* Main content — full width, no padding */
.page-chat .main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove bottom padding on app-main wrapper */
.page-chat .app-main {
    padding-bottom: 0 !important;
}
