/* ============================================================
   HOSTIFY CYPRUS — my.hostify.cy CLIENT AREA — COMPLETE custom.css
   URL-based version (fonts/logo hosted on hostify.cy).
   Paste as FULL REPLACEMENT in Theme Editor -> custom.css
   ============================================================ */

/*
 * Hostify Cyprus — WHMCS Cloud Theme Editor custom.css
 * =====================================================
 * Paste this into the Theme Editor → your custom theme → custom.css.
 * It loads AFTER the base theme stylesheet, so these rules win.
 * Brand tokens mirror DESIGN.md (hostify.cy Laravel site):
 *   cyan  #049cdc (accent, large text only) | teal #0374a0 (buttons/links)
 *   deep  #0d4158 (hero/header gradients)    | gold #ffc108 (badges/highlights)
 *   slate #2a2e36 (body text)                | white surfaces
 * Fonts: Fraunces (display) + Instrument Sans (body) — loaded via @font-face
 * below from hostify.cy (our own server — Theme Editor does not validate
 * custom.css, only .tpl files, so external URLs are fine here).
 */

:root {
    --hostify-cyan: #049cdc;
    --hostify-teal: #0374a0;
    --hostify-deep: #0d4158;
    --hostify-deep-2: #0a3448;
    --hostify-gold: #ffc108;
    --hostify-slate: #2a2e36;
    --hostify-muted: #64748b;
    --hostify-border: #e2e8f0;
    --hostify-bg-soft: #f4f8fb;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--hostify-slate);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.logo-text,
.panel-title,
.page-header h1,
.tile .title {
    font-family: 'Fraunces', Georgia, serif;
}

a {
    color: var(--hostify-teal);
}
a:hover, a:focus {
    color: #025d82;
}

/* ---------- Header ---------- */
#header.hostify-header {
    background: #ffffff;
    border-bottom: 1px solid var(--hostify-border);
    box-shadow: 0 1px 4px rgba(42, 46, 54, 0.06);
}

.hostify-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px;
    min-height: 72px;
}

.hostify-brand .logo img {
    max-height: 44px;
    width: auto;
}

.logo-text {
    color: var(--hostify-slate);
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}
.hostify-logo-dot {
    color: var(--hostify-teal);
}

.top-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.top-nav > li {
    position: relative;
}
.top-nav > li > a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hostify-slate);
    border-radius: 6px;
    text-decoration: none;
}
.top-nav > li > a:hover {
    color: var(--hostify-teal);
    background: var(--hostify-bg-soft);
}
.top-nav .primary-action a.btn,
a.hostify-btn-cart,
a.hostify-btn-logout {
    background: var(--hostify-teal);
    border-color: var(--hostify-teal);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
}
.top-nav .primary-action a.btn:hover,
a.hostify-btn-cart:hover,
a.hostify-btn-logout:hover {
    background: #025d82;
    border-color: #025d82;
    color: #ffffff;
}

/* Language chooser + notifications popovers */
#languageChooserContent,
#accountNotificationsContent {
    border: 1px solid var(--hostify-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(42, 46, 54, 0.12);
    background: #ffffff;
}
#languageChooserContent ul,
#accountNotificationsContent ul {
    padding: 8px;
}
#languageChooserContent li a,
#accountNotificationsContent li a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--hostify-slate);
    text-decoration: none;
}
#languageChooserContent li a:hover,
#accountNotificationsContent li a:hover {
    background: var(--hostify-bg-soft);
    color: var(--hostify-teal);
}

/* ---------- Main menu (nav) ---------- */
#main-menu.hostify-main-menu {
    background: #ffffff;
    border-bottom: 1px solid var(--hostify-border);
}
#main-menu .navbar {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent;
    min-height: 48px;
}
#main-menu .navbar-nav > li > a {
    color: var(--hostify-slate);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px;
}
#main-menu .navbar-nav > li > a:hover,
#main-menu .navbar-nav > li > a:focus,
#main-menu .navbar-nav > li.active > a,
#main-menu .navbar-nav > li.open > a {
    color: var(--hostify-teal);
    background: var(--hostify-bg-soft);
}
#main-menu .navbar-toggle {
    border-color: var(--hostify-teal);
}
#main-menu .navbar-toggle .icon-bar {
    background: var(--hostify-teal);
}
#main-menu .dropdown-menu {
    border: 1px solid var(--hostify-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(42, 46, 54, 0.12);
}
#main-menu .dropdown-menu > li > a {
    color: var(--hostify-slate);
    padding: 8px 18px;
}
#main-menu .dropdown-menu > li > a:hover {
    background: var(--hostify-bg-soft);
    color: var(--hostify-teal);
}

/* ---------- Home banner (client area homepage) ---------- */
#home-banner.hostify-home-banner {
    background: linear-gradient(135deg, var(--hostify-deep-2) 0%, var(--hostify-deep) 55%, #0a5a7d 100%);
    color: #ffffff;
    padding: 56px 0 48px;
}
.hostify-home-banner-title {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 20px;
}
#home-banner .input-group-lg .form-control {
    border-radius: 8px 0 0 8px;
    border: 0;
    height: 52px;
    font-size: 15px;
}
#home-banner .input-group-btn .btn {
    border-radius: 0 8px 8px 0;
    border: 0;
    height: 52px;
    background: var(--hostify-gold);
    color: var(--hostify-slate);
    font-weight: 700;
    padding: 0 22px;
}
#home-banner .input-group-btn .btn:hover {
    background: #ffd04d;
}

.home-shortcuts {
    background: #ffffff;
    border-bottom: 1px solid var(--hostify-border);
    padding: 18px 0;
}
.home-shortcuts .lead {
    color: var(--hostify-slate);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    margin: 10px 0;
}
.home-shortcuts ul li a {
    display: block;
    border: 1px solid var(--hostify-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--hostify-slate);
    background: #ffffff;
    text-decoration: none;
}
.home-shortcuts ul li a:hover {
    border-color: var(--hostify-teal);
    color: var(--hostify-teal);
}
.home-shortcuts ul li a i {
    color: var(--hostify-teal);
}

/* ---------- Client area homepage greeting ---------- */
.hostify-home-greeting {
    text-align: center;
    padding: 36px 0 8px;
}
.hostify-home-greeting-title {
    color: var(--hostify-deep);
    font-size: 30px;
    margin: 0 0 8px;
}
.hostify-home-greeting-sub {
    color: var(--hostify-muted);
    margin: 0;
}

/* ---------- Tiles (dashboard stats) ---------- */
.tiles.hostify-tiles {
    padding: 24px 0;
}
.tile.hostify-tile {
    border: 1px solid var(--hostify-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(42, 46, 54, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tile.hostify-tile:hover {
    box-shadow: 0 6px 18px rgba(42, 46, 54, 0.10);
    transform: translateY(-2px);
}
.tile.hostify-tile .icon {
    color: var(--hostify-teal);
}
.tile.hostify-tile .stat {
    color: var(--hostify-slate);
    font-family: 'Fraunces', Georgia, serif;
}
.tile.hostify-tile .title {
    color: var(--hostify-slate);
}

/* ---------- Content area ---------- */
#main-body {
    padding: 24px 0 48px;
    background: #ffffff;
}
.page-header {
    border-bottom-color: var(--hostify-border);
}
.page-header h1 {
    color: var(--hostify-deep);
}
.breadcrumb {
    background: var(--hostify-bg-soft);
    border-radius: 6px;
}
.breadcrumb a {
    color: var(--hostify-teal);
}

/* ---------- Panels / cards (inner pages) ---------- */
.panel {
    border: 1px solid var(--hostify-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(42, 46, 54, 0.04);
}
.panel-default > .panel-heading,
.panel-primary > .panel-heading {
    background: var(--hostify-bg-soft);
    border-color: var(--hostify-border);
    color: var(--hostify-deep);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
}
.panel-primary {
    border-color: var(--hostify-teal);
}
.panel-primary > .panel-heading {
    background: var(--hostify-teal);
    border-color: var(--hostify-teal);
    color: #ffffff;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 6px;
    font-weight: 600;
}
.btn-primary {
    background: var(--hostify-teal);
    border-color: var(--hostify-teal);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: #025d82;
    border-color: #025d82;
}
.btn-success {
    background: #1e9e6a;
    border-color: #1e9e6a;
}
.btn-info {
    background: var(--hostify-cyan);
    border-color: var(--hostify-cyan);
    color: #ffffff;
}
.btn-default {
    color: var(--hostify-slate);
    border-color: var(--hostify-border);
}
.btn-default:hover {
    background: var(--hostify-bg-soft);
    border-color: var(--hostify-teal);
    color: var(--hostify-teal);
}
.btn-danger {
    background: #d64545;
    border-color: #d64545;
}

/* ---------- Forms ---------- */
.form-control {
    border-color: #cbd5e1;
    border-radius: 6px;
    color: var(--hostify-slate);
}
.form-control:focus {
    border-color: var(--hostify-cyan);
    box-shadow: 0 0 0 3px rgba(4, 156, 220, 0.15);
}
label {
    color: var(--hostify-slate);
    font-weight: 600;
}

/* ---------- Tables ---------- */
.table thead th {
    border-bottom: 2px solid var(--hostify-border);
    color: var(--hostify-deep);
    font-weight: 700;
}
.table > tbody > tr:hover {
    background: var(--hostify-bg-soft);
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: 8px;
    border: 0;
}
.alert-info { background: #e6f5fc; color: #0a5273; }
.alert-success { background: #e9f8f1; color: #16684a; }
.alert-warning { background: #fff6dc; color: #7a5b00; }
.alert-danger { background: #fdeaea; color: #8a2f2f; }

/* ---------- Sidebar ---------- */
.sidebar .panel-heading {
    background: var(--hostify-bg-soft);
    border-color: var(--hostify-border);
    color: var(--hostify-deep);
}
.sidebar .list-group-item {
    border-color: var(--hostify-border);
    color: var(--hostify-slate);
}
.sidebar .list-group-item:hover,
.sidebar .list-group-item.active {
    background: var(--hostify-bg-soft);
    border-color: var(--hostify-teal);
    color: var(--hostify-teal);
}

/* ---------- Footer ---------- */
#footer.hostify-footer {
    background: var(--hostify-deep-2);
    color: #cbd5e1;
    padding: 40px 0 20px;
    font-size: 14px;
}
.hostify-footer-grid .hostify-footer-col {
    margin-bottom: 20px;
}
.hostify-footer-brand .logo img {
    max-height: 40px;
    margin-bottom: 10px;
}
.hostify-footer-slogan {
    color: #94a3b8;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
}
.hostify-footer-title {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.hostify-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hostify-footer-links li {
    margin-bottom: 8px;
}
.hostify-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}
.hostify-footer-links a:hover {
    color: var(--hostify-gold);
}
.hostify-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
}
.hostify-footer-bottom p {
    margin: 2px 0;
}
.hostify-footer-parent {
    opacity: 0.85;
}
#footer .back-to-top {
    color: var(--hostify-gold);
}

/* ---------- Login page touch ---------- */
.login-form .panel {
    border-radius: 12px;
}
.btn-login {
    background: var(--hostify-teal);
    border-color: var(--hostify-teal);
    color: #ffffff;
}
.btn-login:hover {
    background: #025d82;
    border-color: #025d82;
    color: #ffffff;
}

/* ---------- Misc ---------- */
.nav-tabs > li > a {
    color: var(--hostify-slate);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--hostify-teal);
    border-bottom-color: var(--hostify-teal);
}
#fullpage-overlay .msg {
    color: var(--hostify-slate);
}

@media (max-width: 991px) {
    .hostify-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    #main-menu .navbar-collapse {
        border-top: 1px solid var(--hostify-border);
    }
}


/* ============================================================
   PART 2 — BRAND FONTS (hosted on hostify.cy, URL-referenced)
   ============================================================ */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://hostify.cy/fonts/instrument-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://hostify.cy/fonts/fraunces.woff2') format('woff2');
}

/* Greek falls back to the system stack — same as hostify.cy. */

/* ============================================================
   PART 3 — HEADER LOGO (Hostify logo hosted on hostify.cy)
   ============================================================ */

.hostify-brand .logo img {
  display: none !important;
}
.hostify-brand .logo {
  display: inline-block;
  width: 260px;
  height: 55px;
  background-image: url('https://hostify.cy/hostify_logo_whmcs.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  text-indent: -9999px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .hostify-brand .logo {
    width: 190px;
    height: 40px;
  }
}

/* ============================================================
   HOSTIFY CY — FIX PACK 3 (paste into custom.css, APPEND at end)
   Antonis / ops — WHMCS Cloud Theme Editor
   ------------------------------------------------------------
   Styles the ACTUAL markup WHMCS Twenty-One renders on Cloud.
   The original pack styled 'panel' classes (old Six theme); Cloud
   renders 'card' classes, so inner pages looked default. This fixes
   the login page + all inner pages (products, invoices, tickets,
   cart). Pure CSS — validator-safe.
   ============================================================ */

/* ---------- Inner page cards (login, products, invoices, tickets) ---------- */
.card {
    border: 1px solid var(--hostify-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(13, 65, 88, 0.08);
    overflow: hidden;
}
.card-header {
    background: var(--hostify-deep, #0d4158);
    color: #fff;
    border-bottom: 0;
    padding: 14px 20px;
}
.card-header .card-title,
.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6 {
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
}
.card-body {
    padding: 28px;
}
.card-footer {
    background: var(--hostify-bg-soft, #f4f8fb);
    border-top: 1px solid var(--hostify-border, #e2e8f0);
    padding: 14px 28px;
    color: var(--hostify-muted, #64748b);
    font-size: 14px;
}

/* ---------- Login page specifically ---------- */
.login-form .card,
.client-login-form .card {
    margin-top: 40px;
    margin-bottom: 40px;
}
.login-form h6.h3,
.client-login-form h6.h3,
.login-form .card-body h1,
.login-form .card-body h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    color: var(--hostify-slate, #2a2e36);
}
.login-form p.text-muted {
    color: var(--hostify-muted, #64748b);
    font-size: 15px;
}

/* ---------- Form controls (all inner pages) ---------- */
.form-control {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--hostify-slate, #2a2e36);
    background: #fff;
    height: auto;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
    border-color: var(--hostify-teal, #0374a0);
    box-shadow: 0 0 0 3px rgba(3, 116, 160, 0.12);
    outline: 0;
}
.form-control-label {
    font-weight: 600;
    color: var(--hostify-slate, #2a2e36);
    margin-bottom: 6px;
}
.input-group-text {
    background: var(--hostify-bg-soft, #f4f8fb);
    border: 1px solid #cbd5e1;
    color: var(--hostify-teal, #0374a0);
    border-radius: 8px 0 0 8px;
}
.input-group-merge .form-control {
    border-left: 0;
    border-radius: 0 8px 8px 0;
}
.form-check-input:checked {
    background-color: var(--hostify-teal, #0374a0);
    border-color: var(--hostify-teal, #0374a0);
}
.form-check-label {
    color: var(--hostify-muted, #64748b);
    font-size: 14px;
}

/* ---------- Buttons (all inner pages) ---------- */
.btn-primary {
    background: var(--hostify-teal, #0374a0);
    border-color: var(--hostify-teal, #0374a0);
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    color: #ffffff;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: #025d82;
    border-color: #025d82;
    color: #ffffff;
}
.btn-default {
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--hostify-slate, #2a2e36);
    border-color: #cbd5e1;
}
.btn-default:hover {
    background: var(--hostify-bg-soft, #f4f8fb);
    border-color: #94a3b8;
}

/* ---------- Alerts / messages ---------- */
.alert {
    border-radius: 10px;
    border: 0;
    padding: 14px 18px;
    font-size: 14px;
}
.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}
.alert-success {
    background: #f0fdf4;
    color: #15803d;
}
.alert-info {
    background: var(--hostify-bg-soft, #f4f8fb);
    color: var(--hostify-teal, #0374a0);
}

/* ---------- Tiles / dashboard cards ---------- */
.tile, .home-tile {
    border: 1px solid var(--hostify-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(13, 65, 88, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover, .home-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 65, 88, 0.12);
}

/* ---------- Tables (invoices, tickets, products) ---------- */
.table {
    font-size: 14px;
    color: var(--hostify-slate, #2a2e36);
}
.table thead th {
    background: var(--hostify-bg-soft, #f4f8fb);
    border-bottom: 2px solid var(--hostify-border, #e2e8f0);
    color: var(--hostify-slate, #2a2e36);
    font-weight: 600;
}
.table tbody tr:hover {
    background: #f8fbfd;
}

/* ---------- Login page left/right layout touch (desktop) ---------- */
@media (min-width: 992px) {
    .login-form .card.mw-540 {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 540px;
    }
}

/* ---------- Powered-by line ---------- */
p:has(> a[href*="whmcs.com"]) {
    color: var(--hostify-muted, #64748b);
    font-size: 12px;
}

/* ============================================================
   FIX 2026-08-24 — collapsed popover panels (language chooser)
   ------------------------------------------------------------
   Twenty-One does NOT define a global .hidden class (it only has
   [hidden], .w-hidden and a scoped .md-editor .hidden rule). The
   header template marks the language-chooser + notifications
   popover panels with class="hidden", so on Twenty-One they render
   VISIBLE and balloon the header to ~1200px (the language list was
   pushing the whole page down). This keeps them collapsed until
   the popover opens (WHMCS JS removes the class / shows the popover
   copy). Purely additive — safe to keep with future template pastes.
   ============================================================ */
#languageChooserContent.hidden,
#accountNotificationsContent.hidden {
    display: none !important;
}

/* ============================================================
   FIX 2026-08-24 — working language switcher (Twenty-One modal)
   ------------------------------------------------------------
   The old header control (data-toggle="popover") is a dead element
   on Twenty-One — WHMCS JS preventDefaults .choose-language clicks
   and the popover never renders content, so "English" looked like a
   random broken dropdown. Replaced with the native Twenty-One
   #modalChooseLanguage flow: header link opens a modal (wired by
   WHMCS bundled scripts, no custom JS), footer hosts the modal.
   This styles that modal on-brand.
   ============================================================ */
.modal-localisation .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(13, 65, 88, 0.18);
}
.modal-localisation .modal-body {
    padding: 28px;
}
.modal-localisation .modal-body .close {
    color: var(--hostify-slate);
    opacity: 0.5;
    font-size: 28px;
    margin: -12px -8px 0 0;
}
.modal-localisation h5 {
    color: var(--hostify-deep);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
}
.modal-localisation .item-selector {
    margin: 0 -8px;
}
.modal-localisation .item-selector .item {
    display: block;
    padding: 12px 16px;
    margin: 8px;
    border: 1px solid var(--hostify-border);
    border-radius: 8px;
    color: var(--hostify-slate);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s ease;
}
.modal-localisation .item-selector .item:hover {
    border-color: var(--hostify-teal);
    color: var(--hostify-teal);
    background: var(--hostify-bg-soft);
}
.modal-localisation .item-selector .item.active {
    background: var(--hostify-teal);
    border-color: var(--hostify-teal);
    color: #ffffff;
}
.modal-localisation .modal-footer {
    border-top: 1px solid var(--hostify-border);
    padding: 16px 28px;
}

/* ============================================================
   FIX 2026-08-24b — light, readable localization modal
   ------------------------------------------------------------
   WHMCS base styles make .modal-localisation DARK (#3e3e3e bg,
   worldmap image, white headings, light-gray tiles) — our light
   tiles then rendered dark text on dark gray = unreadable. Force
   the modal light and on-brand with explicit backgrounds. These
   rules tie/beat the base selectors by load order (custom.css
   loads after theme.min.css).
   ============================================================ */
.modal-localisation .modal-content {
    background-color: #ffffff;
}
.modal-localisation .modal-body {
    background: #ffffff;
}
.modal-localisation .h5 {
    color: var(--hostify-deep);
}
.modal-localisation .item-selector .item {
    background-color: #ffffff;
}
.modal-localisation .modal-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--hostify-border);
}